@mjhls/mjh-framework 1.0.109-8.rlTest → 1.0.109

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 +5 -1
  2. package/dist/index.es.js +20606 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/index.js +20644 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +26 -55
  7. package/dist/cjs/AD.js +0 -32
  8. package/dist/cjs/AD300x250.js +0 -95
  9. package/dist/cjs/AD300x250x600.js +0 -112
  10. package/dist/cjs/AD728x90.js +0 -109
  11. package/dist/cjs/ADFloatingFooter.js +0 -151
  12. package/dist/cjs/ADFooter.js +0 -53
  13. package/dist/cjs/ADGutter.js +0 -123
  14. package/dist/cjs/ADInfeed-7c075eda.js +0 -75
  15. package/dist/cjs/ADSkyscraper.js +0 -125
  16. package/dist/cjs/ADSponsoredResources.js +0 -122
  17. package/dist/cjs/ADWebcast.js +0 -127
  18. package/dist/cjs/ADWelcome.js +0 -166
  19. package/dist/cjs/ADlgInfeed-d4f556bd.js +0 -69
  20. package/dist/cjs/AccordionPanel.js +0 -94
  21. package/dist/cjs/AdSlot.js +0 -283
  22. package/dist/cjs/AdSlotsProvider.js +0 -184
  23. package/dist/cjs/AlgoliaSearch.js +0 -15221
  24. package/dist/cjs/AlphabeticList.js +0 -134
  25. package/dist/cjs/ArticleCarousel.js +0 -45
  26. package/dist/cjs/ArticleProgramLandingPage.js +0 -186
  27. package/dist/cjs/ArticleSeriesLandingPage.js +0 -162
  28. package/dist/cjs/ArticleSeriesListing.js +0 -314
  29. package/dist/cjs/AuthWrapper.js +0 -1526
  30. package/dist/cjs/AuthorComponent-7d00f6d5.js +0 -96
  31. package/dist/cjs/Beam.js +0 -405
  32. package/dist/cjs/BlockContent-96b44364.js +0 -916
  33. package/dist/cjs/Breadcrumbs.js +0 -107
  34. package/dist/cjs/CEDeckSupabase.js +0 -444
  35. package/dist/cjs/CMEDeck.js +0 -444
  36. package/dist/cjs/Column1.js +0 -36
  37. package/dist/cjs/Column2.js +0 -73
  38. package/dist/cjs/Column3.js +0 -140
  39. package/dist/cjs/ConferenceArticleCard.js +0 -94
  40. package/dist/cjs/ConferenceBanner-213003ce.js +0 -24
  41. package/dist/cjs/ContentCardPaginated.js +0 -416
  42. package/dist/cjs/DeckContent.js +0 -507
  43. package/dist/cjs/DeckQueue.js +0 -402
  44. package/dist/cjs/DeckQueuePaginated.js +0 -347
  45. package/dist/cjs/Dfp-67646058.js +0 -103
  46. package/dist/cjs/EventsDeck.js +0 -856
  47. package/dist/cjs/ExternalResources.js +0 -220
  48. package/dist/cjs/Feature.js +0 -132
  49. package/dist/cjs/ForbesHero.js +0 -138
  50. package/dist/cjs/GridContent.js +0 -828
  51. package/dist/cjs/GridContentPaginated.js +0 -703
  52. package/dist/cjs/GridHero.js +0 -148
  53. package/dist/cjs/GroupDeck.js +0 -314
  54. package/dist/cjs/HamMagazine.js +0 -664
  55. package/dist/cjs/Header.js +0 -65
  56. package/dist/cjs/HealthCareProfessionalModal.js +0 -78
  57. package/dist/cjs/Hero.js +0 -49
  58. package/dist/cjs/HighlightenVideo.js +0 -69
  59. package/dist/cjs/HorizontalArticleListing.js +0 -167
  60. package/dist/cjs/HorizontalHero.js +0 -112
  61. package/dist/cjs/ImageSlider-7c995858.js +0 -2808
  62. package/dist/cjs/IssueContentDeck.js +0 -242
  63. package/dist/cjs/IssueDeck.js +0 -267
  64. package/dist/cjs/IssueLanding.js +0 -176
  65. package/dist/cjs/KMTracker.js +0 -27
  66. package/dist/cjs/LeftNav.js +0 -153
  67. package/dist/cjs/MasterDeck.js +0 -555
  68. package/dist/cjs/MasterDeckPaginated.js +0 -468
  69. package/dist/cjs/MediaSeriesCard.js +0 -134
  70. package/dist/cjs/MediaSeriesLanding.js +0 -507
  71. package/dist/cjs/MediaSeriesLandingPaginated.js +0 -532
  72. package/dist/cjs/NavDvm.js +0 -278
  73. package/dist/cjs/NavFooter-b7b16d48.js +0 -72
  74. package/dist/cjs/NavMagazine.js +0 -615
  75. package/dist/cjs/NavNative.js +0 -880
  76. package/dist/cjs/OncliveHero.js +0 -80
  77. package/dist/cjs/OncliveLargeHero.js +0 -242
  78. package/dist/cjs/PageFilter.js +0 -72
  79. package/dist/cjs/Pagination-6359861a.js +0 -97
  80. package/dist/cjs/PartnerDetailListing.js +0 -374
  81. package/dist/cjs/PartnerDetailListingPaginated.js +0 -365
  82. package/dist/cjs/PdfDownload.js +0 -28
  83. package/dist/cjs/PixelTracking.js +0 -191
  84. package/dist/cjs/PodcastsLanding.js +0 -234
  85. package/dist/cjs/PopUpModal.js +0 -58
  86. package/dist/cjs/PtceDeck.js +0 -150
  87. package/dist/cjs/PubSection.js +0 -120
  88. package/dist/cjs/PubToc.js +0 -88
  89. package/dist/cjs/PublicationDeck.js +0 -184
  90. package/dist/cjs/PublicationFeature-4b68e0db.js +0 -130
  91. package/dist/cjs/PublicationLanding.js +0 -826
  92. package/dist/cjs/QueueDeckExpanded.js +0 -1540
  93. package/dist/cjs/QueueDeckExpandedPaginated.js +0 -1387
  94. package/dist/cjs/RecentNews.js +0 -91
  95. package/dist/cjs/RelatedContent.js +0 -115
  96. package/dist/cjs/RelatedTopicsDropdown.js +0 -90
  97. package/dist/cjs/RolesDeck.js +0 -94
  98. package/dist/cjs/Schema.js +0 -102
  99. package/dist/cjs/Search.js +0 -66
  100. package/dist/cjs/Segment.js +0 -458
  101. package/dist/cjs/SeriesListingDeck.js +0 -247
  102. package/dist/cjs/SeriesSlider-086a8319.js +0 -332
  103. package/dist/cjs/SetCookie.js +0 -10
  104. package/dist/cjs/SideFooter.js +0 -152
  105. package/dist/cjs/SocialIcons.js +0 -103
  106. package/dist/cjs/SocialSearchComponent-d7e5d3a6.js +0 -213
  107. package/dist/cjs/SocialShare.js +0 -74
  108. package/dist/cjs/TaxonomyCard.js +0 -256
  109. package/dist/cjs/TaxonomyDescription.js +0 -208
  110. package/dist/cjs/TemplateNormal.js +0 -204
  111. package/dist/cjs/ThumbnailCard.js +0 -60
  112. package/dist/cjs/Tooltip-b8516cbf.js +0 -9541
  113. package/dist/cjs/Ustream.js +0 -157
  114. package/dist/cjs/VerticalHero.js +0 -75
  115. package/dist/cjs/VideoProgramLandingPage.js +0 -262
  116. package/dist/cjs/VideoSeriesCard.js +0 -88
  117. package/dist/cjs/VideoSeriesFilter.js +0 -129
  118. package/dist/cjs/VideoSeriesLandingPage.js +0 -178
  119. package/dist/cjs/VideoSeriesListing.js +0 -421
  120. package/dist/cjs/View.js +0 -2835
  121. package/dist/cjs/YahooHero.js +0 -127
  122. package/dist/cjs/YoutubeGroup.js +0 -372
  123. package/dist/cjs/_commonjsHelpers-06173234.js +0 -25
  124. package/dist/cjs/_is-array-54228b29.js +0 -74
  125. package/dist/cjs/_iter-detect-b1df62f0.js +0 -52
  126. package/dist/cjs/_library-dd23b178.js +0 -5
  127. package/dist/cjs/_object-sap-d1978572.js +0 -16
  128. package/dist/cjs/_object-to-array-9337ba83.js +0 -25
  129. package/dist/cjs/_set-species-0c7864a2.js +0 -55
  130. package/dist/cjs/asyncToGenerator-65df6bf8.js +0 -1347
  131. package/dist/cjs/brightcove-react-player-loader.es-35faab67.js +0 -2232
  132. package/dist/cjs/checkSisterSite-c3a4ac98.js +0 -19
  133. package/dist/cjs/core.get-iterator-method-5643aa10.js +0 -584
  134. package/dist/cjs/debounce-d4a2369b.js +0 -216
  135. package/dist/cjs/define-property-e8404b64.js +0 -20
  136. package/dist/cjs/defineProperty-19580e93.js +0 -71
  137. package/dist/cjs/defineProperty-9673846a.js +0 -34
  138. package/dist/cjs/entities-df1aed86.js +0 -510
  139. package/dist/cjs/eq-5fc26c07.js +0 -79
  140. package/dist/cjs/extends-be0d85bc.js +0 -100
  141. package/dist/cjs/faundadb.js +0 -765
  142. package/dist/cjs/get-5839e5b5.js +0 -920
  143. package/dist/cjs/getContentCategory-f38a4c00.js +0 -11
  144. package/dist/cjs/getKeywords.js +0 -46
  145. package/dist/cjs/getPtceActivities.js +0 -90
  146. package/dist/cjs/getQuery.js +0 -27
  147. package/dist/cjs/getRelatedArticle.js +0 -766
  148. package/dist/cjs/getRootDocGroup.js +0 -63
  149. package/dist/cjs/getSerializers.js +0 -66
  150. package/dist/cjs/getSeriesDetail.js +0 -40
  151. package/dist/cjs/getTIData.js +0 -93
  152. package/dist/cjs/getTargeting-7ce7037b.js +0 -166
  153. package/dist/cjs/getTargeting.js +0 -12
  154. package/dist/cjs/iconBase-be4097c0.js +0 -104
  155. package/dist/cjs/index-187c967e.js +0 -54
  156. package/dist/cjs/index-3177f564.js +0 -1573
  157. package/dist/cjs/index-65621b6c.js +0 -613
  158. package/dist/cjs/index-7435b964.js +0 -1683
  159. package/dist/cjs/index-a26637a3.js +0 -11764
  160. package/dist/cjs/index-d48b231c.js +0 -556
  161. package/dist/cjs/index-ff83a88b.js +0 -104
  162. package/dist/cjs/index.es-1ab8dda7.js +0 -445
  163. package/dist/cjs/index.esm-2ea9e9ff.js +0 -98
  164. package/dist/cjs/index.esm-c1e16606.js +0 -13
  165. package/dist/cjs/index.esm-d51c9ac6.js +0 -25
  166. package/dist/cjs/index.esm-d81454e7.js +0 -19
  167. package/dist/cjs/index.js +0 -638
  168. package/dist/cjs/inherits-e47b5342.js +0 -188
  169. package/dist/cjs/isSymbol-03abbdf0.js +0 -209
  170. package/dist/cjs/js.cookie-a511c430.js +0 -160
  171. package/dist/cjs/keys-e982b3fa.js +0 -25
  172. package/dist/cjs/lodash-f0783643.js +0 -17195
  173. package/dist/cjs/main-ae8472f3.js +0 -969
  174. package/dist/cjs/moment-f730814d.js +0 -5684
  175. package/dist/cjs/react-social-icons-2c5c389a.js +0 -616
  176. package/dist/cjs/slicedToArray-067dd3bc.js +0 -95
  177. package/dist/cjs/smoothscroll-99df7f93.js +0 -438
  178. package/dist/cjs/stringify-f7a37a8d.js +0 -17
  179. package/dist/cjs/style-inject.es-dcee06b6.js +0 -30
  180. package/dist/cjs/timeDifferenceCalc.js +0 -39
  181. package/dist/cjs/toConsumableArray-d7797c2b.js +0 -74
  182. package/dist/cjs/toNumber-5e1fac58.js +0 -104
  183. package/dist/cjs/typeof-220bbf73.js +0 -382
  184. package/dist/cjs/urlFor.js +0 -66
  185. package/dist/cjs/urlForFile-5084fc48.js +0 -29
  186. package/dist/cjs/ustream-api-3819e4aa.js +0 -106
  187. package/dist/cjs/visibility-sensor-56020df6.js +0 -597
  188. package/dist/cjs/web.dom.iterable-d98303e0.js +0 -50
  189. package/dist/esm/AD.js +0 -26
  190. package/dist/esm/AD300x250.js +0 -89
  191. package/dist/esm/AD300x250x600.js +0 -106
  192. package/dist/esm/AD728x90.js +0 -103
  193. package/dist/esm/ADFloatingFooter.js +0 -145
  194. package/dist/esm/ADFooter.js +0 -47
  195. package/dist/esm/ADGutter.js +0 -117
  196. package/dist/esm/ADInfeed-3442c999.js +0 -68
  197. package/dist/esm/ADSkyscraper.js +0 -119
  198. package/dist/esm/ADSponsoredResources.js +0 -116
  199. package/dist/esm/ADWebcast.js +0 -121
  200. package/dist/esm/ADWelcome.js +0 -160
  201. package/dist/esm/ADlgInfeed-30649360.js +0 -63
  202. package/dist/esm/AccordionPanel.js +0 -87
  203. package/dist/esm/AdSlot.js +0 -276
  204. package/dist/esm/AdSlotsProvider.js +0 -177
  205. package/dist/esm/AlgoliaSearch.js +0 -15214
  206. package/dist/esm/AlphabeticList.js +0 -128
  207. package/dist/esm/ArticleCarousel.js +0 -39
  208. package/dist/esm/ArticleProgramLandingPage.js +0 -180
  209. package/dist/esm/ArticleSeriesLandingPage.js +0 -156
  210. package/dist/esm/ArticleSeriesListing.js +0 -307
  211. package/dist/esm/AuthWrapper.js +0 -1520
  212. package/dist/esm/AuthorComponent-d9653ae5.js +0 -90
  213. package/dist/esm/Beam.js +0 -403
  214. package/dist/esm/BlockContent-1e73bd2c.js +0 -909
  215. package/dist/esm/Breadcrumbs.js +0 -100
  216. package/dist/esm/CEDeckSupabase.js +0 -438
  217. package/dist/esm/CMEDeck.js +0 -438
  218. package/dist/esm/Column1.js +0 -28
  219. package/dist/esm/Column2.js +0 -65
  220. package/dist/esm/Column3.js +0 -132
  221. package/dist/esm/ConferenceArticleCard.js +0 -88
  222. package/dist/esm/ConferenceBanner-8792ebd2.js +0 -18
  223. package/dist/esm/ContentCardPaginated.js +0 -405
  224. package/dist/esm/DeckContent.js +0 -497
  225. package/dist/esm/DeckQueue.js +0 -392
  226. package/dist/esm/DeckQueuePaginated.js +0 -336
  227. package/dist/esm/Dfp-3b6eb620.js +0 -96
  228. package/dist/esm/EventsDeck.js +0 -843
  229. package/dist/esm/ExternalResources.js +0 -213
  230. package/dist/esm/Feature.js +0 -125
  231. package/dist/esm/ForbesHero.js +0 -132
  232. package/dist/esm/GridContent.js +0 -818
  233. package/dist/esm/GridContentPaginated.js +0 -692
  234. package/dist/esm/GridHero.js +0 -142
  235. package/dist/esm/GroupDeck.js +0 -308
  236. package/dist/esm/HamMagazine.js +0 -651
  237. package/dist/esm/Header.js +0 -54
  238. package/dist/esm/HealthCareProfessionalModal.js +0 -70
  239. package/dist/esm/Hero.js +0 -43
  240. package/dist/esm/HighlightenVideo.js +0 -63
  241. package/dist/esm/HorizontalArticleListing.js +0 -161
  242. package/dist/esm/HorizontalHero.js +0 -106
  243. package/dist/esm/ImageSlider-75f7b81a.js +0 -2799
  244. package/dist/esm/IssueContentDeck.js +0 -232
  245. package/dist/esm/IssueDeck.js +0 -257
  246. package/dist/esm/IssueLanding.js +0 -170
  247. package/dist/esm/KMTracker.js +0 -25
  248. package/dist/esm/LeftNav.js +0 -143
  249. package/dist/esm/MasterDeck.js +0 -548
  250. package/dist/esm/MasterDeckPaginated.js +0 -460
  251. package/dist/esm/MediaSeriesCard.js +0 -128
  252. package/dist/esm/MediaSeriesLanding.js +0 -500
  253. package/dist/esm/MediaSeriesLandingPaginated.js +0 -525
  254. package/dist/esm/NavDvm.js +0 -265
  255. package/dist/esm/NavFooter-4bcffccb.js +0 -66
  256. package/dist/esm/NavMagazine.js +0 -602
  257. package/dist/esm/NavNative.js +0 -864
  258. package/dist/esm/OncliveHero.js +0 -74
  259. package/dist/esm/OncliveLargeHero.js +0 -236
  260. package/dist/esm/PageFilter.js +0 -66
  261. package/dist/esm/Pagination-9fe9f61d.js +0 -90
  262. package/dist/esm/PartnerDetailListing.js +0 -368
  263. package/dist/esm/PartnerDetailListingPaginated.js +0 -359
  264. package/dist/esm/PdfDownload.js +0 -22
  265. package/dist/esm/PixelTracking.js +0 -182
  266. package/dist/esm/PodcastsLanding.js +0 -227
  267. package/dist/esm/PopUpModal.js +0 -51
  268. package/dist/esm/PtceDeck.js +0 -144
  269. package/dist/esm/PubSection.js +0 -114
  270. package/dist/esm/PubToc.js +0 -82
  271. package/dist/esm/PublicationDeck.js +0 -174
  272. package/dist/esm/PublicationFeature-6c334891.js +0 -121
  273. package/dist/esm/PublicationLanding.js +0 -816
  274. package/dist/esm/QueueDeckExpanded.js +0 -1534
  275. package/dist/esm/QueueDeckExpandedPaginated.js +0 -1381
  276. package/dist/esm/RecentNews.js +0 -85
  277. package/dist/esm/RelatedContent.js +0 -109
  278. package/dist/esm/RelatedTopicsDropdown.js +0 -82
  279. package/dist/esm/RolesDeck.js +0 -84
  280. package/dist/esm/Schema.js +0 -96
  281. package/dist/esm/Search.js +0 -57
  282. package/dist/esm/Segment.js +0 -456
  283. package/dist/esm/SeriesListingDeck.js +0 -241
  284. package/dist/esm/SeriesSlider-acbdf4c9.js +0 -326
  285. package/dist/esm/SetCookie.js +0 -8
  286. package/dist/esm/SideFooter.js +0 -146
  287. package/dist/esm/SocialIcons.js +0 -97
  288. package/dist/esm/SocialSearchComponent-9e65c8d6.js +0 -204
  289. package/dist/esm/SocialShare.js +0 -67
  290. package/dist/esm/TaxonomyCard.js +0 -246
  291. package/dist/esm/TaxonomyDescription.js +0 -201
  292. package/dist/esm/TemplateNormal.js +0 -197
  293. package/dist/esm/ThumbnailCard.js +0 -53
  294. package/dist/esm/Tooltip-fe0ed92d.js +0 -9532
  295. package/dist/esm/Ustream.js +0 -151
  296. package/dist/esm/VerticalHero.js +0 -69
  297. package/dist/esm/VideoProgramLandingPage.js +0 -253
  298. package/dist/esm/VideoSeriesCard.js +0 -82
  299. package/dist/esm/VideoSeriesFilter.js +0 -123
  300. package/dist/esm/VideoSeriesLandingPage.js +0 -172
  301. package/dist/esm/VideoSeriesListing.js +0 -414
  302. package/dist/esm/View.js +0 -2825
  303. package/dist/esm/YahooHero.js +0 -121
  304. package/dist/esm/YoutubeGroup.js +0 -366
  305. package/dist/esm/_commonjsHelpers-0c4b6f40.js +0 -19
  306. package/dist/esm/_is-array-68c79b29.js +0 -71
  307. package/dist/esm/_iter-detect-2f89237f.js +0 -48
  308. package/dist/esm/_library-528f1934.js +0 -3
  309. package/dist/esm/_object-sap-14bd8e96.js +0 -14
  310. package/dist/esm/_object-to-array-9dfdfb29.js +0 -23
  311. package/dist/esm/_set-species-7d3317b7.js +0 -50
  312. package/dist/esm/asyncToGenerator-1ebeb135.js +0 -1343
  313. package/dist/esm/brightcove-react-player-loader.es-a2422c4b.js +0 -2226
  314. package/dist/esm/checkSisterSite-a7218fda.js +0 -17
  315. package/dist/esm/core.get-iterator-method-95db387d.js +0 -547
  316. package/dist/esm/debounce-533d9748.js +0 -214
  317. package/dist/esm/define-property-433c51d3.js +0 -18
  318. package/dist/esm/defineProperty-e5afb9eb.js +0 -32
  319. package/dist/esm/defineProperty-e8022d1e.js +0 -66
  320. package/dist/esm/entities-6d9154b4.js +0 -507
  321. package/dist/esm/eq-bdcbf886.js +0 -76
  322. package/dist/esm/extends-2f4448b8.js +0 -94
  323. package/dist/esm/faundadb.js +0 -754
  324. package/dist/esm/get-3c308da4.js +0 -918
  325. package/dist/esm/getContentCategory-15dcc413.js +0 -9
  326. package/dist/esm/getKeywords.js +0 -44
  327. package/dist/esm/getPtceActivities.js +0 -88
  328. package/dist/esm/getQuery.js +0 -25
  329. package/dist/esm/getRelatedArticle.js +0 -764
  330. package/dist/esm/getRootDocGroup.js +0 -61
  331. package/dist/esm/getSerializers.js +0 -60
  332. package/dist/esm/getSeriesDetail.js +0 -38
  333. package/dist/esm/getTIData.js +0 -91
  334. package/dist/esm/getTargeting-301942ae.js +0 -163
  335. package/dist/esm/getTargeting.js +0 -6
  336. package/dist/esm/iconBase-ccc56b97.js +0 -81
  337. package/dist/esm/index-3f5c03b2.js +0 -553
  338. package/dist/esm/index-4550ef23.js +0 -1571
  339. package/dist/esm/index-5cc7b406.js +0 -1674
  340. package/dist/esm/index-755f2cc2.js +0 -605
  341. package/dist/esm/index-a68bfe70.js +0 -11743
  342. package/dist/esm/index-c7e2ac95.js +0 -52
  343. package/dist/esm/index-c8d5e72b.js +0 -99
  344. package/dist/esm/index.es-a6137319.js +0 -439
  345. package/dist/esm/index.esm-1bd8a0a8.js +0 -18
  346. package/dist/esm/index.esm-9508070a.js +0 -91
  347. package/dist/esm/index.esm-9b042655.js +0 -10
  348. package/dist/esm/index.esm-eb1e8e80.js +0 -14
  349. package/dist/esm/index.js +0 -531
  350. package/dist/esm/inherits-96c84cbd.js +0 -179
  351. package/dist/esm/isSymbol-a7e9aafe.js +0 -203
  352. package/dist/esm/js.cookie-6874175c.js +0 -158
  353. package/dist/esm/keys-185288f4.js +0 -23
  354. package/dist/esm/lodash-f97fd99a.js +0 -17193
  355. package/dist/esm/main-754d4992.js +0 -956
  356. package/dist/esm/moment-48faeb9c.js +0 -5682
  357. package/dist/esm/react-social-icons-9be47857.js +0 -609
  358. package/dist/esm/slicedToArray-72ed566b.js +0 -92
  359. package/dist/esm/smoothscroll-fa4e3f8c.js +0 -436
  360. package/dist/esm/stringify-1e2a5946.js +0 -15
  361. package/dist/esm/style-inject.es-1f59c1d0.js +0 -28
  362. package/dist/esm/timeDifferenceCalc.js +0 -37
  363. package/dist/esm/toConsumableArray-e6f28e5c.js +0 -71
  364. package/dist/esm/toNumber-5aeba6e7.js +0 -102
  365. package/dist/esm/typeof-3ab7d3b6.js +0 -378
  366. package/dist/esm/urlFor.js +0 -64
  367. package/dist/esm/urlForFile-2e523b67.js +0 -27
  368. package/dist/esm/ustream-api-63a164b3.js +0 -104
  369. package/dist/esm/visibility-sensor-72fd8f8b.js +0 -590
  370. package/dist/esm/web.dom.iterable-3fffc027.js +0 -48
@@ -1,91 +0,0 @@
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 };
@@ -1,10 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
package/dist/esm/index.js DELETED
@@ -1,531 +0,0 @@
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 };