@mjhls/mjh-framework 1.0.817-image-crop-test-v4 → 1.0.818

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 (98) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AlgoliaSearch.js +5 -6
  3. package/dist/cjs/ArticleCarousel.js +0 -1
  4. package/dist/cjs/ArticleProgramLandingPage.js +1 -2
  5. package/dist/cjs/ArticleSeriesListing.js +0 -1
  6. package/dist/cjs/ConferenceArticleCard.js +9 -4
  7. package/dist/cjs/DeckContent.js +15 -9
  8. package/dist/cjs/DeckQueue.js +16 -9
  9. package/dist/cjs/ExternalResources.js +1 -2
  10. package/dist/cjs/Feature.js +9 -5
  11. package/dist/cjs/ForbesHero.js +14 -12
  12. package/dist/cjs/GridContent.js +26 -20
  13. package/dist/cjs/GridHero.js +19 -10
  14. package/dist/cjs/GroupDeck.js +8 -4
  15. package/dist/cjs/HamMagazine.js +21 -11
  16. package/dist/cjs/Hero.js +14 -3
  17. package/dist/cjs/HorizontalArticleListing.js +1 -2
  18. package/dist/cjs/HorizontalHero.js +6 -5
  19. package/dist/cjs/IssueContentDeck.js +27 -10
  20. package/dist/cjs/IssueDeck.js +12 -10
  21. package/dist/cjs/IssueLanding.js +1 -2
  22. package/dist/cjs/MasterDeck.js +1 -1
  23. package/dist/cjs/MediaSeriesLanding.js +6 -6
  24. package/dist/cjs/OncliveHero.js +6 -5
  25. package/dist/cjs/OncliveLargeHero.js +22 -21
  26. package/dist/cjs/PartnerDetailListing.js +10 -6
  27. package/dist/cjs/PubSection.js +0 -1
  28. package/dist/cjs/PublicationDeck.js +12 -10
  29. package/dist/cjs/PublicationLanding.js +5 -2
  30. package/dist/cjs/QueueDeckExpanded.js +69 -70
  31. package/dist/cjs/RecentNews.js +6 -3
  32. package/dist/cjs/RelatedContent.js +10 -7
  33. package/dist/cjs/SeriesListingDeck.js +1 -2
  34. package/dist/cjs/{SeriesSlider-d54fa925.js → SeriesSlider-c022ce04.js} +7 -2
  35. package/dist/cjs/TaxonomyCard.js +14 -11
  36. package/dist/cjs/TaxonomyDescription.js +1 -2
  37. package/dist/cjs/ThumbnailCard.js +10 -6
  38. package/dist/cjs/VerticalHero.js +7 -3
  39. package/dist/cjs/VideoProgramLandingPage.js +1 -2
  40. package/dist/cjs/VideoSeriesCard.js +7 -8
  41. package/dist/cjs/VideoSeriesLandingPage.js +0 -1
  42. package/dist/cjs/VideoSeriesListing.js +1 -2
  43. package/dist/cjs/View.js +9 -9
  44. package/dist/cjs/YahooHero.js +13 -11
  45. package/dist/cjs/YoutubeGroup.js +8 -4
  46. package/dist/cjs/getSerializers.js +1 -2
  47. package/dist/cjs/{index-55c6de08.js → index-e5fd35c7.js} +91 -47
  48. package/dist/cjs/index.js +20 -6
  49. package/dist/cjs/urlFor.js +2 -34
  50. package/dist/esm/AlgoliaSearch.js +3 -4
  51. package/dist/esm/ArticleCarousel.js +0 -1
  52. package/dist/esm/ArticleProgramLandingPage.js +1 -2
  53. package/dist/esm/ArticleSeriesListing.js +0 -1
  54. package/dist/esm/ConferenceArticleCard.js +9 -4
  55. package/dist/esm/DeckContent.js +11 -5
  56. package/dist/esm/DeckQueue.js +12 -5
  57. package/dist/esm/ExternalResources.js +1 -2
  58. package/dist/esm/Feature.js +9 -5
  59. package/dist/esm/ForbesHero.js +8 -6
  60. package/dist/esm/GridContent.js +11 -5
  61. package/dist/esm/GridHero.js +13 -4
  62. package/dist/esm/GroupDeck.js +8 -4
  63. package/dist/esm/HamMagazine.js +21 -11
  64. package/dist/esm/Hero.js +14 -3
  65. package/dist/esm/HorizontalArticleListing.js +1 -2
  66. package/dist/esm/HorizontalHero.js +6 -5
  67. package/dist/esm/IssueContentDeck.js +27 -10
  68. package/dist/esm/IssueDeck.js +12 -10
  69. package/dist/esm/IssueLanding.js +1 -2
  70. package/dist/esm/MasterDeck.js +1 -1
  71. package/dist/esm/MediaSeriesLanding.js +4 -4
  72. package/dist/esm/OncliveHero.js +6 -5
  73. package/dist/esm/OncliveLargeHero.js +9 -8
  74. package/dist/esm/PartnerDetailListing.js +10 -6
  75. package/dist/esm/PubSection.js +0 -1
  76. package/dist/esm/PublicationDeck.js +12 -10
  77. package/dist/esm/PublicationLanding.js +5 -2
  78. package/dist/esm/QueueDeckExpanded.js +20 -21
  79. package/dist/esm/RecentNews.js +6 -3
  80. package/dist/esm/RelatedContent.js +6 -3
  81. package/dist/esm/SeriesListingDeck.js +1 -2
  82. package/dist/esm/{SeriesSlider-8f2aca58.js → SeriesSlider-8414085b.js} +7 -2
  83. package/dist/esm/TaxonomyCard.js +11 -8
  84. package/dist/esm/TaxonomyDescription.js +1 -2
  85. package/dist/esm/ThumbnailCard.js +7 -3
  86. package/dist/esm/VerticalHero.js +7 -3
  87. package/dist/esm/VideoProgramLandingPage.js +1 -2
  88. package/dist/esm/VideoSeriesCard.js +3 -4
  89. package/dist/esm/VideoSeriesLandingPage.js +0 -1
  90. package/dist/esm/VideoSeriesListing.js +1 -2
  91. package/dist/esm/View.js +9 -9
  92. package/dist/esm/YahooHero.js +8 -6
  93. package/dist/esm/YoutubeGroup.js +8 -4
  94. package/dist/esm/getSerializers.js +1 -2
  95. package/dist/esm/{index-e8c6a892.js → index-04c4d8d6.js} +67 -23
  96. package/dist/esm/index.js +19 -6
  97. package/dist/esm/urlFor.js +2 -34
  98. package/package.json +1 -1
@@ -1,11 +1,15 @@
1
1
  import React from 'react';
2
2
  import './moment-bc12cb97.js';
3
- import urlFor from './urlFor.js';
3
+ import { i as imageUrlBuilder } from './index-0dbff1d1.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
- import './index-0dbff1d1.js';
6
5
 
7
6
  var VerticalHero = function VerticalHero(props) {
8
7
  var client = props.client;
8
+
9
+ var builder = imageUrlBuilder(client);
10
+ function urlFor(source) {
11
+ return builder.image(source).auto('format');
12
+ }
9
13
  var _props$heroTitle = props.heroTitle,
10
14
  heroTitle = _props$heroTitle === undefined ? '' : _props$heroTitle;
11
15
 
@@ -29,7 +33,7 @@ var VerticalHero = function VerticalHero(props) {
29
33
  var articleThumbnail = '';
30
34
  var articleAltText = article.title;
31
35
  if (article.thumbnail && article.thumbnail.asset) {
32
- articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 500 });
36
+ articleThumbnail = urlFor(article.thumbnail.asset).width(500).url();
33
37
  articleAltText = article.thumbnail.asset.originalFileName;
34
38
  } else if (props.thumbnail) {
35
39
  articleThumbnail = props.thumbnail;
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-52cf21c5.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-e8c6a892.js';
8
+ import { g as getSerializers } from './index-04c4d8d6.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './es6.string.iterator-bc33758b.js';
@@ -19,7 +19,6 @@ import 'prop-types';
19
19
  import './index-0dbff1d1.js';
20
20
  import './slicedToArray-be2f7a22.js';
21
21
  import 'react-bootstrap';
22
- import './urlFor.js';
23
22
  import './index-2446af28.js';
24
23
  import './events-6c3a7a63.js';
25
24
  import 'next/router';
@@ -1,7 +1,7 @@
1
1
  import { _ as _typeof } from './typeof-a286cf0c.js';
2
2
  import React from 'react';
3
3
  import { L as LazyLoad } from './index-35bdcc81.js';
4
- import urlFor from './urlFor.js';
4
+ import { i as imageUrlBuilder } from './index-0dbff1d1.js';
5
5
  import { m as moment } from './moment-bc12cb97.js';
6
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
7
  import 'prop-types';
@@ -13,7 +13,6 @@ import './_is-array-3e99e06e.js';
13
13
  import './_object-pie-133f504a.js';
14
14
  import './_library-528f1934.js';
15
15
  import 'react-dom';
16
- import './index-0dbff1d1.js';
17
16
 
18
17
  var css = ".VideoSeriesCard-module_article__Hlc3e {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.VideoSeriesCard-module_article__Hlc3e a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.VideoSeriesCard-module_thumb__3hGyJ {\n width: 25%;\n}\n.VideoSeriesCard-module_thumb__3hGyJ img {\n width: 100%;\n height: auto;\n}\n.VideoSeriesCard-module_info__2_i1N {\n width: 75%;\n font-size: 1rem;\n}\n.VideoSeriesCard-module_info__2_i1N h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.VideoSeriesCard-module_published__1fI0q {\n color: #6d6d6d;\n margin: 0;\n}\n.VideoSeriesCard-module_summary__3hWJT {\n margin: 0.5rem 0 0 0;\n}\n.VideoSeriesCard-module_author__aU35o {\n margin: 0;\n}\n.VideoSeriesCard-module_author__aU35o span {\n color: #6d6d6d;\n}\n@media only screen and (max-width: 568px) {\n .VideoSeriesCard-module_article__Hlc3e {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .VideoSeriesCard-module_article__Hlc3e a {\n flex-direction: column;\n align-items: center;\n }\n .VideoSeriesCard-module_thumb__3hGyJ {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .VideoSeriesCard-module_thumb__3hGyJ img{\n border-radius: 10px 10px 0 0; \n }\n .VideoSeriesCard-module_thumb__3hGyJ figure {\n margin: 0;\n }\n .VideoSeriesCard-module_info__2_i1N {\n width: 90%;\n padding: 1rem !important;\n }\n .VideoSeriesCard-module_info__2_i1N h2 {\n font-size: 1rem;\n }\n}\n";
19
18
  var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
@@ -27,7 +26,7 @@ var VideoSeriesCard = function VideoSeriesCard(props) {
27
26
  index = props.index;
28
27
 
29
28
  var episode = parseInt(index) + 1;
30
-
29
+ var builder = imageUrlBuilder(client);
31
30
  return React.createElement(
32
31
  'div',
33
32
  { className: styles.article },
@@ -44,7 +43,7 @@ var VideoSeriesCard = function VideoSeriesCard(props) {
44
43
  LazyLoad,
45
44
  null,
46
45
  React.createElement('img', {
47
- src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
46
+ src: data.thumbnail && data.thumbnail.asset ? builder.image(data.thumbnail).url() : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
48
47
  })
49
48
  )
50
49
  )
@@ -46,7 +46,6 @@ import './Segment.js';
46
46
  import './main-b5c5aac1.js';
47
47
  import './ADInfeed-7aaa47e1.js';
48
48
  import './index-35bdcc81.js';
49
- import './urlFor.js';
50
49
  import './style-inject.es-1f59c1d0.js';
51
50
 
52
51
  var _this = undefined;
@@ -29,7 +29,6 @@ import './core.get-iterator-method-133dfacd.js';
29
29
  import './index-c7e2ac95.js';
30
30
  import './index-35bdcc81.js';
31
31
  import './smoothscroll-fa4e3f8c.js';
32
- import './urlFor.js';
33
32
  import './index-0dbff1d1.js';
34
33
  import './main-b5c5aac1.js';
35
34
  import './isSymbol-a7e9aafe.js';
@@ -254,7 +253,7 @@ var VideoSeriesListing = function (_React$Component) {
254
253
  _createClass(VideoSeriesListing, [{
255
254
  key: 'componentDidMount',
256
255
  value: function componentDidMount() {
257
- // console.log(this.state)
256
+ console.log(this.state);
258
257
  }
259
258
  }, {
260
259
  key: 'render',
package/dist/esm/View.js CHANGED
@@ -15,9 +15,9 @@ import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
17
17
  import SocialShare from './SocialShare.js';
18
- import { r as renderAuthor, g as getSerializers } from './index-e8c6a892.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-04c4d8d6.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { S as SeriesSlider } from './SeriesSlider-8f2aca58.js';
20
+ import { S as SeriesSlider } from './SeriesSlider-8414085b.js';
21
21
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-68291ce9.js';
22
22
  import getKeywords from './getKeywords.js';
23
23
  import urlFor from './urlFor.js';
@@ -143,7 +143,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
143
143
  var thumbnailUrl = false;
144
144
 
145
145
  if (article.documentGroup.thumbnail) {
146
- thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
146
+ thumbnailUrl = urlFor(client, article.documentGroup.thumbnail).url();
147
147
  }
148
148
 
149
149
  return React.createElement(
@@ -235,7 +235,7 @@ var ISI = function ISI(props) {
235
235
  var article_body = document.getElementById('article__block');
236
236
  var isi = document.getElementById('isi');
237
237
  var articleBottomPosition = article_body.getBoundingClientRect().bottom - window.innerHeight;
238
- // console.log(articleBottomPosition, bottomOfArticle)
238
+ console.log(articleBottomPosition, bottomOfArticle);
239
239
  if (articleBottomPosition < 30 && !isi.classList.contains('in-view')) {
240
240
  setbottomOfArticle(true);
241
241
  }
@@ -361,7 +361,7 @@ var RelatedArticle = function RelatedArticle(_ref) {
361
361
  { className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
362
362
  article.thumbnail ? React.createElement('img', {
363
363
  style: { objectFit: 'cover', objectPosition: 'center' },
364
- src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
364
+ src: article.thumbnail && urlFor(client, article.thumbnail.asset).width(250).url(),
365
365
  alt: article.title
366
366
  }) : React.createElement(
367
367
  React.Fragment,
@@ -965,7 +965,7 @@ var Article = forwardRef(function (props, ref) {
965
965
  var shareUrl = shareBaseUrl + props.article.url.current;
966
966
  var shareTitle = article.title;
967
967
  var shareSummary = article.summary;
968
- var shareImage = thumbnail && thumbnail.asset ? urlFor({ client: props.client, source: thumbnail.asset }) : shareImageDefault;
968
+ var shareImage = thumbnail && thumbnail.asset ? urlFor(props.client, thumbnail.asset).url() : shareImageDefault;
969
969
  var siteName = props.website && props.website.title ? props.website.title : '';
970
970
  var shareKeywords = getKeywords(props.article).join(',');
971
971
 
@@ -1064,7 +1064,7 @@ var Article = forwardRef(function (props, ref) {
1064
1064
  return React.createElement(
1065
1065
  'span',
1066
1066
  { key: index },
1067
- renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
1067
+ renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(props.client, authorDetail.profileImage).height(authorImgHeight).url())
1068
1068
  );
1069
1069
  }),
1070
1070
  React.createElement(
@@ -1774,7 +1774,7 @@ View.returnGetInitialProps = function () {
1774
1774
  seriesUrl: '?seriesArticle=' + seriesArticle,
1775
1775
  seriesTitle: subArticle.title,
1776
1776
  seriesSummary: subArticle.summary,
1777
- seriesThumbnail: subArticle.thumbnail && subArticle.thumbnail.asset ? urlFor({ client: client, source: subArticle.thumbnail.asset }) : null
1777
+ seriesThumbnail: subArticle.thumbnail && subArticle.thumbnail.asset ? urlFor(client, subArticle.thumbnail.asset).url() : null
1778
1778
  };
1779
1779
  article.seriesShareOptions = seriesShareOptions;
1780
1780
  }
@@ -1787,7 +1787,7 @@ View.returnGetInitialProps = function () {
1787
1787
  seriesUrl: '?seriesVid=' + seriesVid,
1788
1788
  seriesTitle: video.title,
1789
1789
  seriesSummary: video.intro,
1790
- seriesThumbnail: video.thumbnail && video.thumbnail.asset ? urlFor({ client: client, source: video.thumbnail.asset }) : null
1790
+ seriesThumbnail: video.thumbnail && video.thumbnail.asset ? urlFor(client, video.thumbnail.asset).url() : null
1791
1791
  };
1792
1792
  article.seriesShareOptions = seriesShareOptions;
1793
1793
  }
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
- import urlFor from './urlFor.js';
3
+ import { i as imageUrlBuilder } from './index-0dbff1d1.js';
4
4
  import { c as clean_html_1 } from './entities-932b50cf.js';
5
5
  import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
6
6
  import { L as LazyLoad } from './index-35bdcc81.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
- import './index-0dbff1d1.js';
9
8
  import './slicedToArray-be2f7a22.js';
10
9
  import './web.dom.iterable-4109ff68.js';
11
10
  import './es6.string.iterator-bc33758b.js';
@@ -21,11 +20,15 @@ var YahooHero = function YahooHero(props) {
21
20
  var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
22
21
  var client = props.client;
23
22
 
23
+ var builder = imageUrlBuilder(client);
24
+ function urlFor(source) {
25
+ return builder.image(source).auto('format');
26
+ }
24
27
 
25
28
  var topArticleThumbnail = '';
26
29
  var topArticleAltText = topArticle.title;
27
30
  if (topArticle.thumbnail && topArticle.thumbnail.asset) {
28
- topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: 600 });
31
+ topArticleThumbnail = urlFor(topArticle.thumbnail.asset).width(600).url();
29
32
  topArticleAltText = topArticle.thumbnail.asset.originalFileName;
30
33
  } else if (props.thumbnail) {
31
34
  topArticleThumbnail = props.thumbnail;
@@ -74,8 +77,7 @@ var YahooHero = function YahooHero(props) {
74
77
  var articleThumbnail = '';
75
78
  article.title;
76
79
  if (article.thumbnail && article.thumbnail.asset) {
77
- articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
78
-
80
+ articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
79
81
  article.thumbnail.asset.originalFileName;
80
82
  } else if (props.thumbnail) {
81
83
  articleThumbnail = props.thumbnail;
@@ -114,7 +116,7 @@ var YahooHero = function YahooHero(props) {
114
116
  React.createElement(
115
117
  'style',
116
118
  { jsx: 'true' },
117
- '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 615px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n max-height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
119
+ '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 315px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
118
120
  )
119
121
  );
120
122
  };
@@ -4,7 +4,7 @@ import React, { useRef, useState, useEffect } from 'react';
4
4
  import { g as getYoutubeId } from './index-c7e2ac95.js';
5
5
  import { L as LazyLoad } from './index-35bdcc81.js';
6
6
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
7
- import urlFor from './urlFor.js';
7
+ import { i as imageUrlBuilder } from './index-0dbff1d1.js';
8
8
  import { m as main_43, a as main_49, b as main_42 } from './main-b5c5aac1.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './es6.string.iterator-bc33758b.js';
@@ -16,7 +16,6 @@ import './_library-528f1934.js';
16
16
  import './core.get-iterator-method-133dfacd.js';
17
17
  import 'react-dom';
18
18
  import 'prop-types';
19
- import './index-0dbff1d1.js';
20
19
 
21
20
  /*
22
21
  GROQ query -
@@ -51,6 +50,11 @@ var YoutubeGroup = function YoutubeGroup(props) {
51
50
  tileHeight = _useState8[0],
52
51
  setTileHeight = _useState8[1];
53
52
 
53
+ var urlFor = function urlFor(source, client) {
54
+ var builder = imageUrlBuilder(client);
55
+ return builder.image(source).auto('format');
56
+ };
57
+
54
58
  useEffect(function () {
55
59
  //IE11 Polyfill
56
60
  smoothscroll.polyfill();
@@ -244,7 +248,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
244
248
  var url = video.url;
245
249
  var thumbnail = void 0;
246
250
  if (video.thumbnail && video.thumbnail.asset) {
247
- thumbnail = urlFor({ source: video.thumbnail, client: props.client });
251
+ thumbnail = urlFor(video.thumbnail, props.client);
248
252
  } else if (_typeof(video.thumbnail == 'string')) {
249
253
  thumbnail = video.thumbnail;
250
254
  } else {
@@ -299,7 +303,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
299
303
  var _url = '' + video.link;
300
304
  var _thumbnail = void 0;
301
305
  if (video.thumbnail && video.thumbnail.asset) {
302
- _thumbnail = urlFor({ source: video.thumbnail, client: props.client });
306
+ _thumbnail = urlFor(video.thumbnail, props.client);
303
307
  } else {
304
308
  _thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
305
309
  }
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { g as default } from './index-e8c6a892.js';
2
+ export { g as default } from './index-04c4d8d6.js';
3
3
  import './BlockContent-52cf21c5.js';
4
4
  import './entities-932b50cf.js';
5
5
  import './slicedToArray-be2f7a22.js';
@@ -9,7 +9,6 @@ import './es6.string.iterator-bc33758b.js';
9
9
  import './_to-object-b50e61c3.js';
10
10
  import './core.get-iterator-method-133dfacd.js';
11
11
  import 'react-bootstrap';
12
- import './urlFor.js';
13
12
  import './index-0dbff1d1.js';
14
13
  import './index-2446af28.js';
15
14
  import './events-6c3a7a63.js';
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
2
2
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
3
3
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
4
- import urlFor from './urlFor.js';
4
+ import { i as imageUrlBuilder } from './index-0dbff1d1.js';
5
5
  import { l as lib_3 } from './index-2446af28.js';
6
6
  import Router, { useRouter } from 'next/router';
7
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
@@ -33,6 +33,10 @@ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorRetu
33
33
  import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
34
34
  import Figure$2 from 'react-bootstrap/Figure';
35
35
 
36
+ var urlFor$4 = function urlFor(source, builder) {
37
+ return builder.image(source).auto('format');
38
+ };
39
+
36
40
  var onChangeSlide = function onChangeSlide(selectedIndex, router) {
37
41
  var pageNumber = selectedIndex + 1;
38
42
  var href = '/view/' + router.query.url + '?page=' + pageNumber;
@@ -51,6 +55,8 @@ var Slideshow$1 = function Slideshow(_ref) {
51
55
  carouselIndex = _useState2[0],
52
56
  setCarouselIndex = _useState2[1];
53
57
 
58
+ var builder = imageUrlBuilder(client);
59
+
54
60
  useEffect(function () {
55
61
  var itemArr = router.asPath.split('?page=');
56
62
  var pageNumber = parseInt(itemArr[1]);
@@ -78,7 +84,7 @@ var Slideshow$1 = function Slideshow(_ref) {
78
84
  return React.createElement(
79
85
  Carousel.Item,
80
86
  { key: slide._key },
81
- React.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
87
+ React.createElement('img', { src: slide.asset && urlFor$4(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
82
88
  slide.caption && React.createElement(
83
89
  'p',
84
90
  { className: 'p-2' },
@@ -2059,6 +2065,11 @@ var Media = function Media(_ref) {
2059
2065
  _node$disableTextWrap = node.disableTextWrap,
2060
2066
  disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
2061
2067
 
2068
+ var builder = imageUrlBuilder(client);
2069
+
2070
+ var urlFor = function urlFor(source) {
2071
+ return builder.image(source).auto('format');
2072
+ };
2062
2073
 
2063
2074
  if (typeof window === 'undefined') {
2064
2075
  return null;
@@ -2138,7 +2149,7 @@ var Media = function Media(_ref) {
2138
2149
  React.createElement(
2139
2150
  LazyLoad,
2140
2151
  { once: true },
2141
- React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ sorce: poster, client: client }) }, alt && { alt: alt }))
2152
+ React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
2142
2153
  ),
2143
2154
  caption && React.createElement(
2144
2155
  Figure$1.Caption,
@@ -7140,6 +7151,11 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7140
7151
  }
7141
7152
  });
7142
7153
 
7154
+ var builder = imageUrlBuilder(client);
7155
+ function urlFor(source) {
7156
+ return builder.image(source);
7157
+ }
7158
+
7143
7159
  var router = useRouter();
7144
7160
 
7145
7161
  var _useState = useState(false),
@@ -7205,10 +7221,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7205
7221
 
7206
7222
  Videos.forEach(function (vid) {
7207
7223
  if (vid.type == 'mp4') {
7208
- data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
7224
+ data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset).url(), url: vid.url });
7209
7225
  } else {
7210
7226
  if (vid.thumbnail && vid.thumbnail.asset) {
7211
- data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
7227
+ data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset).url(), url: vid.url });
7212
7228
  } else {
7213
7229
  data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
7214
7230
  }
@@ -7219,7 +7235,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7219
7235
  if (data.length < seriesVid || !seriesVid) {
7220
7236
  setSeries(1);
7221
7237
  setVidUrl(Videos[0].url);
7222
- setVidThumbnail(Videos[0].thumbnail && Videos[0].thumbnail.asset ? urlFor({ client: client, source: Videos[0].thumbnail.asset }) : '');
7238
+ setVidThumbnail(Videos[0].thumbnail && Videos[0].thumbnail.asset ? urlFor(Videos[0].thumbnail.asset).url() : '');
7223
7239
  if (Videos[0].type) {
7224
7240
  setVidType(Videos[0].type);
7225
7241
  }
@@ -7230,7 +7246,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7230
7246
  } else {
7231
7247
  setSeries(seriesVid);
7232
7248
  setVidUrl(Videos[seriesVid - 1].url);
7233
- setVidThumbnail(Videos[seriesVid - 1].thumbnail && Videos[seriesVid - 1].thumbnail.asset ? urlFor({ client: client, source: Videos[seriesVid - 1].thumbnail.asset }) : '');
7249
+ setVidThumbnail(Videos[seriesVid - 1].thumbnail && Videos[seriesVid - 1].thumbnail.asset ? urlFor(Videos[seriesVid - 1].thumbnail.asset).url() : '');
7234
7250
  if (Videos[0].type) {
7235
7251
  setVidType(Videos[seriesVid - 1].type);
7236
7252
  }
@@ -7410,7 +7426,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7410
7426
  return React.createElement(
7411
7427
  'span',
7412
7428
  { key: index },
7413
- renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
7429
+ renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
7414
7430
  );
7415
7431
  })
7416
7432
  ),
@@ -8095,6 +8111,11 @@ var Leads = function Leads(_ref) {
8095
8111
  );
8096
8112
  };
8097
8113
 
8114
+ var urlFor$3 = function urlFor(source, client) {
8115
+ var builder = imageUrlBuilder(client);
8116
+ return builder.image(source).auto('format');
8117
+ };
8118
+
8098
8119
  var Slideshow = function Slideshow(_ref) {
8099
8120
  var slides = _ref.node.slides,
8100
8121
  client = _ref.client,
@@ -8151,7 +8172,7 @@ var Slideshow = function Slideshow(_ref) {
8151
8172
  React.createElement(
8152
8173
  LazyLoad,
8153
8174
  null,
8154
- React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8175
+ React.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8155
8176
  )
8156
8177
  ),
8157
8178
  React.createElement(
@@ -8214,6 +8235,10 @@ var Formstack = function Formstack(_ref) {
8214
8235
  );
8215
8236
  };
8216
8237
 
8238
+ var urlFor$2 = function urlFor(source, client) {
8239
+ var builder = imageUrlBuilder(client);
8240
+ return builder.image(source).auto('format');
8241
+ };
8217
8242
  var MultiMedia = function MultiMedia(props) {
8218
8243
  var medias = props.node.medias,
8219
8244
  client = props.client;
@@ -8246,7 +8271,7 @@ var MultiMedia = function MultiMedia(props) {
8246
8271
  imageBox && React.createElement(
8247
8272
  LazyLoad,
8248
8273
  { once: true },
8249
- React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
8274
+ React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
8250
8275
  ),
8251
8276
  media.caption && React.createElement(
8252
8277
  'span',
@@ -8360,6 +8385,10 @@ var ArticleSeries = function ArticleSeries(_ref) {
8360
8385
  var today = moment().utc().format();
8361
8386
 
8362
8387
  var authorPrefix = 'authors';
8388
+ var builder = imageUrlBuilder(client);
8389
+ function urlFor(source) {
8390
+ return builder.image(source);
8391
+ }
8363
8392
  var router = useRouter();
8364
8393
 
8365
8394
  var refArray = useRef([]);
@@ -8462,7 +8491,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8462
8491
  React.createElement(
8463
8492
  'div',
8464
8493
  { className: 'prevNext-thumbnail' },
8465
- React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
8494
+ React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
8466
8495
  React.createElement(
8467
8496
  'div',
8468
8497
  { className: 'prevNext-reading ' + showReading },
@@ -8532,7 +8561,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8532
8561
 
8533
8562
  useEffect(function () {
8534
8563
  if (articleClicked === true) {
8535
- onChangeArticle(Articles[articleIndex].param.current, 'top', Articles[articleIndex].title, Articles[articleIndex].summary, urlFor({ client: client, source: Articles[articleIndex].thumbnail.asset }));
8564
+ onChangeArticle(Articles[articleIndex].param.current, 'top', Articles[articleIndex].title, Articles[articleIndex].summary, urlFor(Articles[articleIndex].thumbnail.asset).url());
8536
8565
  }
8537
8566
  }, [articleClicked]);
8538
8567
 
@@ -8670,7 +8699,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8670
8699
  setCurrentTitle(title);
8671
8700
  if (rootArticle) {
8672
8701
  setCurrentSummary(rootArticle.summary ? rootArticle.summary : '');
8673
- setCurrentThumbnail(urlFor({ client: client, source: rootArticle.thumbnail.asset }));
8702
+ setCurrentThumbnail(urlFor(rootArticle.thumbnail.asset).url());
8674
8703
  } else {
8675
8704
  setCurrentSummary('');
8676
8705
  setCurrentThumbnail('');
@@ -8756,7 +8785,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8756
8785
  onChange: function onChange(visible) {
8757
8786
  if (upArrowClicked === false && articleClicked === false) {
8758
8787
  if (visible === 'top' || visible === 'bottom' || visible === 'small-top') {
8759
- onChangeArticle(article.param.current, visible, article.title, article.summary, urlFor({ client: client, source: article.thumbnail.asset }));
8788
+ onChangeArticle(article.param.current, visible, article.title, article.summary, urlFor(article.thumbnail.asset).url());
8760
8789
  }
8761
8790
  }
8762
8791
  } },
@@ -8792,7 +8821,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8792
8821
  return React.createElement(
8793
8822
  'span',
8794
8823
  { key: index },
8795
- renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
8824
+ renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
8796
8825
  );
8797
8826
  })
8798
8827
  ),
@@ -8902,6 +8931,16 @@ var LightBox = function LightBox(_ref) {
8902
8931
  );
8903
8932
  };
8904
8933
 
8934
+ var urlFor$1 = function urlFor(source, client) {
8935
+ var builder = imageUrlBuilder(client);
8936
+ return builder.image(source).auto('format');
8937
+ };
8938
+
8939
+ var generateSrcSet = function generateSrcSet(source, client, width) {
8940
+ var builder = imageUrlBuilder(client);
8941
+ return builder.image(source).width(width).fit('max').auto('format').url();
8942
+ };
8943
+
8905
8944
  var compareProps = function compareProps(prevProps, nextProps) {
8906
8945
  if (nextProps.node.asset && nextProps.node.asset._ref) {
8907
8946
  return prevProps.node.asset._ref === nextProps.node.asset._ref;
@@ -8919,13 +8958,13 @@ var FigureImage = React.memo(function (_ref2) {
8919
8958
  return React.createElement(
8920
8959
  'picture',
8921
8960
  null,
8922
- React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8923
- React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8924
- React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
8961
+ React.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
8962
+ React.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
8963
+ React.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
8925
8964
  React.createElement('img', _extends({
8926
8965
  style: figureImageStyle,
8927
8966
  className: 'figure-image',
8928
- src: urlFor({ source: node, client: client }),
8967
+ src: urlFor$1(node, client).url(),
8929
8968
  alt: imgAlt ? imgAlt : 'figure image'
8930
8969
  }, !link && {
8931
8970
  onClick: function onClick() {
@@ -9029,7 +9068,7 @@ var FigureComponent = function FigureComponent(props) {
9029
9068
  };
9030
9069
 
9031
9070
  var handleClickFigure = useCallback(function (node, client) {
9032
- setLightboxImgSrc(urlFor({ source: node, client: client }));
9071
+ setLightboxImgSrc(urlFor$1(node, client).url());
9033
9072
  setShowLightbox(true);
9034
9073
  }, [node, client]);
9035
9074
 
@@ -9069,6 +9108,11 @@ var FigureComponent = function FigureComponent(props) {
9069
9108
 
9070
9109
  var Figure = React.memo(FigureComponent, compareProps);
9071
9110
 
9111
+ var urlFor = function urlFor(source, client) {
9112
+ var builder = imageUrlBuilder(client);
9113
+ return builder.image(source).auto('format');
9114
+ };
9115
+
9072
9116
  function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
9073
9117
  useEffect(function () {
9074
9118
  function handleClickOutside(event) {
@@ -9138,7 +9182,7 @@ var MultiFigure = function MultiFigure(props) {
9138
9182
  React.createElement(
9139
9183
  LazyLoad,
9140
9184
  { once: true },
9141
- React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
9185
+ React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor(image.asset, client).url(), alt: image.alt })
9142
9186
  ),
9143
9187
  React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9144
9188
  )
@@ -9151,10 +9195,10 @@ var MultiFigure = function MultiFigure(props) {
9151
9195
  React.createElement('img', {
9152
9196
  'images-count': images.length,
9153
9197
  className: 'multi-figure-image',
9154
- src: urlFor({ source: image.asset, client: client }),
9198
+ src: urlFor(image.asset, client).url(),
9155
9199
  alt: image.alt,
9156
9200
  onClick: function onClick() {
9157
- setOpenImgSrc(urlFor({ source: image, client: client }));
9201
+ setOpenImgSrc(urlFor(image, client).url());
9158
9202
  setOpenImg(true);
9159
9203
  }
9160
9204
  })