@mjhls/mjh-framework 1.0.98 → 1.0.99-0.next-12

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 (356) hide show
  1. package/README.md +168 -172
  2. package/dist/cjs/AD.js +32 -0
  3. package/dist/cjs/AD300x250.js +95 -0
  4. package/dist/cjs/AD300x250x600.js +112 -0
  5. package/dist/cjs/AD728x90.js +109 -0
  6. package/dist/cjs/ADFloatingFooter.js +143 -0
  7. package/dist/cjs/ADFooter.js +53 -0
  8. package/dist/cjs/ADGutter.js +115 -0
  9. package/dist/cjs/ADInfeed-cf54cb8a.js +66 -0
  10. package/dist/cjs/ADSkyscraper.js +117 -0
  11. package/dist/cjs/ADSponsoredResources.js +114 -0
  12. package/dist/cjs/ADWebcast.js +119 -0
  13. package/dist/cjs/ADWelcome.js +166 -0
  14. package/dist/cjs/ADlgInfeed-d06624d8.js +60 -0
  15. package/dist/cjs/AccordionPanel.js +94 -0
  16. package/dist/cjs/AdSlot.js +251 -0
  17. package/dist/cjs/AdSlotsProvider.js +183 -0
  18. package/dist/cjs/AlgoliaSearch.js +195 -0
  19. package/dist/cjs/AlphabeticList.js +135 -0
  20. package/dist/cjs/ArticleCarousel.js +46 -0
  21. package/dist/cjs/ArticleProgramLandingPage.js +184 -0
  22. package/dist/cjs/ArticleSeriesLandingPage.js +162 -0
  23. package/dist/cjs/ArticleSeriesListing.js +315 -0
  24. package/dist/cjs/AuthWrapper.js +720 -0
  25. package/dist/cjs/AuthorComponent-39b37d84.js +96 -0
  26. package/dist/cjs/Beam.js +350 -0
  27. package/dist/cjs/BlockContent-36e54d77.js +916 -0
  28. package/dist/cjs/Breadcrumbs.js +107 -0
  29. package/dist/cjs/CMEDeck.js +443 -0
  30. package/dist/cjs/Column1.js +39 -0
  31. package/dist/cjs/Column2.js +75 -0
  32. package/dist/cjs/Column3.js +144 -0
  33. package/dist/cjs/ConferenceArticleCard.js +93 -0
  34. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  35. package/dist/cjs/ContentCardPaginated.js +417 -0
  36. package/dist/cjs/DeckContent.js +507 -0
  37. package/dist/cjs/DeckQueue.js +403 -0
  38. package/dist/cjs/DeckQueuePaginated.js +348 -0
  39. package/dist/cjs/Dfp-94f8ccdf.js +103 -0
  40. package/dist/cjs/EventsDeck.js +857 -0
  41. package/dist/cjs/ExternalResources.js +217 -0
  42. package/dist/cjs/Feature.js +129 -0
  43. package/dist/cjs/ForbesHero.js +137 -0
  44. package/dist/cjs/GridContent.js +828 -0
  45. package/dist/cjs/GridContentPaginated.js +704 -0
  46. package/dist/cjs/GridHero.js +147 -0
  47. package/dist/cjs/GroupDeck.js +314 -0
  48. package/dist/cjs/HamMagazine.js +602 -0
  49. package/dist/cjs/Header.js +39 -0
  50. package/dist/cjs/HealthCareProfessionalModal.js +78 -0
  51. package/dist/cjs/Hero.js +48 -0
  52. package/dist/cjs/HighlightenVideo.js +69 -0
  53. package/dist/cjs/HorizontalArticleListing.js +165 -0
  54. package/dist/cjs/HorizontalHero.js +111 -0
  55. package/dist/cjs/ImageSlider-a7fb6218.js +182 -0
  56. package/dist/cjs/IssueContentDeck.js +241 -0
  57. package/dist/cjs/IssueDeck.js +268 -0
  58. package/dist/cjs/IssueLanding.js +172 -0
  59. package/dist/cjs/KMTracker.js +27 -0
  60. package/dist/cjs/LeftNav.js +145 -0
  61. package/dist/cjs/MasterDeck.js +555 -0
  62. package/dist/cjs/MasterDeckPaginated.js +469 -0
  63. package/dist/cjs/MediaSeriesCard-36eab8b7.js +9502 -0
  64. package/dist/cjs/MediaSeriesLanding.js +503 -0
  65. package/dist/cjs/MediaSeriesLandingPaginated.js +529 -0
  66. package/dist/cjs/NavDvm.js +245 -0
  67. package/dist/cjs/NavFooter-3dcd99a8.js +66 -0
  68. package/dist/cjs/NavMagazine.js +595 -0
  69. package/dist/cjs/NavNative.js +861 -0
  70. package/dist/cjs/OncliveHero.js +79 -0
  71. package/dist/cjs/OncliveLargeHero.js +241 -0
  72. package/dist/cjs/PageFilter.js +72 -0
  73. package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
  74. package/dist/cjs/PartnerDetailListing.js +326 -0
  75. package/dist/cjs/PartnerDetailListingPaginated.js +318 -0
  76. package/dist/cjs/PdfDownload.js +28 -0
  77. package/dist/cjs/PixelTracking.js +165 -0
  78. package/dist/cjs/PopUpModal.js +58 -0
  79. package/dist/cjs/PtceDeck.js +149 -0
  80. package/dist/cjs/PubSection.js +120 -0
  81. package/dist/cjs/PubToc.js +87 -0
  82. package/dist/cjs/PublicationDeck.js +183 -0
  83. package/dist/cjs/PublicationFeature-be5f3503.js +130 -0
  84. package/dist/cjs/PublicationLanding.js +853 -0
  85. package/dist/cjs/QueueDeckExpanded.js +1540 -0
  86. package/dist/cjs/QueueDeckExpandedPaginated.js +1388 -0
  87. package/dist/cjs/RecentNews.js +91 -0
  88. package/dist/cjs/RelatedContent.js +114 -0
  89. package/dist/cjs/RelatedTopicsDropdown.js +90 -0
  90. package/dist/cjs/RolesDeck.js +94 -0
  91. package/dist/cjs/Schema.js +101 -0
  92. package/dist/cjs/Search.js +66 -0
  93. package/dist/cjs/Segment.js +403 -0
  94. package/dist/cjs/SeriesListingDeck.js +248 -0
  95. package/dist/cjs/SeriesSlider-b94f1dd5.js +332 -0
  96. package/dist/cjs/SetCookie.js +10 -0
  97. package/dist/cjs/SideFooter.js +151 -0
  98. package/dist/cjs/SocialIcons.js +103 -0
  99. package/dist/cjs/SocialSearchComponent-b7faaedc.js +213 -0
  100. package/dist/cjs/SocialShare.js +74 -0
  101. package/dist/cjs/TaxonomyCard.js +253 -0
  102. package/dist/cjs/TaxonomyDescription.js +205 -0
  103. package/dist/cjs/TemplateNormal.js +204 -0
  104. package/dist/cjs/ThumbnailCard.js +59 -0
  105. package/dist/cjs/Ustream.js +156 -0
  106. package/dist/cjs/VerticalHero.js +74 -0
  107. package/dist/cjs/VideoProgramLandingPage.js +260 -0
  108. package/dist/cjs/VideoSeriesCard.js +88 -0
  109. package/dist/cjs/VideoSeriesFilter.js +128 -0
  110. package/dist/cjs/VideoSeriesLandingPage.js +178 -0
  111. package/dist/cjs/VideoSeriesListing.js +422 -0
  112. package/dist/cjs/View.js +2601 -0
  113. package/dist/cjs/YahooHero.js +126 -0
  114. package/dist/cjs/YoutubeGroup.js +371 -0
  115. package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
  116. package/dist/cjs/_is-array-54228b29.js +74 -0
  117. package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
  118. package/dist/cjs/_library-dd23b178.js +5 -0
  119. package/dist/cjs/_object-pie-083f2dd6.js +16 -0
  120. package/dist/cjs/_object-sap-d1978572.js +16 -0
  121. package/dist/cjs/_object-to-array-ce86cae7.js +25 -0
  122. package/dist/cjs/asyncToGenerator-77821af0.js +1395 -0
  123. package/dist/cjs/brightcove-react-player-loader.es-a195642e.js +2232 -0
  124. package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
  125. package/dist/cjs/debounce-d4a2369b.js +216 -0
  126. package/dist/cjs/define-property-e8404b64.js +20 -0
  127. package/dist/cjs/defineProperty-9673846a.js +34 -0
  128. package/dist/cjs/entities-3f9d0f2f.js +506 -0
  129. package/dist/cjs/eq-5fc26c07.js +79 -0
  130. package/dist/cjs/extends-7c86182f.js +87 -0
  131. package/dist/cjs/faundadb.js +644 -0
  132. package/dist/cjs/get-5839e5b5.js +920 -0
  133. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  134. package/dist/cjs/getKeywords.js +46 -0
  135. package/dist/cjs/getPtceActivities.js +89 -0
  136. package/dist/cjs/getQuery.js +28 -0
  137. package/dist/cjs/getRelatedArticle.js +747 -0
  138. package/dist/cjs/getRootDocGroup.js +62 -0
  139. package/dist/cjs/getSerializers.js +64 -0
  140. package/dist/cjs/getSeriesDetail.js +40 -0
  141. package/dist/cjs/getTargeting-4439c99d.js +164 -0
  142. package/dist/cjs/getTargeting.js +13 -0
  143. package/dist/cjs/iconBase-be4097c0.js +106 -0
  144. package/dist/cjs/index-0e4427c8.js +1683 -0
  145. package/dist/cjs/index-187c967e.js +54 -0
  146. package/dist/cjs/index-7361fa72.js +11305 -0
  147. package/dist/cjs/index-eadd5035.js +613 -0
  148. package/dist/cjs/index-efca863c.js +556 -0
  149. package/dist/cjs/index-f86bb269.js +1571 -0
  150. package/dist/cjs/index.es-f3e47207.js +445 -0
  151. package/dist/cjs/index.esm-2bb721c8.js +96 -0
  152. package/dist/cjs/index.esm-c1e16606.js +13 -0
  153. package/dist/cjs/index.esm-d51c9ac6.js +25 -0
  154. package/dist/cjs/index.esm-d81454e7.js +19 -0
  155. package/dist/cjs/index.js +635 -0
  156. package/dist/cjs/inherits-de66ea16.js +188 -0
  157. package/dist/cjs/isSymbol-03abbdf0.js +209 -0
  158. package/dist/cjs/js.cookie-a511c430.js +160 -0
  159. package/dist/cjs/keys-e982b3fa.js +25 -0
  160. package/dist/cjs/lodash-f0783643.js +17195 -0
  161. package/dist/cjs/main-f1c77adb.js +973 -0
  162. package/dist/cjs/moment-aca40de1.js +5669 -0
  163. package/dist/cjs/react-social-icons-af932527.js +616 -0
  164. package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
  165. package/dist/cjs/smoothscroll-99df7f93.js +438 -0
  166. package/dist/cjs/stringify-f7a37a8d.js +17 -0
  167. package/dist/cjs/style-inject.es-dcee06b6.js +30 -0
  168. package/dist/cjs/timeDifferenceCalc.js +39 -0
  169. package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
  170. package/dist/cjs/toNumber-5e1fac58.js +104 -0
  171. package/dist/cjs/typeof-567e31ff.js +382 -0
  172. package/dist/cjs/urlFor.js +65 -0
  173. package/dist/cjs/urlForFile-29d3815a.js +24 -0
  174. package/dist/cjs/ustream-api-3819e4aa.js +106 -0
  175. package/dist/cjs/visibility-sensor-eb2c5b69.js +597 -0
  176. package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
  177. package/dist/esm/AD.js +26 -0
  178. package/dist/esm/AD300x250.js +89 -0
  179. package/dist/esm/AD300x250x600.js +106 -0
  180. package/dist/esm/AD728x90.js +103 -0
  181. package/dist/esm/ADFloatingFooter.js +137 -0
  182. package/dist/esm/ADFooter.js +47 -0
  183. package/dist/esm/ADGutter.js +109 -0
  184. package/dist/esm/ADInfeed-f684cac9.js +59 -0
  185. package/dist/esm/ADSkyscraper.js +111 -0
  186. package/dist/esm/ADSponsoredResources.js +108 -0
  187. package/dist/esm/ADWebcast.js +113 -0
  188. package/dist/esm/ADWelcome.js +160 -0
  189. package/dist/esm/ADlgInfeed-8c438cee.js +54 -0
  190. package/dist/esm/AccordionPanel.js +87 -0
  191. package/dist/esm/AdSlot.js +244 -0
  192. package/dist/esm/AdSlotsProvider.js +176 -0
  193. package/dist/esm/AlgoliaSearch.js +188 -0
  194. package/dist/esm/AlphabeticList.js +129 -0
  195. package/dist/esm/ArticleCarousel.js +40 -0
  196. package/dist/esm/ArticleProgramLandingPage.js +178 -0
  197. package/dist/esm/ArticleSeriesLandingPage.js +156 -0
  198. package/dist/esm/ArticleSeriesListing.js +308 -0
  199. package/dist/esm/AuthWrapper.js +714 -0
  200. package/dist/esm/AuthorComponent-defe68b6.js +90 -0
  201. package/dist/esm/Beam.js +348 -0
  202. package/dist/esm/BlockContent-c99c9a8d.js +909 -0
  203. package/dist/esm/Breadcrumbs.js +100 -0
  204. package/dist/esm/CMEDeck.js +437 -0
  205. package/dist/esm/Column1.js +29 -0
  206. package/dist/esm/Column2.js +65 -0
  207. package/dist/esm/Column3.js +134 -0
  208. package/dist/esm/ConferenceArticleCard.js +87 -0
  209. package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
  210. package/dist/esm/ContentCardPaginated.js +406 -0
  211. package/dist/esm/DeckContent.js +497 -0
  212. package/dist/esm/DeckQueue.js +393 -0
  213. package/dist/esm/DeckQueuePaginated.js +337 -0
  214. package/dist/esm/Dfp-4b99f79d.js +96 -0
  215. package/dist/esm/EventsDeck.js +844 -0
  216. package/dist/esm/ExternalResources.js +210 -0
  217. package/dist/esm/Feature.js +122 -0
  218. package/dist/esm/ForbesHero.js +131 -0
  219. package/dist/esm/GridContent.js +818 -0
  220. package/dist/esm/GridContentPaginated.js +693 -0
  221. package/dist/esm/GridHero.js +141 -0
  222. package/dist/esm/GroupDeck.js +308 -0
  223. package/dist/esm/HamMagazine.js +590 -0
  224. package/dist/esm/Header.js +30 -0
  225. package/dist/esm/HealthCareProfessionalModal.js +70 -0
  226. package/dist/esm/Hero.js +42 -0
  227. package/dist/esm/HighlightenVideo.js +63 -0
  228. package/dist/esm/HorizontalArticleListing.js +159 -0
  229. package/dist/esm/HorizontalHero.js +105 -0
  230. package/dist/esm/ImageSlider-eab2fe41.js +176 -0
  231. package/dist/esm/IssueContentDeck.js +231 -0
  232. package/dist/esm/IssueDeck.js +258 -0
  233. package/dist/esm/IssueLanding.js +166 -0
  234. package/dist/esm/KMTracker.js +25 -0
  235. package/dist/esm/LeftNav.js +136 -0
  236. package/dist/esm/MasterDeck.js +548 -0
  237. package/dist/esm/MasterDeckPaginated.js +461 -0
  238. package/dist/esm/MediaSeriesCard-99048e65.js +9492 -0
  239. package/dist/esm/MediaSeriesLanding.js +496 -0
  240. package/dist/esm/MediaSeriesLandingPaginated.js +522 -0
  241. package/dist/esm/NavDvm.js +233 -0
  242. package/dist/esm/NavFooter-e27bd93b.js +60 -0
  243. package/dist/esm/NavMagazine.js +583 -0
  244. package/dist/esm/NavNative.js +846 -0
  245. package/dist/esm/OncliveHero.js +73 -0
  246. package/dist/esm/OncliveLargeHero.js +235 -0
  247. package/dist/esm/PageFilter.js +66 -0
  248. package/dist/esm/Pagination-cd21f8c2.js +82 -0
  249. package/dist/esm/PartnerDetailListing.js +320 -0
  250. package/dist/esm/PartnerDetailListingPaginated.js +312 -0
  251. package/dist/esm/PdfDownload.js +22 -0
  252. package/dist/esm/PixelTracking.js +156 -0
  253. package/dist/esm/PopUpModal.js +51 -0
  254. package/dist/esm/PtceDeck.js +143 -0
  255. package/dist/esm/PubSection.js +114 -0
  256. package/dist/esm/PubToc.js +81 -0
  257. package/dist/esm/PublicationDeck.js +173 -0
  258. package/dist/esm/PublicationFeature-03500094.js +121 -0
  259. package/dist/esm/PublicationLanding.js +843 -0
  260. package/dist/esm/QueueDeckExpanded.js +1534 -0
  261. package/dist/esm/QueueDeckExpandedPaginated.js +1382 -0
  262. package/dist/esm/RecentNews.js +85 -0
  263. package/dist/esm/RelatedContent.js +108 -0
  264. package/dist/esm/RelatedTopicsDropdown.js +82 -0
  265. package/dist/esm/RolesDeck.js +84 -0
  266. package/dist/esm/Schema.js +95 -0
  267. package/dist/esm/Search.js +57 -0
  268. package/dist/esm/Segment.js +401 -0
  269. package/dist/esm/SeriesListingDeck.js +242 -0
  270. package/dist/esm/SeriesSlider-609f9d94.js +326 -0
  271. package/dist/esm/SetCookie.js +8 -0
  272. package/dist/esm/SideFooter.js +145 -0
  273. package/dist/esm/SocialIcons.js +97 -0
  274. package/dist/esm/SocialSearchComponent-1d8a9f59.js +204 -0
  275. package/dist/esm/SocialShare.js +67 -0
  276. package/dist/esm/TaxonomyCard.js +243 -0
  277. package/dist/esm/TaxonomyDescription.js +198 -0
  278. package/dist/esm/TemplateNormal.js +197 -0
  279. package/dist/esm/ThumbnailCard.js +52 -0
  280. package/dist/esm/Ustream.js +150 -0
  281. package/dist/esm/VerticalHero.js +68 -0
  282. package/dist/esm/VideoProgramLandingPage.js +251 -0
  283. package/dist/esm/VideoSeriesCard.js +82 -0
  284. package/dist/esm/VideoSeriesFilter.js +122 -0
  285. package/dist/esm/VideoSeriesLandingPage.js +172 -0
  286. package/dist/esm/VideoSeriesListing.js +415 -0
  287. package/dist/esm/View.js +2590 -0
  288. package/dist/esm/YahooHero.js +120 -0
  289. package/dist/esm/YoutubeGroup.js +365 -0
  290. package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
  291. package/dist/esm/_is-array-893ab020.js +71 -0
  292. package/dist/esm/_iter-detect-f089461c.js +48 -0
  293. package/dist/esm/_library-528f1934.js +3 -0
  294. package/dist/esm/_object-pie-133f504a.js +13 -0
  295. package/dist/esm/_object-sap-169d6272.js +14 -0
  296. package/dist/esm/_object-to-array-50a6b9a3.js +23 -0
  297. package/dist/esm/asyncToGenerator-9716ae8d.js +1387 -0
  298. package/dist/esm/brightcove-react-player-loader.es-57a70a56.js +2226 -0
  299. package/dist/esm/core.get-iterator-method-e903ff31.js +547 -0
  300. package/dist/esm/debounce-533d9748.js +214 -0
  301. package/dist/esm/define-property-99e66838.js +18 -0
  302. package/dist/esm/defineProperty-8fa0bc8d.js +32 -0
  303. package/dist/esm/entities-932b50cf.js +503 -0
  304. package/dist/esm/eq-bdcbf886.js +76 -0
  305. package/dist/esm/extends-dc6a71fd.js +83 -0
  306. package/dist/esm/faundadb.js +636 -0
  307. package/dist/esm/get-3c308da4.js +918 -0
  308. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  309. package/dist/esm/getKeywords.js +44 -0
  310. package/dist/esm/getPtceActivities.js +87 -0
  311. package/dist/esm/getQuery.js +26 -0
  312. package/dist/esm/getRelatedArticle.js +745 -0
  313. package/dist/esm/getRootDocGroup.js +60 -0
  314. package/dist/esm/getSerializers.js +58 -0
  315. package/dist/esm/getSeriesDetail.js +38 -0
  316. package/dist/esm/getTargeting-db566006.js +161 -0
  317. package/dist/esm/getTargeting.js +7 -0
  318. package/dist/esm/iconBase-ccc56b97.js +81 -0
  319. package/dist/esm/index-0dbff1d1.js +553 -0
  320. package/dist/esm/index-5cc7b406.js +1674 -0
  321. package/dist/esm/index-755f2cc2.js +605 -0
  322. package/dist/esm/index-79cfd25c.js +1569 -0
  323. package/dist/esm/index-c60f3bb6.js +11284 -0
  324. package/dist/esm/index-c7e2ac95.js +52 -0
  325. package/dist/esm/index.es-a6137319.js +439 -0
  326. package/dist/esm/index.esm-1bd8a0a8.js +18 -0
  327. package/dist/esm/index.esm-37268dca.js +89 -0
  328. package/dist/esm/index.esm-9b042655.js +10 -0
  329. package/dist/esm/index.esm-eb1e8e80.js +14 -0
  330. package/dist/esm/index.js +529 -0
  331. package/dist/esm/inherits-8a801a18.js +179 -0
  332. package/dist/esm/isSymbol-a7e9aafe.js +203 -0
  333. package/dist/esm/js.cookie-6874175c.js +158 -0
  334. package/dist/esm/keys-425c8ab0.js +23 -0
  335. package/dist/esm/lodash-f97fd99a.js +17193 -0
  336. package/dist/esm/main-1894c974.js +961 -0
  337. package/dist/esm/moment-bc12cb97.js +5667 -0
  338. package/dist/esm/react-social-icons-9be47857.js +609 -0
  339. package/dist/esm/slicedToArray-ca2c8b8d.js +92 -0
  340. package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
  341. package/dist/esm/stringify-c21932b3.js +15 -0
  342. package/dist/esm/style-inject.es-1f59c1d0.js +28 -0
  343. package/dist/esm/timeDifferenceCalc.js +37 -0
  344. package/dist/esm/toConsumableArray-7b1c0e23.js +71 -0
  345. package/dist/esm/toNumber-5aeba6e7.js +102 -0
  346. package/dist/esm/typeof-83d9eb10.js +378 -0
  347. package/dist/esm/urlFor.js +63 -0
  348. package/dist/esm/urlForFile-413f5ddb.js +22 -0
  349. package/dist/esm/ustream-api-41166338.js +104 -0
  350. package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
  351. package/dist/esm/web.dom.iterable-fdf034f5.js +48 -0
  352. package/package.json +115 -83
  353. package/dist/index.es.js +0 -12784
  354. package/dist/index.es.js.map +0 -1
  355. package/dist/index.js +0 -12819
  356. package/dist/index.js.map +0 -1
@@ -0,0 +1,96 @@
1
+ 'use strict';
2
+
3
+ var slicedToArray = require('./slicedToArray-067dd3bc.js');
4
+ var React = require('react');
5
+
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
9
+
10
+ var AuthorComponent = function AuthorComponent(_ref) {
11
+ var authors = _ref.authors,
12
+ index = _ref.index;
13
+
14
+ var renderAuthor = function renderAuthor(authorDetail, index, length) {
15
+ if (authorDetail) {
16
+ var _id = authorDetail._id,
17
+ displayName = authorDetail.displayName,
18
+ url = authorDetail.url;
19
+
20
+
21
+ if (displayName && url && url.current) {
22
+ return React__default['default'].createElement(
23
+ 'span',
24
+ { key: _id },
25
+ index === 0 && React__default['default'].createElement(
26
+ 'span',
27
+ { className: 'pr-1' },
28
+ 'By'
29
+ ),
30
+ React__default['default'].createElement(
31
+ 'a',
32
+ { href: '/authors/' + url.current, className: 'author-name', style: { color: '#000', fontWeight: 'bold' } },
33
+ displayName
34
+ ),
35
+ length !== index + 1 && ', '
36
+ );
37
+ } else if (displayName) {
38
+ return React__default['default'].createElement(
39
+ 'span',
40
+ { key: _id },
41
+ index === 0 && React__default['default'].createElement(
42
+ 'span',
43
+ { className: 'pr-1' },
44
+ 'By'
45
+ ),
46
+ React__default['default'].createElement(
47
+ 'span',
48
+ { className: 'author-name', style: { color: '#000', fontWeight: 'bold' } },
49
+ displayName,
50
+ length !== index + 1 && ', '
51
+ )
52
+ );
53
+ }
54
+ } else return null;
55
+ };
56
+
57
+ var onOverlayClick = function onOverlayClick() {
58
+ if (authorRef && authorRef.current) {
59
+ authorRef.current.classList.remove('hide-content');
60
+ sethideContent(false);
61
+ }
62
+ };
63
+
64
+ React.useEffect(function () {
65
+ if (authorRef && authorRef.current.clientHeight && authorRef.current.clientHeight > 50) {
66
+ authorRef.current.classList.add('hide-content');
67
+ sethideContent(true);
68
+ }
69
+ }, []);
70
+
71
+ var _useState = React.useState(''),
72
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
73
+ hideContent = _useState2[0],
74
+ sethideContent = _useState2[1];
75
+
76
+ var overlayRef = React.useRef(null);
77
+ var authorRef = React.useRef(null);
78
+
79
+ return React__default['default'].createElement(
80
+ 'div',
81
+ { id: 'author-sec' + index, ref: authorRef },
82
+ hideContent && React__default['default'].createElement('div', { onClick: function onClick() {
83
+ return onOverlayClick();
84
+ }, ref: overlayRef, id: 'overlay-content' + index }),
85
+ authors.map(function (authorDetail, index) {
86
+ return renderAuthor(authorDetail, index, authors.length);
87
+ }),
88
+ React__default['default'].createElement(
89
+ 'style',
90
+ { jsx: true },
91
+ '\n #author-sec' + index + ' {\n line-height: 25px;\n position: relative;\n height: auto;\n // max-height: 50px;\n }\n .hide-content {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n #overlay-content' + index + ' {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 1000;\n }\n '
92
+ )
93
+ );
94
+ };
95
+
96
+ exports.AuthorComponent = AuthorComponent;
@@ -0,0 +1,350 @@
1
+ 'use strict';
2
+
3
+ var stringify = require('./stringify-f7a37a8d.js');
4
+ var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
5
+ var Segment = require('./Segment.js');
6
+ require('./_commonjsHelpers-06173234.js');
7
+ require('./core.get-iterator-method-5643aa10.js');
8
+ require('./web.dom.iterable-d98303e0.js');
9
+ require('./_library-dd23b178.js');
10
+ require('./_iter-detect-b1df62f0.js');
11
+
12
+ require("babel-polyfill");
13
+ // server key for beam
14
+ // fnADs4Gtx6ACEgKgwlNo-eNSIrdwykH9Zj74GsDI
15
+
16
+ var beam_domain = 'https://beam.mjhlifesciences.com';
17
+
18
+ function getCookie(cname) {
19
+ var name = cname + "=";
20
+ var decodedCookie = decodeURIComponent(document.cookie);
21
+ var ca = decodedCookie.split(';');
22
+ for (var i = 0; i < ca.length; i++) {
23
+ var c = ca[i];
24
+ while (c.charAt(0) == ' ') {
25
+ c = c.substring(1);
26
+ }
27
+ if (c.indexOf(name) == 0) {
28
+ return c.substring(name.length, c.length);
29
+ }
30
+ }
31
+ return "";
32
+ }
33
+
34
+ var beam = {
35
+ proc_url: function proc_url() {
36
+ var $_GET = {};
37
+ document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
38
+ function decode(s) {
39
+ return decodeURIComponent(s.split("+").join(" "));
40
+ }
41
+ $_GET[decode(arguments[1])] = decode(arguments[2]);
42
+ });
43
+
44
+ return $_GET;
45
+ },
46
+ proc_eKey: function proc_eKey($_GET) {
47
+ var _this = this;
48
+
49
+ return asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
50
+ var eKey;
51
+ return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
52
+ while (1) {
53
+ switch (_context.prev = _context.next) {
54
+ case 0:
55
+ eKey = "N/A";
56
+
57
+
58
+ if ($_GET["eKey"]) {
59
+ eKey = $_GET["eKey"];
60
+ } else if (typeof window.eKey !== 'undefined') {
61
+ eKey = window.eKey;
62
+ }
63
+
64
+ if (!eKey || eKey === 'N/A') {
65
+ eKey = getCookie('eKey');
66
+ }
67
+
68
+ return _context.abrupt('return', eKey);
69
+
70
+ case 4:
71
+ case 'end':
72
+ return _context.stop();
73
+ }
74
+ }
75
+ }, _callee, _this);
76
+ }))();
77
+ },
78
+ proc_source: function proc_source() {
79
+ var referrer = "N/A";
80
+
81
+ if (encodeURIComponent(document.referrer)) {
82
+ referrer = encodeURIComponent(document.referrer);
83
+ }
84
+
85
+ return referrer;
86
+ },
87
+ proc_meta: function proc_meta() {
88
+ var data = {};
89
+
90
+ //keyword processing
91
+ var element = document.querySelector('meta[name="keywords"]');
92
+
93
+ data.keywords = "N/A";
94
+
95
+ if (element && element.getAttribute("content")) {
96
+ data.keywords = element.getAttribute("content");
97
+ }
98
+
99
+ //title processing
100
+ data.title = "N/A";
101
+ if (document.title !== "undefined") {
102
+ data.title = document.title;
103
+ }
104
+
105
+ return data;
106
+ },
107
+ proc_host: function proc_host() {
108
+ var data = {};
109
+ data.domain = window.location.hostname;
110
+ data.uri = window.location.pathname;
111
+ data.host = window.location.host;
112
+ data.protocol = window.location.protocol;
113
+
114
+ if (window.location.search) {
115
+ data.uri = data.uri + window.location.search;
116
+ }
117
+
118
+ return data;
119
+ },
120
+ get_beam: function get_beam(deviceType) {
121
+ var _this2 = this;
122
+
123
+ return asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2() {
124
+ var beam;
125
+ return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
126
+ while (1) {
127
+ switch (_context2.prev = _context2.next) {
128
+ case 0:
129
+ beam = {};
130
+ _context2.next = 3;
131
+ return _this2.proc_eKey(_this2.proc_url());
132
+
133
+ case 3:
134
+ beam.eKey = _context2.sent;
135
+
136
+ beam.source = _this2.proc_source();
137
+ beam.meta = _this2.proc_meta();
138
+ beam.host = _this2.proc_host();
139
+ beam.device = deviceType;
140
+ return _context2.abrupt('return', beam);
141
+
142
+ case 9:
143
+ case 'end':
144
+ return _context2.stop();
145
+ }
146
+ }
147
+ }, _callee2, _this2);
148
+ }))();
149
+ },
150
+
151
+
152
+ /* for client use */
153
+ report_beam_event: function report_beam_event(action, deviceType) {
154
+ var _this3 = this;
155
+
156
+ return asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3() {
157
+ var beam, response, res;
158
+ return asyncToGenerator.regenerator.wrap(function _callee3$(_context3) {
159
+ while (1) {
160
+ switch (_context3.prev = _context3.next) {
161
+ case 0:
162
+ _context3.next = 2;
163
+ return _this3.get_beam(deviceType);
164
+
165
+ case 2:
166
+ beam = _context3.sent;
167
+
168
+
169
+ console.log('Call Beam', action, beam);
170
+
171
+ _context3.next = 6;
172
+ return fetch(beam_domain + '/api/beam/event', {
173
+ headers: {
174
+ 'Content-Type': 'application/json',
175
+ 'Accept': 'application/json'
176
+ },
177
+ method: 'post',
178
+ credentials: "include",
179
+ body: stringify._JSON$stringify({
180
+ event: 'Beam',
181
+ action: action,
182
+ beam: stringify._JSON$stringify(beam)
183
+ })
184
+ });
185
+
186
+ case 6:
187
+ response = _context3.sent;
188
+ _context3.next = 9;
189
+ return response.json();
190
+
191
+ case 9:
192
+ res = _context3.sent;
193
+
194
+ if (res.error) {
195
+ console.error('Beam reporting error:', res.error);
196
+ }
197
+
198
+ // report segment when eKey is present
199
+ if (beam.eKey) {
200
+ Segment.identify(beam.eKey);
201
+ }
202
+
203
+ case 12:
204
+ case 'end':
205
+ return _context3.stop();
206
+ }
207
+ }
208
+ }, _callee3, _this3);
209
+ }))();
210
+ },
211
+ report_beam_ad: function report_beam_ad(action, deviceType, cID, lID, campID, adSize, slotId) {
212
+ var adType = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 'DFP';
213
+
214
+ var _this4 = this;
215
+
216
+ var adDurationBrightCove = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';
217
+ var adIDBrightCove = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : '';
218
+ return asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee4() {
219
+ var beam, data, response, res;
220
+ return asyncToGenerator.regenerator.wrap(function _callee4$(_context4) {
221
+ while (1) {
222
+ switch (_context4.prev = _context4.next) {
223
+ case 0:
224
+ _context4.next = 2;
225
+ return _this4.get_beam(deviceType);
226
+
227
+ case 2:
228
+ beam = _context4.sent;
229
+ data = {};
230
+
231
+ data.campaignId = campID;
232
+ data.lineItemId = lID;
233
+ data.creativeId = cID;
234
+ data.size = adSize;
235
+ data.slotId = slotId;
236
+
237
+ data.adType = adType;
238
+ data.adDurationBrightCove = adDurationBrightCove;
239
+ data.adIDBrightCove = adIDBrightCove;
240
+
241
+ console.log('Call ' + adType, action, data);
242
+
243
+ _context4.next = 15;
244
+ return fetch(beam_domain + '/api/beam/ad', {
245
+ headers: {
246
+ 'Content-Type': 'application/json',
247
+ 'Accept': 'application/json'
248
+ },
249
+ method: 'post',
250
+ credentials: "include",
251
+ body: stringify._JSON$stringify({
252
+ event: 'DFP',
253
+ action: action,
254
+ beam: stringify._JSON$stringify(beam),
255
+ data: stringify._JSON$stringify(data)
256
+ })
257
+ });
258
+
259
+ case 15:
260
+ response = _context4.sent;
261
+ _context4.next = 18;
262
+ return response.json();
263
+
264
+ case 18:
265
+ res = _context4.sent;
266
+
267
+ if (res.error) {
268
+ console.error('DFP reporting error:', res.error);
269
+ }
270
+
271
+ case 20:
272
+ case 'end':
273
+ return _context4.stop();
274
+ }
275
+ }
276
+ }, _callee4, _this4);
277
+ }))();
278
+ },
279
+ report_beam_video: function report_beam_video(action, deviceType, duration, current, segment) {
280
+ var videoType = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'Youtube';
281
+ var brightCovePlayerID = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';
282
+
283
+ var _this5 = this;
284
+
285
+ var brightCoveAccountID = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';
286
+ var brightCoveVideoID = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';
287
+ return asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee5() {
288
+ var beam, data, response, res;
289
+ return asyncToGenerator.regenerator.wrap(function _callee5$(_context5) {
290
+ while (1) {
291
+ switch (_context5.prev = _context5.next) {
292
+ case 0:
293
+ _context5.next = 2;
294
+ return _this5.get_beam(deviceType);
295
+
296
+ case 2:
297
+ beam = _context5.sent;
298
+ data = {};
299
+
300
+ data.duration = duration;
301
+ data.queue = Math.floor(duration / 10);
302
+ data.segment = segment;
303
+ data.current = current;
304
+
305
+ data.videoType = videoType;
306
+ data.brightCovePlayerID = brightCovePlayerID;
307
+ data.brightCoveAccountID = brightCoveAccountID;
308
+ data.brightCoveVideoID = brightCoveVideoID;
309
+
310
+ console.log('Call ' + videoType, action, data);
311
+
312
+ _context5.next = 15;
313
+ return fetch(beam_domain + '/api/beam/video', {
314
+ headers: {
315
+ 'Content-Type': 'application/json',
316
+ 'Accept': 'application/json'
317
+ },
318
+ method: 'post',
319
+ credentials: "include",
320
+ body: stringify._JSON$stringify({
321
+ event: 'Video',
322
+ action: action,
323
+ beam: stringify._JSON$stringify(beam),
324
+ data: stringify._JSON$stringify(data)
325
+ })
326
+ });
327
+
328
+ case 15:
329
+ response = _context5.sent;
330
+ _context5.next = 18;
331
+ return response.json();
332
+
333
+ case 18:
334
+ res = _context5.sent;
335
+
336
+ if (res.error) {
337
+ console.error('Video reporting error:', res.error);
338
+ }
339
+
340
+ case 20:
341
+ case 'end':
342
+ return _context5.stop();
343
+ }
344
+ }
345
+ }, _callee5, _this5);
346
+ }))();
347
+ }
348
+ };
349
+
350
+ module.exports = beam;