@mjhls/mjh-framework 1.0.290 → 1.0.292

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,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.290
2
+ # mjh-framework v. 1.0.292
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -135,7 +135,7 @@ var FigureComponent = function FigureComponent(props) {
135
135
  React__default.createElement(
136
136
  'style',
137
137
  { jsx: 'true' },
138
- '\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\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: 9999;\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 '
138
+ '\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\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: 99999;\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 '
139
139
  )
140
140
  );
141
141
  };
@@ -2369,7 +2369,8 @@ var AD728x90 = function AD728x90(_ref) {
2369
2369
  tags: targeting.tags,
2370
2370
  document_group: targeting.document_group,
2371
2371
  document_url: targeting.document_url,
2372
- pos: pos
2372
+ pos: pos,
2373
+ campaign_id: targeting.campaign_id
2373
2374
  };
2374
2375
 
2375
2376
  var adRef = React.useRef(null);
@@ -19,7 +19,7 @@ require('./get-de2660c3.js');
19
19
  require('react-bootstrap');
20
20
  require('./index.esm-340d3792.js');
21
21
  require('react-bootstrap/Button');
22
- var TemplateNormal = require('./Normal-7d3472fe.js');
22
+ var TemplateNormal = require('./Normal-7b5f3f4e.js');
23
23
  require('react-bootstrap/ListGroup');
24
24
  require('next/head');
25
25
  require('react-bootstrap/Nav');
package/dist/cjs/index.js CHANGED
@@ -52,7 +52,7 @@ var IssueDeck = require('./IssueDeck.js');
52
52
  require('react-bootstrap/Badge');
53
53
  var IssueContentDeck = require('./IssueContentDeck.js');
54
54
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
55
- var TemplateNormal = require('./Normal-7d3472fe.js');
55
+ var TemplateNormal = require('./Normal-7b5f3f4e.js');
56
56
  require('react-bootstrap/ListGroup');
57
57
  var Head = _interopDefault(require('next/head'));
58
58
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -1981,30 +1981,35 @@ var EventsDeck = function EventsDeck(_ref) {
1981
1981
  };
1982
1982
 
1983
1983
  var renderRegisterButton = function renderRegisterButton(links, closeAfter, timezone) {
1984
- var now = momentTimezone$1().tz(timezone);
1985
- closeAfter = momentTimezone$1(closeAfter).tz(timezone);
1986
- var isRegister = momentTimezone$1(now).isBefore(closeAfter);
1987
- if (isRegister) {
1988
- return React__default.createElement(
1989
- 'a',
1990
- { href: links.registration.href || '#', target: '_blank' },
1991
- React__default.createElement(
1992
- Button,
1993
- { size: 'sm', className: 'event-registration-button' },
1994
- 'Register Now'
1995
- )
1996
- );
1997
- } else {
1998
- return React__default.createElement(
1999
- 'a',
2000
- { href: links.summary.href || '#', target: '_blank' },
2001
- React__default.createElement(
2002
- Button,
2003
- { size: 'sm', className: 'event-registration-button' },
2004
- 'Learn more'
2005
- )
2006
- );
2007
- }
1984
+ return React__default.createElement(
1985
+ 'a',
1986
+ { href: links.summary.href || '#', target: '_blank' },
1987
+ React__default.createElement(
1988
+ Button,
1989
+ { size: 'sm', className: 'event-registration-button' },
1990
+ 'Register Now'
1991
+ )
1992
+ );
1993
+ // const now = moment().tz(timezone)
1994
+ // closeAfter = moment(closeAfter).tz(timezone)
1995
+ // const isRegister = moment(now).isBefore(closeAfter)
1996
+ // if (isRegister) {
1997
+ // return (
1998
+ // <a href={links.registration.href || '#'} target='_blank'>
1999
+ // <Button size='sm' className='event-registration-button'>
2000
+ // Register Now
2001
+ // </Button>
2002
+ // </a>
2003
+ // )
2004
+ // } else {
2005
+ // return (
2006
+ // <a href={links.summary.href || '#'} target='_blank'>
2007
+ // <Button size='sm' className='event-registration-button'>
2008
+ // Learn more
2009
+ // </Button>
2010
+ // </a>
2011
+ // )
2012
+ // }
2008
2013
  };
2009
2014
 
2010
2015
  var cardLoader = function cardLoader() {
@@ -2015,12 +2020,14 @@ var EventsDeck = function EventsDeck(_ref) {
2015
2020
  data && data.map(function (row, index) {
2016
2021
  var description = row.description,
2017
2022
  start = row.start,
2023
+ end = row.end,
2018
2024
  venues = row.venues,
2019
2025
  _links = row._links,
2020
2026
  virtual = row.virtual,
2021
- timezone = row.timezone,
2022
- closeAfter = row.closeAfter;
2027
+ timezone = row.timezone;
2023
2028
 
2029
+ var now = momentTimezone$1().tz(timezone);
2030
+ var isRegister = momentTimezone$1(now).isBefore(end);
2024
2031
  var discussionTopic = row.customFields.reduce(function (result, item) {
2025
2032
  if (item.name === 'Discussion Topic' && item.value) {
2026
2033
  result = item.value[0];
@@ -2088,7 +2095,7 @@ var EventsDeck = function EventsDeck(_ref) {
2088
2095
  React__default.createElement(
2089
2096
  Col,
2090
2097
  { xs: 12, sm: 3 },
2091
- renderRegisterButton(_links, closeAfter, timezone)
2098
+ isRegister && renderRegisterButton(_links)
2092
2099
  )
2093
2100
  ),
2094
2101
  description && React__default.createElement(
@@ -2791,7 +2798,8 @@ var AD300x250 = function AD300x250(_ref) {
2791
2798
  tags: targeting.tags,
2792
2799
  document_group: targeting.document_group,
2793
2800
  document_url: targeting.document_url,
2794
- pos: pos
2801
+ pos: pos,
2802
+ campaign_id: targeting.campaign_id
2795
2803
  };
2796
2804
 
2797
2805
  React.useEffect(function () {
@@ -2828,7 +2836,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2828
2836
  tags: targeting.tags,
2829
2837
  document_group: targeting.document_group,
2830
2838
  document_url: targeting.document_url,
2831
- pos: pos
2839
+ pos: pos,
2840
+ campaign_id: targeting.campaign_id
2832
2841
  };
2833
2842
 
2834
2843
  React.useEffect(function () {
@@ -2911,28 +2920,36 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2911
2920
  networkID = floatingAd.networkID,
2912
2921
  sizes = floatingAd.sizes;
2913
2922
 
2914
- var adt = _extends$2._extends({}, targeting, { pos: position });
2915
2923
 
2916
- var _useState = React.useState(adt),
2924
+ var adTargeting = {
2925
+ content_placement: targeting.content_placement,
2926
+ tags: targeting.tags,
2927
+ document_group: targeting.document_group,
2928
+ document_url: targeting.document_url,
2929
+ pos: position,
2930
+ campaign_id: targeting.campaign_id
2931
+ };
2932
+
2933
+ var _useState = React.useState(false),
2917
2934
  _useState2 = slicedToArray._slicedToArray(_useState, 2),
2918
- adTargeting = _useState2[0],
2919
- setTargeting = _useState2[1];
2935
+ showAd = _useState2[0],
2936
+ setShowAd = _useState2[1];
2920
2937
 
2921
- var _useState3 = React.useState(false),
2938
+ var _useState3 = React.useState(true),
2922
2939
  _useState4 = slicedToArray._slicedToArray(_useState3, 2),
2923
- showAd = _useState4[0],
2924
- setShowAd = _useState4[1];
2940
+ widthFlag = _useState4[0],
2941
+ setWidthFlag = _useState4[1];
2925
2942
 
2926
2943
  React.useEffect(function () {
2927
- if (window && window.innerWidth >= minScreenWidth) {
2928
- setShowAd(true);
2944
+ if (window && window.innerWidth < minScreenWidth) {
2945
+ setWidthFlag(false);
2929
2946
  }
2930
2947
  }, [minScreenWidth]);
2931
2948
 
2932
2949
  return React__default.createElement(
2933
2950
  React__default.Fragment,
2934
2951
  null,
2935
- showAd && React__default.createElement(
2952
+ showAd && widthFlag && React__default.createElement(
2936
2953
  'div',
2937
2954
  { className: 'floating-ad-wrapper ' + title },
2938
2955
  React__default.createElement(AdSlot.DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false, setShowAd: setShowAd }),
@@ -2967,29 +2984,31 @@ var ADGutter = function ADGutter(_ref) {
2967
2984
  sizes = gutterAd.sizes;
2968
2985
 
2969
2986
 
2970
- var adt = _extends$2._extends({}, targeting, { pos: position });
2987
+ var adTargeting = {
2988
+ content_placement: targeting.content_placement,
2989
+ tags: targeting.tags,
2990
+ document_group: targeting.document_group,
2991
+ document_url: targeting.document_url,
2992
+ pos: position,
2993
+ campaign_id: targeting.campaign_id
2994
+ };
2971
2995
 
2972
- var _useState = React.useState(adt),
2996
+ var _useState = React.useState(false),
2973
2997
  _useState2 = slicedToArray._slicedToArray(_useState, 2),
2974
- adTargeting = _useState2[0],
2975
- setTargeting = _useState2[1];
2976
-
2977
- var _useState3 = React.useState(false),
2978
- _useState4 = slicedToArray._slicedToArray(_useState3, 2),
2979
- showAd = _useState4[0],
2980
- setShowAd = _useState4[1];
2998
+ widthFlag = _useState2[0],
2999
+ setWidthFlag = _useState2[1];
2981
3000
 
2982
3001
  React.useEffect(function () {
2983
3002
  if (window && window.innerWidth >= minScreenWidth) {
2984
- setShowAd(true);
3003
+ setWidthFlag(true);
2985
3004
  }
2986
3005
  }, [minScreenWidth]);
2987
3006
 
2988
- if (showAd) {
3007
+ if (widthFlag) {
2989
3008
  return React__default.createElement(
2990
3009
  React__default.Fragment,
2991
3010
  null,
2992
- showAd && React__default.createElement(
3011
+ widthFlag && React__default.createElement(
2993
3012
  'div',
2994
3013
  { className: 'gutter-ad-wrapper ' + title },
2995
3014
  React__default.createElement(
@@ -3023,28 +3042,29 @@ var ADWelcome = function ADWelcome(_ref) {
3023
3042
  networkID = welcomeAd.networkID,
3024
3043
  sizes = welcomeAd.sizes;
3025
3044
 
3026
- var adt = _extends$2._extends({}, targeting, { pos: position });
3027
-
3028
- var _useState = React.useState(adt),
3029
- _useState2 = slicedToArray._slicedToArray(_useState, 2),
3030
- adTargeting = _useState2[0],
3031
- setTargeting = _useState2[1];
3032
-
3045
+ var adTargeting = {
3046
+ content_placement: targeting.content_placement,
3047
+ tags: targeting.tags,
3048
+ document_group: targeting.document_group,
3049
+ document_url: targeting.document_url,
3050
+ pos: position,
3051
+ campaign_id: targeting.campaign_id
3052
+ };
3033
3053
  var adRef = React.useRef(null);
3034
3054
 
3035
- var _useState3 = React.useState(),
3036
- _useState4 = slicedToArray._slicedToArray(_useState3, 2),
3037
- showAd = _useState4[0],
3038
- setShowAd = _useState4[1];
3055
+ var _useState = React.useState(),
3056
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
3057
+ showAd = _useState2[0],
3058
+ setShowAd = _useState2[1];
3039
3059
 
3040
3060
  var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
3041
3061
  return --timeLeft;
3042
3062
  };
3043
3063
 
3044
- var _useState5 = React.useState(calculateTimeLeft(counter + 1)),
3045
- _useState6 = slicedToArray._slicedToArray(_useState5, 2),
3046
- timeLeft = _useState6[0],
3047
- setTimeLeft = _useState6[1];
3064
+ var _useState3 = React.useState(calculateTimeLeft(counter + 1)),
3065
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
3066
+ timeLeft = _useState4[0],
3067
+ setTimeLeft = _useState4[1];
3048
3068
 
3049
3069
  React.useEffect(function () {
3050
3070
  if (timeLeft > 0) {
@@ -8164,16 +8184,18 @@ var Video = function Video(_ref) {
8164
8184
  } else if (experienceID) {
8165
8185
  return React__default.createElement(
8166
8186
  'div',
8167
- { className: 'playlist-player', style: { position: 'relative', display: 'block', margin: '0px auto', minHeight: '380px' } },
8168
- React__default.createElement('iframe', {
8169
- src: 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/index.html',
8170
- allowFullScreen: 'true',
8171
- webkitallowfullscreen: 'true',
8172
- mozallowfullscreen: 'true',
8173
- frameBorder: 'none',
8174
- scrolling: 'no',
8175
- style: { border: 'none', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
8176
- })
8187
+ { className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
8188
+ React__default.createElement(
8189
+ 'div',
8190
+ { style: { paddingTop: '56.25%' } },
8191
+ React__default.createElement('iframe', {
8192
+ src: 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/index.html',
8193
+ allowFullScreen: 'true',
8194
+ webkitallowfullscreen: 'true',
8195
+ mozallowfullscreen: 'true',
8196
+ style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
8197
+ })
8198
+ )
8177
8199
  );
8178
8200
  }
8179
8201
  return null;
@@ -13507,7 +13529,7 @@ var NativeAd = function NativeAd(props) {
13507
13529
  };
13508
13530
 
13509
13531
  var Figure = dynamic(function () {
13510
- return new Promise(function (resolve) { resolve(require('./Figure-a7cd5161.js')); });
13532
+ return new Promise(function (resolve) { resolve(require('./Figure-0681dd7d.js')); });
13511
13533
  }, { ssr: false });
13512
13534
 
13513
13535
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -14203,40 +14225,59 @@ var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
14203
14225
  var HighlightenVideo = function HighlightenVideo(_ref) {
14204
14226
  var highlightVideoOptions = _ref.highlightVideoOptions;
14205
14227
  var accountId = highlightVideoOptions.accountId,
14206
- experienceId = highlightVideoOptions.experienceId;
14228
+ experienceId = highlightVideoOptions.experienceId,
14229
+ playerId = highlightVideoOptions.playerId,
14230
+ playlistId = highlightVideoOptions.playlistId,
14231
+ videoId = highlightVideoOptions.videoId;
14207
14232
 
14208
- return React__default.createElement(
14209
- React__default.Fragment,
14210
- null,
14211
- accountId && experienceId && React__default.createElement(
14212
- 'div',
14213
- { className: 'brightcove-single-player' },
14214
- React__default.createElement(
14215
- 'p',
14216
- { style: { width: '100%' } },
14217
- 'Highlighted Videos'
14218
- ),
14233
+ if (accountId && experienceId) {
14234
+ return React__default.createElement(
14235
+ React__default.Fragment,
14236
+ null,
14219
14237
  React__default.createElement(
14220
14238
  'div',
14221
- { className: 'playlist-player', style: { position: 'relative', display: 'block', margin: '0px auto' } },
14239
+ { className: 'brightcove-experience-player' },
14240
+ React__default.createElement(
14241
+ 'p',
14242
+ { style: { width: '100%' } },
14243
+ 'Highlighted Videos'
14244
+ ),
14222
14245
  React__default.createElement(
14223
14246
  'div',
14224
- { style: { paddingTop: '56.25%' } },
14225
- React__default.createElement('iframe', {
14226
- src: 'https://players.brightcove.net/' + accountId + '/' + experienceId + '/share.html',
14227
- allowFullScreen: true,
14228
- allow: 'encrypted-media',
14229
- style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
14230
- })
14247
+ { className: 'playlist-player', style: { position: 'relative', display: 'block', margin: '0px auto' } },
14248
+ React__default.createElement(
14249
+ 'div',
14250
+ { style: { paddingTop: '56.25%' } },
14251
+ React__default.createElement('iframe', {
14252
+ src: 'https://players.brightcove.net/' + accountId + '/' + experienceId + '/share.html',
14253
+ allowFullScreen: true,
14254
+ allow: 'encrypted-media',
14255
+ style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
14256
+ })
14257
+ )
14231
14258
  )
14259
+ ),
14260
+ React__default.createElement(
14261
+ 'style',
14262
+ { jsx: 'true' },
14263
+ '\n @media (min-width: 320px) {\n .playlist-player {\n height: 290px;\n }\n }\n @media (min-width: 360px) {\n .playlist-player {\n height: 340px;\n }\n }\n @media (min-width: 480px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 560px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 768px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 968px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 992px) {\n .playlist-player {\n height: 350px;\n }\n }\n @media (min-width: 1192px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 1400px) {\n .playlist-player {\n height: 400px;\n }\n }\n .brightcove-experience-player {\n margin-bottom: 10px;\n width: 100%;\n }\n .brightcove-experience-player p {\n padding: 10px;\n margin: 0;\n color: #fff;\n text-transform: uppercase;\n text-align: center;\n font-size: 1.5em;\n font-weight: 400;\n margin-bottom: 10px;\n }\n '
14232
14264
  )
14233
- ),
14234
- React__default.createElement(
14235
- 'style',
14236
- { jsx: 'true' },
14237
- '\n @media (min-width: 320px) {\n .playlist-player {\n height: 290px;\n }\n }\n @media (min-width: 360px) {\n .playlist-player {\n height: 340px;\n }\n }\n @media (min-width: 480px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 560px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 768px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 968px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 992px) {\n .playlist-player {\n height: 350px;\n }\n }\n @media (min-width: 1192px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 1400px) {\n .playlist-player {\n height: 400px;\n }\n }\n .brightcove-single-player {\n margin-bottom: 10px;\n width: 100%;\n }\n .brightcove-single-player p {\n padding: 10px;\n margin: 0;\n color: #fff;\n text-transform: uppercase;\n text-align: center;\n font-size: 1.5em;\n font-weight: 400;\n margin-bottom: 10px;\n }\n '
14238
- )
14239
- );
14265
+ );
14266
+ } else if (accountId && playerId && playlistId) {
14267
+ return React__default.createElement(
14268
+ 'div',
14269
+ { className: 'brightcove-playlist-player' },
14270
+ React__default.createElement(ReactPlayerLoader, { accountId: accountId, playerId: playerId, playlistId: playlistId, attrs: { className: 'brightcove' } })
14271
+ );
14272
+ } else if (accountId && playerId && videoId) {
14273
+ return React__default.createElement(
14274
+ 'div',
14275
+ { className: 'brightcove-video-player' },
14276
+ React__default.createElement(ReactPlayerLoader, { accountId: accountId, playerId: playerId, videoId: videoId, attrs: { className: 'brightcove' } })
14277
+ );
14278
+ } else {
14279
+ return null;
14280
+ }
14240
14281
  };
14241
14282
 
14242
14283
  var fbsHero = function fbsHero(props) {
@@ -130,7 +130,7 @@ var FigureComponent = function FigureComponent(props) {
130
130
  React__default.createElement(
131
131
  'style',
132
132
  { jsx: 'true' },
133
- '\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\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: 9999;\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 '
133
+ '\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\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: 99999;\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 '
134
134
  )
135
135
  );
136
136
  };
@@ -2364,7 +2364,8 @@ var AD728x90 = function AD728x90(_ref) {
2364
2364
  tags: targeting.tags,
2365
2365
  document_group: targeting.document_group,
2366
2366
  document_url: targeting.document_url,
2367
- pos: pos
2367
+ pos: pos,
2368
+ campaign_id: targeting.campaign_id
2368
2369
  };
2369
2370
 
2370
2371
  var adRef = useRef(null);
@@ -17,7 +17,7 @@ import './get-9c285a85.js';
17
17
  import 'react-bootstrap';
18
18
  import './index.esm-536609db.js';
19
19
  import 'react-bootstrap/Button';
20
- export { T as default } from './Normal-917ac787.js';
20
+ export { T as default } from './Normal-3a3b672e.js';
21
21
  import 'react-bootstrap/ListGroup';
22
22
  import 'next/head';
23
23
  import 'react-bootstrap/Nav';
package/dist/esm/index.js CHANGED
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
48
48
  import 'react-bootstrap/Badge';
49
49
  export { default as IssueContentDeck } from './IssueContentDeck.js';
50
50
  import Spinner from 'react-bootstrap/Spinner';
51
- import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-917ac787.js';
52
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-917ac787.js';
51
+ import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-3a3b672e.js';
52
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-3a3b672e.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -1979,30 +1979,35 @@ var EventsDeck = function EventsDeck(_ref) {
1979
1979
  };
1980
1980
 
1981
1981
  var renderRegisterButton = function renderRegisterButton(links, closeAfter, timezone) {
1982
- var now = momentTimezone$1().tz(timezone);
1983
- closeAfter = momentTimezone$1(closeAfter).tz(timezone);
1984
- var isRegister = momentTimezone$1(now).isBefore(closeAfter);
1985
- if (isRegister) {
1986
- return React__default.createElement(
1987
- 'a',
1988
- { href: links.registration.href || '#', target: '_blank' },
1989
- React__default.createElement(
1990
- Button,
1991
- { size: 'sm', className: 'event-registration-button' },
1992
- 'Register Now'
1993
- )
1994
- );
1995
- } else {
1996
- return React__default.createElement(
1997
- 'a',
1998
- { href: links.summary.href || '#', target: '_blank' },
1999
- React__default.createElement(
2000
- Button,
2001
- { size: 'sm', className: 'event-registration-button' },
2002
- 'Learn more'
2003
- )
2004
- );
2005
- }
1982
+ return React__default.createElement(
1983
+ 'a',
1984
+ { href: links.summary.href || '#', target: '_blank' },
1985
+ React__default.createElement(
1986
+ Button,
1987
+ { size: 'sm', className: 'event-registration-button' },
1988
+ 'Register Now'
1989
+ )
1990
+ );
1991
+ // const now = moment().tz(timezone)
1992
+ // closeAfter = moment(closeAfter).tz(timezone)
1993
+ // const isRegister = moment(now).isBefore(closeAfter)
1994
+ // if (isRegister) {
1995
+ // return (
1996
+ // <a href={links.registration.href || '#'} target='_blank'>
1997
+ // <Button size='sm' className='event-registration-button'>
1998
+ // Register Now
1999
+ // </Button>
2000
+ // </a>
2001
+ // )
2002
+ // } else {
2003
+ // return (
2004
+ // <a href={links.summary.href || '#'} target='_blank'>
2005
+ // <Button size='sm' className='event-registration-button'>
2006
+ // Learn more
2007
+ // </Button>
2008
+ // </a>
2009
+ // )
2010
+ // }
2006
2011
  };
2007
2012
 
2008
2013
  var cardLoader = function cardLoader() {
@@ -2013,12 +2018,14 @@ var EventsDeck = function EventsDeck(_ref) {
2013
2018
  data && data.map(function (row, index) {
2014
2019
  var description = row.description,
2015
2020
  start = row.start,
2021
+ end = row.end,
2016
2022
  venues = row.venues,
2017
2023
  _links = row._links,
2018
2024
  virtual = row.virtual,
2019
- timezone = row.timezone,
2020
- closeAfter = row.closeAfter;
2025
+ timezone = row.timezone;
2021
2026
 
2027
+ var now = momentTimezone$1().tz(timezone);
2028
+ var isRegister = momentTimezone$1(now).isBefore(end);
2022
2029
  var discussionTopic = row.customFields.reduce(function (result, item) {
2023
2030
  if (item.name === 'Discussion Topic' && item.value) {
2024
2031
  result = item.value[0];
@@ -2086,7 +2093,7 @@ var EventsDeck = function EventsDeck(_ref) {
2086
2093
  React__default.createElement(
2087
2094
  Col,
2088
2095
  { xs: 12, sm: 3 },
2089
- renderRegisterButton(_links, closeAfter, timezone)
2096
+ isRegister && renderRegisterButton(_links)
2090
2097
  )
2091
2098
  ),
2092
2099
  description && React__default.createElement(
@@ -2789,7 +2796,8 @@ var AD300x250 = function AD300x250(_ref) {
2789
2796
  tags: targeting.tags,
2790
2797
  document_group: targeting.document_group,
2791
2798
  document_url: targeting.document_url,
2792
- pos: pos
2799
+ pos: pos,
2800
+ campaign_id: targeting.campaign_id
2793
2801
  };
2794
2802
 
2795
2803
  useEffect(function () {
@@ -2826,7 +2834,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2826
2834
  tags: targeting.tags,
2827
2835
  document_group: targeting.document_group,
2828
2836
  document_url: targeting.document_url,
2829
- pos: pos
2837
+ pos: pos,
2838
+ campaign_id: targeting.campaign_id
2830
2839
  };
2831
2840
 
2832
2841
  useEffect(function () {
@@ -2909,28 +2918,36 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2909
2918
  networkID = floatingAd.networkID,
2910
2919
  sizes = floatingAd.sizes;
2911
2920
 
2912
- var adt = _extends$2({}, targeting, { pos: position });
2913
2921
 
2914
- var _useState = useState(adt),
2922
+ var adTargeting = {
2923
+ content_placement: targeting.content_placement,
2924
+ tags: targeting.tags,
2925
+ document_group: targeting.document_group,
2926
+ document_url: targeting.document_url,
2927
+ pos: position,
2928
+ campaign_id: targeting.campaign_id
2929
+ };
2930
+
2931
+ var _useState = useState(false),
2915
2932
  _useState2 = _slicedToArray(_useState, 2),
2916
- adTargeting = _useState2[0],
2917
- setTargeting = _useState2[1];
2933
+ showAd = _useState2[0],
2934
+ setShowAd = _useState2[1];
2918
2935
 
2919
- var _useState3 = useState(false),
2936
+ var _useState3 = useState(true),
2920
2937
  _useState4 = _slicedToArray(_useState3, 2),
2921
- showAd = _useState4[0],
2922
- setShowAd = _useState4[1];
2938
+ widthFlag = _useState4[0],
2939
+ setWidthFlag = _useState4[1];
2923
2940
 
2924
2941
  useEffect(function () {
2925
- if (window && window.innerWidth >= minScreenWidth) {
2926
- setShowAd(true);
2942
+ if (window && window.innerWidth < minScreenWidth) {
2943
+ setWidthFlag(false);
2927
2944
  }
2928
2945
  }, [minScreenWidth]);
2929
2946
 
2930
2947
  return React__default.createElement(
2931
2948
  React__default.Fragment,
2932
2949
  null,
2933
- showAd && React__default.createElement(
2950
+ showAd && widthFlag && React__default.createElement(
2934
2951
  'div',
2935
2952
  { className: 'floating-ad-wrapper ' + title },
2936
2953
  React__default.createElement(DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false, setShowAd: setShowAd }),
@@ -2965,29 +2982,31 @@ var ADGutter = function ADGutter(_ref) {
2965
2982
  sizes = gutterAd.sizes;
2966
2983
 
2967
2984
 
2968
- var adt = _extends$2({}, targeting, { pos: position });
2985
+ var adTargeting = {
2986
+ content_placement: targeting.content_placement,
2987
+ tags: targeting.tags,
2988
+ document_group: targeting.document_group,
2989
+ document_url: targeting.document_url,
2990
+ pos: position,
2991
+ campaign_id: targeting.campaign_id
2992
+ };
2969
2993
 
2970
- var _useState = useState(adt),
2994
+ var _useState = useState(false),
2971
2995
  _useState2 = _slicedToArray(_useState, 2),
2972
- adTargeting = _useState2[0],
2973
- setTargeting = _useState2[1];
2974
-
2975
- var _useState3 = useState(false),
2976
- _useState4 = _slicedToArray(_useState3, 2),
2977
- showAd = _useState4[0],
2978
- setShowAd = _useState4[1];
2996
+ widthFlag = _useState2[0],
2997
+ setWidthFlag = _useState2[1];
2979
2998
 
2980
2999
  useEffect(function () {
2981
3000
  if (window && window.innerWidth >= minScreenWidth) {
2982
- setShowAd(true);
3001
+ setWidthFlag(true);
2983
3002
  }
2984
3003
  }, [minScreenWidth]);
2985
3004
 
2986
- if (showAd) {
3005
+ if (widthFlag) {
2987
3006
  return React__default.createElement(
2988
3007
  React__default.Fragment,
2989
3008
  null,
2990
- showAd && React__default.createElement(
3009
+ widthFlag && React__default.createElement(
2991
3010
  'div',
2992
3011
  { className: 'gutter-ad-wrapper ' + title },
2993
3012
  React__default.createElement(
@@ -3021,28 +3040,29 @@ var ADWelcome = function ADWelcome(_ref) {
3021
3040
  networkID = welcomeAd.networkID,
3022
3041
  sizes = welcomeAd.sizes;
3023
3042
 
3024
- var adt = _extends$2({}, targeting, { pos: position });
3025
-
3026
- var _useState = useState(adt),
3027
- _useState2 = _slicedToArray(_useState, 2),
3028
- adTargeting = _useState2[0],
3029
- setTargeting = _useState2[1];
3030
-
3043
+ var adTargeting = {
3044
+ content_placement: targeting.content_placement,
3045
+ tags: targeting.tags,
3046
+ document_group: targeting.document_group,
3047
+ document_url: targeting.document_url,
3048
+ pos: position,
3049
+ campaign_id: targeting.campaign_id
3050
+ };
3031
3051
  var adRef = useRef(null);
3032
3052
 
3033
- var _useState3 = useState(),
3034
- _useState4 = _slicedToArray(_useState3, 2),
3035
- showAd = _useState4[0],
3036
- setShowAd = _useState4[1];
3053
+ var _useState = useState(),
3054
+ _useState2 = _slicedToArray(_useState, 2),
3055
+ showAd = _useState2[0],
3056
+ setShowAd = _useState2[1];
3037
3057
 
3038
3058
  var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
3039
3059
  return --timeLeft;
3040
3060
  };
3041
3061
 
3042
- var _useState5 = useState(calculateTimeLeft(counter + 1)),
3043
- _useState6 = _slicedToArray(_useState5, 2),
3044
- timeLeft = _useState6[0],
3045
- setTimeLeft = _useState6[1];
3062
+ var _useState3 = useState(calculateTimeLeft(counter + 1)),
3063
+ _useState4 = _slicedToArray(_useState3, 2),
3064
+ timeLeft = _useState4[0],
3065
+ setTimeLeft = _useState4[1];
3046
3066
 
3047
3067
  useEffect(function () {
3048
3068
  if (timeLeft > 0) {
@@ -8162,16 +8182,18 @@ var Video = function Video(_ref) {
8162
8182
  } else if (experienceID) {
8163
8183
  return React__default.createElement(
8164
8184
  'div',
8165
- { className: 'playlist-player', style: { position: 'relative', display: 'block', margin: '0px auto', minHeight: '380px' } },
8166
- React__default.createElement('iframe', {
8167
- src: 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/index.html',
8168
- allowFullScreen: 'true',
8169
- webkitallowfullscreen: 'true',
8170
- mozallowfullscreen: 'true',
8171
- frameBorder: 'none',
8172
- scrolling: 'no',
8173
- style: { border: 'none', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
8174
- })
8185
+ { className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
8186
+ React__default.createElement(
8187
+ 'div',
8188
+ { style: { paddingTop: '56.25%' } },
8189
+ React__default.createElement('iframe', {
8190
+ src: 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/index.html',
8191
+ allowFullScreen: 'true',
8192
+ webkitallowfullscreen: 'true',
8193
+ mozallowfullscreen: 'true',
8194
+ style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
8195
+ })
8196
+ )
8175
8197
  );
8176
8198
  }
8177
8199
  return null;
@@ -13505,7 +13527,7 @@ var NativeAd = function NativeAd(props) {
13505
13527
  };
13506
13528
 
13507
13529
  var Figure = dynamic(function () {
13508
- return import('./Figure-d6e22818.js');
13530
+ return import('./Figure-cff72982.js');
13509
13531
  }, { ssr: false });
13510
13532
 
13511
13533
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -14201,40 +14223,59 @@ var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
14201
14223
  var HighlightenVideo = function HighlightenVideo(_ref) {
14202
14224
  var highlightVideoOptions = _ref.highlightVideoOptions;
14203
14225
  var accountId = highlightVideoOptions.accountId,
14204
- experienceId = highlightVideoOptions.experienceId;
14226
+ experienceId = highlightVideoOptions.experienceId,
14227
+ playerId = highlightVideoOptions.playerId,
14228
+ playlistId = highlightVideoOptions.playlistId,
14229
+ videoId = highlightVideoOptions.videoId;
14205
14230
 
14206
- return React__default.createElement(
14207
- React__default.Fragment,
14208
- null,
14209
- accountId && experienceId && React__default.createElement(
14210
- 'div',
14211
- { className: 'brightcove-single-player' },
14212
- React__default.createElement(
14213
- 'p',
14214
- { style: { width: '100%' } },
14215
- 'Highlighted Videos'
14216
- ),
14231
+ if (accountId && experienceId) {
14232
+ return React__default.createElement(
14233
+ React__default.Fragment,
14234
+ null,
14217
14235
  React__default.createElement(
14218
14236
  'div',
14219
- { className: 'playlist-player', style: { position: 'relative', display: 'block', margin: '0px auto' } },
14237
+ { className: 'brightcove-experience-player' },
14238
+ React__default.createElement(
14239
+ 'p',
14240
+ { style: { width: '100%' } },
14241
+ 'Highlighted Videos'
14242
+ ),
14220
14243
  React__default.createElement(
14221
14244
  'div',
14222
- { style: { paddingTop: '56.25%' } },
14223
- React__default.createElement('iframe', {
14224
- src: 'https://players.brightcove.net/' + accountId + '/' + experienceId + '/share.html',
14225
- allowFullScreen: true,
14226
- allow: 'encrypted-media',
14227
- style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
14228
- })
14245
+ { className: 'playlist-player', style: { position: 'relative', display: 'block', margin: '0px auto' } },
14246
+ React__default.createElement(
14247
+ 'div',
14248
+ { style: { paddingTop: '56.25%' } },
14249
+ React__default.createElement('iframe', {
14250
+ src: 'https://players.brightcove.net/' + accountId + '/' + experienceId + '/share.html',
14251
+ allowFullScreen: true,
14252
+ allow: 'encrypted-media',
14253
+ style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
14254
+ })
14255
+ )
14229
14256
  )
14257
+ ),
14258
+ React__default.createElement(
14259
+ 'style',
14260
+ { jsx: 'true' },
14261
+ '\n @media (min-width: 320px) {\n .playlist-player {\n height: 290px;\n }\n }\n @media (min-width: 360px) {\n .playlist-player {\n height: 340px;\n }\n }\n @media (min-width: 480px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 560px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 768px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 968px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 992px) {\n .playlist-player {\n height: 350px;\n }\n }\n @media (min-width: 1192px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 1400px) {\n .playlist-player {\n height: 400px;\n }\n }\n .brightcove-experience-player {\n margin-bottom: 10px;\n width: 100%;\n }\n .brightcove-experience-player p {\n padding: 10px;\n margin: 0;\n color: #fff;\n text-transform: uppercase;\n text-align: center;\n font-size: 1.5em;\n font-weight: 400;\n margin-bottom: 10px;\n }\n '
14230
14262
  )
14231
- ),
14232
- React__default.createElement(
14233
- 'style',
14234
- { jsx: 'true' },
14235
- '\n @media (min-width: 320px) {\n .playlist-player {\n height: 290px;\n }\n }\n @media (min-width: 360px) {\n .playlist-player {\n height: 340px;\n }\n }\n @media (min-width: 480px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 560px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 768px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 968px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 992px) {\n .playlist-player {\n height: 350px;\n }\n }\n @media (min-width: 1192px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 1400px) {\n .playlist-player {\n height: 400px;\n }\n }\n .brightcove-single-player {\n margin-bottom: 10px;\n width: 100%;\n }\n .brightcove-single-player p {\n padding: 10px;\n margin: 0;\n color: #fff;\n text-transform: uppercase;\n text-align: center;\n font-size: 1.5em;\n font-weight: 400;\n margin-bottom: 10px;\n }\n '
14236
- )
14237
- );
14263
+ );
14264
+ } else if (accountId && playerId && playlistId) {
14265
+ return React__default.createElement(
14266
+ 'div',
14267
+ { className: 'brightcove-playlist-player' },
14268
+ React__default.createElement(ReactPlayerLoader, { accountId: accountId, playerId: playerId, playlistId: playlistId, attrs: { className: 'brightcove' } })
14269
+ );
14270
+ } else if (accountId && playerId && videoId) {
14271
+ return React__default.createElement(
14272
+ 'div',
14273
+ { className: 'brightcove-video-player' },
14274
+ React__default.createElement(ReactPlayerLoader, { accountId: accountId, playerId: playerId, videoId: videoId, attrs: { className: 'brightcove' } })
14275
+ );
14276
+ } else {
14277
+ return null;
14278
+ }
14238
14279
  };
14239
14280
 
14240
14281
  var fbsHero = function fbsHero(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.290",
3
+ "version": "1.0.292",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",