@mjhls/mjh-framework 1.0.858 → 1.0.859-beta.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 (258) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +11 -11
  4. package/dist/cjs/AD300x250x600.js +11 -11
  5. package/dist/cjs/AD728x90.js +12 -12
  6. package/dist/cjs/ADFloatingFooter.js +13 -13
  7. package/dist/cjs/ADFooter.js +8 -9
  8. package/dist/cjs/ADGutter.js +13 -13
  9. package/dist/cjs/{ADInfeed-ff26342c.js → ADInfeed-98c71bcd.js} +9 -11
  10. package/dist/cjs/ADSkyscraper.js +13 -13
  11. package/dist/cjs/ADSponsoredResources.js +13 -13
  12. package/dist/cjs/ADWebcast.js +13 -13
  13. package/dist/cjs/ADWelcome.js +17 -17
  14. package/dist/cjs/{ADlgInfeed-ad4953d4.js → ADlgInfeed-9de32585.js} +6 -7
  15. package/dist/cjs/AccordionPanel.js +22 -24
  16. package/dist/cjs/AdSlot.js +15 -15
  17. package/dist/cjs/AdSlotsProvider.js +903 -11
  18. package/dist/cjs/AlgoliaSearch.js +14012 -49
  19. package/dist/cjs/AlphabeticList.js +16 -17
  20. package/dist/cjs/ArticleCarousel.js +11 -12
  21. package/dist/cjs/ArticleProgramLandingPage.js +24 -25
  22. package/dist/cjs/ArticleSeriesLandingPage.js +21 -21
  23. package/dist/cjs/ArticleSeriesListing.js +41 -41
  24. package/dist/cjs/Auth.js +1197 -237
  25. package/dist/cjs/AuthWrapper.js +561 -26
  26. package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
  27. package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
  28. package/dist/cjs/Breadcrumbs.js +21 -23
  29. package/dist/cjs/CMEDeck.js +65 -64
  30. package/dist/cjs/Column1.js +11 -14
  31. package/dist/cjs/Column2.js +19 -22
  32. package/dist/cjs/Column3.js +34 -36
  33. package/dist/cjs/ConferenceArticleCard.js +32 -33
  34. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  35. package/dist/cjs/DeckContent.js +82 -85
  36. package/dist/cjs/DeckQueue.js +70 -73
  37. package/dist/cjs/{Dfp-0bf098b5.js → Dfp-26baccf1.js} +23 -23
  38. package/dist/cjs/EventsDeck.js +134 -141
  39. package/dist/cjs/ExternalResources.js +48 -49
  40. package/dist/cjs/Feature.js +23 -25
  41. package/dist/cjs/ForbesHero.js +34 -35
  42. package/dist/cjs/GridContent.js +205 -209
  43. package/dist/cjs/GridHero.js +35 -36
  44. package/dist/cjs/GroupDeck.js +48 -49
  45. package/dist/cjs/HamMagazine.js +125 -130
  46. package/dist/cjs/Header.js +12 -14
  47. package/dist/cjs/Hero.js +9 -10
  48. package/dist/cjs/HighlightenVideo.js +16 -17
  49. package/dist/cjs/HorizontalArticleListing.js +38 -39
  50. package/dist/cjs/HorizontalHero.js +23 -24
  51. package/dist/cjs/IssueContentDeck.js +65 -70
  52. package/dist/cjs/IssueDeck.js +61 -66
  53. package/dist/cjs/IssueLanding.js +59 -60
  54. package/dist/cjs/KMTracker.js +15 -15
  55. package/dist/cjs/LeftNav.js +22 -23
  56. package/dist/cjs/MasterDeck.js +59 -59
  57. package/dist/cjs/MediaSeriesLanding.js +909 -801
  58. package/dist/cjs/NavDvm.js +63 -68
  59. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  60. package/dist/cjs/NavMagazine.js +126 -131
  61. package/dist/cjs/NavNative.js +117 -125
  62. package/dist/cjs/OncliveHero.js +17 -17
  63. package/dist/cjs/OncliveLargeHero.js +63 -64
  64. package/dist/cjs/PageFilter.js +8 -9
  65. package/dist/cjs/PartnerDetailListing.js +188 -288
  66. package/dist/cjs/PdfDownload.js +8 -9
  67. package/dist/cjs/PopUpModal.js +13 -15
  68. package/dist/cjs/PubSection.js +21 -21
  69. package/dist/cjs/PubToc.js +7 -8
  70. package/dist/cjs/PublicationDeck.js +59 -64
  71. package/dist/cjs/PublicationLanding.js +110 -114
  72. package/dist/cjs/QueueDeckExpanded.js +287 -286
  73. package/dist/cjs/RecentNews.js +19 -20
  74. package/dist/cjs/RelatedContent.js +50 -51
  75. package/dist/cjs/RelatedTopicsDropdown.js +29 -32
  76. package/dist/cjs/RolesDeck.js +27 -32
  77. package/dist/cjs/Search.js +12 -16
  78. package/dist/cjs/SeriesListingDeck.js +27 -26
  79. package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-8bbc989f.js} +37 -38
  80. package/dist/cjs/SideFooter.js +25 -26
  81. package/dist/cjs/SocialIcons.js +9 -10
  82. package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
  83. package/dist/cjs/SocialShare.js +29 -31
  84. package/dist/cjs/TaxonomyCard.js +55 -60
  85. package/dist/cjs/TaxonomyDescription.js +23 -24
  86. package/dist/cjs/TemplateNormal.js +36 -36
  87. package/dist/cjs/ThumbnailCard.js +17 -19
  88. package/dist/cjs/Ustream.js +21 -22
  89. package/dist/cjs/VerticalHero.js +15 -16
  90. package/dist/cjs/VideoProgramLandingPage.js +41 -45
  91. package/dist/cjs/VideoSeriesCard.js +23 -24
  92. package/dist/cjs/VideoSeriesFilter.js +9 -9
  93. package/dist/cjs/VideoSeriesLandingPage.js +26 -26
  94. package/dist/cjs/VideoSeriesListing.js +58 -58
  95. package/dist/cjs/View.js +224 -225
  96. package/dist/cjs/YahooHero.js +30 -31
  97. package/dist/cjs/YoutubeGroup.js +54 -55
  98. package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
  99. package/dist/cjs/events-1b438fe7.js +469 -0
  100. package/dist/cjs/{extends-60837c34.js → extends-0a918631.js} +1 -0
  101. package/dist/cjs/faundadb.js +1 -1
  102. package/dist/cjs/getRelatedArticle.js +131 -67
  103. package/dist/cjs/getSerializers.js +13 -13
  104. package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-f1821260.js} +11 -11
  105. package/dist/cjs/getTargeting.js +2 -2
  106. package/dist/cjs/iconBase-68959171.js +3 -0
  107. package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
  108. package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
  109. package/dist/cjs/{index-44481153.js → index-98e01cb9.js} +47 -494
  110. package/dist/cjs/{index-646379c4.js → index-998ad42c.js} +1204 -954
  111. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  112. package/dist/cjs/index-e2e62963.js +89 -0
  113. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  114. package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
  115. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  116. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  117. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  118. package/dist/cjs/index.js +61 -65
  119. package/dist/cjs/{inherits-87492b40.js → inherits-452ff02c.js} +4 -1
  120. package/dist/cjs/inherits-8d29278d.js +110 -0
  121. package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
  122. package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
  123. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  124. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  125. package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
  126. package/dist/cjs/timeDifferenceCalc.js +1 -1
  127. package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
  128. package/dist/cjs/urlFor.js +3 -3
  129. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  130. package/dist/esm/AD.js +7 -7
  131. package/dist/esm/AD300x250.js +9 -8
  132. package/dist/esm/AD300x250x600.js +9 -8
  133. package/dist/esm/AD728x90.js +10 -9
  134. package/dist/esm/ADFloatingFooter.js +11 -10
  135. package/dist/esm/ADFooter.js +6 -6
  136. package/dist/esm/ADGutter.js +11 -10
  137. package/dist/esm/{ADInfeed-422ad6e6.js → ADInfeed-1cc9d817.js} +7 -7
  138. package/dist/esm/ADSkyscraper.js +11 -10
  139. package/dist/esm/ADSponsoredResources.js +11 -10
  140. package/dist/esm/ADWebcast.js +11 -10
  141. package/dist/esm/ADWelcome.js +15 -14
  142. package/dist/esm/{ADlgInfeed-f7468db8.js → ADlgInfeed-8c4f129e.js} +4 -4
  143. package/dist/esm/AccordionPanel.js +17 -17
  144. package/dist/esm/AdSlot.js +7 -6
  145. package/dist/esm/AdSlotsProvider.js +903 -10
  146. package/dist/esm/AlgoliaSearch.js +14005 -41
  147. package/dist/esm/AlphabeticList.js +14 -14
  148. package/dist/esm/ArticleCarousel.js +9 -9
  149. package/dist/esm/ArticleProgramLandingPage.js +22 -22
  150. package/dist/esm/ArticleSeriesLandingPage.js +19 -18
  151. package/dist/esm/ArticleSeriesListing.js +38 -37
  152. package/dist/esm/Auth.js +1181 -217
  153. package/dist/esm/AuthWrapper.js +561 -24
  154. package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
  155. package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
  156. package/dist/esm/Breadcrumbs.js +11 -11
  157. package/dist/esm/CMEDeck.js +62 -61
  158. package/dist/esm/Column1.js +9 -9
  159. package/dist/esm/Column2.js +17 -17
  160. package/dist/esm/Column3.js +32 -31
  161. package/dist/esm/ConferenceArticleCard.js +30 -30
  162. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  163. package/dist/esm/DeckContent.js +78 -77
  164. package/dist/esm/DeckQueue.js +66 -65
  165. package/dist/esm/{Dfp-85c9513e.js → Dfp-b7236041.js} +11 -10
  166. package/dist/esm/EventsDeck.js +110 -110
  167. package/dist/esm/ExternalResources.js +43 -43
  168. package/dist/esm/Feature.js +17 -17
  169. package/dist/esm/ForbesHero.js +28 -28
  170. package/dist/esm/GridContent.js +174 -173
  171. package/dist/esm/GridHero.js +29 -29
  172. package/dist/esm/GroupDeck.js +36 -36
  173. package/dist/esm/HamMagazine.js +100 -100
  174. package/dist/esm/Header.js +8 -8
  175. package/dist/esm/Hero.js +7 -7
  176. package/dist/esm/HighlightenVideo.js +14 -14
  177. package/dist/esm/HorizontalArticleListing.js +36 -36
  178. package/dist/esm/HorizontalHero.js +21 -21
  179. package/dist/esm/IssueContentDeck.js +53 -53
  180. package/dist/esm/IssueDeck.js +55 -55
  181. package/dist/esm/IssueLanding.js +57 -57
  182. package/dist/esm/KMTracker.js +15 -15
  183. package/dist/esm/LeftNav.js +18 -17
  184. package/dist/esm/MasterDeck.js +56 -55
  185. package/dist/esm/MediaSeriesLanding.js +672 -561
  186. package/dist/esm/NavDvm.js +46 -46
  187. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  188. package/dist/esm/NavMagazine.js +103 -103
  189. package/dist/esm/NavNative.js +92 -92
  190. package/dist/esm/OncliveHero.js +15 -14
  191. package/dist/esm/OncliveLargeHero.js +52 -52
  192. package/dist/esm/PageFilter.js +6 -6
  193. package/dist/esm/PartnerDetailListing.js +79 -178
  194. package/dist/esm/PdfDownload.js +6 -6
  195. package/dist/esm/PopUpModal.js +8 -8
  196. package/dist/esm/PubSection.js +19 -18
  197. package/dist/esm/PubToc.js +5 -5
  198. package/dist/esm/PublicationDeck.js +51 -51
  199. package/dist/esm/PublicationLanding.js +96 -96
  200. package/dist/esm/QueueDeckExpanded.js +253 -252
  201. package/dist/esm/RecentNews.js +17 -17
  202. package/dist/esm/RelatedContent.js +45 -45
  203. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  204. package/dist/esm/RolesDeck.js +25 -25
  205. package/dist/esm/Search.js +7 -7
  206. package/dist/esm/SeriesListingDeck.js +22 -21
  207. package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-a866bb21.js} +28 -28
  208. package/dist/esm/SideFooter.js +21 -21
  209. package/dist/esm/SocialIcons.js +7 -7
  210. package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
  211. package/dist/esm/SocialShare.js +25 -25
  212. package/dist/esm/TaxonomyCard.js +51 -51
  213. package/dist/esm/TaxonomyDescription.js +18 -18
  214. package/dist/esm/TemplateNormal.js +33 -32
  215. package/dist/esm/ThumbnailCard.js +10 -10
  216. package/dist/esm/Ustream.js +18 -18
  217. package/dist/esm/VerticalHero.js +13 -13
  218. package/dist/esm/VideoProgramLandingPage.js +34 -34
  219. package/dist/esm/VideoSeriesCard.js +18 -18
  220. package/dist/esm/VideoSeriesFilter.js +6 -6
  221. package/dist/esm/VideoSeriesLandingPage.js +19 -18
  222. package/dist/esm/VideoSeriesListing.js +55 -54
  223. package/dist/esm/View.js +207 -204
  224. package/dist/esm/YahooHero.js +25 -25
  225. package/dist/esm/YoutubeGroup.js +39 -39
  226. package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
  227. package/dist/esm/events-6c3a7a63.js +467 -0
  228. package/dist/esm/{extends-eb69e8ac.js → extends-6f2fcc99.js} +1 -1
  229. package/dist/esm/faundadb.js +1 -1
  230. package/dist/esm/getRelatedArticle.js +126 -62
  231. package/dist/esm/getSerializers.js +13 -13
  232. package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-bd800589.js} +10 -10
  233. package/dist/esm/getTargeting.js +2 -2
  234. package/dist/esm/{index-d1dee060.js → index-2fccaa7f.js} +1162 -901
  235. package/dist/esm/{index-1819118a.js → index-41a678ea.js} +41 -487
  236. package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
  237. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  238. package/dist/esm/index-aaa2dae0.js +85 -0
  239. package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
  240. package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
  241. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  242. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  243. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  244. package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
  245. package/dist/esm/index.js +53 -54
  246. package/dist/esm/inherits-77d5e4fc.js +101 -0
  247. package/dist/esm/{inherits-0d8cda6e.js → inherits-cf8dde54.js} +2 -2
  248. package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
  249. package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
  250. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  251. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  252. package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
  253. package/dist/esm/timeDifferenceCalc.js +1 -1
  254. package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
  255. package/dist/esm/urlFor.js +1 -1
  256. package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
  257. package/package.json +110 -110
  258. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
@@ -58,35 +58,35 @@ function parseSource(source) {
58
58
  if (typeof source === 'string' && isUrl(source)) {
59
59
  // Someone passed an existing image url?
60
60
  image = {
61
- asset: { _ref: urlToId(source) },
61
+ asset: { _ref: urlToId(source) }
62
62
  };
63
63
  }
64
64
  else if (typeof source === 'string') {
65
65
  // Just an asset id
66
66
  image = {
67
- asset: { _ref: source },
67
+ asset: { _ref: source }
68
68
  };
69
69
  }
70
70
  else if (isRef(source)) {
71
71
  // We just got passed an asset directly
72
72
  image = {
73
- asset: source,
73
+ asset: source
74
74
  };
75
75
  }
76
76
  else if (isAsset(source)) {
77
77
  // If we were passed an image asset document
78
78
  image = {
79
79
  asset: {
80
- _ref: source._id || '',
81
- },
80
+ _ref: source._id || ''
81
+ }
82
82
  };
83
83
  }
84
84
  else if (isAssetStub(source)) {
85
85
  // If we were passed a partial asset (`url`, but no `_id`)
86
86
  image = {
87
87
  asset: {
88
- _ref: urlToId(source.asset.url),
89
- },
88
+ _ref: urlToId(source.asset.url)
89
+ }
90
90
  };
91
91
  }
92
92
  else if (typeof source.asset === 'object') {
@@ -127,7 +127,7 @@ function applyDefaults(image) {
127
127
  left: 0,
128
128
  top: 0,
129
129
  bottom: 0,
130
- right: 0,
130
+ right: 0
131
131
  };
132
132
  }
133
133
  if (!result.hotspot) {
@@ -135,7 +135,7 @@ function applyDefaults(image) {
135
135
  x: 0.5,
136
136
  y: 0.5,
137
137
  height: 1.0,
138
- width: 1.0,
138
+ width: 1.0
139
139
  };
140
140
  }
141
141
  return result;
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr'],
185
+ ['dpr', 'dpr']
186
186
  ];
187
187
  function urlForImage(options) {
188
188
  var spec = __assign({}, (options || {}));
@@ -201,7 +201,7 @@ function urlForImage(options) {
201
201
  left: cropLeft,
202
202
  top: cropTop,
203
203
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
204
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
204
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
205
205
  };
206
206
  // Compute hot spot rect in terms of pixel coordinates
207
207
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -212,7 +212,7 @@ function urlForImage(options) {
212
212
  left: hotSpotCenterX - hotSpotHorizontalRadius,
213
213
  top: hotSpotCenterY - hotSpotVerticalRadius,
214
214
  right: hotSpotCenterX + hotSpotHorizontalRadius,
215
- bottom: hotSpotCenterY + hotSpotVerticalRadius,
215
+ bottom: hotSpotCenterY + hotSpotVerticalRadius
216
216
  };
217
217
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
218
218
  // the crop/hotspot.
@@ -294,7 +294,7 @@ function fit(source, spec) {
294
294
  left: Math.round(left),
295
295
  top: Math.round(top_2),
296
296
  width: Math.round(width),
297
- height: Math.round(height),
297
+ height: Math.round(height)
298
298
  };
299
299
  }
300
300
  else {
@@ -316,13 +316,13 @@ function fit(source, spec) {
316
316
  left: Math.max(0, Math.floor(left)),
317
317
  top: Math.max(0, Math.floor(top_3)),
318
318
  width: Math.round(width),
319
- height: Math.round(height),
319
+ height: Math.round(height)
320
320
  };
321
321
  }
322
322
  return {
323
323
  width: imgWidth,
324
324
  height: imgHeight,
325
- rect: cropRect,
325
+ rect: cropRect
326
326
  };
327
327
  }
328
328
 
@@ -375,12 +375,11 @@ function urlBuilder(options) {
375
375
  var client = options;
376
376
  if (isSanityClient(client)) {
377
377
  // Inherit config from client
378
- var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
379
- var apiHost = apiUrl || 'https://api.sanity.io';
378
+ var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
380
379
  return new ImageUrlBuilder(null, {
381
380
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
382
381
  projectId: projectId,
383
- dataset: dataset,
382
+ dataset: dataset
384
383
  });
385
384
  }
386
385
  // Or just accept the options as given
@@ -393,7 +392,7 @@ var ImageUrlBuilder = /** @class */ (function () {
393
392
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
394
393
  }
395
394
  ImageUrlBuilder.prototype.withOptions = function (options) {
396
- var baseUrl = options.baseUrl || this.options.baseUrl;
395
+ var baseUrl = options.baseUrl || '';
397
396
  var newOptions = { baseUrl: baseUrl };
398
397
  for (var key in options) {
399
398
  if (options.hasOwnProperty(key)) {
@@ -521,7 +520,7 @@ var ImageUrlBuilder = /** @class */ (function () {
521
520
  ImageUrlBuilder.prototype.url = function () {
522
521
  return urlForImage_1$1.default(this.options);
523
522
  };
524
- // Alias for url()
523
+ // Synonym for url()
525
524
  ImageUrlBuilder.prototype.toString = function () {
526
525
  return this.url();
527
526
  };
@@ -0,0 +1,85 @@
1
+ import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
+
3
+ function _extends() {
4
+ _extends = Object.assign || function (target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+
8
+ for (var key in source) {
9
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
10
+ target[key] = source[key];
11
+ }
12
+ }
13
+ }
14
+
15
+ return target;
16
+ };
17
+
18
+ return _extends.apply(this, arguments);
19
+ }
20
+
21
+ function _objectWithoutPropertiesLoose(source, excluded) {
22
+ if (source == null) return {};
23
+ var target = {};
24
+ var sourceKeys = Object.keys(source);
25
+ var key, i;
26
+
27
+ for (i = 0; i < sourceKeys.length; i++) {
28
+ key = sourceKeys[i];
29
+ if (excluded.indexOf(key) >= 0) continue;
30
+ target[key] = source[key];
31
+ }
32
+
33
+ return target;
34
+ }
35
+
36
+ var classnames = createCommonjsModule(function (module) {
37
+ /*!
38
+ Copyright (c) 2017 Jed Watson.
39
+ Licensed under the MIT License (MIT), see
40
+ http://jedwatson.github.io/classnames
41
+ */
42
+ /* global define */
43
+
44
+ (function () {
45
+
46
+ var hasOwn = {}.hasOwnProperty;
47
+
48
+ function classNames () {
49
+ var classes = [];
50
+
51
+ for (var i = 0; i < arguments.length; i++) {
52
+ var arg = arguments[i];
53
+ if (!arg) continue;
54
+
55
+ var argType = typeof arg;
56
+
57
+ if (argType === 'string' || argType === 'number') {
58
+ classes.push(arg);
59
+ } else if (Array.isArray(arg) && arg.length) {
60
+ var inner = classNames.apply(null, arg);
61
+ if (inner) {
62
+ classes.push(inner);
63
+ }
64
+ } else if (argType === 'object') {
65
+ for (var key in arg) {
66
+ if (hasOwn.call(arg, key) && arg[key]) {
67
+ classes.push(key);
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ return classes.join(' ');
74
+ }
75
+
76
+ if ( module.exports) {
77
+ classNames.default = classNames;
78
+ module.exports = classNames;
79
+ } else {
80
+ window.classNames = classNames;
81
+ }
82
+ }());
83
+ });
84
+
85
+ export { _objectWithoutPropertiesLoose as _, _extends as a, classnames as c };
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace } from './_commonjsHelpers-0c4b6f40.js';
2
- import { m as moment } from './moment-b6f49411.js';
2
+ import { m as moment } from './moment-e2f9b20c.js';
3
3
 
4
4
  var momentTimezone = createCommonjsModule(function (module) {
5
5
  //! moment-timezone.js
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import React__default, { Component } from 'react';
2
2
 
3
3
  /*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -263,9 +263,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
263
263
  _this.dragging = false;
264
264
  if (_this.state.pullToRefreshThresholdBreached) {
265
265
  _this.props.refreshFunction && _this.props.refreshFunction();
266
- _this.setState({
267
- pullToRefreshThresholdBreached: false,
268
- });
269
266
  }
270
267
  requestAnimationFrame(function () {
271
268
  // this._infScroll
@@ -291,9 +288,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
291
288
  // prevents multiple triggers.
292
289
  if (_this.actionTriggered)
293
290
  return;
294
- var atBottom = _this.props.inverse
295
- ? _this.isElementAtTop(target, _this.props.scrollThreshold)
296
- : _this.isElementAtBottom(target, _this.props.scrollThreshold);
291
+ var atBottom = _this.isElementAtBottom(target, _this.props.scrollThreshold);
297
292
  // call the `next` function in the props to trigger the next data fetch
298
293
  if (atBottom && _this.props.hasMore) {
299
294
  _this.actionTriggered = true;
@@ -366,30 +361,17 @@ var InfiniteScroll = /** @class */ (function (_super) {
366
361
  }
367
362
  };
368
363
  InfiniteScroll.prototype.UNSAFE_componentWillReceiveProps = function (props) {
369
- // do nothing when dataLength is unchanged
370
- if (this.props.dataLength === props.dataLength)
364
+ // do nothing when dataLength and key are unchanged
365
+ if (this.props.key === props.key &&
366
+ this.props.dataLength === props.dataLength)
371
367
  return;
372
368
  this.actionTriggered = false;
373
369
  // update state when new data was sent in
374
370
  this.setState({
375
371
  showLoader: false,
372
+ pullToRefreshThresholdBreached: false,
376
373
  });
377
374
  };
378
- InfiniteScroll.prototype.isElementAtTop = function (target, scrollThreshold) {
379
- if (scrollThreshold === void 0) { scrollThreshold = 0.8; }
380
- var clientHeight = target === document.body || target === document.documentElement
381
- ? window.screen.availHeight
382
- : target.clientHeight;
383
- var threshold = parseThreshold(scrollThreshold);
384
- if (threshold.unit === ThresholdUnits.Pixel) {
385
- return (target.scrollTop <=
386
- threshold.value + clientHeight - target.scrollHeight + 1 ||
387
- target.scrollTop === 0);
388
- }
389
- return (target.scrollTop <=
390
- threshold.value / 100 + clientHeight - target.scrollHeight + 1 ||
391
- target.scrollTop === 0);
392
- };
393
375
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
394
376
  if (scrollThreshold === void 0) { scrollThreshold = 0.8; }
395
377
  var clientHeight = target === document.body || target === document.documentElement
@@ -414,10 +396,10 @@ var InfiniteScroll = /** @class */ (function (_super) {
414
396
  var outerDivStyle = this.props.pullDownToRefresh && this.props.height
415
397
  ? { overflow: 'auto' }
416
398
  : {};
417
- return (React.createElement("div", { style: outerDivStyle, className: "infinite-scroll-component__outerdiv" },
418
- React.createElement("div", { className: "infinite-scroll-component " + (this.props.className || ''), ref: function (infScroll) { return (_this._infScroll = infScroll); }, style: style },
419
- this.props.pullDownToRefresh && (React.createElement("div", { style: { position: 'relative' }, ref: function (pullDown) { return (_this._pullDown = pullDown); } },
420
- React.createElement("div", { style: {
399
+ return (React__default.createElement("div", { style: outerDivStyle, className: "infinite-scroll-component__outerdiv" },
400
+ React__default.createElement("div", { className: "infinite-scroll-component " + (this.props.className || ''), ref: function (infScroll) { return (_this._infScroll = infScroll); }, style: style },
401
+ this.props.pullDownToRefresh && (React__default.createElement("div", { style: { position: 'relative' }, ref: function (pullDown) { return (_this._pullDown = pullDown); } },
402
+ React__default.createElement("div", { style: {
421
403
  position: 'absolute',
422
404
  left: 0,
423
405
  right: 0,
@@ -1,16 +1,25 @@
1
1
  import { G as GenIcon } from './iconBase-602d52fe.js';
2
2
 
3
3
  // THIS FILE IS AUTO GENERATED
4
- function IoIosArrowDropupCircle (props) {
4
+ var IoIosArrowDropupCircle = function (props) {
5
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) {
6
+ };
7
+ IoIosArrowDropupCircle.displayName = "IoIosArrowDropupCircle";
8
+ var IoIosArrowForward = function (props) {
7
9
  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 IoIosOpen (props) {
10
+ };
11
+ IoIosArrowForward.displayName = "IoIosArrowForward";
12
+ var IoIosOpen = function (props) {
9
13
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M227.8 300.2c-5.1-5.1-5.1-13.3 0-18.4l133.7-133.7c-5.3-2.6-11.2-4.1-17.5-4.1H88c-22 0-40 18-40 40v224c0 22 18 40 40 40h256c22 0 40-18 40-40V184c0-6.3-1.5-12.2-4.1-17.5L246.2 300.2c-5.1 5.1-13.3 5.1-18.4 0z"}},{"tag":"path","attr":{"d":"M459.5 68.5C457 66 453 64 449 64h-97c-7.2-.1-13.1 5.7-13.1 12.9-.1 7.2 5.7 13.1 12.9 13.1l67.3.5-57.6 57.6c8 3.9 14.5 10.4 18.4 18.4l57.6-57.6.5 67.3c.1 7.2 5.9 13 13.1 12.9 7.2-.1 13-5.9 12.9-13.1V78c0-3.5-2-7-4.5-9.5z"}}]})(props);
10
- }function IoMdArrowDropdown (props) {
14
+ };
15
+ IoIosOpen.displayName = "IoIosOpen";
16
+ var IoMdArrowDropdown = function (props) {
11
17
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M128 192l128 128 128-128z"}}]})(props);
12
- }function IoMdLogIn (props) {
18
+ };
19
+ IoMdArrowDropdown.displayName = "IoMdArrowDropdown";
20
+ var IoMdLogIn = function (props) {
13
21
  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);
14
- }
22
+ };
23
+ IoMdLogIn.displayName = "IoMdLogIn";
15
24
 
16
25
  export { IoIosArrowForward as I, IoMdArrowDropdown as a, IoMdLogIn as b, IoIosOpen as c, IoIosArrowDropupCircle as d };
@@ -1,14 +1,21 @@
1
1
  import { G as GenIcon } from './iconBase-602d52fe.js';
2
2
 
3
3
  // THIS FILE IS AUTO GENERATED
4
- function FaLongArrowAltRight (props) {
4
+ var FaLongArrowAltRight = function (props) {
5
5
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"}}]})(props);
6
- }function FaMinus (props) {
6
+ };
7
+ FaLongArrowAltRight.displayName = "FaLongArrowAltRight";
8
+ var FaMinus = function (props) {
7
9
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(props);
8
- }function FaPlus (props) {
10
+ };
11
+ FaMinus.displayName = "FaMinus";
12
+ var FaPlus = function (props) {
9
13
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(props);
10
- }function FaRegWindowClose (props) {
14
+ };
15
+ FaPlus.displayName = "FaPlus";
16
+ var FaRegWindowClose = function (props) {
11
17
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"}}]})(props);
12
- }
18
+ };
19
+ FaRegWindowClose.displayName = "FaRegWindowClose";
13
20
 
14
21
  export { FaRegWindowClose as F, FaLongArrowAltRight as a, FaMinus as b, FaPlus as c };
@@ -1,10 +1,13 @@
1
1
  import { G as GenIcon } from './iconBase-602d52fe.js';
2
2
 
3
3
  // THIS FILE IS AUTO GENERATED
4
- function MdEmail (props) {
4
+ var MdEmail = function (props) {
5
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) {
6
+ };
7
+ MdEmail.displayName = "MdEmail";
8
+ var MdPictureAsPdf = function (props) {
7
9
  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
- }
10
+ };
11
+ MdPictureAsPdf.displayName = "MdPictureAsPdf";
9
12
 
10
13
  export { MdEmail as M, MdPictureAsPdf as a };
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { r as reactSocialIcons_1 } from './react-social-icons-3822f1ce.js';
1
+ import React__default from 'react';
2
+ import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
3
3
  import { G as GenIcon } from './iconBase-602d52fe.js';
4
4
 
5
5
  var year = new Date().getFullYear();
@@ -8,26 +8,26 @@ var SocialNavFooter = function SocialNavFooter(props) {
8
8
  var website = props.website,
9
9
  showLogo = props.showLogo;
10
10
 
11
- return React.createElement(
11
+ return React__default.createElement(
12
12
  'div',
13
13
  { className: 'nav-footer' },
14
- website && website.footerLinks && website.footerLinks.length && React.createElement(
14
+ website && website.footerLinks && website.footerLinks.length && React__default.createElement(
15
15
  'ul',
16
16
  null,
17
17
  website && website.footerLinks.map(function (content, index) {
18
18
  if (content.url && content.title) {
19
- return content.blank ? React.createElement(
19
+ return content.blank ? React__default.createElement(
20
20
  'li',
21
21
  { key: index },
22
- React.createElement(
22
+ React__default.createElement(
23
23
  'a',
24
24
  { target: '_blank', rel: 'noopener noreferrer', href: content.url, className: 'nav-link' },
25
25
  content.title
26
26
  )
27
- ) : React.createElement(
27
+ ) : React__default.createElement(
28
28
  'li',
29
29
  { key: index },
30
- React.createElement(
30
+ React__default.createElement(
31
31
  'a',
32
32
  { href: content.url, className: 'nav-link' },
33
33
  content.title
@@ -36,14 +36,14 @@ var SocialNavFooter = function SocialNavFooter(props) {
36
36
  } else return null;
37
37
  })
38
38
  ),
39
- React.createElement(
39
+ React__default.createElement(
40
40
  'ul',
41
41
  null,
42
- React.createElement(
42
+ React__default.createElement(
43
43
  'li',
44
44
  { style: { marginTop: '10px' }, key: website.footerLinks ? website.footerLinks.length + 1 : 1 },
45
45
  website.socialLinks && website.socialLinks.map(function (row, index) {
46
- return React.createElement(reactSocialIcons_1, {
46
+ return React__default.createElement(reactSocialIcons_1, {
47
47
  target: row.blank ? '_blank' : '_self',
48
48
  rel: 'noopener noreferrer',
49
49
  key: index,
@@ -55,13 +55,13 @@ var SocialNavFooter = function SocialNavFooter(props) {
55
55
  });
56
56
  })
57
57
  ),
58
- showLogo && React.createElement(
58
+ showLogo && React__default.createElement(
59
59
  'li',
60
60
  null,
61
- React.createElement(
61
+ React__default.createElement(
62
62
  'a',
63
63
  { href: 'https://www.mjhlifesciences.com' },
64
- React.createElement('img', {
64
+ React__default.createElement('img', {
65
65
  style: { maxWidth: '100%', height: '50px', margin: ' 10px 0', objectFit: 'contain' },
66
66
  alt: 'MJHLS Brand Logo',
67
67
  src: 'https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png'
@@ -69,7 +69,7 @@ var SocialNavFooter = function SocialNavFooter(props) {
69
69
  )
70
70
  )
71
71
  ),
72
- website && website.name && React.createElement(
72
+ website && website.name && React__default.createElement(
73
73
  'p',
74
74
  { className: 'nav-link' },
75
75
  '\xA9 ',
@@ -82,8 +82,9 @@ var SocialNavFooter = function SocialNavFooter(props) {
82
82
  };
83
83
 
84
84
  // THIS FILE IS AUTO GENERATED
85
- function GoSearch (props) {
85
+ var GoSearch = function (props) {
86
86
  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);
87
- }
87
+ };
88
+ GoSearch.displayName = "GoSearch";
88
89
 
89
90
  export { GoSearch as G, SocialNavFooter as S };