@mjhls/mjh-framework 1.0.836-deck-pagination-v1 → 1.0.837-formassembly-segment-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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # mjh-framework v. 1.0.836
1
+ # mjh-framework v. 1.0.837
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4
4
 
@@ -51,7 +51,7 @@ require('react-bootstrap');
51
51
  require('./iconBase-68959171.js');
52
52
  require('./index.esm-974f47d9.js');
53
53
  var ArticleSeriesListing = require('./ArticleSeriesListing.js');
54
- var getSerializers = require('./index-1a3ac358.js');
54
+ var getSerializers = require('./index-f5eddbab.js');
55
55
  require('./util-f2c1b65b.js');
56
56
  require('./brightcove-react-player-loader.es-5c98aec7.js');
57
57
  require('next/head');
@@ -63,10 +63,10 @@ var DeckQueue = function (_React$Component) {
63
63
 
64
64
  return _ret = (_temp = (_this = inherits._possibleConstructorReturn(this, (_ref = DeckQueue.__proto__ || inherits._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 = {
65
65
  data: _this.data,
66
- per: _this.params ? _this.params.itemsPerPage : 10,
66
+ per: _this.params ? _this.params.to : 2,
67
67
  page: _this.props.currentPage || 1,
68
68
  from: _this.params ? _this.params.from : 0,
69
- to: _this.params ? _this.params.to : 10,
69
+ to: _this.params ? _this.params.to : 2,
70
70
  total_pages: null,
71
71
  scrolling: true,
72
72
  query: _this.query,
@@ -46,7 +46,7 @@ require('./GroupDeck.js');
46
46
  require('react-bootstrap');
47
47
  require('./iconBase-68959171.js');
48
48
  require('./index.esm-974f47d9.js');
49
- var getSerializers = require('./index-1a3ac358.js');
49
+ var getSerializers = require('./index-f5eddbab.js');
50
50
  require('./util-f2c1b65b.js');
51
51
  require('./brightcove-react-player-loader.es-5c98aec7.js');
52
52
  require('next/head');
@@ -48,7 +48,7 @@ require('react-bootstrap');
48
48
  require('./iconBase-68959171.js');
49
49
  var index_esm = require('./index.esm-974f47d9.js');
50
50
  var ArticleCarousel = require('./ArticleCarousel.js');
51
- var getSerializers = require('./index-1a3ac358.js');
51
+ var getSerializers = require('./index-f5eddbab.js');
52
52
  require('./util-f2c1b65b.js');
53
53
  require('./brightcove-react-player-loader.es-5c98aec7.js');
54
54
  require('next/head');
@@ -56,7 +56,7 @@ require('./timeDifferenceCalc.js');
56
56
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
57
57
  require('./iconBase-68959171.js');
58
58
  require('./index.esm-974f47d9.js');
59
- var getSerializers = require('./index-1a3ac358.js');
59
+ var getSerializers = require('./index-f5eddbab.js');
60
60
  require('./util-f2c1b65b.js');
61
61
  require('./brightcove-react-player-loader.es-5c98aec7.js');
62
62
  require('next/head');
@@ -53,7 +53,7 @@ require('./GroupDeck.js');
53
53
  require('react-bootstrap');
54
54
  require('./iconBase-68959171.js');
55
55
  require('./index.esm-974f47d9.js');
56
- var getSerializers = require('./index-1a3ac358.js');
56
+ var getSerializers = require('./index-f5eddbab.js');
57
57
  require('./util-f2c1b65b.js');
58
58
  require('./brightcove-react-player-loader.es-5c98aec7.js');
59
59
  require('next/head');
@@ -56,7 +56,7 @@ require('./timeDifferenceCalc.js');
56
56
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
57
57
  require('./iconBase-68959171.js');
58
58
  require('./index.esm-974f47d9.js');
59
- var getSerializers = require('./index-1a3ac358.js');
59
+ var getSerializers = require('./index-f5eddbab.js');
60
60
  require('./util-f2c1b65b.js');
61
61
  require('./brightcove-react-player-loader.es-5c98aec7.js');
62
62
  require('next/head');
@@ -46,7 +46,7 @@ require('./GroupDeck.js');
46
46
  require('react-bootstrap');
47
47
  require('./iconBase-68959171.js');
48
48
  require('./index.esm-974f47d9.js');
49
- var getSerializers = require('./index-1a3ac358.js');
49
+ var getSerializers = require('./index-f5eddbab.js');
50
50
  require('./util-f2c1b65b.js');
51
51
  require('./brightcove-react-player-loader.es-5c98aec7.js');
52
52
  var Head = require('next/head');
@@ -51,7 +51,7 @@ require('react-bootstrap');
51
51
  require('./iconBase-68959171.js');
52
52
  require('./index.esm-974f47d9.js');
53
53
  var VideoSeriesListing = require('./VideoSeriesListing.js');
54
- var getSerializers = require('./index-1a3ac358.js');
54
+ var getSerializers = require('./index-f5eddbab.js');
55
55
  require('./util-f2c1b65b.js');
56
56
  require('./brightcove-react-player-loader.es-5c98aec7.js');
57
57
  require('next/head');
@@ -81,7 +81,7 @@ var VideoSeriesListing = function (_React$Component) {
81
81
  });
82
82
  return tempObj;
83
83
  }),
84
- per: _this.params ? _this.params.itemsPerPage : 2,
84
+ per: _this.params ? _this.params.to : 2,
85
85
  page: _this.props.currentPage || 1,
86
86
  from: _this.params ? _this.params.from : 0,
87
87
  to: _this.params ? _this.params.to : 2,
@@ -235,9 +235,7 @@ var VideoSeriesListing = function (_React$Component) {
235
235
  { key: index, style: { marginBottom: '2rem' }, counter: itemCounter++ },
236
236
  React__default['default'].createElement(
237
237
  'div',
238
- {
239
- className: 'video-title-banner',
240
- style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', fontSize: '1.25rem', borderBottom: '1px solid #d4a64d' } },
238
+ { className: 'video-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', fontSize: '1.25rem', borderBottom: '1px solid #d4a64d' } },
241
239
  React__default['default'].createElement(
242
240
  'a',
243
241
  { href: '/' + _this.props.page + '/' + docSeries.url.current },
package/dist/cjs/View.js CHANGED
@@ -48,7 +48,7 @@ require('./GroupDeck.js');
48
48
  require('react-bootstrap');
49
49
  require('./iconBase-68959171.js');
50
50
  require('./index.esm-974f47d9.js');
51
- var getSerializers = require('./index-1a3ac358.js');
51
+ var getSerializers = require('./index-f5eddbab.js');
52
52
  require('./util-f2c1b65b.js');
53
53
  require('./brightcove-react-player-loader.es-5c98aec7.js');
54
54
  var Head = require('next/head');
@@ -46,7 +46,7 @@ require('./GroupDeck.js');
46
46
  require('react-bootstrap');
47
47
  require('./iconBase-68959171.js');
48
48
  require('./index.esm-974f47d9.js');
49
- var getSerializers = require('./index-1a3ac358.js');
49
+ var getSerializers = require('./index-f5eddbab.js');
50
50
  require('./util-f2c1b65b.js');
51
51
  require('./brightcove-react-player-loader.es-5c98aec7.js');
52
52
  require('next/head');
@@ -92,7 +92,14 @@ var Slideshow = function Slideshow(_ref) {
92
92
  return React__default['default'].createElement(
93
93
  reactBootstrap.Carousel.Item,
94
94
  { key: slide._key },
95
- React__default['default'].createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
95
+ React__default['default'].createElement(
96
+ 'picture',
97
+ null,
98
+ React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
99
+ React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
100
+ React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
101
+ React__default['default'].createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
102
+ ),
96
103
  slide.caption && React__default['default'].createElement(
97
104
  'p',
98
105
  { className: 'p-2' },
@@ -2152,7 +2159,14 @@ var Media = function Media(_ref) {
2152
2159
  React__default['default'].createElement(
2153
2160
  index$2.LazyLoad,
2154
2161
  { once: true },
2155
- React__default['default'].createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2162
+ React__default['default'].createElement(
2163
+ 'picture',
2164
+ null,
2165
+ React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2166
+ React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2167
+ React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2168
+ React__default['default'].createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2169
+ )
2156
2170
  ),
2157
2171
  caption && React__default['default'].createElement(
2158
2172
  reactBootstrap.Figure.Caption,
@@ -8165,7 +8179,14 @@ var Slideshow$1 = function Slideshow(_ref) {
8165
8179
  React__default['default'].createElement(
8166
8180
  index$2.LazyLoad,
8167
8181
  null,
8168
- React__default['default'].createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8182
+ React__default['default'].createElement(
8183
+ 'picture',
8184
+ null,
8185
+ React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8186
+ React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8187
+ React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8188
+ React__default['default'].createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8189
+ )
8169
8190
  )
8170
8191
  ),
8171
8192
  React__default['default'].createElement(
@@ -8260,7 +8281,14 @@ var MultiMedia = function MultiMedia(props) {
8260
8281
  imageBox && React__default['default'].createElement(
8261
8282
  index$2.LazyLoad,
8262
8283
  { once: true },
8263
- React__default['default'].createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
8284
+ React__default['default'].createElement(
8285
+ 'picture',
8286
+ null,
8287
+ React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8288
+ React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8289
+ React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
8290
+ React__default['default'].createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
8291
+ )
8264
8292
  ),
8265
8293
  media.caption && React__default['default'].createElement(
8266
8294
  'span',
@@ -9098,6 +9126,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
9098
9126
  }, [ref]);
9099
9127
  }
9100
9128
 
9129
+ var FigureImage$1 = React__default['default'].memo(function (_ref) {
9130
+ var imagesCount = _ref.imagesCount,
9131
+ image = _ref.image,
9132
+ client = _ref.client,
9133
+ imgAlt = _ref.imgAlt,
9134
+ link = _ref.link,
9135
+ handleClickFigure = _ref.handleClickFigure;
9136
+
9137
+ return React__default['default'].createElement(
9138
+ 'picture',
9139
+ null,
9140
+ React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9141
+ React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9142
+ React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9143
+ React__default['default'].createElement('img', _extends._extends({
9144
+ 'images-count': imagesCount,
9145
+ className: 'multi-figure-image',
9146
+ src: urlFor({ source: image, client: client }),
9147
+ alt: imgAlt ? imgAlt : 'multi figure'
9148
+ }, !link && {
9149
+ onClick: function onClick() {
9150
+ return handleClickFigure(image, client);
9151
+ }
9152
+ }))
9153
+ );
9154
+ });
9155
+
9101
9156
  var MultiFigure = function MultiFigure(props) {
9102
9157
  var images = props.node.images,
9103
9158
  client = props.client,
@@ -9117,9 +9172,9 @@ var MultiFigure = function MultiFigure(props) {
9117
9172
  var lightboxContainer = React.useRef(null);
9118
9173
  useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
9119
9174
 
9120
- var FigureCaption = function FigureCaption(_ref) {
9121
- var caption = _ref.caption,
9122
- imgcaption = _ref.imgcaption;
9175
+ var FigureCaption = function FigureCaption(_ref2) {
9176
+ var caption = _ref2.caption,
9177
+ imgcaption = _ref2.imgcaption;
9123
9178
 
9124
9179
  if (imgcaption && imgcaption.length > 0) {
9125
9180
  return React__default['default'].createElement(
@@ -9132,6 +9187,11 @@ var MultiFigure = function MultiFigure(props) {
9132
9187
  } else return null;
9133
9188
  };
9134
9189
 
9190
+ var handleClickFigure = React.useCallback(function (image, client) {
9191
+ setOpenImgSrc(urlFor({ source: image, client: client }));
9192
+ setOpenImg(true);
9193
+ }, [client]);
9194
+
9135
9195
  if (images && images.length > 0) {
9136
9196
  return React__default['default'].createElement(
9137
9197
  'div',
@@ -9152,7 +9212,7 @@ var MultiFigure = function MultiFigure(props) {
9152
9212
  React__default['default'].createElement(
9153
9213
  index$2.LazyLoad,
9154
9214
  { once: true },
9155
- React__default['default'].createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
9215
+ React__default['default'].createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
9156
9216
  ),
9157
9217
  React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9158
9218
  )
@@ -9162,16 +9222,7 @@ var MultiFigure = function MultiFigure(props) {
9162
9222
  React__default['default'].createElement(
9163
9223
  index$2.LazyLoad,
9164
9224
  { once: true },
9165
- React__default['default'].createElement('img', {
9166
- 'images-count': images.length,
9167
- className: 'multi-figure-image',
9168
- src: urlFor({ source: image.asset, client: client }),
9169
- alt: image.alt,
9170
- onClick: function onClick() {
9171
- setOpenImgSrc(urlFor({ source: image, client: client }));
9172
- setOpenImg(true);
9173
- }
9174
- })
9225
+ React__default['default'].createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
9175
9226
  ),
9176
9227
  React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9177
9228
  )
@@ -9186,7 +9237,7 @@ var MultiFigure = function MultiFigure(props) {
9186
9237
  React__default['default'].createElement(
9187
9238
  'style',
9188
9239
  { jsx: 'true' },
9189
- '\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 '
9240
+ '\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 '
9190
9241
  )
9191
9242
  );
9192
9243
  }
@@ -9481,7 +9532,7 @@ var FormAssembly = function FormAssembly(props) {
9481
9532
  React.useEffect(function () {
9482
9533
  if (FormID) {
9483
9534
  var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
9484
- var anonymousID = analytics.user() && analytics.user().anonymousId();
9535
+ var anonymousID = typeof analytics !== 'undefined' && analytics.user() && analytics.user().anonymousId();
9485
9536
  if (anonymousID && needSegmentSupport) {
9486
9537
  src = src + '?tfa_1=' + anonymousID;
9487
9538
  }
package/dist/cjs/index.js CHANGED
@@ -74,7 +74,7 @@ require('./index.esm-974f47d9.js');
74
74
  var VideoSeriesListing = require('./VideoSeriesListing.js');
75
75
  var ArticleSeriesListing = require('./ArticleSeriesListing.js');
76
76
  var ArticleCarousel = require('./ArticleCarousel.js');
77
- var getSerializers = require('./index-1a3ac358.js');
77
+ var getSerializers = require('./index-f5eddbab.js');
78
78
  require('./util-f2c1b65b.js');
79
79
  require('./brightcove-react-player-loader.es-5c98aec7.js');
80
80
  require('next/head');
@@ -49,7 +49,7 @@ import 'react-bootstrap';
49
49
  import './iconBase-602d52fe.js';
50
50
  import './index.esm-3fdda599.js';
51
51
  import ArticleSeriesListing from './ArticleSeriesListing.js';
52
- import { g as getSerializers } from './index-9ae17e46.js';
52
+ import { g as getSerializers } from './index-fed909cb.js';
53
53
  import './util-7700fc59.js';
54
54
  import './brightcove-react-player-loader.es-4abff0b1.js';
55
55
  import 'next/head';
@@ -53,10 +53,10 @@ var DeckQueue = function (_React$Component) {
53
53
 
54
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 = {
55
55
  data: _this.data,
56
- per: _this.params ? _this.params.itemsPerPage : 10,
56
+ per: _this.params ? _this.params.to : 2,
57
57
  page: _this.props.currentPage || 1,
58
58
  from: _this.params ? _this.params.from : 0,
59
- to: _this.params ? _this.params.to : 10,
59
+ to: _this.params ? _this.params.to : 2,
60
60
  total_pages: null,
61
61
  scrolling: true,
62
62
  query: _this.query,
@@ -44,7 +44,7 @@ import './GroupDeck.js';
44
44
  import 'react-bootstrap';
45
45
  import './iconBase-602d52fe.js';
46
46
  import './index.esm-3fdda599.js';
47
- import { g as getSerializers } from './index-9ae17e46.js';
47
+ import { g as getSerializers } from './index-fed909cb.js';
48
48
  import './util-7700fc59.js';
49
49
  import './brightcove-react-player-loader.es-4abff0b1.js';
50
50
  import 'next/head';
@@ -46,7 +46,7 @@ import 'react-bootstrap';
46
46
  import './iconBase-602d52fe.js';
47
47
  import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
48
48
  import ArticleCarousel from './ArticleCarousel.js';
49
- import { g as getSerializers } from './index-9ae17e46.js';
49
+ import { g as getSerializers } from './index-fed909cb.js';
50
50
  import './util-7700fc59.js';
51
51
  import './brightcove-react-player-loader.es-4abff0b1.js';
52
52
  import 'next/head';
@@ -54,7 +54,7 @@ import './timeDifferenceCalc.js';
54
54
  import QueueDeckExpanded from './QueueDeckExpanded.js';
55
55
  import './iconBase-602d52fe.js';
56
56
  import './index.esm-3fdda599.js';
57
- import { g as getSerializers } from './index-9ae17e46.js';
57
+ import { g as getSerializers } from './index-fed909cb.js';
58
58
  import './util-7700fc59.js';
59
59
  import './brightcove-react-player-loader.es-4abff0b1.js';
60
60
  import 'next/head';
@@ -51,7 +51,7 @@ import './GroupDeck.js';
51
51
  import 'react-bootstrap';
52
52
  import './iconBase-602d52fe.js';
53
53
  import './index.esm-3fdda599.js';
54
- import { g as getSerializers } from './index-9ae17e46.js';
54
+ import { g as getSerializers } from './index-fed909cb.js';
55
55
  import './util-7700fc59.js';
56
56
  import './brightcove-react-player-loader.es-4abff0b1.js';
57
57
  import 'next/head';
@@ -54,7 +54,7 @@ import './timeDifferenceCalc.js';
54
54
  import QueueDeckExpanded from './QueueDeckExpanded.js';
55
55
  import './iconBase-602d52fe.js';
56
56
  import './index.esm-3fdda599.js';
57
- import { g as getSerializers } from './index-9ae17e46.js';
57
+ import { g as getSerializers } from './index-fed909cb.js';
58
58
  import './util-7700fc59.js';
59
59
  import './brightcove-react-player-loader.es-4abff0b1.js';
60
60
  import 'next/head';
@@ -44,7 +44,7 @@ import './GroupDeck.js';
44
44
  import 'react-bootstrap';
45
45
  import './iconBase-602d52fe.js';
46
46
  import './index.esm-3fdda599.js';
47
- import { g as getSerializers } from './index-9ae17e46.js';
47
+ import { g as getSerializers } from './index-fed909cb.js';
48
48
  import './util-7700fc59.js';
49
49
  import './brightcove-react-player-loader.es-4abff0b1.js';
50
50
  import Head from 'next/head';
@@ -49,7 +49,7 @@ import 'react-bootstrap';
49
49
  import './iconBase-602d52fe.js';
50
50
  import './index.esm-3fdda599.js';
51
51
  import VideoSeriesListing from './VideoSeriesListing.js';
52
- import { g as getSerializers } from './index-9ae17e46.js';
52
+ import { g as getSerializers } from './index-fed909cb.js';
53
53
  import './util-7700fc59.js';
54
54
  import './brightcove-react-player-loader.es-4abff0b1.js';
55
55
  import 'next/head';
@@ -74,7 +74,7 @@ var VideoSeriesListing = function (_React$Component) {
74
74
  });
75
75
  return tempObj;
76
76
  }),
77
- per: _this.params ? _this.params.itemsPerPage : 2,
77
+ per: _this.params ? _this.params.to : 2,
78
78
  page: _this.props.currentPage || 1,
79
79
  from: _this.params ? _this.params.from : 0,
80
80
  to: _this.params ? _this.params.to : 2,
@@ -228,9 +228,7 @@ var VideoSeriesListing = function (_React$Component) {
228
228
  { key: index, style: { marginBottom: '2rem' }, counter: itemCounter++ },
229
229
  React.createElement(
230
230
  'div',
231
- {
232
- className: 'video-title-banner',
233
- style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', fontSize: '1.25rem', borderBottom: '1px solid #d4a64d' } },
231
+ { className: 'video-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', fontSize: '1.25rem', borderBottom: '1px solid #d4a64d' } },
234
232
  React.createElement(
235
233
  'a',
236
234
  { href: '/' + _this.props.page + '/' + docSeries.url.current },
package/dist/esm/View.js CHANGED
@@ -46,7 +46,7 @@ import './GroupDeck.js';
46
46
  import 'react-bootstrap';
47
47
  import './iconBase-602d52fe.js';
48
48
  import './index.esm-3fdda599.js';
49
- import { r as renderAuthor, g as getSerializers } from './index-9ae17e46.js';
49
+ import { r as renderAuthor, g as getSerializers } from './index-fed909cb.js';
50
50
  import './util-7700fc59.js';
51
51
  import './brightcove-react-player-loader.es-4abff0b1.js';
52
52
  import Head from 'next/head';
@@ -44,7 +44,7 @@ import './GroupDeck.js';
44
44
  import 'react-bootstrap';
45
45
  import './iconBase-602d52fe.js';
46
46
  import './index.esm-3fdda599.js';
47
- export { g as default } from './index-9ae17e46.js';
47
+ export { g as default } from './index-fed909cb.js';
48
48
  import './util-7700fc59.js';
49
49
  import './brightcove-react-player-loader.es-4abff0b1.js';
50
50
  import 'next/head';
@@ -78,7 +78,14 @@ var Slideshow = function Slideshow(_ref) {
78
78
  return React.createElement(
79
79
  Carousel.Item,
80
80
  { key: slide._key },
81
- React.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
81
+ React.createElement(
82
+ 'picture',
83
+ null,
84
+ React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
85
+ React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
86
+ React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
87
+ React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
88
+ ),
82
89
  slide.caption && React.createElement(
83
90
  'p',
84
91
  { className: 'p-2' },
@@ -2138,7 +2145,14 @@ var Media = function Media(_ref) {
2138
2145
  React.createElement(
2139
2146
  LazyLoad,
2140
2147
  { once: true },
2141
- React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2148
+ React.createElement(
2149
+ 'picture',
2150
+ null,
2151
+ React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2152
+ React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2153
+ React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2154
+ React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2155
+ )
2142
2156
  ),
2143
2157
  caption && React.createElement(
2144
2158
  Figure$1.Caption,
@@ -8151,7 +8165,14 @@ var Slideshow$1 = function Slideshow(_ref) {
8151
8165
  React.createElement(
8152
8166
  LazyLoad,
8153
8167
  null,
8154
- React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8168
+ React.createElement(
8169
+ 'picture',
8170
+ null,
8171
+ React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8172
+ React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8173
+ React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8174
+ React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8175
+ )
8155
8176
  )
8156
8177
  ),
8157
8178
  React.createElement(
@@ -8246,7 +8267,14 @@ var MultiMedia = function MultiMedia(props) {
8246
8267
  imageBox && React.createElement(
8247
8268
  LazyLoad,
8248
8269
  { once: true },
8249
- React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
8270
+ React.createElement(
8271
+ 'picture',
8272
+ null,
8273
+ React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8274
+ React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8275
+ React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
8276
+ React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
8277
+ )
8250
8278
  ),
8251
8279
  media.caption && React.createElement(
8252
8280
  'span',
@@ -9084,6 +9112,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
9084
9112
  }, [ref]);
9085
9113
  }
9086
9114
 
9115
+ var FigureImage$1 = React.memo(function (_ref) {
9116
+ var imagesCount = _ref.imagesCount,
9117
+ image = _ref.image,
9118
+ client = _ref.client,
9119
+ imgAlt = _ref.imgAlt,
9120
+ link = _ref.link,
9121
+ handleClickFigure = _ref.handleClickFigure;
9122
+
9123
+ return React.createElement(
9124
+ 'picture',
9125
+ null,
9126
+ React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9127
+ React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9128
+ React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9129
+ React.createElement('img', _extends({
9130
+ 'images-count': imagesCount,
9131
+ className: 'multi-figure-image',
9132
+ src: urlFor({ source: image, client: client }),
9133
+ alt: imgAlt ? imgAlt : 'multi figure'
9134
+ }, !link && {
9135
+ onClick: function onClick() {
9136
+ return handleClickFigure(image, client);
9137
+ }
9138
+ }))
9139
+ );
9140
+ });
9141
+
9087
9142
  var MultiFigure = function MultiFigure(props) {
9088
9143
  var images = props.node.images,
9089
9144
  client = props.client,
@@ -9103,9 +9158,9 @@ var MultiFigure = function MultiFigure(props) {
9103
9158
  var lightboxContainer = useRef(null);
9104
9159
  useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
9105
9160
 
9106
- var FigureCaption = function FigureCaption(_ref) {
9107
- var caption = _ref.caption,
9108
- imgcaption = _ref.imgcaption;
9161
+ var FigureCaption = function FigureCaption(_ref2) {
9162
+ var caption = _ref2.caption,
9163
+ imgcaption = _ref2.imgcaption;
9109
9164
 
9110
9165
  if (imgcaption && imgcaption.length > 0) {
9111
9166
  return React.createElement(
@@ -9118,6 +9173,11 @@ var MultiFigure = function MultiFigure(props) {
9118
9173
  } else return null;
9119
9174
  };
9120
9175
 
9176
+ var handleClickFigure = useCallback(function (image, client) {
9177
+ setOpenImgSrc(urlFor({ source: image, client: client }));
9178
+ setOpenImg(true);
9179
+ }, [client]);
9180
+
9121
9181
  if (images && images.length > 0) {
9122
9182
  return React.createElement(
9123
9183
  'div',
@@ -9138,7 +9198,7 @@ var MultiFigure = function MultiFigure(props) {
9138
9198
  React.createElement(
9139
9199
  LazyLoad,
9140
9200
  { once: true },
9141
- React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
9201
+ React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
9142
9202
  ),
9143
9203
  React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9144
9204
  )
@@ -9148,16 +9208,7 @@ var MultiFigure = function MultiFigure(props) {
9148
9208
  React.createElement(
9149
9209
  LazyLoad,
9150
9210
  { once: true },
9151
- React.createElement('img', {
9152
- 'images-count': images.length,
9153
- className: 'multi-figure-image',
9154
- src: urlFor({ source: image.asset, client: client }),
9155
- alt: image.alt,
9156
- onClick: function onClick() {
9157
- setOpenImgSrc(urlFor({ source: image, client: client }));
9158
- setOpenImg(true);
9159
- }
9160
- })
9211
+ React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
9161
9212
  ),
9162
9213
  React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9163
9214
  )
@@ -9172,7 +9223,7 @@ var MultiFigure = function MultiFigure(props) {
9172
9223
  React.createElement(
9173
9224
  'style',
9174
9225
  { jsx: 'true' },
9175
- '\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 '
9226
+ '\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 '
9176
9227
  )
9177
9228
  );
9178
9229
  }
@@ -9467,7 +9518,7 @@ var FormAssembly = function FormAssembly(props) {
9467
9518
  useEffect(function () {
9468
9519
  if (FormID) {
9469
9520
  var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
9470
- var anonymousID = analytics.user() && analytics.user().anonymousId();
9521
+ var anonymousID = typeof analytics !== 'undefined' && analytics.user() && analytics.user().anonymousId();
9471
9522
  if (anonymousID && needSegmentSupport) {
9472
9523
  src = src + '?tfa_1=' + anonymousID;
9473
9524
  }
package/dist/esm/index.js CHANGED
@@ -71,7 +71,7 @@ import './index.esm-3fdda599.js';
71
71
  export { default as VideoSeriesListing } from './VideoSeriesListing.js';
72
72
  export { default as ArticleSeriesListing } from './ArticleSeriesListing.js';
73
73
  export { default as ArticleCarousel } from './ArticleCarousel.js';
74
- export { g as getSerializers } from './index-9ae17e46.js';
74
+ export { g as getSerializers } from './index-fed909cb.js';
75
75
  import './util-7700fc59.js';
76
76
  import './brightcove-react-player-loader.es-4abff0b1.js';
77
77
  import 'next/head';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.836-deck-pagination-v1",
3
+ "version": "1.0.837-formassembly-segment-v1",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",