@mjhls/mjh-framework 1.0.861-beta.0 → 1.0.861

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 +10 -9
  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 +9 -8
  8. package/dist/cjs/ADGutter.js +13 -13
  9. package/dist/cjs/{ADInfeed-98c71bcd.js → ADInfeed-ff26342c.js} +11 -9
  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-9de32585.js → ADlgInfeed-ad4953d4.js} +7 -6
  15. package/dist/cjs/AccordionPanel.js +24 -22
  16. package/dist/cjs/AdSlot.js +15 -15
  17. package/dist/cjs/AdSlotsProvider.js +11 -903
  18. package/dist/cjs/AlgoliaSearch.js +49 -14012
  19. package/dist/cjs/AlphabeticList.js +17 -16
  20. package/dist/cjs/ArticleCarousel.js +12 -11
  21. package/dist/cjs/ArticleProgramLandingPage.js +25 -24
  22. package/dist/cjs/ArticleSeriesLandingPage.js +21 -21
  23. package/dist/cjs/ArticleSeriesListing.js +41 -41
  24. package/dist/cjs/Auth.js +237 -1197
  25. package/dist/cjs/AuthWrapper.js +26 -561
  26. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
  27. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
  28. package/dist/cjs/Breadcrumbs.js +23 -21
  29. package/dist/cjs/CMEDeck.js +64 -65
  30. package/dist/cjs/Column1.js +14 -11
  31. package/dist/cjs/Column2.js +22 -19
  32. package/dist/cjs/Column3.js +36 -34
  33. package/dist/cjs/ConferenceArticleCard.js +33 -32
  34. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  35. package/dist/cjs/DeckContent.js +85 -82
  36. package/dist/cjs/DeckQueue.js +73 -70
  37. package/dist/cjs/{Dfp-26baccf1.js → Dfp-0bf098b5.js} +23 -23
  38. package/dist/cjs/EventsDeck.js +141 -134
  39. package/dist/cjs/ExternalResources.js +49 -48
  40. package/dist/cjs/Feature.js +25 -23
  41. package/dist/cjs/ForbesHero.js +35 -34
  42. package/dist/cjs/GridContent.js +209 -205
  43. package/dist/cjs/GridHero.js +36 -35
  44. package/dist/cjs/GroupDeck.js +49 -48
  45. package/dist/cjs/HamMagazine.js +130 -125
  46. package/dist/cjs/Header.js +14 -12
  47. package/dist/cjs/Hero.js +10 -9
  48. package/dist/cjs/HighlightenVideo.js +17 -16
  49. package/dist/cjs/HorizontalArticleListing.js +39 -38
  50. package/dist/cjs/HorizontalHero.js +24 -23
  51. package/dist/cjs/IssueContentDeck.js +70 -65
  52. package/dist/cjs/IssueDeck.js +66 -61
  53. package/dist/cjs/IssueLanding.js +60 -59
  54. package/dist/cjs/KMTracker.js +15 -15
  55. package/dist/cjs/LeftNav.js +23 -22
  56. package/dist/cjs/MasterDeck.js +59 -59
  57. package/dist/cjs/MediaSeriesLanding.js +801 -909
  58. package/dist/cjs/NavDvm.js +68 -63
  59. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  60. package/dist/cjs/NavMagazine.js +131 -126
  61. package/dist/cjs/NavNative.js +125 -117
  62. package/dist/cjs/OncliveHero.js +17 -17
  63. package/dist/cjs/OncliveLargeHero.js +64 -63
  64. package/dist/cjs/PageFilter.js +9 -8
  65. package/dist/cjs/PartnerDetailListing.js +288 -188
  66. package/dist/cjs/PdfDownload.js +9 -8
  67. package/dist/cjs/PopUpModal.js +15 -13
  68. package/dist/cjs/PubSection.js +21 -21
  69. package/dist/cjs/PubToc.js +8 -7
  70. package/dist/cjs/PublicationDeck.js +64 -59
  71. package/dist/cjs/PublicationLanding.js +114 -110
  72. package/dist/cjs/QueueDeckExpanded.js +286 -287
  73. package/dist/cjs/RecentNews.js +20 -19
  74. package/dist/cjs/RelatedContent.js +51 -50
  75. package/dist/cjs/RelatedTopicsDropdown.js +32 -29
  76. package/dist/cjs/RolesDeck.js +32 -27
  77. package/dist/cjs/Search.js +16 -12
  78. package/dist/cjs/SeriesListingDeck.js +26 -27
  79. package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-60fa1342.js} +38 -37
  80. package/dist/cjs/SideFooter.js +26 -25
  81. package/dist/cjs/SocialIcons.js +10 -9
  82. package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-19548e2a.js} +38 -34
  83. package/dist/cjs/SocialShare.js +31 -29
  84. package/dist/cjs/TaxonomyCard.js +60 -55
  85. package/dist/cjs/TaxonomyDescription.js +24 -23
  86. package/dist/cjs/TemplateNormal.js +36 -36
  87. package/dist/cjs/ThumbnailCard.js +19 -17
  88. package/dist/cjs/Ustream.js +22 -21
  89. package/dist/cjs/VerticalHero.js +16 -15
  90. package/dist/cjs/VideoProgramLandingPage.js +45 -41
  91. package/dist/cjs/VideoSeriesCard.js +24 -23
  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 +206 -202
  96. package/dist/cjs/YahooHero.js +31 -30
  97. package/dist/cjs/YoutubeGroup.js +55 -54
  98. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
  99. package/dist/cjs/{extends-0a918631.js → extends-60837c34.js} +0 -1
  100. package/dist/cjs/faundadb.js +1 -1
  101. package/dist/cjs/getRelatedArticle.js +67 -131
  102. package/dist/cjs/getSerializers.js +13 -13
  103. package/dist/cjs/{getTargeting-f1821260.js → getTargeting-3e45e4d4.js} +11 -11
  104. package/dist/cjs/getTargeting.js +2 -2
  105. package/dist/cjs/iconBase-68959171.js +0 -3
  106. package/dist/cjs/{index-98e01cb9.js → index-44481153.js} +494 -47
  107. package/dist/cjs/{index-edb47fba.js → index-87d0db67.js} +954 -1182
  108. package/dist/cjs/{index-3294d3bc.js → index-99edf08a.js} +1 -1
  109. package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
  110. package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
  111. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  112. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  113. package/dist/cjs/{index.esm-4d410430.js → index.esm-3ffa049c.js} +20 -20
  114. package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
  115. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  116. package/dist/cjs/index.js +65 -61
  117. package/dist/cjs/{inherits-452ff02c.js → inherits-87492b40.js} +1 -4
  118. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  119. package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
  120. package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
  121. package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
  122. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
  123. package/dist/cjs/timeDifferenceCalc.js +1 -1
  124. package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
  125. package/dist/cjs/urlFor.js +3 -3
  126. package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
  127. package/dist/esm/AD.js +7 -7
  128. package/dist/esm/AD300x250.js +8 -9
  129. package/dist/esm/AD300x250x600.js +8 -9
  130. package/dist/esm/AD728x90.js +9 -10
  131. package/dist/esm/ADFloatingFooter.js +10 -11
  132. package/dist/esm/ADFooter.js +6 -6
  133. package/dist/esm/ADGutter.js +10 -11
  134. package/dist/esm/{ADInfeed-1cc9d817.js → ADInfeed-422ad6e6.js} +7 -7
  135. package/dist/esm/ADSkyscraper.js +10 -11
  136. package/dist/esm/ADSponsoredResources.js +10 -11
  137. package/dist/esm/ADWebcast.js +10 -11
  138. package/dist/esm/ADWelcome.js +14 -15
  139. package/dist/esm/{ADlgInfeed-8c4f129e.js → ADlgInfeed-f7468db8.js} +4 -4
  140. package/dist/esm/AccordionPanel.js +17 -17
  141. package/dist/esm/AdSlot.js +6 -7
  142. package/dist/esm/AdSlotsProvider.js +10 -903
  143. package/dist/esm/AlgoliaSearch.js +41 -14005
  144. package/dist/esm/AlphabeticList.js +14 -14
  145. package/dist/esm/ArticleCarousel.js +9 -9
  146. package/dist/esm/ArticleProgramLandingPage.js +22 -22
  147. package/dist/esm/ArticleSeriesLandingPage.js +18 -19
  148. package/dist/esm/ArticleSeriesListing.js +37 -38
  149. package/dist/esm/Auth.js +217 -1181
  150. package/dist/esm/AuthWrapper.js +24 -561
  151. package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-8ffd4679.js} +10 -10
  152. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
  153. package/dist/esm/Breadcrumbs.js +11 -11
  154. package/dist/esm/CMEDeck.js +61 -62
  155. package/dist/esm/Column1.js +9 -9
  156. package/dist/esm/Column2.js +17 -17
  157. package/dist/esm/Column3.js +31 -32
  158. package/dist/esm/ConferenceArticleCard.js +30 -30
  159. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  160. package/dist/esm/DeckContent.js +77 -78
  161. package/dist/esm/DeckQueue.js +65 -66
  162. package/dist/esm/{Dfp-b7236041.js → Dfp-85c9513e.js} +10 -11
  163. package/dist/esm/EventsDeck.js +110 -110
  164. package/dist/esm/ExternalResources.js +43 -43
  165. package/dist/esm/Feature.js +17 -17
  166. package/dist/esm/ForbesHero.js +28 -28
  167. package/dist/esm/GridContent.js +173 -174
  168. package/dist/esm/GridHero.js +29 -29
  169. package/dist/esm/GroupDeck.js +36 -36
  170. package/dist/esm/HamMagazine.js +100 -100
  171. package/dist/esm/Header.js +8 -8
  172. package/dist/esm/Hero.js +7 -7
  173. package/dist/esm/HighlightenVideo.js +14 -14
  174. package/dist/esm/HorizontalArticleListing.js +36 -36
  175. package/dist/esm/HorizontalHero.js +21 -21
  176. package/dist/esm/IssueContentDeck.js +53 -53
  177. package/dist/esm/IssueDeck.js +55 -55
  178. package/dist/esm/IssueLanding.js +57 -57
  179. package/dist/esm/KMTracker.js +15 -15
  180. package/dist/esm/LeftNav.js +17 -18
  181. package/dist/esm/MasterDeck.js +55 -56
  182. package/dist/esm/MediaSeriesLanding.js +561 -672
  183. package/dist/esm/NavDvm.js +46 -46
  184. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  185. package/dist/esm/NavMagazine.js +103 -103
  186. package/dist/esm/NavNative.js +92 -92
  187. package/dist/esm/OncliveHero.js +14 -15
  188. package/dist/esm/OncliveLargeHero.js +52 -52
  189. package/dist/esm/PageFilter.js +6 -6
  190. package/dist/esm/PartnerDetailListing.js +178 -79
  191. package/dist/esm/PdfDownload.js +6 -6
  192. package/dist/esm/PopUpModal.js +8 -8
  193. package/dist/esm/PubSection.js +18 -19
  194. package/dist/esm/PubToc.js +5 -5
  195. package/dist/esm/PublicationDeck.js +51 -51
  196. package/dist/esm/PublicationLanding.js +96 -96
  197. package/dist/esm/QueueDeckExpanded.js +252 -253
  198. package/dist/esm/RecentNews.js +17 -17
  199. package/dist/esm/RelatedContent.js +45 -45
  200. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  201. package/dist/esm/RolesDeck.js +25 -25
  202. package/dist/esm/Search.js +7 -7
  203. package/dist/esm/SeriesListingDeck.js +21 -22
  204. package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-05ecb544.js} +28 -28
  205. package/dist/esm/SideFooter.js +21 -21
  206. package/dist/esm/SocialIcons.js +7 -7
  207. package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-47815365.js} +28 -28
  208. package/dist/esm/SocialShare.js +25 -25
  209. package/dist/esm/TaxonomyCard.js +51 -51
  210. package/dist/esm/TaxonomyDescription.js +18 -18
  211. package/dist/esm/TemplateNormal.js +32 -33
  212. package/dist/esm/ThumbnailCard.js +10 -10
  213. package/dist/esm/Ustream.js +18 -18
  214. package/dist/esm/VerticalHero.js +13 -13
  215. package/dist/esm/VideoProgramLandingPage.js +34 -34
  216. package/dist/esm/VideoSeriesCard.js +18 -18
  217. package/dist/esm/VideoSeriesFilter.js +6 -6
  218. package/dist/esm/VideoSeriesLandingPage.js +18 -19
  219. package/dist/esm/VideoSeriesListing.js +54 -55
  220. package/dist/esm/View.js +185 -185
  221. package/dist/esm/YahooHero.js +25 -25
  222. package/dist/esm/YoutubeGroup.js +39 -39
  223. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
  224. package/dist/esm/{extends-6f2fcc99.js → extends-eb69e8ac.js} +1 -1
  225. package/dist/esm/faundadb.js +1 -1
  226. package/dist/esm/getRelatedArticle.js +62 -126
  227. package/dist/esm/getSerializers.js +13 -13
  228. package/dist/esm/{getTargeting-bd800589.js → getTargeting-9cb7e014.js} +10 -10
  229. package/dist/esm/getTargeting.js +2 -2
  230. package/dist/esm/{index-41a678ea.js → index-1819118a.js} +487 -41
  231. package/dist/esm/{index-3dcc1323.js → index-20e503c9.js} +900 -1139
  232. package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
  233. package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
  234. package/dist/esm/{index-ef6d5dcf.js → index-fa2ffe86.js} +1 -1
  235. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  236. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  237. package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.js} +17 -18
  238. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  239. package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
  240. package/dist/esm/index.js +54 -53
  241. package/dist/esm/{inherits-cf8dde54.js → inherits-0d8cda6e.js} +2 -2
  242. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  243. package/dist/esm/{main-e4a934b2.js → main-747e7d25.js} +87 -52
  244. package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
  245. package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
  246. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
  247. package/dist/esm/timeDifferenceCalc.js +1 -1
  248. package/dist/esm/{typeof-6435ba1c.js → typeof-af9c50d8.js} +1 -1
  249. package/dist/esm/urlFor.js +1 -1
  250. package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
  251. package/package.json +110 -110
  252. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
  253. package/dist/cjs/events-1b438fe7.js +0 -469
  254. package/dist/cjs/index-e2e62963.js +0 -89
  255. package/dist/cjs/inherits-8d29278d.js +0 -110
  256. package/dist/esm/events-6c3a7a63.js +0 -467
  257. package/dist/esm/index-aaa2dae0.js +0 -85
  258. package/dist/esm/inherits-77d5e4fc.js +0 -101
@@ -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,11 +375,12 @@ function urlBuilder(options) {
375
375
  var client = options;
376
376
  if (isSanityClient(client)) {
377
377
  // Inherit config from client
378
- var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
378
+ var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
379
+ var apiHost = apiUrl || 'https://api.sanity.io';
379
380
  return new ImageUrlBuilder(null, {
380
381
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
381
382
  projectId: projectId,
382
- dataset: dataset
383
+ dataset: dataset,
383
384
  });
384
385
  }
385
386
  // Or just accept the options as given
@@ -392,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
392
393
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
393
394
  }
394
395
  ImageUrlBuilder.prototype.withOptions = function (options) {
395
- var baseUrl = options.baseUrl || '';
396
+ var baseUrl = options.baseUrl || this.options.baseUrl;
396
397
  var newOptions = { baseUrl: baseUrl };
397
398
  for (var key in options) {
398
399
  if (options.hasOwnProperty(key)) {
@@ -520,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
520
521
  ImageUrlBuilder.prototype.url = function () {
521
522
  return urlForImage_1$1.default(this.options);
522
523
  };
523
- // Synonym for url()
524
+ // Alias for url()
524
525
  ImageUrlBuilder.prototype.toString = function () {
525
526
  return this.url();
526
527
  };
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import React__default from 'react';
2
+ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import ReactDOM from 'react-dom';
5
5
 
@@ -179,7 +179,7 @@ var _createClass = function () { function defineProperties(target, props) { for
179
179
 
180
180
 
181
181
 
182
- var _react2 = _interopRequireDefault(React__default);
182
+ var _react2 = _interopRequireDefault(React);
183
183
 
184
184
 
185
185
 
@@ -530,7 +530,7 @@ var LazyLoad = function (_Component) {
530
530
  }]);
531
531
 
532
532
  return LazyLoad;
533
- }(React__default.Component);
533
+ }(React.Component);
534
534
 
535
535
  LazyLoad.propTypes = {
536
536
  once: _propTypes2.default.bool,
@@ -587,7 +587,7 @@ var decorator = function decorator() {
587
587
  }]);
588
588
 
589
589
  return LazyLoadDecorated;
590
- }(React__default.Component);
590
+ }(React.Component);
591
591
  };
592
592
  };
593
593
 
@@ -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-e2f9b20c.js';
2
+ import { m as moment } from './moment-b6f49411.js';
3
3
 
4
4
  var momentTimezone = createCommonjsModule(function (module) {
5
5
  //! moment-timezone.js
@@ -1,4 +1,4 @@
1
- import React__default, { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
 
3
3
  /*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -263,6 +263,9 @@ 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
+ });
266
269
  }
267
270
  requestAnimationFrame(function () {
268
271
  // this._infScroll
@@ -288,7 +291,9 @@ var InfiniteScroll = /** @class */ (function (_super) {
288
291
  // prevents multiple triggers.
289
292
  if (_this.actionTriggered)
290
293
  return;
291
- var atBottom = _this.isElementAtBottom(target, _this.props.scrollThreshold);
294
+ var atBottom = _this.props.inverse
295
+ ? _this.isElementAtTop(target, _this.props.scrollThreshold)
296
+ : _this.isElementAtBottom(target, _this.props.scrollThreshold);
292
297
  // call the `next` function in the props to trigger the next data fetch
293
298
  if (atBottom && _this.props.hasMore) {
294
299
  _this.actionTriggered = true;
@@ -361,17 +366,30 @@ var InfiniteScroll = /** @class */ (function (_super) {
361
366
  }
362
367
  };
363
368
  InfiniteScroll.prototype.UNSAFE_componentWillReceiveProps = function (props) {
364
- // do nothing when dataLength and key are unchanged
365
- if (this.props.key === props.key &&
366
- this.props.dataLength === props.dataLength)
369
+ // do nothing when dataLength is unchanged
370
+ if (this.props.dataLength === props.dataLength)
367
371
  return;
368
372
  this.actionTriggered = false;
369
373
  // update state when new data was sent in
370
374
  this.setState({
371
375
  showLoader: false,
372
- pullToRefreshThresholdBreached: false,
373
376
  });
374
377
  };
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
+ };
375
393
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
376
394
  if (scrollThreshold === void 0) { scrollThreshold = 0.8; }
377
395
  var clientHeight = target === document.body || target === document.documentElement
@@ -396,10 +414,10 @@ var InfiniteScroll = /** @class */ (function (_super) {
396
414
  var outerDivStyle = this.props.pullDownToRefresh && this.props.height
397
415
  ? { overflow: 'auto' }
398
416
  : {};
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: {
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: {
403
421
  position: 'absolute',
404
422
  left: 0,
405
423
  right: 0,
@@ -1,25 +1,16 @@
1
1
  import { G as GenIcon } from './iconBase-602d52fe.js';
2
2
 
3
3
  // THIS FILE IS AUTO GENERATED
4
- var IoIosArrowDropupCircle = function (props) {
4
+ function IoIosArrowDropupCircle (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
- };
7
- IoIosArrowDropupCircle.displayName = "IoIosArrowDropupCircle";
8
- var IoIosArrowForward = function (props) {
6
+ }function IoIosArrowForward (props) {
9
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);
10
- };
11
- IoIosArrowForward.displayName = "IoIosArrowForward";
12
- var IoIosOpen = function (props) {
8
+ }function IoIosOpen (props) {
13
9
  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);
14
- };
15
- IoIosOpen.displayName = "IoIosOpen";
16
- var IoMdArrowDropdown = function (props) {
10
+ }function IoMdArrowDropdown (props) {
17
11
  return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M128 192l128 128 128-128z"}}]})(props);
18
- };
19
- IoMdArrowDropdown.displayName = "IoMdArrowDropdown";
20
- var IoMdLogIn = function (props) {
12
+ }function IoMdLogIn (props) {
21
13
  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);
22
- };
23
- IoMdLogIn.displayName = "IoMdLogIn";
14
+ }
24
15
 
25
16
  export { IoIosArrowForward as I, IoMdArrowDropdown as a, IoMdLogIn as b, IoIosOpen as c, IoIosArrowDropupCircle as d };
@@ -1,5 +1,5 @@
1
- import React__default from 'react';
2
- import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
1
+ import React from 'react';
2
+ import { r as reactSocialIcons_1 } from './react-social-icons-3822f1ce.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__default.createElement(
11
+ return React.createElement(
12
12
  'div',
13
13
  { className: 'nav-footer' },
14
- website && website.footerLinks && website.footerLinks.length && React__default.createElement(
14
+ website && website.footerLinks && website.footerLinks.length && React.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__default.createElement(
19
+ return content.blank ? React.createElement(
20
20
  'li',
21
21
  { key: index },
22
- React__default.createElement(
22
+ React.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__default.createElement(
27
+ ) : React.createElement(
28
28
  'li',
29
29
  { key: index },
30
- React__default.createElement(
30
+ React.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__default.createElement(
39
+ React.createElement(
40
40
  'ul',
41
41
  null,
42
- React__default.createElement(
42
+ React.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__default.createElement(reactSocialIcons_1, {
46
+ return React.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__default.createElement(
58
+ showLogo && React.createElement(
59
59
  'li',
60
60
  null,
61
- React__default.createElement(
61
+ React.createElement(
62
62
  'a',
63
63
  { href: 'https://www.mjhlifesciences.com' },
64
- React__default.createElement('img', {
64
+ React.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__default.createElement(
72
+ website && website.name && React.createElement(
73
73
  'p',
74
74
  { className: 'nav-link' },
75
75
  '\xA9 ',
@@ -82,9 +82,8 @@ var SocialNavFooter = function SocialNavFooter(props) {
82
82
  };
83
83
 
84
84
  // THIS FILE IS AUTO GENERATED
85
- var GoSearch = function (props) {
85
+ function GoSearch (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
- };
88
- GoSearch.displayName = "GoSearch";
87
+ }
89
88
 
90
89
  export { GoSearch as G, SocialNavFooter as S };
@@ -1,21 +1,14 @@
1
1
  import { G as GenIcon } from './iconBase-602d52fe.js';
2
2
 
3
3
  // THIS FILE IS AUTO GENERATED
4
- var FaLongArrowAltRight = function (props) {
4
+ function FaLongArrowAltRight (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
- };
7
- FaLongArrowAltRight.displayName = "FaLongArrowAltRight";
8
- var FaMinus = function (props) {
6
+ }function FaMinus (props) {
9
7
  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);
10
- };
11
- FaMinus.displayName = "FaMinus";
12
- var FaPlus = function (props) {
8
+ }function FaPlus (props) {
13
9
  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);
14
- };
15
- FaPlus.displayName = "FaPlus";
16
- var FaRegWindowClose = function (props) {
10
+ }function FaRegWindowClose (props) {
17
11
  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);
18
- };
19
- FaRegWindowClose.displayName = "FaRegWindowClose";
12
+ }
20
13
 
21
14
  export { FaRegWindowClose as F, FaLongArrowAltRight as a, FaMinus as b, FaPlus as c };
@@ -1,13 +1,10 @@
1
1
  import { G as GenIcon } from './iconBase-602d52fe.js';
2
2
 
3
3
  // THIS FILE IS AUTO GENERATED
4
- var MdEmail = function (props) {
4
+ function MdEmail (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
- };
7
- MdEmail.displayName = "MdEmail";
8
- var MdPictureAsPdf = function (props) {
6
+ }function MdPictureAsPdf (props) {
9
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);
10
- };
11
- MdPictureAsPdf.displayName = "MdPictureAsPdf";
8
+ }
12
9
 
13
10
  export { MdEmail as M, MdPictureAsPdf as a };