@mjhls/mjh-framework 1.0.831-beta.0 → 1.0.832-beta.0

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 (50) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/ArticleProgramLandingPage.js +2 -2
  3. package/dist/cjs/EventsDeck.js +1 -1
  4. package/dist/cjs/ExternalResources.js +2 -2
  5. package/dist/cjs/GridContent.js +2 -105
  6. package/dist/cjs/HamMagazine.js +2 -2
  7. package/dist/cjs/HorizontalArticleListing.js +2 -2
  8. package/dist/cjs/IssueLanding.js +2 -2
  9. package/dist/cjs/MediaSeriesLanding.js +2 -2
  10. package/dist/cjs/NavMagazine.js +2 -2
  11. package/dist/cjs/NavNative.js +1 -1
  12. package/dist/cjs/PartnerDetailListing.js +2 -2
  13. package/dist/cjs/PublicationDeck.js +1 -1
  14. package/dist/cjs/SeriesListingDeck.js +1 -1
  15. package/dist/cjs/TaxonomyDescription.js +2 -2
  16. package/dist/cjs/TemplateNormal.js +2 -2
  17. package/dist/cjs/VideoProgramLandingPage.js +2 -2
  18. package/dist/cjs/View.js +3 -3
  19. package/dist/cjs/YahooHero.js +4 -4
  20. package/dist/cjs/getSerializers.js +2 -2
  21. package/dist/cjs/{index-454b179d.js → index-0b9683e0.js} +71 -20
  22. package/dist/cjs/index.js +4 -4
  23. package/dist/cjs/urlFor.js +1 -1
  24. package/dist/esm/ArticleProgramLandingPage.js +2 -2
  25. package/dist/esm/EventsDeck.js +1 -1
  26. package/dist/esm/ExternalResources.js +2 -2
  27. package/dist/esm/GridContent.js +2 -105
  28. package/dist/esm/HamMagazine.js +2 -2
  29. package/dist/esm/HorizontalArticleListing.js +2 -2
  30. package/dist/esm/IssueLanding.js +2 -2
  31. package/dist/esm/MediaSeriesLanding.js +2 -2
  32. package/dist/esm/NavMagazine.js +2 -2
  33. package/dist/esm/NavNative.js +1 -1
  34. package/dist/esm/PartnerDetailListing.js +2 -2
  35. package/dist/esm/PublicationDeck.js +1 -1
  36. package/dist/esm/SeriesListingDeck.js +1 -1
  37. package/dist/esm/TaxonomyDescription.js +2 -2
  38. package/dist/esm/TemplateNormal.js +2 -2
  39. package/dist/esm/VideoProgramLandingPage.js +2 -2
  40. package/dist/esm/View.js +3 -3
  41. package/dist/esm/YahooHero.js +4 -4
  42. package/dist/esm/getSerializers.js +2 -2
  43. package/dist/esm/{index-0d1eb0c4.js → index-59b21a97.js} +71 -20
  44. package/dist/esm/index.js +4 -4
  45. package/dist/esm/urlFor.js +1 -1
  46. package/package.json +1 -1
  47. package/dist/cjs/{SeriesSlider-85eec772.js → SeriesSlider-d16a5ae5.js} +0 -0
  48. package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-97dd19a5.js} +1 -1
  49. package/dist/esm/{SeriesSlider-afab5c1b.js → SeriesSlider-8dc17b11.js} +0 -0
  50. package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-db5ba548.js} +1 -1
@@ -26,7 +26,6 @@ var slicedToArray = require('./slicedToArray-8f385299.js');
26
26
  var Segment = require('./Segment.js');
27
27
  var Beam = require('./Beam.js');
28
28
  var AdSlot = require('./AdSlot.js');
29
- var Button = _interopDefault(require('react-bootstrap/Button'));
30
29
  var BlockContent = require('./BlockContent-091a991f.js');
31
30
  var index$3 = require('./index-187c967e.js');
32
31
  var GroupDeck = require('./GroupDeck.js');
@@ -38,6 +37,7 @@ var Head = _interopDefault(require('next/head'));
38
37
  var SocialShare = require('./SocialShare.js');
39
38
  var _objectToArray = require('./_object-to-array-5762f850.js');
40
39
  var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
40
+ var Button = _interopDefault(require('react-bootstrap/Button'));
41
41
  var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
42
42
 
43
43
  var onChangeSlide = function onChangeSlide(selectedIndex, router) {
@@ -85,7 +85,14 @@ var Slideshow = function Slideshow(_ref) {
85
85
  return React__default.createElement(
86
86
  reactBootstrap.Carousel.Item,
87
87
  { key: slide._key },
88
- React__default.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
88
+ React__default.createElement(
89
+ 'picture',
90
+ null,
91
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
92
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
93
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
94
+ React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
95
+ ),
89
96
  slide.caption && React__default.createElement(
90
97
  'p',
91
98
  { className: 'p-2' },
@@ -2175,7 +2182,14 @@ var Media = function Media(_ref) {
2175
2182
  React__default.createElement(
2176
2183
  index$2.LazyLoad,
2177
2184
  { once: true },
2178
- React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2185
+ React__default.createElement(
2186
+ 'picture',
2187
+ null,
2188
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2189
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2190
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2191
+ React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2192
+ )
2179
2193
  ),
2180
2194
  caption && React__default.createElement(
2181
2195
  reactBootstrap.Figure.Caption,
@@ -8142,7 +8156,14 @@ var Slideshow$1 = function Slideshow(_ref) {
8142
8156
  React__default.createElement(
8143
8157
  index$2.LazyLoad,
8144
8158
  null,
8145
- React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8159
+ React__default.createElement(
8160
+ 'picture',
8161
+ null,
8162
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8163
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8164
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8165
+ React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8166
+ )
8146
8167
  )
8147
8168
  ),
8148
8169
  React__default.createElement(
@@ -8237,7 +8258,14 @@ var MultiMedia = function MultiMedia(props) {
8237
8258
  imageBox && React__default.createElement(
8238
8259
  index$2.LazyLoad,
8239
8260
  { once: true },
8240
- React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
8261
+ React__default.createElement(
8262
+ 'picture',
8263
+ null,
8264
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8265
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8266
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
8267
+ React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
8268
+ )
8241
8269
  ),
8242
8270
  media.caption && React__default.createElement(
8243
8271
  'span',
@@ -9075,6 +9103,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
9075
9103
  }, [ref]);
9076
9104
  }
9077
9105
 
9106
+ var FigureImage$1 = React__default.memo(function (_ref) {
9107
+ var imagesCount = _ref.imagesCount,
9108
+ image = _ref.image,
9109
+ client = _ref.client,
9110
+ imgAlt = _ref.imgAlt,
9111
+ link = _ref.link,
9112
+ handleClickFigure = _ref.handleClickFigure;
9113
+
9114
+ return React__default.createElement(
9115
+ 'picture',
9116
+ null,
9117
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9118
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9119
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9120
+ React__default.createElement('img', _extends$1._extends({
9121
+ 'images-count': imagesCount,
9122
+ className: 'multi-figure-image',
9123
+ src: urlFor({ source: image, client: client }),
9124
+ alt: imgAlt ? imgAlt : 'multi figure'
9125
+ }, !link && {
9126
+ onClick: function onClick() {
9127
+ return handleClickFigure(image, client);
9128
+ }
9129
+ }))
9130
+ );
9131
+ });
9132
+
9078
9133
  var MultiFigure = function MultiFigure(props) {
9079
9134
  var images = props.node.images,
9080
9135
  client = props.client,
@@ -9094,9 +9149,9 @@ var MultiFigure = function MultiFigure(props) {
9094
9149
  var lightboxContainer = React.useRef(null);
9095
9150
  useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
9096
9151
 
9097
- var FigureCaption = function FigureCaption(_ref) {
9098
- var caption = _ref.caption,
9099
- imgcaption = _ref.imgcaption;
9152
+ var FigureCaption = function FigureCaption(_ref2) {
9153
+ var caption = _ref2.caption,
9154
+ imgcaption = _ref2.imgcaption;
9100
9155
 
9101
9156
  if (imgcaption && imgcaption.length > 0) {
9102
9157
  return React__default.createElement(
@@ -9109,6 +9164,11 @@ var MultiFigure = function MultiFigure(props) {
9109
9164
  } else return null;
9110
9165
  };
9111
9166
 
9167
+ var handleClickFigure = React.useCallback(function (image, client) {
9168
+ setOpenImgSrc(urlFor({ source: image, client: client }));
9169
+ setOpenImg(true);
9170
+ }, [client]);
9171
+
9112
9172
  if (images && images.length > 0) {
9113
9173
  return React__default.createElement(
9114
9174
  'div',
@@ -9129,7 +9189,7 @@ var MultiFigure = function MultiFigure(props) {
9129
9189
  React__default.createElement(
9130
9190
  index$2.LazyLoad,
9131
9191
  { once: true },
9132
- React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
9192
+ React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
9133
9193
  ),
9134
9194
  React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9135
9195
  )
@@ -9139,16 +9199,7 @@ var MultiFigure = function MultiFigure(props) {
9139
9199
  React__default.createElement(
9140
9200
  index$2.LazyLoad,
9141
9201
  { once: true },
9142
- React__default.createElement('img', {
9143
- 'images-count': images.length,
9144
- className: 'multi-figure-image',
9145
- src: urlFor({ source: image.asset, client: client }),
9146
- alt: image.alt,
9147
- onClick: function onClick() {
9148
- setOpenImgSrc(urlFor({ source: image, client: client }));
9149
- setOpenImg(true);
9150
- }
9151
- })
9202
+ React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
9152
9203
  ),
9153
9204
  React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9154
9205
  )
@@ -9163,7 +9214,7 @@ var MultiFigure = function MultiFigure(props) {
9163
9214
  React__default.createElement(
9164
9215
  'style',
9165
9216
  { jsx: 'true' },
9166
- '\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
9217
+ '\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
9167
9218
  )
9168
9219
  );
9169
9220
  }
package/dist/cjs/index.js CHANGED
@@ -49,7 +49,6 @@ var Beam = require('./Beam.js');
49
49
  var AdSlot = require('./AdSlot.js');
50
50
  require('./ADInfeed-8d621d3c.js');
51
51
  var DeckContent = require('./DeckContent.js');
52
- require('react-bootstrap/Button');
53
52
  require('./lodash-fc2922d0.js');
54
53
  require('./ADlgInfeed-0e26bccb.js');
55
54
  require('./getContentCategory-f38a4c00.js');
@@ -77,7 +76,7 @@ require('./index.esm-90433435.js');
77
76
  var VideoSeriesListing = require('./VideoSeriesListing.js');
78
77
  var ArticleSeriesListing = require('./ArticleSeriesListing.js');
79
78
  var ArticleCarousel = require('./ArticleCarousel.js');
80
- var getSerializers = require('./index-454b179d.js');
79
+ var getSerializers = require('./index-0b9683e0.js');
81
80
  require('./util-f2c1b65b.js');
82
81
  require('./brightcove-react-player-loader.es-156bd4d6.js');
83
82
  require('next/head');
@@ -85,6 +84,7 @@ require('react-share');
85
84
  var SocialShare = require('./SocialShare.js');
86
85
  require('./_object-to-array-5762f850.js');
87
86
  require('react-bootstrap/Pagination');
87
+ require('react-bootstrap/Button');
88
88
  require('react-bootstrap/Figure');
89
89
  var HorizontalArticleListing = require('./HorizontalArticleListing.js');
90
90
  var MasterDeck = require('./MasterDeck.js');
@@ -125,7 +125,7 @@ require('./NavFooter-76c913e3.js');
125
125
  require('./index.esm-4d410430.js');
126
126
  var SocialIcons = require('./SocialIcons.js');
127
127
  require('react-bootstrap/FormControl');
128
- require('./SocialSearchComponent-cea213aa.js');
128
+ require('./SocialSearchComponent-97dd19a5.js');
129
129
  var NavMagazine = require('./NavMagazine.js');
130
130
  var NavNative = require('./NavNative.js');
131
131
  var Search = require('./Search.js');
@@ -182,7 +182,7 @@ require('swr');
182
182
  require('passport-local');
183
183
  require('mysql');
184
184
  require('./md5-5039b1a6.js');
185
- require('./SeriesSlider-85eec772.js');
185
+ require('./SeriesSlider-d16a5ae5.js');
186
186
  var getTargeting = require('./getTargeting-021d644c.js');
187
187
  var View = require('./View.js');
188
188
  var getKeywords = require('./getKeywords.js');
@@ -15,7 +15,7 @@ function urlFor(_ref) {
15
15
  _ref$imageMaxHeight = _ref.imageMaxHeight,
16
16
  imageMaxHeight = _ref$imageMaxHeight === undefined ? null : _ref$imageMaxHeight,
17
17
  _ref$imageFit = _ref.imageFit,
18
- imageFit = _ref$imageFit === undefined ? null : _ref$imageFit;
18
+ imageFit = _ref$imageFit === undefined ? 'crop' : _ref$imageFit;
19
19
 
20
20
 
21
21
  //checks for old usage so it wont break view pages
@@ -39,7 +39,6 @@ import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './async
39
39
  import './Segment.js';
40
40
  import './Beam.js';
41
41
  import './AdSlot.js';
42
- import 'react-bootstrap/Button';
43
42
  import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
44
43
  import './index-c7e2ac95.js';
45
44
  import './smoothscroll-0cd4c7a6.js';
@@ -49,7 +48,7 @@ import 'react-bootstrap';
49
48
  import './iconBase-602d52fe.js';
50
49
  import './index.esm-29e48d38.js';
51
50
  import ArticleSeriesListing from './ArticleSeriesListing.js';
52
- import { g as getSerializers } from './index-0d1eb0c4.js';
51
+ import { g as getSerializers } from './index-59b21a97.js';
53
52
  import './util-7700fc59.js';
54
53
  import './brightcove-react-player-loader.es-83f53e4e.js';
55
54
  import 'next/head';
@@ -57,6 +56,7 @@ import 'react-share';
57
56
  import './SocialShare.js';
58
57
  import './_object-to-array-7e804fce.js';
59
58
  import 'react-bootstrap/Pagination';
59
+ import 'react-bootstrap/Button';
60
60
  import 'react-bootstrap/Figure';
61
61
 
62
62
  var _this = undefined;
@@ -19,8 +19,8 @@ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
19
19
  import './main-e4a934b2.js';
20
20
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
21
21
  import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
22
- import Button$1 from 'react-bootstrap/Button';
23
22
  import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
23
+ import Button$1 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';
@@ -36,7 +36,6 @@ import './asyncToGenerator-fc1c2e29.js';
36
36
  import './Segment.js';
37
37
  import './Beam.js';
38
38
  import './AdSlot.js';
39
- import Button$1 from 'react-bootstrap/Button';
40
39
  import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
41
40
  import './index-c7e2ac95.js';
42
41
  import './smoothscroll-0cd4c7a6.js';
@@ -44,7 +43,7 @@ import './GroupDeck.js';
44
43
  import 'react-bootstrap';
45
44
  import './iconBase-602d52fe.js';
46
45
  import './index.esm-29e48d38.js';
47
- import { g as getSerializers } from './index-0d1eb0c4.js';
46
+ import { g as getSerializers } from './index-59b21a97.js';
48
47
  import './util-7700fc59.js';
49
48
  import './brightcove-react-player-loader.es-83f53e4e.js';
50
49
  import 'next/head';
@@ -52,6 +51,7 @@ import 'react-share';
52
51
  import './SocialShare.js';
53
52
  import './_object-to-array-7e804fce.js';
54
53
  import 'react-bootstrap/Pagination';
54
+ import Button$1 from 'react-bootstrap/Button';
55
55
  import 'react-bootstrap/Figure';
56
56
  import { m as momentTimezone } from './index-ef6d5dcf.js';
57
57
 
@@ -41,7 +41,6 @@ import './Segment.js';
41
41
  import './Beam.js';
42
42
  import './AdSlot.js';
43
43
  import { A as ADInfeed } from './ADInfeed-b566ce41.js';
44
- import Button$1 from 'react-bootstrap/Button';
45
44
  import { l as lodash } from './lodash-17fdfebb.js';
46
45
  import { A as ADlgInfeed } from './ADlgInfeed-5eb7281d.js';
47
46
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
@@ -229,104 +228,6 @@ var GridContent = function (_React$Component) {
229
228
  }
230
229
  }, _this.checkExternalUrl = function (url) {
231
230
  return new RegExp(['http', 'https'].join('|')).test(url);
232
- }, _this.renderPublicationFeature = function (row) {
233
- var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
234
- var _row$parent = row.parent;
235
- _row$parent = _row$parent === undefined ? {} : _row$parent;
236
- var _row$parent$identifie = _row$parent.identifier;
237
- _row$parent$identifie = _row$parent$identifie === undefined ? {} : _row$parent$identifie;
238
- var parentSlug = _row$parent$identifie.current,
239
- _row$identifier = row.identifier;
240
- _row$identifier = _row$identifier === undefined ? {} : _row$identifier;
241
- var childSlug = _row$identifier.current;
242
- var _this$props$issueMapp = _this.props.issueMapping,
243
- issueMapping = _this$props$issueMapp === undefined ? '/publications' : _this$props$issueMapp;
244
-
245
- if (row.name && row.articles && row.articles.length > 0) {
246
- return React__default.createElement(
247
- 'div',
248
- { className: 'publication-feature-container border rounded p-2' },
249
- React__default.createElement(
250
- Row$1,
251
- null,
252
- React__default.createElement(
253
- Col$1,
254
- { xs: 12 },
255
- React__default.createElement(
256
- 'h4',
257
- null,
258
- row.name,
259
- row.month && row.year && React__default.createElement(
260
- 'span',
261
- null,
262
- ' ',
263
- '| ',
264
- months[parseInt(row.month, 10)],
265
- ' ',
266
- row.year
267
- )
268
- )
269
- ),
270
- React__default.createElement(
271
- Col$1,
272
- { xs: 12, sm: 4 },
273
- React__default.createElement('img', { className: 'w-100', src: _this.renderCardImage(row), alt: row.name || '' })
274
- ),
275
- React__default.createElement(
276
- Col$1,
277
- { xs: 12, sm: 8 },
278
- React__default.createElement(
279
- Row$1,
280
- null,
281
- row.articles.map(function (article) {
282
- return React__default.createElement(
283
- Col$1,
284
- { key: article._id, xs: 12, sm: 6 },
285
- article.issueSection && article.issueSection.name && React__default.createElement(
286
- 'h6',
287
- { className: 'text-primary m-0 p-0 text-uppercase font-weight-bold' },
288
- article.issueSection.name
289
- ),
290
- article.title && React__default.createElement(
291
- React__default.Fragment,
292
- null,
293
- article.url && article.url.current ? React__default.createElement(
294
- 'a',
295
- { href: '/view/' + article.url.current },
296
- React__default.createElement(
297
- 'h6',
298
- { className: 'text-break' },
299
- article.title
300
- )
301
- ) : React__default.createElement(
302
- 'h6',
303
- { className: 'text-break' },
304
- article.title
305
- )
306
- )
307
- );
308
- })
309
- )
310
- ),
311
- issueMapping && parentSlug && childSlug && React__default.createElement(
312
- Col$1,
313
- { xs: 12 },
314
- React__default.createElement(
315
- Button$1,
316
- { href: issueMapping + '/' + parentSlug + '/' + childSlug, className: 'float-right', variant: 'outline-primary' },
317
- 'More Articles ',
318
- '>>'
319
- )
320
- )
321
- ),
322
- React__default.createElement(
323
- 'style',
324
- { jsx: 'true' },
325
- '\n .row {\n margin-top: -15px;\n }\n .row > * {\n margin-top: 15px;\n }\n '
326
- )
327
- );
328
- }
329
- return null;
330
231
  }, _this.renderMobileAd = function (index, numberOfItemsBeforeAd) {
331
232
  var rightItems = _this.props.rightItems;
332
233
 
@@ -358,7 +259,7 @@ var GridContent = function (_React$Component) {
358
259
 
359
260
  _createClass(GridContent, [{
360
261
  key: 'cardLoader',
361
- value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd, contentCategoryMapping, latestOncologyIssue) {
262
+ value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd, contentCategoryMapping) {
362
263
  var _this2 = this;
363
264
 
364
265
  var lgVar = Math.floor(12 / columns);
@@ -560,10 +461,6 @@ var GridContent = function (_React$Component) {
560
461
  }
561
462
  });
562
463
 
563
- var publicationFeature = this.props.publicationFeature;
564
-
565
- if (publicationFeature) posts = insert(posts, 3, publicationFeature);
566
-
567
464
  var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
568
465
  var heroContent = this.props.heroContent ? this.props.heroContent : 0;
569
466
  var featureCount = 0;
@@ -709,7 +606,7 @@ var GridContent = function (_React$Component) {
709
606
  return React__default.createElement(ADlgInfeed, _extends({ index: index }, row));
710
607
  } else if (row._type === 'brandInsightAd' && row.adUnit) {
711
608
  return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
712
- } else if (row._type === 'publication') return _this2.renderPublicationFeature(row);
609
+ }
713
610
  if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
714
611
  return React__default.createElement(
715
612
  React__default.Fragment,
@@ -12,10 +12,10 @@ import { m as main_36, c as main_37 } from './main-e4a934b2.js';
12
12
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
13
13
  import './asyncToGenerator-fc1c2e29.js';
14
14
  import Segment from './Segment.js';
15
- import 'react-bootstrap/Button';
16
15
  import './react-social-icons-a7d5c5c7.js';
17
16
  import './iconBase-602d52fe.js';
18
17
  import { b as IoMdLogIn } from './index.esm-29e48d38.js';
18
+ import 'react-bootstrap/Button';
19
19
  import 'react-bootstrap/Form';
20
20
  import Nav from 'react-bootstrap/Nav';
21
21
  import Navbar from 'react-bootstrap/Navbar';
@@ -25,7 +25,7 @@ import { N as NavFooter } from './NavFooter-e27bd93b.js';
25
25
  import { S as SocialNavFooter } from './index.esm-fd746768.js';
26
26
  import './SocialIcons.js';
27
27
  import 'react-bootstrap/FormControl';
28
- import { S as SocialSearchComponent } from './SocialSearchComponent-03c3e869.js';
28
+ import { S as SocialSearchComponent } from './SocialSearchComponent-db5ba548.js';
29
29
 
30
30
  var HamMagazine = function HamMagazine(props) {
31
31
  /*
@@ -36,7 +36,6 @@ import './asyncToGenerator-fc1c2e29.js';
36
36
  import './Segment.js';
37
37
  import './Beam.js';
38
38
  import './AdSlot.js';
39
- import 'react-bootstrap/Button';
40
39
  import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
41
40
  import './index-c7e2ac95.js';
42
41
  import './smoothscroll-0cd4c7a6.js';
@@ -46,7 +45,7 @@ import 'react-bootstrap';
46
45
  import './iconBase-602d52fe.js';
47
46
  import { I as IoIosArrowForward } from './index.esm-29e48d38.js';
48
47
  import ArticleCarousel from './ArticleCarousel.js';
49
- import { g as getSerializers } from './index-0d1eb0c4.js';
48
+ import { g as getSerializers } from './index-59b21a97.js';
50
49
  import './util-7700fc59.js';
51
50
  import './brightcove-react-player-loader.es-83f53e4e.js';
52
51
  import 'next/head';
@@ -54,6 +53,7 @@ import 'react-share';
54
53
  import './SocialShare.js';
55
54
  import './_object-to-array-7e804fce.js';
56
55
  import 'react-bootstrap/Pagination';
56
+ import 'react-bootstrap/Button';
57
57
  import 'react-bootstrap/Figure';
58
58
 
59
59
  function HorizontalArticleListing(_ref) {
@@ -40,7 +40,6 @@ import './Segment.js';
40
40
  import './Beam.js';
41
41
  import './AdSlot.js';
42
42
  import './ADInfeed-b566ce41.js';
43
- import 'react-bootstrap/Button';
44
43
  import './lodash-17fdfebb.js';
45
44
  import './ADlgInfeed-5eb7281d.js';
46
45
  import './getContentCategory-15dcc413.js';
@@ -54,7 +53,7 @@ import './timeDifferenceCalc.js';
54
53
  import QueueDeckExpanded from './QueueDeckExpanded.js';
55
54
  import './iconBase-602d52fe.js';
56
55
  import './index.esm-29e48d38.js';
57
- import { g as getSerializers } from './index-0d1eb0c4.js';
56
+ import { g as getSerializers } from './index-59b21a97.js';
58
57
  import './util-7700fc59.js';
59
58
  import './brightcove-react-player-loader.es-83f53e4e.js';
60
59
  import 'next/head';
@@ -62,6 +61,7 @@ import 'react-share';
62
61
  import './SocialShare.js';
63
62
  import './_object-to-array-7e804fce.js';
64
63
  import 'react-bootstrap/Pagination';
64
+ import 'react-bootstrap/Button';
65
65
  import 'react-bootstrap/Figure';
66
66
  import 'react-bootstrap/Breadcrumb';
67
67
  import Breadcrumbs from './Breadcrumbs.js';
@@ -41,7 +41,6 @@ import './Segment.js';
41
41
  import './Beam.js';
42
42
  import './AdSlot.js';
43
43
  import './ADInfeed-b566ce41.js';
44
- import 'react-bootstrap/Button';
45
44
  import './lodash-17fdfebb.js';
46
45
  import './ADlgInfeed-5eb7281d.js';
47
46
  import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
@@ -51,7 +50,7 @@ import './GroupDeck.js';
51
50
  import 'react-bootstrap';
52
51
  import './iconBase-602d52fe.js';
53
52
  import './index.esm-29e48d38.js';
54
- import { g as getSerializers } from './index-0d1eb0c4.js';
53
+ import { g as getSerializers } from './index-59b21a97.js';
55
54
  import './util-7700fc59.js';
56
55
  import './brightcove-react-player-loader.es-83f53e4e.js';
57
56
  import 'next/head';
@@ -59,6 +58,7 @@ import 'react-share';
59
58
  import './SocialShare.js';
60
59
  import './_object-to-array-7e804fce.js';
61
60
  import 'react-bootstrap/Pagination';
61
+ import 'react-bootstrap/Button';
62
62
  import 'react-bootstrap/Figure';
63
63
  import MasterDeck from './MasterDeck.js';
64
64
  import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
@@ -12,10 +12,10 @@ import { c as main_37 } from './main-e4a934b2.js';
12
12
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
13
13
  import './asyncToGenerator-fc1c2e29.js';
14
14
  import Segment from './Segment.js';
15
- import 'react-bootstrap/Button';
16
15
  import './react-social-icons-a7d5c5c7.js';
17
16
  import './iconBase-602d52fe.js';
18
17
  import { b as IoMdLogIn } from './index.esm-29e48d38.js';
18
+ import 'react-bootstrap/Button';
19
19
  import 'react-bootstrap/Form';
20
20
  import Nav from 'react-bootstrap/Nav';
21
21
  import Navbar from 'react-bootstrap/Navbar';
@@ -25,7 +25,7 @@ import { N as NavFooter } from './NavFooter-e27bd93b.js';
25
25
  import { S as SocialNavFooter } from './index.esm-fd746768.js';
26
26
  import './SocialIcons.js';
27
27
  import 'react-bootstrap/FormControl';
28
- import { S as SocialSearchComponent } from './SocialSearchComponent-03c3e869.js';
28
+ import { S as SocialSearchComponent } from './SocialSearchComponent-db5ba548.js';
29
29
 
30
30
  var NavMagazine = function NavMagazine(props) {
31
31
  /*
@@ -14,10 +14,10 @@ import { c as main_37 } from './main-e4a934b2.js';
14
14
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
15
15
  import './asyncToGenerator-fc1c2e29.js';
16
16
  import Segment from './Segment.js';
17
- import Button$1 from 'react-bootstrap/Button';
18
17
  import { i as isFunction_1, e as eq_1 } from './eq-b470f743.js';
19
18
  import './react-social-icons-a7d5c5c7.js';
20
19
  import { I as IconContext } from './iconBase-602d52fe.js';
20
+ import Button$1 from 'react-bootstrap/Button';
21
21
  import Form from 'react-bootstrap/Form';
22
22
  import Nav from 'react-bootstrap/Nav';
23
23
  import Navbar from 'react-bootstrap/Navbar';
@@ -40,7 +40,6 @@ import './Segment.js';
40
40
  import './Beam.js';
41
41
  import './AdSlot.js';
42
42
  import './ADInfeed-b566ce41.js';
43
- import 'react-bootstrap/Button';
44
43
  import './lodash-17fdfebb.js';
45
44
  import './ADlgInfeed-5eb7281d.js';
46
45
  import './getContentCategory-15dcc413.js';
@@ -54,7 +53,7 @@ import './timeDifferenceCalc.js';
54
53
  import QueueDeckExpanded from './QueueDeckExpanded.js';
55
54
  import './iconBase-602d52fe.js';
56
55
  import './index.esm-29e48d38.js';
57
- import { g as getSerializers } from './index-0d1eb0c4.js';
56
+ import { g as getSerializers } from './index-59b21a97.js';
58
57
  import './util-7700fc59.js';
59
58
  import './brightcove-react-player-loader.es-83f53e4e.js';
60
59
  import 'next/head';
@@ -62,6 +61,7 @@ import 'react-share';
62
61
  import './SocialShare.js';
63
62
  import './_object-to-array-7e804fce.js';
64
63
  import 'react-bootstrap/Pagination';
64
+ import 'react-bootstrap/Button';
65
65
  import 'react-bootstrap/Figure';
66
66
  import 'react-bootstrap/Carousel';
67
67
  import Feature from './Feature.js';
@@ -8,8 +8,8 @@ import 'react-dom';
8
8
  import './index-73819142.js';
9
9
  import urlFor from './urlFor.js';
10
10
  import { L as LazyLoad } from './index-5f7e79e7.js';
11
- import Button$1 from 'react-bootstrap/Button';
12
11
  import { l as lodash } from './lodash-17fdfebb.js';
12
+ import Button$1 from 'react-bootstrap/Button';
13
13
 
14
14
  var PublicationDeck = function PublicationDeck(props) {
15
15
  var data = props.data,
@@ -22,7 +22,7 @@ import './main-e4a934b2.js';
22
22
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
23
23
  import './index-c7e2ac95.js';
24
24
  import './smoothscroll-0cd4c7a6.js';
25
- import { S as SeriesSlider } from './SeriesSlider-afab5c1b.js';
25
+ import { S as SeriesSlider } from './SeriesSlider-8dc17b11.js';
26
26
 
27
27
  var usePrevious = function usePrevious(value) {
28
28
  var ref = useRef();