@mjhls/mjh-framework 1.0.1065-webcastPublicationDate-v3 → 1.0.1066

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.
@@ -5,8 +5,8 @@ var _typeof = require('./typeof-220bbf73.js');
5
5
  var _extends = require('./extends-be0d85bc.js');
6
6
  var slicedToArray = require('./slicedToArray-067dd3bc.js');
7
7
  var React = require('react');
8
- var Tooltip = require('./Tooltip-8011d690.js');
9
- require('./index-50be6759.js');
8
+ var Tooltip = require('./Tooltip-02a841b5.js');
9
+ require('./index-9ec837cc.js');
10
10
  require('react-dom');
11
11
  var Link = require('next/link');
12
12
  var MasterDeck = require('./MasterDeck.js');
@@ -5,8 +5,8 @@ var _typeof = require('./typeof-220bbf73.js');
5
5
  var _extends = require('./extends-be0d85bc.js');
6
6
  var slicedToArray = require('./slicedToArray-067dd3bc.js');
7
7
  var React = require('react');
8
- var Tooltip = require('./Tooltip-8011d690.js');
9
- require('./index-50be6759.js');
8
+ var Tooltip = require('./Tooltip-02a841b5.js');
9
+ require('./index-9ec837cc.js');
10
10
  require('react-dom');
11
11
  var Link = require('next/link');
12
12
  var BlockContent = require('./BlockContent-96b44364.js');
@@ -5,8 +5,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
5
  var _extends = require('./extends-be0d85bc.js');
6
6
  var React = require('react');
7
7
  var reactTwitterEmbed = require('react-twitter-embed');
8
- var ImageSlider = require('./ImageSlider-eb866353.js');
9
- require('./defineProperty-19580e93.js');
8
+ var ImageSlider = require('./ImageSlider-d65bc9c8.js');
10
9
  var reactSocialIcons = require('./react-social-icons-2c5c389a.js');
11
10
  var moment = require('./moment-aca40de1.js');
12
11
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
@@ -5,8 +5,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
5
  var _extends = require('./extends-be0d85bc.js');
6
6
  var React = require('react');
7
7
  var reactTwitterEmbed = require('react-twitter-embed');
8
- var ImageSlider = require('./ImageSlider-eb866353.js');
9
- require('./defineProperty-19580e93.js');
8
+ var ImageSlider = require('./ImageSlider-d65bc9c8.js');
10
9
  var reactSocialIcons = require('./react-social-icons-2c5c389a.js');
11
10
  require('./moment-aca40de1.js');
12
11
  var QueueDeckExpandedPaginated = require('./QueueDeckExpandedPaginated.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-50be6759.js');
3
+ var index = require('./index-9ec837cc.js');
4
4
  var React = require('react');
5
5
  var PropTypes = require('prop-types');
6
6
  var ReactDOM = require('react-dom');
@@ -120,7 +120,7 @@ function useUncontrolled(props, config) {
120
120
  function _inheritsLoose(subClass, superClass) {
121
121
  subClass.prototype = Object.create(superClass.prototype);
122
122
  subClass.prototype.constructor = subClass;
123
- index._setPrototypeOf(subClass, superClass);
123
+ subClass.__proto__ = superClass;
124
124
  }
125
125
 
126
126
  var ThemeContext = React__default["default"].createContext({});
@@ -2583,6 +2583,39 @@ function useForceUpdate() {
2583
2583
 
2584
2584
  var DropdownContext = /*#__PURE__*/React__default["default"].createContext(null);
2585
2585
 
2586
+ function _extends() {
2587
+ _extends = Object.assign || function (target) {
2588
+ for (var i = 1; i < arguments.length; i++) {
2589
+ var source = arguments[i];
2590
+
2591
+ for (var key in source) {
2592
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2593
+ target[key] = source[key];
2594
+ }
2595
+ }
2596
+ }
2597
+
2598
+ return target;
2599
+ };
2600
+
2601
+ return _extends.apply(this, arguments);
2602
+ }
2603
+
2604
+ function _objectWithoutPropertiesLoose(source, excluded) {
2605
+ if (source == null) return {};
2606
+ var target = {};
2607
+ var sourceKeys = Object.keys(source);
2608
+ var key, i;
2609
+
2610
+ for (i = 0; i < sourceKeys.length; i++) {
2611
+ key = sourceKeys[i];
2612
+ if (excluded.indexOf(key) >= 0) continue;
2613
+ target[key] = source[key];
2614
+ }
2615
+
2616
+ return target;
2617
+ }
2618
+
2586
2619
  function useSafeState(state) {
2587
2620
  var isMounted = useMounted();
2588
2621
  return [state[0], React.useCallback(function (nextState) {
@@ -4550,7 +4583,7 @@ function usePopper(referenceElement, popperElement, _temp) {
4550
4583
  strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,
4551
4584
  _ref3$modifiers = _ref3.modifiers,
4552
4585
  modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,
4553
- config = index._objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
4586
+ config = _objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
4554
4587
 
4555
4588
  var popperInstanceRef = React.useRef();
4556
4589
  var update = React.useCallback(function () {
@@ -4616,7 +4649,7 @@ function usePopper(referenceElement, popperElement, _temp) {
4616
4649
  return undefined;
4617
4650
  }
4618
4651
 
4619
- popperInstanceRef.current = createPopper(referenceElement, popperElement, index._extends({}, config, {
4652
+ popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {
4620
4653
  placement: placement,
4621
4654
  strategy: strategy,
4622
4655
  modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])
@@ -4626,7 +4659,7 @@ function usePopper(referenceElement, popperElement, _temp) {
4626
4659
  popperInstanceRef.current.destroy();
4627
4660
  popperInstanceRef.current = undefined;
4628
4661
  setState(function (s) {
4629
- return index._extends({}, s, {
4662
+ return _extends({}, s, {
4630
4663
  attributes: {},
4631
4664
  styles: {
4632
4665
  popper: initialPopperStyles(strategy)
@@ -4863,30 +4896,30 @@ function mergeOptionsWithPopperConfig(_ref) {
4863
4896
  _ref$popperConfig = _ref.popperConfig,
4864
4897
  popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;
4865
4898
  var modifiers = toModifierMap(popperConfig.modifiers);
4866
- return index._extends({}, popperConfig, {
4899
+ return _extends({}, popperConfig, {
4867
4900
  placement: placement,
4868
4901
  enabled: enabled,
4869
- modifiers: toModifierArray(index._extends({}, modifiers, {
4902
+ modifiers: toModifierArray(_extends({}, modifiers, {
4870
4903
  eventListeners: {
4871
4904
  enabled: enableEvents
4872
4905
  },
4873
- preventOverflow: index._extends({}, modifiers.preventOverflow, {
4874
- options: containerPadding ? index._extends({
4906
+ preventOverflow: _extends({}, modifiers.preventOverflow, {
4907
+ options: containerPadding ? _extends({
4875
4908
  padding: containerPadding
4876
4909
  }, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options
4877
4910
  }),
4878
4911
  offset: {
4879
- options: index._extends({
4912
+ options: _extends({
4880
4913
  offset: offset
4881
4914
  }, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)
4882
4915
  },
4883
- arrow: index._extends({}, modifiers.arrow, {
4916
+ arrow: _extends({}, modifiers.arrow, {
4884
4917
  enabled: !!arrowElement,
4885
- options: index._extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
4918
+ options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
4886
4919
  element: arrowElement
4887
4920
  })
4888
4921
  }),
4889
- flip: index._extends({
4922
+ flip: _extends({
4890
4923
  enabled: !!flip
4891
4924
  }, modifiers.flip)
4892
4925
  }))
@@ -4957,7 +4990,7 @@ function useDropdownMenu(options) {
4957
4990
  })),
4958
4991
  styles = _usePopper.styles,
4959
4992
  attributes = _usePopper.attributes,
4960
- popper = index._objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
4993
+ popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
4961
4994
 
4962
4995
  var menu;
4963
4996
  var menuProps = {
@@ -4972,15 +5005,15 @@ function useDropdownMenu(options) {
4972
5005
  };
4973
5006
 
4974
5007
  if (!shouldUsePopper) {
4975
- menu = index._extends({}, childArgs, {
5008
+ menu = _extends({}, childArgs, {
4976
5009
  props: menuProps
4977
5010
  });
4978
5011
  } else {
4979
- menu = index._extends({}, popper, childArgs, {
4980
- props: index._extends({}, menuProps, attributes.popper, {
5012
+ menu = _extends({}, popper, childArgs, {
5013
+ props: _extends({}, menuProps, attributes.popper, {
4981
5014
  style: styles.popper
4982
5015
  }),
4983
- arrowProps: index._extends({
5016
+ arrowProps: _extends({
4984
5017
  ref: attachArrowRef
4985
5018
  }, attributes.arrow, {
4986
5019
  style: styles.arrow
@@ -5063,7 +5096,7 @@ var defaultProps$r = {
5063
5096
  */
5064
5097
  function DropdownMenu$1(_ref2) {
5065
5098
  var children = _ref2.children,
5066
- options = index._objectWithoutPropertiesLoose(_ref2, ["children"]);
5099
+ options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
5067
5100
 
5068
5101
  var args = useDropdownMenu(options);
5069
5102
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, args.hasShown ? children(args) : null);
@@ -7300,7 +7333,7 @@ var Modal$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
7300
7333
  onEnter = _ref.onEnter,
7301
7334
  onEntering = _ref.onEntering,
7302
7335
  onEntered = _ref.onEntered,
7303
- rest = index._objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
7336
+ rest = _objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
7304
7337
 
7305
7338
  var container = useWaitForDOMRef(containerRef);
7306
7339
  var modal = useModalManager(providedManager);
@@ -7433,7 +7466,7 @@ var Modal$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
7433
7466
  return null;
7434
7467
  }
7435
7468
 
7436
- var dialogProps = index._extends({
7469
+ var dialogProps = _extends({
7437
7470
  role: role,
7438
7471
  ref: modal.setDialogRef,
7439
7472
  // apparently only works on the dialog role element
@@ -8420,7 +8453,7 @@ var Overlay = /*#__PURE__*/React__default["default"].forwardRef(function (props,
8420
8453
  })),
8421
8454
  styles = _usePopper.styles,
8422
8455
  attributes = _usePopper.attributes,
8423
- popper = index._objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
8456
+ popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
8424
8457
 
8425
8458
  if (props.show) {
8426
8459
  if (exited) setExited(false);
@@ -8448,13 +8481,13 @@ var Overlay = /*#__PURE__*/React__default["default"].forwardRef(function (props,
8448
8481
  return null;
8449
8482
  }
8450
8483
 
8451
- var child = props.children(index._extends({}, popper, {
8484
+ var child = props.children(_extends({}, popper, {
8452
8485
  show: !!props.show,
8453
- props: index._extends({}, attributes.popper, {
8486
+ props: _extends({}, attributes.popper, {
8454
8487
  style: styles.popper,
8455
8488
  ref: mergedRef
8456
8489
  }),
8457
- arrowProps: index._extends({}, attributes.arrow, {
8490
+ arrowProps: _extends({}, attributes.arrow, {
8458
8491
  style: styles.arrow,
8459
8492
  ref: attachArrowRef
8460
8493
  })
package/dist/cjs/View.js CHANGED
@@ -1782,8 +1782,6 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1782
1782
  !isVideoSeries && !isFormAssembly && showPublished && React__default["default"].createElement(
1783
1783
  'div',
1784
1784
  null,
1785
- 'Published on:',
1786
- '\xA0',
1787
1785
  React__default["default"].createElement(
1788
1786
  'time',
1789
1787
  {
@@ -11,7 +11,7 @@ var getQuery = function getQuery(type) {
11
11
  switch (type) {
12
12
  // quiz video series and slideshow
13
13
  case 'related':
14
- return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && isHealthcareProfessional != true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
14
+ return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && isHealthcareProfessional != true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
15
15
  case 'article':
16
16
  return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n disableNativeAds,\n issueGroup-> { _id, name, identifier, showIssueNameOnly, showPageNumber, risMapping, parent-> },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n disableEpisodeNumber,\n excludeRelatedContents,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n isSeries,\n disableEpisodeNumber,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n excludeRelatedContents,\n \'path\': identifier.current,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n year,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
17
17
  case 'publication':
@@ -31,6 +31,7 @@ var serialize_1 = serialize;
31
31
 
32
32
  var decode = decodeURIComponent;
33
33
  var encode = encodeURIComponent;
34
+ var pairSplitRegExp = /; */;
34
35
 
35
36
  /**
36
37
  * RegExp to match field-content in RFC 7230 sec 3.2
@@ -61,29 +62,28 @@ function parse$1(str, options) {
61
62
 
62
63
  var obj = {};
63
64
  var opt = options || {};
64
- var pairs = str.split(';');
65
+ var pairs = str.split(pairSplitRegExp);
65
66
  var dec = opt.decode || decode;
66
67
 
67
68
  for (var i = 0; i < pairs.length; i++) {
68
69
  var pair = pairs[i];
69
- var index = pair.indexOf('=');
70
+ var eq_idx = pair.indexOf('=');
70
71
 
71
72
  // skip things that don't look like key=value
72
- if (index < 0) {
73
+ if (eq_idx < 0) {
73
74
  continue;
74
75
  }
75
76
 
76
- var key = pair.substring(0, index).trim();
77
+ var key = pair.substr(0, eq_idx).trim();
78
+ var val = pair.substr(++eq_idx, pair.length).trim();
79
+
80
+ // quoted values
81
+ if ('"' == val[0]) {
82
+ val = val.slice(1, -1);
83
+ }
77
84
 
78
85
  // only assign once
79
86
  if (undefined == obj[key]) {
80
- var val = pair.substring(index + 1, pair.length).trim();
81
-
82
- // quoted values
83
- if (val[0] === '"') {
84
- val = val.slice(1, -1);
85
- }
86
-
87
87
  obj[key] = tryDecode(val, dec);
88
88
  }
89
89
  }
@@ -35,18 +35,9 @@ function _objectWithoutPropertiesLoose(source, excluded) {
35
35
  return target;
36
36
  }
37
37
 
38
- function _setPrototypeOf(o, p) {
39
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
40
- o.__proto__ = p;
41
- return o;
42
- };
43
-
44
- return _setPrototypeOf(o, p);
45
- }
46
-
47
38
  var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
48
39
  /*!
49
- Copyright (c) 2018 Jed Watson.
40
+ Copyright (c) 2017 Jed Watson.
50
41
  Licensed under the MIT License (MIT), see
51
42
  http://jedwatson.github.io/classnames
52
43
  */
@@ -56,7 +47,7 @@ var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
56
47
 
57
48
  var hasOwn = {}.hasOwnProperty;
58
49
 
59
- function classNames() {
50
+ function classNames () {
60
51
  var classes = [];
61
52
 
62
53
  for (var i = 0; i < arguments.length; i++) {
@@ -67,22 +58,16 @@ var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
67
58
 
68
59
  if (argType === 'string' || argType === 'number') {
69
60
  classes.push(arg);
70
- } else if (Array.isArray(arg)) {
71
- if (arg.length) {
72
- var inner = classNames.apply(null, arg);
73
- if (inner) {
74
- classes.push(inner);
75
- }
61
+ } else if (Array.isArray(arg) && arg.length) {
62
+ var inner = classNames.apply(null, arg);
63
+ if (inner) {
64
+ classes.push(inner);
76
65
  }
77
66
  } else if (argType === 'object') {
78
- if (arg.toString === Object.prototype.toString) {
79
- for (var key in arg) {
80
- if (hasOwn.call(arg, key) && arg[key]) {
81
- classes.push(key);
82
- }
67
+ for (var key in arg) {
68
+ if (hasOwn.call(arg, key) && arg[key]) {
69
+ classes.push(key);
83
70
  }
84
- } else {
85
- classes.push(arg.toString());
86
71
  }
87
72
  }
88
73
  }
@@ -101,5 +86,4 @@ var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
101
86
 
102
87
  exports._extends = _extends;
103
88
  exports._objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
104
- exports._setPrototypeOf = _setPrototypeOf;
105
89
  exports.classnames = classnames;
package/dist/cjs/index.js CHANGED
@@ -156,7 +156,7 @@ require('./_object-to-array-9337ba83.js');
156
156
  require('react-bootstrap/Spinner');
157
157
  require('react-bootstrap/Form');
158
158
  require('./js.cookie-a511c430.js');
159
- require('./index-50be6759.js');
159
+ require('./index-9ec837cc.js');
160
160
  require('./ConferenceBanner-213003ce.js');
161
161
  require('next/head');
162
162
  require('@mjhls/mjh-framework/dist/cjs/urlFor');
@@ -192,8 +192,7 @@ require('./SeriesSlider-086a8319.js');
192
192
  require('./style-inject.es-dcee06b6.js');
193
193
  require('disqus-react');
194
194
  require('react-twitter-embed');
195
- require('./ImageSlider-eb866353.js');
196
- require('./defineProperty-19580e93.js');
195
+ require('./ImageSlider-d65bc9c8.js');
197
196
  require('./VideoSeriesCard.js');
198
197
 
199
198
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -3,7 +3,7 @@ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorRetu
3
3
  import { _ as _typeof$1 } from './typeof-657f25da.js';
4
4
  import React__default, { createContext, Component, Fragment, Children, version as version$2 } from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-98ca9cec.js';
6
+ import { _ as _objectWithoutPropertiesLoose$1, a as _extends, c as classnames } from './index-0ce54f8a.js';
7
7
  import { DropdownButton } from 'react-bootstrap';
8
8
  import urlFor from './urlFor.js';
9
9
  import { m as moment } from './moment-bc12cb97.js';
@@ -57,9 +57,6 @@ function _defineProperties(target, props) {
57
57
  function _createClass(Constructor, protoProps, staticProps) {
58
58
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
59
59
  if (staticProps) _defineProperties(Constructor, staticProps);
60
- Object.defineProperty(Constructor, "prototype", {
61
- writable: false
62
- });
63
60
  return Constructor;
64
61
  }
65
62
 
@@ -71,6 +68,15 @@ function _assertThisInitialized(self) {
71
68
  return self;
72
69
  }
73
70
 
71
+ function _setPrototypeOf(o, p) {
72
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
73
+ o.__proto__ = p;
74
+ return o;
75
+ };
76
+
77
+ return _setPrototypeOf(o, p);
78
+ }
79
+
74
80
  function _inherits(subClass, superClass) {
75
81
  if (typeof superClass !== "function" && superClass !== null) {
76
82
  throw new TypeError("Super expression must either be null or a function");
@@ -83,27 +89,28 @@ function _inherits(subClass, superClass) {
83
89
  configurable: true
84
90
  }
85
91
  });
86
- Object.defineProperty(subClass, "prototype", {
87
- writable: false
88
- });
89
92
  if (superClass) _setPrototypeOf(subClass, superClass);
90
93
  }
91
94
 
92
95
  function _typeof(obj) {
93
96
  "@babel/helpers - typeof";
94
97
 
95
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
96
- return typeof obj;
97
- } : function (obj) {
98
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
99
- }, _typeof(obj);
98
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
99
+ _typeof = function _typeof(obj) {
100
+ return typeof obj;
101
+ };
102
+ } else {
103
+ _typeof = function _typeof(obj) {
104
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
105
+ };
106
+ }
107
+
108
+ return _typeof(obj);
100
109
  }
101
110
 
102
111
  function _possibleConstructorReturn(self, call) {
103
112
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
104
113
  return call;
105
- } else if (call !== void 0) {
106
- throw new TypeError("Derived constructors may only return object or undefined");
107
114
  }
108
115
 
109
116
  return _assertThisInitialized(self);
@@ -818,7 +825,7 @@ function parseAlgoliaHit(_ref2) {
818
825
  });
819
826
  }
820
827
 
821
- var version$1 = '6.22.0';
828
+ var version$1 = '6.21.1';
822
829
 
823
830
  function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
824
831
 
@@ -1262,7 +1269,7 @@ function _arrayWithoutHoles(arr) {
1262
1269
  }
1263
1270
 
1264
1271
  function _iterableToArray(iter) {
1265
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1272
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1266
1273
  }
1267
1274
 
1268
1275
  function _unsupportedIterableToArray(o, minLen) {
@@ -9095,17 +9102,14 @@ function _arrayWithHoles(arr) {
9095
9102
  }
9096
9103
 
9097
9104
  function _iterableToArrayLimit(arr, i) {
9098
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
9099
-
9100
- if (_i == null) return;
9105
+ if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
9101
9106
  var _arr = [];
9102
9107
  var _n = true;
9103
9108
  var _d = false;
9104
-
9105
- var _s, _e;
9109
+ var _e = undefined;
9106
9110
 
9107
9111
  try {
9108
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
9112
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
9109
9113
  _arr.push(_s.value);
9110
9114
 
9111
9115
  if (i && _arr.length === i) break;
@@ -1,6 +1,5 @@
1
1
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
2
2
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
3
- import { d as defineProperty, b as asyncToGenerator } from './defineProperty-e8022d1e.js';
4
3
  import React__default, { useState, useEffect } from 'react';
5
4
  import { Form } from 'react-bootstrap';
6
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
@@ -793,6 +792,69 @@ try {
793
792
 
794
793
  var regenerator = runtime_1;
795
794
 
795
+ var defineProperty = createCommonjsModule(function (module) {
796
+ function _defineProperty(obj, key, value) {
797
+ if (key in obj) {
798
+ Object.defineProperty(obj, key, {
799
+ value: value,
800
+ enumerable: true,
801
+ configurable: true,
802
+ writable: true
803
+ });
804
+ } else {
805
+ obj[key] = value;
806
+ }
807
+
808
+ return obj;
809
+ }
810
+
811
+ module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
812
+ });
813
+
814
+ unwrapExports(defineProperty);
815
+
816
+ var asyncToGenerator = createCommonjsModule(function (module) {
817
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
818
+ try {
819
+ var info = gen[key](arg);
820
+ var value = info.value;
821
+ } catch (error) {
822
+ reject(error);
823
+ return;
824
+ }
825
+
826
+ if (info.done) {
827
+ resolve(value);
828
+ } else {
829
+ Promise.resolve(value).then(_next, _throw);
830
+ }
831
+ }
832
+
833
+ function _asyncToGenerator(fn) {
834
+ return function () {
835
+ var self = this,
836
+ args = arguments;
837
+ return new Promise(function (resolve, reject) {
838
+ var gen = fn.apply(self, args);
839
+
840
+ function _next(value) {
841
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
842
+ }
843
+
844
+ function _throw(err) {
845
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
846
+ }
847
+
848
+ _next(undefined);
849
+ });
850
+ };
851
+ }
852
+
853
+ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
854
+ });
855
+
856
+ unwrapExports(asyncToGenerator);
857
+
796
858
  var arrayWithHoles = createCommonjsModule(function (module) {
797
859
  function _arrayWithHoles(arr) {
798
860
  if (Array.isArray(arr)) return arr;