@mjhls/mjh-framework 1.0.819 → 1.0.821-url-pagination-v1

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 (184) hide show
  1. package/README.md +170 -170
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +4 -3
  4. package/dist/cjs/AD300x250x600.js +4 -3
  5. package/dist/cjs/AD728x90.js +5 -4
  6. package/dist/cjs/ADFloatingFooter.js +3 -2
  7. package/dist/cjs/ADGutter.js +3 -2
  8. package/dist/cjs/ADSkyscraper.js +3 -2
  9. package/dist/cjs/ADSponsoredResources.js +3 -2
  10. package/dist/cjs/ADWebcast.js +3 -2
  11. package/dist/cjs/ADWelcome.js +3 -2
  12. package/dist/cjs/AdSlot.js +3 -2
  13. package/dist/cjs/AdSlotsProvider.js +29 -6
  14. package/dist/cjs/AlgoliaSearch.js +14091 -17
  15. package/dist/cjs/ArticleCarousel.js +2 -1
  16. package/dist/cjs/ArticleProgramLandingPage.js +8 -6
  17. package/dist/cjs/ArticleSeriesLandingPage.js +7 -6
  18. package/dist/cjs/ArticleSeriesListing.js +6 -4
  19. package/dist/cjs/Auth.js +41 -6
  20. package/dist/cjs/AuthWrapper.js +228 -189
  21. package/dist/cjs/CMEDeck.js +5 -4
  22. package/dist/cjs/Column3.js +5 -4
  23. package/dist/cjs/ConferenceArticleCard.js +21 -26
  24. package/dist/cjs/DeckContent.js +23 -28
  25. package/dist/cjs/DeckQueue.js +14 -20
  26. package/dist/cjs/{Dfp-82f75e49.js → Dfp-391fd124.js} +2 -1
  27. package/dist/cjs/EventsDeck.js +21 -21
  28. package/dist/cjs/ExternalResources.js +8 -6
  29. package/dist/cjs/Feature.js +7 -11
  30. package/dist/cjs/ForbesHero.js +13 -15
  31. package/dist/cjs/GridContent.js +37 -36
  32. package/dist/cjs/GridHero.js +11 -20
  33. package/dist/cjs/GroupDeck.js +4 -8
  34. package/dist/cjs/HamMagazine.js +15 -15
  35. package/dist/cjs/Hero.js +3 -14
  36. package/dist/cjs/HighlightenVideo.js +1 -1
  37. package/dist/cjs/HorizontalArticleListing.js +7 -5
  38. package/dist/cjs/HorizontalHero.js +6 -7
  39. package/dist/cjs/IssueContentDeck.js +11 -28
  40. package/dist/cjs/IssueDeck.js +11 -13
  41. package/dist/cjs/IssueLanding.js +39 -37
  42. package/dist/cjs/KMTracker.js +15 -15
  43. package/dist/cjs/LeftNav.js +3 -2
  44. package/dist/cjs/MasterDeck.js +16 -15
  45. package/dist/cjs/MediaSeriesLanding.js +441 -574
  46. package/dist/cjs/NavMagazine.js +14 -14
  47. package/dist/cjs/NavNative.js +12 -12
  48. package/dist/cjs/OncliveHero.js +6 -7
  49. package/dist/cjs/OncliveLargeHero.js +22 -23
  50. package/dist/cjs/PartnerDetailListing.js +14 -17
  51. package/dist/cjs/PubSection.js +8 -6
  52. package/dist/cjs/PublicationDeck.js +10 -12
  53. package/dist/cjs/PublicationLanding.js +26 -29
  54. package/dist/cjs/QueueDeckExpanded.js +81 -79
  55. package/dist/cjs/RecentNews.js +1 -4
  56. package/dist/cjs/RelatedContent.js +36 -39
  57. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  58. package/dist/cjs/SeriesListingDeck.js +6 -4
  59. package/dist/cjs/{SeriesSlider-b79e7df9.js → SeriesSlider-b94509d5.js} +12 -17
  60. package/dist/cjs/SideFooter.js +2 -2
  61. package/dist/cjs/{SocialSearchComponent-560a666e.js → SocialSearchComponent-42b9d251.js} +3 -3
  62. package/dist/cjs/TaxonomyCard.js +11 -14
  63. package/dist/cjs/TaxonomyDescription.js +7 -5
  64. package/dist/cjs/TemplateNormal.js +4 -3
  65. package/dist/cjs/ThumbnailCard.js +6 -10
  66. package/dist/cjs/Ustream.js +2 -2
  67. package/dist/cjs/VerticalHero.js +4 -8
  68. package/dist/cjs/VideoProgramLandingPage.js +8 -6
  69. package/dist/cjs/VideoSeriesCard.js +10 -9
  70. package/dist/cjs/VideoSeriesLandingPage.js +8 -6
  71. package/dist/cjs/VideoSeriesListing.js +7 -5
  72. package/dist/cjs/View.js +24 -23
  73. package/dist/cjs/YahooHero.js +12 -14
  74. package/dist/cjs/YoutubeGroup.js +14 -18
  75. package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-5c98aec7.js} +4 -3
  76. package/dist/cjs/events-1b438fe7.js +469 -0
  77. package/dist/cjs/getRelatedArticle.js +62 -126
  78. package/dist/cjs/getSerializers.js +7 -5
  79. package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-15ad167c.js} +9 -9
  80. package/dist/cjs/getTargeting.js +1 -1
  81. package/dist/cjs/{index-e08f00ce.js → index-2cf30c83.js} +2 -467
  82. package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
  83. package/dist/cjs/index-e2e62963.js +89 -0
  84. package/dist/cjs/{index-35099a60.js → index-f671ac14.js} +59 -103
  85. package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
  86. package/dist/cjs/index.js +18 -31
  87. package/dist/cjs/{main-11ec04d2.js → main-7b5e57b0.js} +32 -28
  88. package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
  89. package/dist/cjs/timeDifferenceCalc.js +1 -1
  90. package/dist/cjs/urlFor.js +34 -2
  91. package/dist/esm/AD.js +1 -1
  92. package/dist/esm/AD300x250.js +4 -3
  93. package/dist/esm/AD300x250x600.js +4 -3
  94. package/dist/esm/AD728x90.js +5 -4
  95. package/dist/esm/ADFloatingFooter.js +3 -2
  96. package/dist/esm/ADGutter.js +3 -2
  97. package/dist/esm/ADSkyscraper.js +3 -2
  98. package/dist/esm/ADSponsoredResources.js +3 -2
  99. package/dist/esm/ADWebcast.js +3 -2
  100. package/dist/esm/ADWelcome.js +3 -2
  101. package/dist/esm/AdSlot.js +3 -2
  102. package/dist/esm/AdSlotsProvider.js +28 -6
  103. package/dist/esm/AlgoliaSearch.js +14093 -19
  104. package/dist/esm/ArticleCarousel.js +2 -1
  105. package/dist/esm/ArticleProgramLandingPage.js +8 -6
  106. package/dist/esm/ArticleSeriesLandingPage.js +7 -6
  107. package/dist/esm/ArticleSeriesListing.js +6 -4
  108. package/dist/esm/Auth.js +42 -7
  109. package/dist/esm/AuthWrapper.js +228 -189
  110. package/dist/esm/CMEDeck.js +5 -4
  111. package/dist/esm/Column3.js +5 -4
  112. package/dist/esm/ConferenceArticleCard.js +20 -25
  113. package/dist/esm/DeckContent.js +20 -25
  114. package/dist/esm/DeckQueue.js +11 -17
  115. package/dist/esm/{Dfp-cde02d85.js → Dfp-2f9796e1.js} +2 -1
  116. package/dist/esm/EventsDeck.js +21 -21
  117. package/dist/esm/ExternalResources.js +8 -6
  118. package/dist/esm/Feature.js +7 -11
  119. package/dist/esm/ForbesHero.js +7 -9
  120. package/dist/esm/GridContent.js +25 -24
  121. package/dist/esm/GridHero.js +5 -14
  122. package/dist/esm/GroupDeck.js +4 -8
  123. package/dist/esm/HamMagazine.js +15 -15
  124. package/dist/esm/Hero.js +3 -14
  125. package/dist/esm/HighlightenVideo.js +1 -1
  126. package/dist/esm/HorizontalArticleListing.js +7 -5
  127. package/dist/esm/HorizontalHero.js +6 -7
  128. package/dist/esm/IssueContentDeck.js +11 -28
  129. package/dist/esm/IssueDeck.js +11 -13
  130. package/dist/esm/IssueLanding.js +39 -37
  131. package/dist/esm/KMTracker.js +15 -15
  132. package/dist/esm/LeftNav.js +3 -2
  133. package/dist/esm/MasterDeck.js +16 -15
  134. package/dist/esm/MediaSeriesLanding.js +154 -287
  135. package/dist/esm/NavMagazine.js +14 -14
  136. package/dist/esm/NavNative.js +12 -12
  137. package/dist/esm/OncliveHero.js +6 -7
  138. package/dist/esm/OncliveLargeHero.js +9 -10
  139. package/dist/esm/PartnerDetailListing.js +14 -17
  140. package/dist/esm/PubSection.js +8 -6
  141. package/dist/esm/PublicationDeck.js +10 -12
  142. package/dist/esm/PublicationLanding.js +26 -29
  143. package/dist/esm/QueueDeckExpanded.js +39 -37
  144. package/dist/esm/RecentNews.js +1 -4
  145. package/dist/esm/RelatedContent.js +32 -35
  146. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  147. package/dist/esm/SeriesListingDeck.js +6 -4
  148. package/dist/esm/{SeriesSlider-1fa61a74.js → SeriesSlider-935e2b4e.js} +12 -17
  149. package/dist/esm/SideFooter.js +2 -2
  150. package/dist/esm/{SocialSearchComponent-82ac7d6d.js → SocialSearchComponent-94f6554c.js} +3 -3
  151. package/dist/esm/TaxonomyCard.js +8 -11
  152. package/dist/esm/TaxonomyDescription.js +7 -5
  153. package/dist/esm/TemplateNormal.js +4 -3
  154. package/dist/esm/ThumbnailCard.js +3 -7
  155. package/dist/esm/Ustream.js +2 -2
  156. package/dist/esm/VerticalHero.js +4 -8
  157. package/dist/esm/VideoProgramLandingPage.js +8 -6
  158. package/dist/esm/VideoSeriesCard.js +6 -5
  159. package/dist/esm/VideoSeriesLandingPage.js +8 -6
  160. package/dist/esm/VideoSeriesListing.js +7 -5
  161. package/dist/esm/View.js +24 -23
  162. package/dist/esm/YahooHero.js +7 -9
  163. package/dist/esm/YoutubeGroup.js +14 -18
  164. package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-4abff0b1.js} +4 -3
  165. package/dist/esm/events-6c3a7a63.js +467 -0
  166. package/dist/esm/getRelatedArticle.js +62 -126
  167. package/dist/esm/getSerializers.js +7 -5
  168. package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
  169. package/dist/esm/getTargeting.js +1 -1
  170. package/dist/esm/{index-e887f3d1.js → index-7aec473d.js} +36 -80
  171. package/dist/esm/index-aaa2dae0.js +85 -0
  172. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  173. package/dist/esm/{index-acfb8079.js → index-f7fb1e25.js} +1 -466
  174. package/dist/esm/{index.es-7dda2f0a.js → index.es-c6222053.js} +20 -4
  175. package/dist/esm/index.js +18 -30
  176. package/dist/esm/{main-aef58dbc.js → main-747e7d25.js} +32 -28
  177. package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
  178. package/dist/esm/timeDifferenceCalc.js +1 -1
  179. package/dist/esm/urlFor.js +34 -2
  180. package/package.json +110 -110
  181. /package/dist/cjs/{ADInfeed-98f6bd26.js → ADInfeed-0158bee3.js} +0 -0
  182. /package/dist/cjs/{ADlgInfeed-6055cb1b.js → ADlgInfeed-3583144f.js} +0 -0
  183. /package/dist/esm/{ADInfeed-ba59666b.js → ADInfeed-427022e9.js} +0 -0
  184. /package/dist/esm/{ADlgInfeed-995322a1.js → ADlgInfeed-28d3f944.js} +0 -0
@@ -14,23 +14,25 @@ import './web.dom.iterable-4439f05a.js';
14
14
  import './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import React from 'react';
17
- import { l as lib_3 } from './index-acfb8079.js';
17
+ import './events-6c3a7a63.js';
18
+ import { l as lib_3 } from './index-f7fb1e25.js';
18
19
  import 'prop-types';
19
20
  import Container from 'react-bootstrap/Container';
20
21
  import Row from 'react-bootstrap/Row';
21
22
  import Col from 'react-bootstrap/Col';
22
23
  import Card from 'react-bootstrap/Card';
23
- import { m as moment } from './moment-12415288.js';
24
+ import { m as moment } from './moment-b6f49411.js';
24
25
  import { withRouter } from 'next/router';
25
26
  import './isSymbol-1981418f.js';
26
27
  import { d as debounce_1 } from './debounce-9207d8ee.js';
27
28
  import './toNumber-2f7a84cd.js';
28
- import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
29
+ import { I as InfiniteScroll } from './index.es-c6222053.js';
29
30
  import 'react-dom';
30
31
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
31
- import { i as imageUrlBuilder } from './index-51a80699.js';
32
+ import './index-51a80699.js';
33
+ import urlFor from './urlFor.js';
32
34
  import { L as LazyLoad } from './index-6c12bdd5.js';
33
- import { m as main_39 } from './main-aef58dbc.js';
35
+ import { m as main_40 } from './main-747e7d25.js';
34
36
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
35
37
  import './slicedToArray-641f241f.js';
36
38
  import './stringify-4330ccdc.js';
@@ -38,7 +40,7 @@ import './asyncToGenerator-fc1c2e29.js';
38
40
  import './Segment.js';
39
41
  import './Beam.js';
40
42
  import './AdSlot.js';
41
- import { A as ADInfeed } from './ADInfeed-ba59666b.js';
43
+ import { A as ADInfeed } from './ADInfeed-427022e9.js';
42
44
 
43
45
  var DeckContent = function (_React$Component) {
44
46
  _inherits(DeckContent, _React$Component);
@@ -54,7 +56,7 @@ var DeckContent = function (_React$Component) {
54
56
  args[_key] = arguments[_key];
55
57
  }
56
58
 
57
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
59
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.client = _this.props.client, _this.state = {
58
60
  data: _this.data,
59
61
  dataKeptToCompareNewDatarecord: _this.data,
60
62
  per: _this.params ? _this.params.to : 2,
@@ -115,17 +117,10 @@ var DeckContent = function (_React$Component) {
115
117
  }
116
118
  });
117
119
  });
118
- }, _this.urlFor = function (source) {
119
- var client = _this.props.client;
120
-
121
- var builder = imageUrlBuilder(client);
122
- return builder.image(source).auto('format');
123
120
  }, _this.renderCardImage = function (row, page) {
124
121
  if (row.thumbnail && row.thumbnail.asset) {
125
- var url = _this.urlFor(row.thumbnail);
126
- if (_this.props.imageHeight) url = url.height(_this.props.imageHeight);
127
- if (_this.props.imageWidth) url = url.width(_this.props.imageWidth);
128
- return url.url();
122
+ var url = urlFor({ client: _this.client, source: row.thumbnail, imageHeight: _this.props.imageHeight || null, imageWidth: _this.props.imageWidth || null, imageFit: _this.props.imageFit || null });
123
+ return url;
129
124
  } else {
130
125
  return _this.defaultImage;
131
126
  }
@@ -179,14 +174,14 @@ var DeckContent = function (_React$Component) {
179
174
  var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
180
175
 
181
176
  // please leave this for later debug purpose : Yong Jun.
182
- /* console.log('page change reported', {
183
- currentPage: currentPage,
184
- pageNumber: pageNumber,
185
- pathname: pathname,
186
- path: path,
187
- newPath: newPath,
188
- firstPage: pageNumber === 1,
189
- queryString: queryString
177
+ /* console.log('page change reported', {
178
+ currentPage: currentPage,
179
+ pageNumber: pageNumber,
180
+ pathname: pathname,
181
+ path: path,
182
+ newPath: newPath,
183
+ firstPage: pageNumber === 1,
184
+ queryString: queryString
190
185
  }) */
191
186
 
192
187
  if (pageview) {
@@ -351,7 +346,7 @@ var DeckContent = function (_React$Component) {
351
346
  )
352
347
  )
353
348
  ),
354
- main_39 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
349
+ main_40 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
355
350
  );
356
351
  }
357
352
  })
@@ -14,23 +14,25 @@ import './web.dom.iterable-4439f05a.js';
14
14
  import './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import React from 'react';
17
- import { l as lib_3 } from './index-acfb8079.js';
17
+ import './events-6c3a7a63.js';
18
+ import { l as lib_3 } from './index-f7fb1e25.js';
18
19
  import 'prop-types';
19
20
  import Container from 'react-bootstrap/Container';
20
21
  import Row from 'react-bootstrap/Row';
21
22
  import Col from 'react-bootstrap/Col';
22
23
  import Card from 'react-bootstrap/Card';
23
- import { m as moment } from './moment-12415288.js';
24
+ import { m as moment } from './moment-b6f49411.js';
24
25
  import { withRouter } from 'next/router';
25
26
  import './isSymbol-1981418f.js';
26
27
  import { d as debounce_1 } from './debounce-9207d8ee.js';
27
28
  import './toNumber-2f7a84cd.js';
28
- import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
29
+ import { I as InfiniteScroll } from './index.es-c6222053.js';
29
30
  import 'react-dom';
30
31
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
31
- import { i as imageUrlBuilder } from './index-51a80699.js';
32
+ import './index-51a80699.js';
33
+ import urlFor from './urlFor.js';
32
34
  import { L as LazyLoad } from './index-6c12bdd5.js';
33
- import { m as main_39 } from './main-aef58dbc.js';
35
+ import { m as main_40 } from './main-747e7d25.js';
34
36
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
35
37
  import { g as get_1 } from './get-1e515072.js';
36
38
  import './eq-b470f743.js';
@@ -49,7 +51,7 @@ var DeckQueue = function (_React$Component) {
49
51
  args[_key] = arguments[_key];
50
52
  }
51
53
 
52
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckQueue.__proto__ || _Object$getPrototypeOf(DeckQueue)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.imageHeight = _this.props.imageHeight ? _this.props.imageHeight : 270, _this.state = {
54
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckQueue.__proto__ || _Object$getPrototypeOf(DeckQueue)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.client = _this.props.client, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.imageHeight = _this.props.imageHeight ? _this.props.imageHeight : 270, _this.state = {
53
55
  data: _this.data,
54
56
  per: _this.params ? _this.params.to : 2,
55
57
  page: _this.props.currentPage || 1,
@@ -79,7 +81,6 @@ var DeckQueue = function (_React$Component) {
79
81
  data = _this$state.data,
80
82
  query = _this$state.query,
81
83
  page = _this$state.page;
82
- var client = _this.props.client;
83
84
 
84
85
 
85
86
  var params = _extends({}, _this.params, { from: from, to: to
@@ -108,17 +109,10 @@ var DeckQueue = function (_React$Component) {
108
109
  }
109
110
  });
110
111
  });
111
- }, _this.urlFor = function (source) {
112
- var client = _this.props.client;
113
-
114
- var builder = imageUrlBuilder(client);
115
- return builder.image(source).auto('format');
116
112
  }, _this.renderCardImage = function (row) {
117
113
  if (row.thumbnail && row.thumbnail.asset) {
118
- var url = _this.urlFor(row.thumbnail);
119
- url = url.height(_this.imageHeight);
120
- if (_this.props.imageWidth) url = url.width(_this.props.imageWidth);
121
- return url.url();
114
+ var url = urlFor({ client: _this.client, source: row.thumbnail, imageHeight: _this.imageHeight || null, imageWidth: _this.props.imageWidth || null, imageFit: _this.props.imageFit || null });
115
+ return url;
122
116
  } else {
123
117
  return _this.defaultImage;
124
118
  }
@@ -302,7 +296,7 @@ var DeckQueue = function (_React$Component) {
302
296
  )
303
297
  )
304
298
  ),
305
- main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
299
+ main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
306
300
  );
307
301
  })
308
302
  );
@@ -4,7 +4,8 @@ import './es6.string.iterator-c990c18c.js';
4
4
  import './core.get-iterator-method-e1de7503.js';
5
5
  import './web.dom.iterable-4439f05a.js';
6
6
  import React, { useState } from 'react';
7
- import { b as lib_1, a as lib_2 } from './index-acfb8079.js';
7
+ import './events-6c3a7a63.js';
8
+ import { b as lib_1, a as lib_2 } from './index-f7fb1e25.js';
8
9
  import PropTypes from 'prop-types';
9
10
  import './isSymbol-1981418f.js';
10
11
  import { d as debounce_1 } from './debounce-9207d8ee.js';
@@ -13,10 +13,10 @@ import Container from 'react-bootstrap/Container';
13
13
  import Row from 'react-bootstrap/Row';
14
14
  import Col from 'react-bootstrap/Col';
15
15
  import Card from 'react-bootstrap/Card';
16
- import './moment-12415288.js';
16
+ import './moment-b6f49411.js';
17
17
  import { useRouter } from 'next/router';
18
- import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
19
- import './main-aef58dbc.js';
18
+ import { I as InfiniteScroll } from './index.es-c6222053.js';
19
+ import './main-747e7d25.js';
20
20
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
21
21
  import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
22
22
  import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
@@ -24,7 +24,7 @@ import Button from 'react-bootstrap/Button';
24
24
  import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
25
25
  import Spinner from 'react-bootstrap/Spinner';
26
26
  import Form from 'react-bootstrap/Form';
27
- import { m as momentTimezone } from './index-d2f90501.js';
27
+ import { m as momentTimezone } from './index-c00b0bbb.js';
28
28
  import { j as js_cookie } from './js.cookie-6874175c.js';
29
29
 
30
30
  // https://github.com/tc39/proposal-object-values-entries
@@ -245,23 +245,23 @@ var EventsDeck = function EventsDeck(_ref) {
245
245
  if (cventAccessToken && cventAccessToken !== 'undefined') {
246
246
  setAccessToken(cventAccessToken);
247
247
  } else {
248
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
249
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
250
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
251
- fetch(url, {
252
- headers: {
253
- 'Content-Type': 'application/x-www-form-urlencoded',
254
- Authorization: `Basic ${encodedData}`
255
- },
256
- method: 'POST',
257
- body: `grant_type=client_credentials&client_id=${clientId}`
258
- })
259
- .then((response) => response.json())
260
- .then((json) => {
261
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
262
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
263
- setAccessToken(json.access_token)
264
- })
248
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
249
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
250
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
251
+ fetch(url, {
252
+ headers: {
253
+ 'Content-Type': 'application/x-www-form-urlencoded',
254
+ Authorization: `Basic ${encodedData}`
255
+ },
256
+ method: 'POST',
257
+ body: `grant_type=client_credentials&client_id=${clientId}`
258
+ })
259
+ .then((response) => response.json())
260
+ .then((json) => {
261
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
262
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
263
+ setAccessToken(json.access_token)
264
+ })
265
265
  .catch((e) => console.log(e))*/
266
266
  // hello
267
267
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -14,19 +14,21 @@ import './web.dom.iterable-4439f05a.js';
14
14
  import './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import React, { useState, useEffect } from 'react';
17
- import './index-acfb8079.js';
17
+ import './events-6c3a7a63.js';
18
+ import './index-f7fb1e25.js';
18
19
  import 'prop-types';
19
20
  import 'react-bootstrap/Row';
20
21
  import 'react-bootstrap/Col';
21
- import './moment-12415288.js';
22
+ import './moment-b6f49411.js';
22
23
  import { useRouter } from 'next/router';
23
24
  import './isSymbol-1981418f.js';
24
25
  import './debounce-9207d8ee.js';
25
26
  import './toNumber-2f7a84cd.js';
26
27
  import 'react-dom';
27
28
  import './index-51a80699.js';
29
+ import './urlFor.js';
28
30
  import './index-6c12bdd5.js';
29
- import './main-aef58dbc.js';
31
+ import './main-747e7d25.js';
30
32
  import './entities-7cc3bf45.js';
31
33
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
32
34
  import './stringify-4330ccdc.js';
@@ -41,9 +43,9 @@ import './GroupDeck.js';
41
43
  import 'react-bootstrap';
42
44
  import './iconBase-602d52fe.js';
43
45
  import './index.esm-3fdda599.js';
44
- import { g as getSerializers } from './index-e887f3d1.js';
46
+ import { g as getSerializers } from './index-7aec473d.js';
45
47
  import './util-7700fc59.js';
46
- import './brightcove-react-player-loader.es-e1c6b0f2.js';
48
+ import './brightcove-react-player-loader.es-4abff0b1.js';
47
49
  import 'next/head';
48
50
  import 'react-share';
49
51
  import './SocialShare.js';
@@ -51,7 +53,7 @@ import './_object-to-array-7e804fce.js';
51
53
  import 'react-bootstrap/Pagination';
52
54
  import Button from 'react-bootstrap/Button';
53
55
  import 'react-bootstrap/Figure';
54
- import { m as momentTimezone } from './index-d2f90501.js';
56
+ import { m as momentTimezone } from './index-c00b0bbb.js';
55
57
 
56
58
  var ExternalResources = function ExternalResources(props) {
57
59
  var resources = props.resources,
@@ -1,7 +1,8 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React from 'react';
3
- import { i as imageUrlBuilder } from './index-51a80699.js';
4
- import { m as main_39 } from './main-aef58dbc.js';
3
+ import './index-51a80699.js';
4
+ import urlFor from './urlFor.js';
5
+ import { m as main_40 } from './main-747e7d25.js';
5
6
  import Carousel from 'react-bootstrap/Carousel';
6
7
 
7
8
  //Feature query to be used
@@ -16,7 +17,8 @@ import Carousel from 'react-bootstrap/Carousel';
16
17
  var Feature = function Feature(props) {
17
18
  var dataset = props.dataset;
18
19
  var _props$controls = props.controls,
19
- controls = _props$controls === undefined ? false : _props$controls;
20
+ controls = _props$controls === undefined ? false : _props$controls,
21
+ client = props.client;
20
22
 
21
23
 
22
24
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -26,15 +28,9 @@ var Feature = function Feature(props) {
26
28
  return false;
27
29
  };
28
30
 
29
- var urlFor = function urlFor(source) {
30
- var client = props.client;
31
-
32
- var builder = imageUrlBuilder(client);
33
- return builder.image(source).auto('format');
34
- };
35
31
  //image width updated.
36
32
  var imageWidth = 450;
37
- if (main_39) {
33
+ if (main_40) {
38
34
  imageWidth = 225;
39
35
  }
40
36
 
@@ -95,7 +91,7 @@ var Feature = function Feature(props) {
95
91
  React.createElement('img', {
96
92
  style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' },
97
93
  className: 'd-block w-100',
98
- src: urlFor(feature_img).width(imageWidth).url(),
94
+ src: urlFor({ client: client, source: feature_img, imageWidth: imageWidth }),
99
95
  alt: feature_alt
100
96
  }),
101
97
  React.createElement(
@@ -5,9 +5,10 @@ import './core.get-iterator-method-e1de7503.js';
5
5
  import './web.dom.iterable-4439f05a.js';
6
6
  import React from 'react';
7
7
  import 'prop-types';
8
- import { m as moment } from './moment-12415288.js';
8
+ import { m as moment } from './moment-b6f49411.js';
9
9
  import 'react-dom';
10
- import { i as imageUrlBuilder } from './index-51a80699.js';
10
+ import './index-51a80699.js';
11
+ import urlFor from './urlFor.js';
11
12
  import { L as LazyLoad } from './index-6c12bdd5.js';
12
13
  import './slicedToArray-641f241f.js';
13
14
  import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
@@ -20,15 +21,12 @@ var fbsHero = function fbsHero(props) {
20
21
 
21
22
  var client = props.client;
22
23
 
23
- var builder = imageUrlBuilder(client);
24
- function urlFor(source) {
25
- return builder.image(source).auto('format');
26
- }
27
24
 
28
25
  var topArticleThumbnail = '';
29
26
  var topArticleAltText = topArticle.title;
30
27
  if (topArticle.thumbnail && topArticle.thumbnail.asset) {
31
- topArticleThumbnail = urlFor(topArticle.thumbnail.asset).width(600).url();
28
+ topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: 600 });
29
+
32
30
  topArticleAltText = topArticle.thumbnail.asset.originalFileName;
33
31
  } else if (props.thumbnail) {
34
32
  topArticleThumbnail = props.thumbnail;
@@ -84,7 +82,7 @@ var fbsHero = function fbsHero(props) {
84
82
  var articleThumbnail = '';
85
83
  var articleAltText = article.title;
86
84
  if (article.thumbnail && article.thumbnail.asset) {
87
- articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
85
+ articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
88
86
  articleAltText = article.thumbnail.asset.originalFileName;
89
87
  } else if (props.thumbnail) {
90
88
  articleThumbnail = props.thumbnail;
@@ -127,7 +125,7 @@ var fbsHero = function fbsHero(props) {
127
125
  React.createElement(
128
126
  'style',
129
127
  { jsx: 'true' },
130
- '\n .author-wrapper {\n text-align: center;\n }\n .article-hero {\n margin-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n padding-bottom: 0.5rem;\n }\n .fbs-top-article {\n width: 100%;\n margin-bottom: 1rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n }\n .fbs-top-article img {\n width: 100%;\n\n max-height: 300px;\n min-height: 275px;\n object-fit: cover;\n }\n\n .fbs-top-article--body {\n }\n .fbs-top-article--body h1 {\n color: #252525 !important;\n font-size: 1.6rem;\n font-weight: bold;\n text-align: center;\n margin-top: 1rem;\n }\n .fbs-top-article--body p {\n text-align: center;\n margin-bottom: 0;\n color: #252525;\n }\n .fbs-top-article--body p:first-of-type {\n font-size: 0.9rem;\n }\n .fbs-sub-article-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n padding-top: 1.75rem;\n margin-left: -1rem;\n margin-rigth: -1rem;\n }\n .fbs-sub-article {\n width: calc(50% - 2rem);\n min-width: 350px;\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n margin: 0 1rem 1.75rem;\n }\n .fbs-sub-article img {\n margin-right: 1rem;\n width: 145px;\n min-width: 145px;\n max-height: 100px;\n object-fit: cover;\n }\n .fbs-sub-article p {\n margin-bottom: 0;\n font-size: 0.8rem;\n color: #252525;\n }\n .fbs-sub-article .fbs-sub-article--title {\n font-weight: bold;\n font-size: 1rem;\n color: #252525;\n }\n '
128
+ '\n .author-wrapper {\n text-align: center;\n }\n .article-hero {\n margin-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n padding-bottom: 0.5rem;\n }\n .fbs-top-article {\n width: 100%;\n margin-bottom: 1rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n }\n .fbs-top-article img {\n width: 100%;\n\n max-height: 400px;\n min-height: 275px;\n object-fit: cover;\n }\n\n .fbs-top-article--body {\n }\n .fbs-top-article--body h1 {\n color: #252525 !important;\n font-size: 1.6rem;\n font-weight: bold;\n text-align: center;\n margin-top: 1rem;\n }\n .fbs-top-article--body p {\n text-align: center;\n margin-bottom: 0;\n color: #252525;\n }\n .fbs-top-article--body p:first-of-type {\n font-size: 0.9rem;\n }\n .fbs-sub-article-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n padding-top: 1.75rem;\n margin-left: -1rem;\n margin-rigth: -1rem;\n }\n .fbs-sub-article {\n width: calc(50% - 2rem);\n min-width: 350px;\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n margin: 0 1rem 1.75rem;\n }\n .fbs-sub-article img {\n margin-right: 1rem;\n width: 145px;\n min-width: 145px;\n max-height: 100px;\n object-fit: cover;\n }\n .fbs-sub-article p {\n margin-bottom: 0;\n font-size: 0.8rem;\n color: #252525;\n }\n .fbs-sub-article .fbs-sub-article--title {\n font-weight: bold;\n font-size: 1rem;\n color: #252525;\n }\n '
131
129
  )
132
130
  );
133
131
  };
@@ -14,23 +14,25 @@ import './web.dom.iterable-4439f05a.js';
14
14
  import './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import React from 'react';
17
- import { l as lib_3 } from './index-acfb8079.js';
17
+ import './events-6c3a7a63.js';
18
+ import { l as lib_3 } from './index-f7fb1e25.js';
18
19
  import 'prop-types';
19
20
  import Container from 'react-bootstrap/Container';
20
21
  import Row from 'react-bootstrap/Row';
21
22
  import Col from 'react-bootstrap/Col';
22
23
  import Card from 'react-bootstrap/Card';
23
- import { m as moment } from './moment-12415288.js';
24
+ import { m as moment } from './moment-b6f49411.js';
24
25
  import { withRouter } from 'next/router';
25
26
  import './isSymbol-1981418f.js';
26
27
  import { d as debounce_1 } from './debounce-9207d8ee.js';
27
28
  import './toNumber-2f7a84cd.js';
28
- import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
29
+ import { I as InfiniteScroll } from './index.es-c6222053.js';
29
30
  import 'react-dom';
30
31
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
31
- import { i as imageUrlBuilder } from './index-51a80699.js';
32
+ import './index-51a80699.js';
33
+ import urlFor from './urlFor.js';
32
34
  import { L as LazyLoad } from './index-6c12bdd5.js';
33
- import { m as main_39 } from './main-aef58dbc.js';
35
+ import { m as main_40 } from './main-747e7d25.js';
34
36
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
35
37
  import './slicedToArray-641f241f.js';
36
38
  import './stringify-4330ccdc.js';
@@ -38,9 +40,9 @@ import './asyncToGenerator-fc1c2e29.js';
38
40
  import './Segment.js';
39
41
  import './Beam.js';
40
42
  import './AdSlot.js';
41
- import { A as ADInfeed } from './ADInfeed-ba59666b.js';
43
+ import { A as ADInfeed } from './ADInfeed-427022e9.js';
42
44
  import { l as lodash } from './lodash-ec8c6b48.js';
43
- import { A as ADlgInfeed } from './ADlgInfeed-995322a1.js';
45
+ import { A as ADlgInfeed } from './ADlgInfeed-28d3f944.js';
44
46
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
45
47
  import { g as get_1 } from './get-1e515072.js';
46
48
  import './eq-b470f743.js';
@@ -61,7 +63,7 @@ var GridContent = function (_React$Component) {
61
63
  args[_key] = arguments[_key];
62
64
  }
63
65
 
64
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = GridContent.__proto__ || _Object$getPrototypeOf(GridContent)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
66
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = GridContent.__proto__ || _Object$getPrototypeOf(GridContent)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.client = _this.props.client, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
65
67
  data: _this.data,
66
68
  per: _this.params ? _this.params.to : 2,
67
69
  page: _this.props.currentPage || 1,
@@ -148,17 +150,16 @@ var GridContent = function (_React$Component) {
148
150
  }
149
151
  });
150
152
  });
151
- }, _this.urlFor = function (source) {
152
- var client = _this.props.client;
153
-
154
- var builder = imageUrlBuilder(client);
155
- return builder.image(source).auto('format');
156
153
  }, _this.renderCardImage = function (row, page) {
157
154
  if (row.thumbnail && row.thumbnail.asset) {
158
- var url = _this.urlFor(row.thumbnail);
159
- if (_this.props.imageHeight) url = url.height(_this.props.imageHeight);
160
- if (_this.props.imageWidth) url = url.width(_this.props.imageWidth);
161
- return url.url();
155
+ var url = urlFor({
156
+ client: _this.client,
157
+ source: row.thumbnail,
158
+ imageHeight: _this.props.imageHeight || null,
159
+ imageWidth: _this.props.imageWidth || null,
160
+ imageFit: _this.props.imageFit || null
161
+ });
162
+ return url;
162
163
  } else {
163
164
  return _this.defaultImage;
164
165
  }
@@ -197,12 +198,12 @@ var GridContent = function (_React$Component) {
197
198
  path += '?' + queryString;
198
199
  }
199
200
 
200
- // pageNumber = parseInt(pageNumber)
201
+ pageNumber = parseInt(pageNumber);
201
202
 
202
- var index = Number(itemIndex);
203
- var perPage = Number(itemsPerPage);
203
+ // const index = Number(itemIndex)
204
+ // const perPage = Number(itemsPerPage)
204
205
 
205
- pageNumber = Math.ceil((index + 1) / perPage);
206
+ // pageNumber = Math.ceil((index + 1) / perPage)
206
207
 
207
208
  if (currentPage !== pageNumber) {
208
209
  lib_3.refresh();
@@ -534,7 +535,7 @@ var GridContent = function (_React$Component) {
534
535
  )
535
536
  ),
536
537
  showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
537
- main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
538
+ main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
538
539
  );
539
540
  } else {
540
541
  return React.createElement(
@@ -598,7 +599,7 @@ var GridContent = function (_React$Component) {
598
599
  )
599
600
  ),
600
601
  showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
601
- main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
602
+ main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
602
603
  );
603
604
  }
604
605
  } else if (row._type === 'lg-infeed' && row.adUnit) {
@@ -686,7 +687,7 @@ var GridContent = function (_React$Component) {
686
687
  )
687
688
  ),
688
689
  showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
689
- main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
690
+ main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
690
691
  );
691
692
  } else return null;
692
693
  }) : React.createElement(
@@ -5,9 +5,10 @@ import './core.get-iterator-method-e1de7503.js';
5
5
  import './web.dom.iterable-4439f05a.js';
6
6
  import React from 'react';
7
7
  import 'prop-types';
8
- import { m as moment } from './moment-12415288.js';
8
+ import { m as moment } from './moment-b6f49411.js';
9
9
  import 'react-dom';
10
- import { i as imageUrlBuilder } from './index-51a80699.js';
10
+ import './index-51a80699.js';
11
+ import urlFor from './urlFor.js';
11
12
  import { L as LazyLoad } from './index-6c12bdd5.js';
12
13
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
13
14
  import './slicedToArray-641f241f.js';
@@ -25,21 +26,11 @@ var GridHero = function GridHero(props) {
25
26
  _props$subHeight = props.subHeight,
26
27
  subHeight = _props$subHeight === undefined ? 270 : _props$subHeight;
27
28
 
28
- var builder = imageUrlBuilder(client);
29
- function urlFor(source) {
30
- var imageWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
31
- var imageHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
32
-
33
- var url = builder.image(source);
34
- if (imageWidth) url = url.width(imageWidth);
35
- if (imageHeight) url = url.height(imageHeight);
36
- return url.auto('format').url();
37
- }
38
29
 
39
30
  var topArticleThumbnail = '';
40
31
  var topArticleAltText = topArticle.title;
41
32
  if (topArticle.thumbnail && topArticle.thumbnail.asset) {
42
- topArticleThumbnail = urlFor(topArticle.thumbnail.asset, topWidth);
33
+ topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: topWidth });
43
34
  topArticleAltText = topArticle.thumbnail.asset.originalFileName;
44
35
  } else if (props.thumbnail) {
45
36
  topArticleThumbnail = props.thumbnail;
@@ -96,7 +87,7 @@ var GridHero = function GridHero(props) {
96
87
  var articleThumbnail = '';
97
88
  var articleAltText = article.title;
98
89
  if (article.thumbnail && article.thumbnail.asset) {
99
- articleThumbnail = urlFor(article.thumbnail.asset, subWidth, subHeight);
90
+ articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: subWidth, imageHeight: subHeight });
100
91
  articleAltText = article.thumbnail.asset.originalFileName;
101
92
  } else if (props.thumbnail) {
102
93
  articleThumbnail = props.thumbnail;
@@ -8,7 +8,8 @@ import './web.dom.iterable-4439f05a.js';
8
8
  import { _ as _typeof } from './typeof-af9c50d8.js';
9
9
  import './_is-array-58e95429.js';
10
10
  import React, { useRef, useState, useEffect } from 'react';
11
- import { i as imageUrlBuilder } from './index-51a80699.js';
11
+ import './index-51a80699.js';
12
+ import urlFor from './urlFor.js';
12
13
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
13
14
  import { g as getYoutubeId } from './index-c7e2ac95.js';
14
15
  import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
@@ -34,11 +35,6 @@ var GroupDeck = function GroupDeck(props) {
34
35
  scrollPosition = _useState6[0],
35
36
  setScrollPosition = _useState6[1];
36
37
 
37
- var urlFor = function urlFor(source, client) {
38
- var builder = imageUrlBuilder(client);
39
- return builder.image(source).auto('format');
40
- };
41
-
42
38
  useEffect(function () {
43
39
  //IE11 Polyfill
44
40
  smoothscroll.polyfill();
@@ -164,7 +160,7 @@ var GroupDeck = function GroupDeck(props) {
164
160
  var thumbnail = void 0;
165
161
 
166
162
  if (video.thumbnail && video.thumbnail.asset) {
167
- thumbnail = urlFor(video.thumbnail, props.client);
163
+ thumbnail = urlFor({ source: video.thumbnail, client: props.client });
168
164
  } else if (_typeof(video.thumbnail == 'string')) {
169
165
  thumbnail = video.thumbnail;
170
166
  } else {
@@ -238,7 +234,7 @@ var GroupDeck = function GroupDeck(props) {
238
234
  var _url = '' + video.link;
239
235
  var _thumbnail = void 0;
240
236
  if (video.thumbnail && video.thumbnail.asset) {
241
- _thumbnail = urlFor(video.thumbnail, props.client);
237
+ _thumbnail = urlFor({ source: video.thumbnail, client: props.client });
242
238
  } else if (_typeof(video.thumbnail == 'string')) {
243
239
  _thumbnail = video.thumbnail;
244
240
  } else {