@mjhls/mjh-framework 1.0.108 → 1.0.109-8.1

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 (370) hide show
  1. package/README.md +1 -5
  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 +151 -0
  7. package/dist/cjs/ADFooter.js +53 -0
  8. package/dist/cjs/ADGutter.js +123 -0
  9. package/dist/cjs/ADInfeed-7c075eda.js +75 -0
  10. package/dist/cjs/ADSkyscraper.js +125 -0
  11. package/dist/cjs/ADSponsoredResources.js +122 -0
  12. package/dist/cjs/ADWebcast.js +127 -0
  13. package/dist/cjs/ADWelcome.js +166 -0
  14. package/dist/cjs/ADlgInfeed-d4f556bd.js +69 -0
  15. package/dist/cjs/AccordionPanel.js +94 -0
  16. package/dist/cjs/AdSlot.js +283 -0
  17. package/dist/cjs/AdSlotsProvider.js +184 -0
  18. package/dist/cjs/AlgoliaSearch.js +15221 -0
  19. package/dist/cjs/AlphabeticList.js +134 -0
  20. package/dist/cjs/ArticleCarousel.js +45 -0
  21. package/dist/cjs/ArticleProgramLandingPage.js +186 -0
  22. package/dist/cjs/ArticleSeriesLandingPage.js +162 -0
  23. package/dist/cjs/ArticleSeriesListing.js +314 -0
  24. package/dist/cjs/AuthWrapper.js +1526 -0
  25. package/dist/cjs/AuthorComponent-7d00f6d5.js +96 -0
  26. package/dist/cjs/Beam.js +405 -0
  27. package/dist/cjs/BlockContent-96b44364.js +916 -0
  28. package/dist/cjs/Breadcrumbs.js +107 -0
  29. package/dist/cjs/CEDeckSupabase.js +444 -0
  30. package/dist/cjs/CMEDeck.js +444 -0
  31. package/dist/cjs/Column1.js +36 -0
  32. package/dist/cjs/Column2.js +73 -0
  33. package/dist/cjs/Column3.js +140 -0
  34. package/dist/cjs/ConferenceArticleCard.js +94 -0
  35. package/dist/cjs/ConferenceBanner-213003ce.js +24 -0
  36. package/dist/cjs/ContentCardPaginated.js +416 -0
  37. package/dist/cjs/DeckContent.js +507 -0
  38. package/dist/cjs/DeckQueue.js +402 -0
  39. package/dist/cjs/DeckQueuePaginated.js +347 -0
  40. package/dist/cjs/Dfp-67646058.js +103 -0
  41. package/dist/cjs/EventsDeck.js +856 -0
  42. package/dist/cjs/ExternalResources.js +220 -0
  43. package/dist/cjs/Feature.js +132 -0
  44. package/dist/cjs/ForbesHero.js +138 -0
  45. package/dist/cjs/GridContent.js +828 -0
  46. package/dist/cjs/GridContentPaginated.js +703 -0
  47. package/dist/cjs/GridHero.js +148 -0
  48. package/dist/cjs/GroupDeck.js +314 -0
  49. package/dist/cjs/HamMagazine.js +664 -0
  50. package/dist/cjs/Header.js +65 -0
  51. package/dist/cjs/HealthCareProfessionalModal.js +78 -0
  52. package/dist/cjs/Hero.js +49 -0
  53. package/dist/cjs/HighlightenVideo.js +69 -0
  54. package/dist/cjs/HorizontalArticleListing.js +167 -0
  55. package/dist/cjs/HorizontalHero.js +112 -0
  56. package/dist/cjs/ImageSlider-7c995858.js +2808 -0
  57. package/dist/cjs/IssueContentDeck.js +242 -0
  58. package/dist/cjs/IssueDeck.js +267 -0
  59. package/dist/cjs/IssueLanding.js +176 -0
  60. package/dist/cjs/KMTracker.js +27 -0
  61. package/dist/cjs/LeftNav.js +153 -0
  62. package/dist/cjs/MasterDeck.js +555 -0
  63. package/dist/cjs/MasterDeckPaginated.js +468 -0
  64. package/dist/cjs/MediaSeriesCard.js +134 -0
  65. package/dist/cjs/MediaSeriesLanding.js +507 -0
  66. package/dist/cjs/MediaSeriesLandingPaginated.js +532 -0
  67. package/dist/cjs/NavDvm.js +278 -0
  68. package/dist/cjs/NavFooter-b7b16d48.js +72 -0
  69. package/dist/cjs/NavMagazine.js +615 -0
  70. package/dist/cjs/NavNative.js +880 -0
  71. package/dist/cjs/OncliveHero.js +80 -0
  72. package/dist/cjs/OncliveLargeHero.js +242 -0
  73. package/dist/cjs/PageFilter.js +72 -0
  74. package/dist/cjs/Pagination-6359861a.js +97 -0
  75. package/dist/cjs/PartnerDetailListing.js +374 -0
  76. package/dist/cjs/PartnerDetailListingPaginated.js +365 -0
  77. package/dist/cjs/PdfDownload.js +28 -0
  78. package/dist/cjs/PixelTracking.js +191 -0
  79. package/dist/cjs/PodcastsLanding.js +234 -0
  80. package/dist/cjs/PopUpModal.js +58 -0
  81. package/dist/cjs/PtceDeck.js +150 -0
  82. package/dist/cjs/PubSection.js +120 -0
  83. package/dist/cjs/PubToc.js +88 -0
  84. package/dist/cjs/PublicationDeck.js +184 -0
  85. package/dist/cjs/PublicationFeature-4b68e0db.js +130 -0
  86. package/dist/cjs/PublicationLanding.js +826 -0
  87. package/dist/cjs/QueueDeckExpanded.js +1540 -0
  88. package/dist/cjs/QueueDeckExpandedPaginated.js +1387 -0
  89. package/dist/cjs/RecentNews.js +91 -0
  90. package/dist/cjs/RelatedContent.js +115 -0
  91. package/dist/cjs/RelatedTopicsDropdown.js +90 -0
  92. package/dist/cjs/RolesDeck.js +94 -0
  93. package/dist/cjs/Schema.js +102 -0
  94. package/dist/cjs/Search.js +66 -0
  95. package/dist/cjs/Segment.js +458 -0
  96. package/dist/cjs/SeriesListingDeck.js +247 -0
  97. package/dist/cjs/SeriesSlider-086a8319.js +332 -0
  98. package/dist/cjs/SetCookie.js +10 -0
  99. package/dist/cjs/SideFooter.js +152 -0
  100. package/dist/cjs/SocialIcons.js +103 -0
  101. package/dist/cjs/SocialSearchComponent-d7e5d3a6.js +213 -0
  102. package/dist/cjs/SocialShare.js +74 -0
  103. package/dist/cjs/TaxonomyCard.js +256 -0
  104. package/dist/cjs/TaxonomyDescription.js +208 -0
  105. package/dist/cjs/TemplateNormal.js +204 -0
  106. package/dist/cjs/ThumbnailCard.js +60 -0
  107. package/dist/cjs/Tooltip-b8516cbf.js +9541 -0
  108. package/dist/cjs/Ustream.js +157 -0
  109. package/dist/cjs/VerticalHero.js +75 -0
  110. package/dist/cjs/VideoProgramLandingPage.js +262 -0
  111. package/dist/cjs/VideoSeriesCard.js +88 -0
  112. package/dist/cjs/VideoSeriesFilter.js +129 -0
  113. package/dist/cjs/VideoSeriesLandingPage.js +178 -0
  114. package/dist/cjs/VideoSeriesListing.js +421 -0
  115. package/dist/cjs/View.js +2841 -0
  116. package/dist/cjs/YahooHero.js +127 -0
  117. package/dist/cjs/YoutubeGroup.js +372 -0
  118. package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
  119. package/dist/cjs/_is-array-54228b29.js +74 -0
  120. package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
  121. package/dist/cjs/_library-dd23b178.js +5 -0
  122. package/dist/cjs/_object-sap-d1978572.js +16 -0
  123. package/dist/cjs/_object-to-array-9337ba83.js +25 -0
  124. package/dist/cjs/_set-species-0c7864a2.js +55 -0
  125. package/dist/cjs/asyncToGenerator-65df6bf8.js +1347 -0
  126. package/dist/cjs/brightcove-react-player-loader.es-35faab67.js +2232 -0
  127. package/dist/cjs/checkSisterSite-c3a4ac98.js +19 -0
  128. package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
  129. package/dist/cjs/debounce-d4a2369b.js +216 -0
  130. package/dist/cjs/define-property-e8404b64.js +20 -0
  131. package/dist/cjs/defineProperty-19580e93.js +71 -0
  132. package/dist/cjs/defineProperty-9673846a.js +34 -0
  133. package/dist/cjs/entities-df1aed86.js +510 -0
  134. package/dist/cjs/eq-5fc26c07.js +79 -0
  135. package/dist/cjs/extends-be0d85bc.js +100 -0
  136. package/dist/cjs/faundadb.js +765 -0
  137. package/dist/cjs/get-5839e5b5.js +920 -0
  138. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  139. package/dist/cjs/getKeywords.js +46 -0
  140. package/dist/cjs/getPtceActivities.js +90 -0
  141. package/dist/cjs/getQuery.js +27 -0
  142. package/dist/cjs/getRelatedArticle.js +766 -0
  143. package/dist/cjs/getRootDocGroup.js +63 -0
  144. package/dist/cjs/getSerializers.js +66 -0
  145. package/dist/cjs/getSeriesDetail.js +40 -0
  146. package/dist/cjs/getTIData.js +93 -0
  147. package/dist/cjs/getTargeting-7ce7037b.js +166 -0
  148. package/dist/cjs/getTargeting.js +12 -0
  149. package/dist/cjs/iconBase-be4097c0.js +104 -0
  150. package/dist/cjs/index-187c967e.js +54 -0
  151. package/dist/cjs/index-3177f564.js +1573 -0
  152. package/dist/cjs/index-65621b6c.js +613 -0
  153. package/dist/cjs/index-7435b964.js +1683 -0
  154. package/dist/cjs/index-a26637a3.js +11764 -0
  155. package/dist/cjs/index-d48b231c.js +556 -0
  156. package/dist/cjs/index-ff83a88b.js +104 -0
  157. package/dist/cjs/index.es-1ab8dda7.js +445 -0
  158. package/dist/cjs/index.esm-2ea9e9ff.js +98 -0
  159. package/dist/cjs/index.esm-c1e16606.js +13 -0
  160. package/dist/cjs/index.esm-d51c9ac6.js +25 -0
  161. package/dist/cjs/index.esm-d81454e7.js +19 -0
  162. package/dist/cjs/index.js +638 -0
  163. package/dist/cjs/inherits-e47b5342.js +188 -0
  164. package/dist/cjs/isSymbol-03abbdf0.js +209 -0
  165. package/dist/cjs/js.cookie-a511c430.js +160 -0
  166. package/dist/cjs/keys-e982b3fa.js +25 -0
  167. package/dist/cjs/lodash-f0783643.js +17195 -0
  168. package/dist/cjs/main-ae8472f3.js +969 -0
  169. package/dist/cjs/moment-f730814d.js +5684 -0
  170. package/dist/cjs/react-social-icons-2c5c389a.js +616 -0
  171. package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
  172. package/dist/cjs/smoothscroll-99df7f93.js +438 -0
  173. package/dist/cjs/stringify-f7a37a8d.js +17 -0
  174. package/dist/cjs/style-inject.es-dcee06b6.js +30 -0
  175. package/dist/cjs/timeDifferenceCalc.js +39 -0
  176. package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
  177. package/dist/cjs/toNumber-5e1fac58.js +104 -0
  178. package/dist/cjs/typeof-220bbf73.js +382 -0
  179. package/dist/cjs/urlFor.js +66 -0
  180. package/dist/cjs/urlForFile-5084fc48.js +29 -0
  181. package/dist/cjs/ustream-api-3819e4aa.js +106 -0
  182. package/dist/cjs/visibility-sensor-56020df6.js +597 -0
  183. package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
  184. package/dist/esm/AD.js +26 -0
  185. package/dist/esm/AD300x250.js +89 -0
  186. package/dist/esm/AD300x250x600.js +106 -0
  187. package/dist/esm/AD728x90.js +103 -0
  188. package/dist/esm/ADFloatingFooter.js +145 -0
  189. package/dist/esm/ADFooter.js +47 -0
  190. package/dist/esm/ADGutter.js +117 -0
  191. package/dist/esm/ADInfeed-3442c999.js +68 -0
  192. package/dist/esm/ADSkyscraper.js +119 -0
  193. package/dist/esm/ADSponsoredResources.js +116 -0
  194. package/dist/esm/ADWebcast.js +121 -0
  195. package/dist/esm/ADWelcome.js +160 -0
  196. package/dist/esm/ADlgInfeed-30649360.js +63 -0
  197. package/dist/esm/AccordionPanel.js +87 -0
  198. package/dist/esm/AdSlot.js +276 -0
  199. package/dist/esm/AdSlotsProvider.js +177 -0
  200. package/dist/esm/AlgoliaSearch.js +15214 -0
  201. package/dist/esm/AlphabeticList.js +128 -0
  202. package/dist/esm/ArticleCarousel.js +39 -0
  203. package/dist/esm/ArticleProgramLandingPage.js +180 -0
  204. package/dist/esm/ArticleSeriesLandingPage.js +156 -0
  205. package/dist/esm/ArticleSeriesListing.js +307 -0
  206. package/dist/esm/AuthWrapper.js +1520 -0
  207. package/dist/esm/AuthorComponent-d9653ae5.js +90 -0
  208. package/dist/esm/Beam.js +403 -0
  209. package/dist/esm/BlockContent-1e73bd2c.js +909 -0
  210. package/dist/esm/Breadcrumbs.js +100 -0
  211. package/dist/esm/CEDeckSupabase.js +438 -0
  212. package/dist/esm/CMEDeck.js +438 -0
  213. package/dist/esm/Column1.js +28 -0
  214. package/dist/esm/Column2.js +65 -0
  215. package/dist/esm/Column3.js +132 -0
  216. package/dist/esm/ConferenceArticleCard.js +88 -0
  217. package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
  218. package/dist/esm/ContentCardPaginated.js +405 -0
  219. package/dist/esm/DeckContent.js +497 -0
  220. package/dist/esm/DeckQueue.js +392 -0
  221. package/dist/esm/DeckQueuePaginated.js +336 -0
  222. package/dist/esm/Dfp-3b6eb620.js +96 -0
  223. package/dist/esm/EventsDeck.js +843 -0
  224. package/dist/esm/ExternalResources.js +213 -0
  225. package/dist/esm/Feature.js +125 -0
  226. package/dist/esm/ForbesHero.js +132 -0
  227. package/dist/esm/GridContent.js +818 -0
  228. package/dist/esm/GridContentPaginated.js +692 -0
  229. package/dist/esm/GridHero.js +142 -0
  230. package/dist/esm/GroupDeck.js +308 -0
  231. package/dist/esm/HamMagazine.js +651 -0
  232. package/dist/esm/Header.js +54 -0
  233. package/dist/esm/HealthCareProfessionalModal.js +70 -0
  234. package/dist/esm/Hero.js +43 -0
  235. package/dist/esm/HighlightenVideo.js +63 -0
  236. package/dist/esm/HorizontalArticleListing.js +161 -0
  237. package/dist/esm/HorizontalHero.js +106 -0
  238. package/dist/esm/ImageSlider-75f7b81a.js +2799 -0
  239. package/dist/esm/IssueContentDeck.js +232 -0
  240. package/dist/esm/IssueDeck.js +257 -0
  241. package/dist/esm/IssueLanding.js +170 -0
  242. package/dist/esm/KMTracker.js +25 -0
  243. package/dist/esm/LeftNav.js +143 -0
  244. package/dist/esm/MasterDeck.js +548 -0
  245. package/dist/esm/MasterDeckPaginated.js +460 -0
  246. package/dist/esm/MediaSeriesCard.js +128 -0
  247. package/dist/esm/MediaSeriesLanding.js +500 -0
  248. package/dist/esm/MediaSeriesLandingPaginated.js +525 -0
  249. package/dist/esm/NavDvm.js +265 -0
  250. package/dist/esm/NavFooter-4bcffccb.js +66 -0
  251. package/dist/esm/NavMagazine.js +602 -0
  252. package/dist/esm/NavNative.js +864 -0
  253. package/dist/esm/OncliveHero.js +74 -0
  254. package/dist/esm/OncliveLargeHero.js +236 -0
  255. package/dist/esm/PageFilter.js +66 -0
  256. package/dist/esm/Pagination-9fe9f61d.js +90 -0
  257. package/dist/esm/PartnerDetailListing.js +368 -0
  258. package/dist/esm/PartnerDetailListingPaginated.js +359 -0
  259. package/dist/esm/PdfDownload.js +22 -0
  260. package/dist/esm/PixelTracking.js +182 -0
  261. package/dist/esm/PodcastsLanding.js +227 -0
  262. package/dist/esm/PopUpModal.js +51 -0
  263. package/dist/esm/PtceDeck.js +144 -0
  264. package/dist/esm/PubSection.js +114 -0
  265. package/dist/esm/PubToc.js +82 -0
  266. package/dist/esm/PublicationDeck.js +174 -0
  267. package/dist/esm/PublicationFeature-6c334891.js +121 -0
  268. package/dist/esm/PublicationLanding.js +816 -0
  269. package/dist/esm/QueueDeckExpanded.js +1534 -0
  270. package/dist/esm/QueueDeckExpandedPaginated.js +1381 -0
  271. package/dist/esm/RecentNews.js +85 -0
  272. package/dist/esm/RelatedContent.js +109 -0
  273. package/dist/esm/RelatedTopicsDropdown.js +82 -0
  274. package/dist/esm/RolesDeck.js +84 -0
  275. package/dist/esm/Schema.js +96 -0
  276. package/dist/esm/Search.js +57 -0
  277. package/dist/esm/Segment.js +456 -0
  278. package/dist/esm/SeriesListingDeck.js +241 -0
  279. package/dist/esm/SeriesSlider-acbdf4c9.js +326 -0
  280. package/dist/esm/SetCookie.js +8 -0
  281. package/dist/esm/SideFooter.js +146 -0
  282. package/dist/esm/SocialIcons.js +97 -0
  283. package/dist/esm/SocialSearchComponent-9e65c8d6.js +204 -0
  284. package/dist/esm/SocialShare.js +67 -0
  285. package/dist/esm/TaxonomyCard.js +246 -0
  286. package/dist/esm/TaxonomyDescription.js +201 -0
  287. package/dist/esm/TemplateNormal.js +197 -0
  288. package/dist/esm/ThumbnailCard.js +53 -0
  289. package/dist/esm/Tooltip-fe0ed92d.js +9532 -0
  290. package/dist/esm/Ustream.js +151 -0
  291. package/dist/esm/VerticalHero.js +69 -0
  292. package/dist/esm/VideoProgramLandingPage.js +253 -0
  293. package/dist/esm/VideoSeriesCard.js +82 -0
  294. package/dist/esm/VideoSeriesFilter.js +123 -0
  295. package/dist/esm/VideoSeriesLandingPage.js +172 -0
  296. package/dist/esm/VideoSeriesListing.js +414 -0
  297. package/dist/esm/View.js +2831 -0
  298. package/dist/esm/YahooHero.js +121 -0
  299. package/dist/esm/YoutubeGroup.js +366 -0
  300. package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
  301. package/dist/esm/_is-array-68c79b29.js +71 -0
  302. package/dist/esm/_iter-detect-2f89237f.js +48 -0
  303. package/dist/esm/_library-528f1934.js +3 -0
  304. package/dist/esm/_object-sap-14bd8e96.js +14 -0
  305. package/dist/esm/_object-to-array-9dfdfb29.js +23 -0
  306. package/dist/esm/_set-species-7d3317b7.js +50 -0
  307. package/dist/esm/asyncToGenerator-1ebeb135.js +1343 -0
  308. package/dist/esm/brightcove-react-player-loader.es-a2422c4b.js +2226 -0
  309. package/dist/esm/checkSisterSite-a7218fda.js +17 -0
  310. package/dist/esm/core.get-iterator-method-95db387d.js +547 -0
  311. package/dist/esm/debounce-533d9748.js +214 -0
  312. package/dist/esm/define-property-433c51d3.js +18 -0
  313. package/dist/esm/defineProperty-e5afb9eb.js +32 -0
  314. package/dist/esm/defineProperty-e8022d1e.js +66 -0
  315. package/dist/esm/entities-6d9154b4.js +507 -0
  316. package/dist/esm/eq-bdcbf886.js +76 -0
  317. package/dist/esm/extends-2f4448b8.js +94 -0
  318. package/dist/esm/faundadb.js +754 -0
  319. package/dist/esm/get-3c308da4.js +918 -0
  320. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  321. package/dist/esm/getKeywords.js +44 -0
  322. package/dist/esm/getPtceActivities.js +88 -0
  323. package/dist/esm/getQuery.js +25 -0
  324. package/dist/esm/getRelatedArticle.js +764 -0
  325. package/dist/esm/getRootDocGroup.js +61 -0
  326. package/dist/esm/getSerializers.js +60 -0
  327. package/dist/esm/getSeriesDetail.js +38 -0
  328. package/dist/esm/getTIData.js +91 -0
  329. package/dist/esm/getTargeting-301942ae.js +163 -0
  330. package/dist/esm/getTargeting.js +6 -0
  331. package/dist/esm/iconBase-ccc56b97.js +81 -0
  332. package/dist/esm/index-3f5c03b2.js +553 -0
  333. package/dist/esm/index-4550ef23.js +1571 -0
  334. package/dist/esm/index-5cc7b406.js +1674 -0
  335. package/dist/esm/index-755f2cc2.js +605 -0
  336. package/dist/esm/index-a68bfe70.js +11743 -0
  337. package/dist/esm/index-c7e2ac95.js +52 -0
  338. package/dist/esm/index-c8d5e72b.js +99 -0
  339. package/dist/esm/index.es-a6137319.js +439 -0
  340. package/dist/esm/index.esm-1bd8a0a8.js +18 -0
  341. package/dist/esm/index.esm-9508070a.js +91 -0
  342. package/dist/esm/index.esm-9b042655.js +10 -0
  343. package/dist/esm/index.esm-eb1e8e80.js +14 -0
  344. package/dist/esm/index.js +531 -0
  345. package/dist/esm/inherits-96c84cbd.js +179 -0
  346. package/dist/esm/isSymbol-a7e9aafe.js +203 -0
  347. package/dist/esm/js.cookie-6874175c.js +158 -0
  348. package/dist/esm/keys-185288f4.js +23 -0
  349. package/dist/esm/lodash-f97fd99a.js +17193 -0
  350. package/dist/esm/main-754d4992.js +956 -0
  351. package/dist/esm/moment-48faeb9c.js +5682 -0
  352. package/dist/esm/react-social-icons-9be47857.js +609 -0
  353. package/dist/esm/slicedToArray-72ed566b.js +92 -0
  354. package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
  355. package/dist/esm/stringify-1e2a5946.js +15 -0
  356. package/dist/esm/style-inject.es-1f59c1d0.js +28 -0
  357. package/dist/esm/timeDifferenceCalc.js +37 -0
  358. package/dist/esm/toConsumableArray-e6f28e5c.js +71 -0
  359. package/dist/esm/toNumber-5aeba6e7.js +102 -0
  360. package/dist/esm/typeof-3ab7d3b6.js +378 -0
  361. package/dist/esm/urlFor.js +64 -0
  362. package/dist/esm/urlForFile-2e523b67.js +27 -0
  363. package/dist/esm/ustream-api-63a164b3.js +104 -0
  364. package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
  365. package/dist/esm/web.dom.iterable-3fffc027.js +48 -0
  366. package/package.json +55 -26
  367. package/dist/index.es.js +0 -20497
  368. package/dist/index.es.js.map +0 -1
  369. package/dist/index.js +0 -20535
  370. package/dist/index.js.map +0 -1
@@ -0,0 +1,91 @@
1
+ import { _ as _extends } from './extends-2f4448b8.js';
2
+ import React__default from 'react';
3
+ import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
4
+ import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
5
+ import { G as GenIcon } from './iconBase-ccc56b97.js';
6
+
7
+ var year = new Date().getFullYear();
8
+
9
+ var SocialNavFooter = function SocialNavFooter(props) {
10
+ var website = props.website,
11
+ showLogo = props.showLogo;
12
+
13
+ return React__default.createElement(
14
+ 'div',
15
+ { className: 'nav-footer' },
16
+ website && website.footerLinks && website.footerLinks.length && React__default.createElement(
17
+ 'ul',
18
+ null,
19
+ website && website.footerLinks.map(function (content, index) {
20
+ if (content.url && content.title) {
21
+ return content.blank ? React__default.createElement(
22
+ 'li',
23
+ { key: index },
24
+ React__default.createElement(
25
+ 'a',
26
+ _extends({ target: '_blank' }, checkSisterSite(content.url) ? {} : { rel: 'noopener noreferrer' }, { href: content.url, className: 'nav-link' }),
27
+ content.title
28
+ )
29
+ ) : React__default.createElement(
30
+ 'li',
31
+ { key: index },
32
+ React__default.createElement(
33
+ 'a',
34
+ _extends({ href: content.url }, checkSisterSite(content.url) ? {} : { rel: 'noopener noreferrer' }, { className: 'nav-link' }),
35
+ content.title
36
+ )
37
+ );
38
+ } else return null;
39
+ })
40
+ ),
41
+ React__default.createElement(
42
+ 'ul',
43
+ null,
44
+ React__default.createElement(
45
+ 'li',
46
+ { style: { marginTop: '10px' }, key: website.footerLinks ? website.footerLinks.length + 1 : 1 },
47
+ website.socialLinks && website.socialLinks.map(function (row, index) {
48
+ return React__default.createElement(reactSocialIcons_1, _extends({
49
+ target: row.blank ? '_blank' : '_self'
50
+ }, checkSisterSite(row.url) ? {} : { rel: 'noopener noreferrer' }, {
51
+ key: index,
52
+ index: index,
53
+ url: row.url
54
+ // including network prop to identify the icon based on the social icon title.
55
+ , network: row.title.split(' ')[0].toLowerCase(),
56
+ style: { width: 30, height: 30, marginRight: 5 }
57
+ }));
58
+ })
59
+ ),
60
+ showLogo && React__default.createElement(
61
+ 'li',
62
+ null,
63
+ React__default.createElement(
64
+ 'a',
65
+ _extends({ href: 'https://www.mjhlifesciences.com' }, checkSisterSite('https://www.mjhlifesciences.com') ? {} : { rel: 'noopener noreferrer' }),
66
+ React__default.createElement('img', {
67
+ style: { maxWidth: '100%', height: '50px', margin: ' 10px 0', objectFit: 'contain' },
68
+ alt: 'MJHLS Brand Logo',
69
+ src: 'https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png'
70
+ })
71
+ )
72
+ )
73
+ ),
74
+ website && website.name && React__default.createElement(
75
+ 'p',
76
+ { className: 'nav-link' },
77
+ '\xA9 ',
78
+ year,
79
+ ' MJH Life Sciences and ',
80
+ website.name,
81
+ '. All rights reserved.'
82
+ )
83
+ );
84
+ };
85
+
86
+ // THIS FILE IS AUTO GENERATED
87
+ function GoSearch (props) {
88
+ return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z"}}]})(props);
89
+ }
90
+
91
+ export { GoSearch as G, SocialNavFooter as S };
@@ -0,0 +1,10 @@
1
+ import { G as GenIcon } from './iconBase-ccc56b97.js';
2
+
3
+ // THIS FILE IS AUTO GENERATED
4
+ function MdEmail (props) {
5
+ return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}}]})(props);
6
+ }function MdPictureAsPdf (props) {
7
+ return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"}}]})(props);
8
+ }
9
+
10
+ export { MdEmail as M, MdPictureAsPdf as a };
@@ -0,0 +1,14 @@
1
+ import { G as GenIcon } from './iconBase-ccc56b97.js';
2
+
3
+ // THIS FILE IS AUTO GENERATED
4
+ function IoIosArrowDropupCircle (props) {
5
+ return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M256 464c114.9 0 208-93.1 208-208S370.9 48 256 48 48 141.1 48 256s93.1 208 208 208zm0-244.5l-81.1 81.9c-7.5 7.5-19.8 7.5-27.3 0s-7.5-19.8 0-27.3l95.7-95.4c7.3-7.3 19.1-7.5 26.6-.6l94.3 94c3.8 3.8 5.7 8.7 5.7 13.7 0 4.9-1.9 9.9-5.6 13.6-7.5 7.5-19.7 7.6-27.3 0l-81-79.9z"}}]})(props);
6
+ }function IoIosArrowForward (props) {
7
+ return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"}}]})(props);
8
+ }function IoMdArrowDropdown (props) {
9
+ return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M128 192l128 128 128-128z"}}]})(props);
10
+ }function IoMdLogIn (props) {
11
+ return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M256 48c-42.9 0-84.2 13-119.2 37.5-34.2 24-60.2 57.2-75.1 96.1L58 192h45.7l1.9-5c8.2-17.8 19.4-33.9 33.5-48 31.2-31.2 72.7-48.4 116.9-48.4s85.7 17.2 116.9 48.4c31.2 31.2 48.4 72.7 48.4 116.9 0 44.1-17.2 85.7-48.4 116.9-31.2 31.2-72.7 48.4-116.9 48.4-44.1 0-85.6-17.2-116.9-48.4-14-14-25.3-30.1-33.5-47.9l-1.9-5H58l3.6 10.4c14.9 38.9 40.9 72.1 75.1 96.1C171.8 451.1 213 464 256 464c114.7 0 208-93.3 208-208S370.7 48 256 48z"}},{"tag":"path","attr":{"d":"M48 277.4h189.7l-43.6 44.7L224 352l96-96-96-96-31 29.9 44.7 44.7H48v42.8z"}}]})(props);
12
+ }
13
+
14
+ export { IoIosArrowForward as I, IoMdArrowDropdown as a, IoMdLogIn as b, IoIosArrowDropupCircle as c };
@@ -0,0 +1,531 @@
1
+ export { default as MediaSeriesCard } from './MediaSeriesCard.js';
2
+ export { default as DeckContent } from './DeckContent.js';
3
+ export { default as GridContent } from './GridContent.js';
4
+ export { default as DeckQueue } from './DeckQueue.js';
5
+ export { default as ThumbnailCard } from './ThumbnailCard.js';
6
+ export { default as TaxonomyCard } from './TaxonomyCard.js';
7
+ export { default as RolesDeck } from './RolesDeck.js';
8
+ export { default as GroupDeck } from './GroupDeck.js';
9
+ export { default as YoutubeGroup } from './YoutubeGroup.js';
10
+ export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
11
+ export { default as VideoSeriesListing } from './VideoSeriesListing.js';
12
+ export { default as ArticleSeriesListing } from './ArticleSeriesListing.js';
13
+ export { default as HorizontalArticleListing } from './HorizontalArticleListing.js';
14
+ export { default as MasterDeck } from './MasterDeck.js';
15
+ export { default as PublicationDeck } from './PublicationDeck.js';
16
+ export { default as IssueDeck } from './IssueDeck.js';
17
+ export { default as IssueContentDeck } from './IssueContentDeck.js';
18
+ export { default as EventsDeck } from './EventsDeck.js';
19
+ export { default as CMEDeck } from './CMEDeck.js';
20
+ export { default as ExternalResources } from './ExternalResources.js';
21
+ export { default as AlgoliaSearch } from './AlgoliaSearch.js';
22
+ export { default as Column1 } from './Column1.js';
23
+ export { default as Column2 } from './Column2.js';
24
+ export { default as Column3 } from './Column3.js';
25
+ export { default as Header } from './Header.js';
26
+ export { default as LeftNav } from './LeftNav.js';
27
+ export { default as AccordionPanel } from './AccordionPanel.js';
28
+ export { default as SocialShare } from './SocialShare.js';
29
+ export { default as PageFilter } from './PageFilter.js';
30
+ export { default as VideoSeriesFilter } from './VideoSeriesFilter.js';
31
+ export { default as NavMagazine } from './NavMagazine.js';
32
+ export { NavNative } from './NavNative.js';
33
+ export { NavDvm } from './NavDvm.js';
34
+ export { HamMagazine } from './HamMagazine.js';
35
+ export { default as TemplateNormal } from './TemplateNormal.js';
36
+ export { default as AD } from './AD.js';
37
+ export { default as AD300x250 } from './AD300x250.js';
38
+ export { default as AD300x250x600 } from './AD300x250x600.js';
39
+ export { default as AD728x90 } from './AD728x90.js';
40
+ export { default as ADFooter } from './ADFooter.js';
41
+ export { default as AdSlot } from './AdSlot.js';
42
+ export { default as AdSlotsProvider } from './AdSlotsProvider.js';
43
+ export { default as ADFloatingFooter } from './ADFloatingFooter.js';
44
+ export { default as ADGutter } from './ADGutter.js';
45
+ export { default as ADWelcome } from './ADWelcome.js';
46
+ export { default as ADSponsoredResources } from './ADSponsoredResources.js';
47
+ export { default as ADWebcast } from './ADWebcast.js';
48
+ export { default as ADSkyscraper } from './ADSkyscraper.js';
49
+ export { default as Search } from './Search.js';
50
+ export { default as Feature } from './Feature.js';
51
+ import React__default from 'react';
52
+ import urlFor from './urlFor.js';
53
+ export { default as urlFor } from './urlFor.js';
54
+ import Row from 'react-bootstrap/Row';
55
+ import Col from 'react-bootstrap/Col';
56
+ import 'react-bootstrap/Badge';
57
+ import { L as LazyLoad } from './index-755f2cc2.js';
58
+ export { default as Breadcrumbs } from './Breadcrumbs.js';
59
+ export { default as Hero } from './Hero.js';
60
+ export { default as AlphabeticList } from './AlphabeticList.js';
61
+ export { default as PdfDownload } from './PdfDownload.js';
62
+ export { default as RelatedTopicsDropdown } from './RelatedTopicsDropdown.js';
63
+ export { default as Ustream } from './Ustream.js';
64
+ export { default as SideFooter } from './SideFooter.js';
65
+ export { default as HighlightenVideo } from './HighlightenVideo.js';
66
+ export { default as PublicationLanding } from './PublicationLanding.js';
67
+ export { default as IssueLanding } from './IssueLanding.js';
68
+ export { default as PopUpModal } from './PopUpModal.js';
69
+ export { default as RelatedContent } from './RelatedContent.js';
70
+ export { default as SocialIcons } from './SocialIcons.js';
71
+ export { default as ArticleCarousel } from './ArticleCarousel.js';
72
+ export { default as TaxonomyDescription } from './TaxonomyDescription.js';
73
+ export { default as PubToc } from './PubToc.js';
74
+ export { default as PubSection } from './PubSection.js';
75
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
76
+ import { _ as _JSON$stringify } from './stringify-1e2a5946.js';
77
+ import { _ as _extends } from './extends-2f4448b8.js';
78
+ import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
79
+ import PropTypes from 'prop-types';
80
+ import { m as momentTimezone } from './index-4550ef23.js';
81
+ import ProgressBar from 'react-bootstrap/ProgressBar';
82
+ export { PixelTrackingArticle, PixelTrackingLandingPages } from './PixelTracking.js';
83
+ export { default as ForbesHero } from './ForbesHero.js';
84
+ export { default as HorizontalHero } from './HorizontalHero.js';
85
+ export { default as OncliveHero } from './OncliveHero.js';
86
+ export { default as OncliveLargeHero } from './OncliveLargeHero.js';
87
+ export { default as VerticalHero } from './VerticalHero.js';
88
+ export { default as YahooHero } from './YahooHero.js';
89
+ export { default as GridHero } from './GridHero.js';
90
+ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
91
+ export { g as getSerializers } from './index-a68bfe70.js';
92
+ export { default as Beam } from './Beam.js';
93
+ export { default as Segment } from './Segment.js';
94
+ export { default as KMTracker } from './KMTracker.js';
95
+ export { default as getSeriesDetail } from './getSeriesDetail.js';
96
+ export { default as SetCookie } from './SetCookie.js';
97
+ export { default as getRelatedArticle } from './getRelatedArticle.js';
98
+ export { default as View } from './View.js';
99
+ export { default as PartnerDetailListing } from './PartnerDetailListing.js';
100
+ export { default as VideoProgramLandingPage } from './VideoProgramLandingPage.js';
101
+ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
102
+ export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
103
+ export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
104
+ export { default as Schema } from './Schema.js';
105
+ export { g as getTargeting } from './getTargeting-301942ae.js';
106
+ export { default as getKeywords } from './getKeywords.js';
107
+ export { default as getQuery } from './getQuery.js';
108
+ import './typeof-3ab7d3b6.js';
109
+ import './_commonjsHelpers-0c4b6f40.js';
110
+ import './core.get-iterator-method-95db387d.js';
111
+ import './web.dom.iterable-3fffc027.js';
112
+ import './_is-array-68c79b29.js';
113
+ import './_library-528f1934.js';
114
+ import './moment-48faeb9c.js';
115
+ import './style-inject.es-1f59c1d0.js';
116
+ import './BlockContent-1e73bd2c.js';
117
+ import './index-3f5c03b2.js';
118
+ import './toConsumableArray-e6f28e5c.js';
119
+ import './_iter-detect-2f89237f.js';
120
+ import './inherits-96c84cbd.js';
121
+ import './_object-sap-14bd8e96.js';
122
+ import './define-property-433c51d3.js';
123
+ import './index-5cc7b406.js';
124
+ import 'react-bootstrap/Container';
125
+ import 'react-bootstrap/Card';
126
+ import 'next/router';
127
+ import './debounce-533d9748.js';
128
+ import './isSymbol-a7e9aafe.js';
129
+ import './toNumber-5aeba6e7.js';
130
+ import './index.es-a6137319.js';
131
+ import './visibility-sensor-72fd8f8b.js';
132
+ import 'react-dom';
133
+ import './main-754d4992.js';
134
+ import './entities-6d9154b4.js';
135
+ import './ADInfeed-3442c999.js';
136
+ import './lodash-f97fd99a.js';
137
+ import './ADlgInfeed-30649360.js';
138
+ import './getContentCategory-15dcc413.js';
139
+ import './get-3c308da4.js';
140
+ import './eq-bdcbf886.js';
141
+ import './AuthorComponent-d9653ae5.js';
142
+ import './PublicationFeature-6c334891.js';
143
+ import 'react-bootstrap/Button';
144
+ import 'react-bootstrap/Media';
145
+ import './react-social-icons-9be47857.js';
146
+ import './checkSisterSite-a7218fda.js';
147
+ import './index-c7e2ac95.js';
148
+ import './smoothscroll-fa4e3f8c.js';
149
+ import 'react-bootstrap';
150
+ import './timeDifferenceCalc.js';
151
+ import './index.esm-eb1e8e80.js';
152
+ import './iconBase-ccc56b97.js';
153
+ import './defineProperty-e5afb9eb.js';
154
+ import './_object-to-array-9dfdfb29.js';
155
+ import 'react-bootstrap/Spinner';
156
+ import 'react-bootstrap/Form';
157
+ import './js.cookie-6874175c.js';
158
+ import './index-c8d5e72b.js';
159
+ import './ConferenceBanner-8792ebd2.js';
160
+ import 'next/head';
161
+ import '@mjhls/mjh-framework/dist/cjs/urlFor';
162
+ import 'react-bootstrap/ListGroup';
163
+ import 'react-bootstrap/Accordion';
164
+ import 'react-bootstrap/AccordionToggle';
165
+ import 'react-share';
166
+ import 'react-bootstrap/Nav';
167
+ import 'react-bootstrap/Navbar';
168
+ import 'react-bootstrap/NavDropdown';
169
+ import './index.esm-9b042655.js';
170
+ import './NavFooter-4bcffccb.js';
171
+ import './index.esm-9508070a.js';
172
+ import './SocialSearchComponent-9e65c8d6.js';
173
+ import 'react-bootstrap/FormControl';
174
+ import 'react-ga';
175
+ import 'react-bootstrap/Carousel';
176
+ import 'react-bootstrap/Breadcrumb';
177
+ import './keys-185288f4.js';
178
+ import 'react-bootstrap/DropdownButton';
179
+ import 'react-bootstrap/Dropdown';
180
+ import './index.esm-1bd8a0a8.js';
181
+ import './brightcove-react-player-loader.es-a2422c4b.js';
182
+ import './_set-species-7d3317b7.js';
183
+ import './urlForFile-2e523b67.js';
184
+ import 'react-bootstrap/Modal';
185
+ import 'react-bootstrap/Pagination';
186
+ import 'react-bootstrap/Figure';
187
+ import 'react-bootstrap/OverlayTrigger';
188
+ import 'react-bootstrap/Tooltip';
189
+ import 'react-bootstrap/Popover';
190
+ import './SeriesSlider-acbdf4c9.js';
191
+ import 'disqus-react';
192
+ import 'react-twitter-embed';
193
+ import './ImageSlider-75f7b81a.js';
194
+ import './defineProperty-e8022d1e.js';
195
+ import './VideoSeriesCard.js';
196
+
197
+ //Feature query to be used
198
+ // const featureQuery = `*[_type == 'feature' && is_active == true && feature_url == "/"] | order(_updatedAt asc)[0..5]{
199
+ // ...,
200
+ // feature_img { asset-> {url} }
201
+ // }`
202
+
203
+ //Update* Added control toggle for features. Will default to off -
204
+ //<Feature controls dataset={props.features} /></div>
205
+
206
+ var FeatureArticles = function FeatureArticles(props) {
207
+ var data = props.dataset;
208
+
209
+ var client = props.client,
210
+ _props$imageWidth = props.imageWidth,
211
+ imageWidth = _props$imageWidth === undefined ? 200 : _props$imageWidth,
212
+ imageHeight = props.imageHeight,
213
+ defaultImage = props.defaultImage,
214
+ _props$styles = props.styles,
215
+ styles = _props$styles === undefined ? null : _props$styles;
216
+
217
+
218
+ return React__default.createElement(
219
+ 'div',
220
+ { className: 'featured-articles-wrapper' },
221
+ data.map(function (article, index) {
222
+ return React__default.createElement(
223
+ React__default.Fragment,
224
+ null,
225
+ React__default.createElement(
226
+ Row,
227
+ { className: 'article-wrap' },
228
+ React__default.createElement(
229
+ Col,
230
+ { className: 'mb-4 m-fl-center deck', xs: 12, sm: 4, md: 4, lg: 3, xl: 3 },
231
+ React__default.createElement(
232
+ 'a',
233
+ { href: '' + article.feature_link },
234
+ React__default.createElement(
235
+ 'figure',
236
+ { style: { marginTop: '1rem' } },
237
+ React__default.createElement(
238
+ LazyLoad,
239
+ { height: imageHeight },
240
+ React__default.createElement('img', { style: { width: '100%', borderRadius: '10px' }, src: article.feature_img ? urlFor({ client: client, source: article.feature_img, imageWidth: imageWidth, imageHeight: imageHeight }) : defaultImage })
241
+ )
242
+ )
243
+ )
244
+ ),
245
+ React__default.createElement(
246
+ Col,
247
+ { className: 'article-wrap-body', xs: 12, sm: 8, md: 8, lg: 9, xl: 9, style: { paddingTop: '10px' } },
248
+ React__default.createElement(
249
+ 'a',
250
+ { href: '' + article.feature_link },
251
+ React__default.createElement(
252
+ 'h4',
253
+ { className: 'mb-1', style: { fontWeight: '600', fontSize: '22px' } },
254
+ article.feature_title
255
+ ),
256
+ React__default.createElement(
257
+ 'p',
258
+ { style: { fontSize: '1.1em' } },
259
+ article.feature_body
260
+ )
261
+ )
262
+ ),
263
+ index !== data.length - 1 && React__default.createElement('hr', null)
264
+ ),
265
+ React__default.createElement(
266
+ 'style',
267
+ { jsx: 'true' },
268
+ '\n .featured-articles-wrapper {\n background: ' + props.backgroundColor + ';\n padding: 1rem;\n border-radius: 10px;\n box-shadow: #0000002b 1px 3px 3px 3px;\n }\n hr {\n width: 100%;\n height: 1px;\n margin-left: 15px;\n margin-right: 15px;\n }\n ' + styles + '\n '
269
+ )
270
+ );
271
+ })
272
+ );
273
+ };
274
+
275
+ var _this = undefined;
276
+
277
+ var Survey = function Survey(_ref) {
278
+ var surveyData = _ref.surveyData,
279
+ handleEndSurvey = _ref.handleEndSurvey,
280
+ eventData = _ref.eventData,
281
+ takenQuestions = _ref.takenQuestions,
282
+ showLoading = _ref.showLoading,
283
+ colors = _ref.colors;
284
+
285
+ var _React$useState = React__default.useState('begin'),
286
+ _React$useState2 = _slicedToArray(_React$useState, 2),
287
+ progressState = _React$useState2[0],
288
+ setProgressState = _React$useState2[1];
289
+
290
+ var _React$useState3 = React__default.useState(0),
291
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
292
+ questionIndex = _React$useState4[0],
293
+ setQuestionIndex = _React$useState4[1];
294
+
295
+ var _React$useState5 = React__default.useState(100 / (surveyData.questions.length + 2)),
296
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
297
+ progressBarState = _React$useState6[0],
298
+ setProgressBarState = _React$useState6[1];
299
+
300
+ var _React$useState7 = React__default.useState(false),
301
+ _React$useState8 = _slicedToArray(_React$useState7, 2),
302
+ buttonActive = _React$useState8[0],
303
+ setButtonActive = _React$useState8[1];
304
+
305
+ var _React$useState9 = React__default.useState(eventData),
306
+ _React$useState10 = _slicedToArray(_React$useState9, 2),
307
+ data = _React$useState10[0],
308
+ setData = _React$useState10[1];
309
+
310
+ var handleAnswer = function handleAnswer(a, qi) {
311
+ setData(_extends({}, data, {
312
+ type: surveyData.type,
313
+ time: momentTimezone().utc().format(),
314
+ question: surveyData.questions[qi].question,
315
+ answer: a
316
+ }));
317
+ setButtonActive(true);
318
+ };
319
+
320
+ var handleSurvey = function () {
321
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(i) {
322
+ return regenerator.wrap(function _callee$(_context) {
323
+ while (1) {
324
+ switch (_context.prev = _context.next) {
325
+ case 0:
326
+ if (i === 0) {
327
+ updateStates(i + takenQuestions.length);
328
+ } else {
329
+ // Send question data to the api
330
+ handleAnswer(_JSON$stringify(data));
331
+ // Set states for the next question
332
+ updateStates(i);
333
+ }
334
+
335
+ case 1:
336
+ case 'end':
337
+ return _context.stop();
338
+ }
339
+ }
340
+ }, _callee, _this);
341
+ }));
342
+
343
+ return function handleSurvey(_x) {
344
+ return _ref2.apply(this, arguments);
345
+ };
346
+ }();
347
+
348
+ var updateStates = function updateStates(i) {
349
+ if (i === surveyData.questions.length) {
350
+ setProgressState('complete');
351
+ setProgressBarState(100);
352
+ } else {
353
+ setProgressState('question ' + (i + 1) + '/' + surveyData.questions.length);
354
+ setProgressBarState(100 / (surveyData.questions.length + 2) * (i + 2));
355
+ setQuestionIndex(i);
356
+ setButtonActive(false);
357
+ setData(eventData);
358
+ }
359
+ };
360
+
361
+ React__default.useEffect(function () {
362
+ if (takenQuestions.length !== 0) updateStates(takenQuestions.length);
363
+ }, [takenQuestions]);
364
+
365
+ return React__default.createElement(
366
+ 'div',
367
+ null,
368
+ React__default.createElement(
369
+ 'style',
370
+ { jsx: true },
371
+ '\n .font-family-georgia {\n font-family: Georgia, \'Times New Roman\', Times, serif;\n }\n .font-family-markw1g {\n font-family: \'MarkW1G\';\n }\n .survey-header {\n background-color: ' + colors.secondary + ';\n padding-left: 24px;\n padding-right: 24px;\n min-height: 50px;\n }\n .survey-title {\n color: ' + colors.headerText + ';\n font-size: 20px;\n text-align: center;\n font-weight: 600;\n }\n .survey-state {\n color: ' + colors.primary + ';\n text-align: center;\n font-size: 15px;\n font-weight: 600;\n }\n .survey-content {\n min-height: 322px;\n background-color: ' + colors.primary + ';\n padding: 25px 28px 20px;\n }\n .survey-button {\n box-shadow: 0px 3px 6px #00000029;\n background-color: ' + colors.button + ';\n color: ' + colors.secondary + ';\n font-size: 14px;\n line-height: 20px;\n border-radius: 0;\n }\n .survey-option {\n background-color: ' + colors.answer + ';\n padding: 20px;\n height: 100%;\n }\n .big-text {\n font-size: 30px;\n line-height: 30px;\n text-align: center;\n margin-bottom: 0;\n }\n .normal-text {\n font-size: 18px;\n line-height: 22px;\n text-align: center;\n margin-bottom: 0;\n }\n .small-text {\n font-size: 12px;\n line-height: 14px;\n text-align: center;\n margin-bottom: 0;\n }\n '
372
+ ),
373
+ showLoading ? React__default.createElement(
374
+ 'div',
375
+ { className: 'd-flex align-items-center justify-content-center' },
376
+ React__default.createElement(
377
+ 'h2',
378
+ { className: 'font-family-georgia' },
379
+ 'Loading...'
380
+ )
381
+ ) : React__default.createElement(
382
+ React__default.Fragment,
383
+ null,
384
+ React__default.createElement(
385
+ 'div',
386
+ { className: 'survey-header d-flex flex-column flex-md-row align-items-center justify-content-between' },
387
+ React__default.createElement(
388
+ 'p',
389
+ { className: 'survey-title text-uppercase font-family-markw1g' },
390
+ surveyData.title
391
+ ),
392
+ React__default.createElement(
393
+ 'p',
394
+ { className: 'survey-state text-uppercase font-family-markw1g' },
395
+ progressState
396
+ )
397
+ ),
398
+ React__default.createElement(ProgressBar, { now: progressBarState }),
399
+ React__default.createElement(
400
+ 'div',
401
+ { className: 'survey-content' },
402
+ progressState === 'begin' && takenQuestions.length === 0 && React__default.createElement(
403
+ 'div',
404
+ { className: 'd-flex align-items-center justify-content-center flex-column', style: { minHeight: 322 } },
405
+ React__default.createElement(
406
+ 'p',
407
+ { className: 'font-family-georgia big-text', style: { color: colors.contentText } },
408
+ surveyData.beforeSurveyText
409
+ ),
410
+ surveyData.beforeSurveyButtonLabel && React__default.createElement(
411
+ 'button',
412
+ { onClick: function onClick() {
413
+ return handleSurvey(0);
414
+ }, className: 'btn survey-button font-family-markw1g mt-3' },
415
+ surveyData.beforeSurveyButtonLabel
416
+ )
417
+ ),
418
+ progressState !== 'begin' && progressState !== 'complete' && React__default.createElement(
419
+ React__default.Fragment,
420
+ null,
421
+ React__default.createElement(
422
+ 'p',
423
+ { className: 'font-family-georgia normal-text', style: { color: colors.contentText } },
424
+ surveyData.questions[questionIndex].question
425
+ ),
426
+ React__default.createElement(
427
+ Row,
428
+ { className: 'my-4' },
429
+ surveyData.questions[questionIndex].answers.map(function (a, i) {
430
+ return React__default.createElement(
431
+ Col,
432
+ { sm: 12, md: 6, key: i, className: 'my-2' },
433
+ React__default.createElement(
434
+ 'div',
435
+ {
436
+ className: 'd-flex align-items-center justify-content-center survey-option',
437
+ onClick: function onClick() {
438
+ return handleAnswer(a, questionIndex);
439
+ },
440
+ style: data.answer && data.answer === a ? { background: colors.selectedAnswer } : null },
441
+ React__default.createElement(
442
+ 'p',
443
+ { className: 'font-family-georgia small-text', style: { color: colors.contentText } },
444
+ a
445
+ )
446
+ )
447
+ );
448
+ })
449
+ ),
450
+ React__default.createElement(
451
+ 'div',
452
+ { className: 'd-flex justify-content-end' },
453
+ React__default.createElement(
454
+ 'button',
455
+ {
456
+ onClick: buttonActive ? function () {
457
+ return handleSurvey(questionIndex + 1);
458
+ } : function () {},
459
+ className: 'btn survey-button font-family-markw1g',
460
+ style: !buttonActive ? { opacity: 0.5 } : null,
461
+ disabled: !buttonActive },
462
+ 'next question'
463
+ )
464
+ )
465
+ ),
466
+ progressState === 'complete' && React__default.createElement(
467
+ 'div',
468
+ { className: 'd-flex align-items-center justify-content-center flex-column', style: { minHeight: 322 } },
469
+ React__default.createElement(
470
+ 'p',
471
+ { className: 'font-family-georgia big-text', style: { color: colors.contentText } },
472
+ surveyData.afterSurveyText
473
+ ),
474
+ surveyData.afterSurveyButtonLabel && React__default.createElement(
475
+ 'button',
476
+ { onClick: handleEndSurvey, className: 'btn survey-button font-family-markw1g mt-3' },
477
+ surveyData.afterSurveyButtonLabel
478
+ )
479
+ )
480
+ )
481
+ )
482
+ );
483
+ };
484
+
485
+ Survey.propTypes = {
486
+ showLoading: PropTypes.bool.isRequired,
487
+ colors: PropTypes.shape({
488
+ primary: PropTypes.string,
489
+ secondary: PropTypes.string,
490
+ contentText: PropTypes.string,
491
+ headerText: PropTypes.string,
492
+ button: PropTypes.string,
493
+ answer: PropTypes.string,
494
+ selectedAnswer: PropTypes.string
495
+ }).isRequired,
496
+ eventData: PropTypes.shape({
497
+ url: PropTypes.string,
498
+ email: PropTypes.string
499
+ }).isRequired,
500
+ surveyData: PropTypes.shape({
501
+ type: PropTypes.oneOf(['pre', 'post']),
502
+ title: PropTypes.string,
503
+ beforeSurveyText: PropTypes.string,
504
+ beforeSurveyButtonLabel: PropTypes.string,
505
+ afterSurveyText: PropTypes.string,
506
+ afterSurveyButtonLabel: PropTypes.string,
507
+ questions: PropTypes.arrayOf(PropTypes.shape({
508
+ question: PropTypes.string,
509
+ answers: PropTypes.arrayOf(PropTypes.string)
510
+ }))
511
+ }).isRequired,
512
+ takenQuestions: PropTypes.arrayOf(PropTypes.string),
513
+ handleAnswer: PropTypes.func.isRequired,
514
+ handleEndSurvey: PropTypes.func.isRequired
515
+ };
516
+
517
+ Survey.defaultProps = {
518
+ showLoading: false,
519
+ colors: {
520
+ primary: '#6ED4C8',
521
+ secondary: '#26292D',
522
+ contentText: '#FF009D',
523
+ headerText: '#FFF',
524
+ button: '#EBE9AC',
525
+ answer: '#FFF',
526
+ selectedAnswer: '#EBE9AC'
527
+ },
528
+ takenQuestions: []
529
+ };
530
+
531
+ export { FeatureArticles, Survey };