@mjhls/mjh-framework 1.0.1083 → 1.0.1084

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD300x250.js +1 -1
  3. package/dist/cjs/AD300x250x600.js +1 -1
  4. package/dist/cjs/AD728x90.js +1 -1
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/{ADInfeed-2530b9b0.js → ADInfeed-98ee4120.js} +1 -1
  8. package/dist/cjs/ADSkyscraper.js +1 -1
  9. package/dist/cjs/ADSponsoredResources.js +1 -1
  10. package/dist/cjs/ADWebcast.js +1 -1
  11. package/dist/cjs/ADWelcome.js +1 -1
  12. package/dist/cjs/{ADlgInfeed-df49ed95.js → ADlgInfeed-55df7d69.js} +1 -1
  13. package/dist/cjs/AdSlot.js +1 -1
  14. package/dist/cjs/AdSlotsProvider.js +1 -1
  15. package/dist/cjs/AlgoliaSearch.js +248 -532
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +4 -4
  18. package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
  19. package/dist/cjs/ArticleSeriesListing.js +2 -2
  20. package/dist/cjs/AuthWrapper.js +642 -266
  21. package/dist/cjs/CEDeckSupabase.js +6 -2
  22. package/dist/cjs/CMEDeck.js +6 -2
  23. package/dist/cjs/Column3.js +1 -1
  24. package/dist/cjs/ConferenceArticleCard.js +1 -1
  25. package/dist/cjs/ContentCardPaginated.js +3 -3
  26. package/dist/cjs/DeckContent.js +3 -3
  27. package/dist/cjs/DeckQueue.js +2 -2
  28. package/dist/cjs/DeckQueuePaginated.js +2 -2
  29. package/dist/cjs/EventsDeck.js +3 -3
  30. package/dist/cjs/ExternalResources.js +5 -5
  31. package/dist/cjs/Feature.js +1 -1
  32. package/dist/cjs/ForbesHero.js +1 -1
  33. package/dist/cjs/GridContent.js +4 -4
  34. package/dist/cjs/GridContentPaginated.js +4 -4
  35. package/dist/cjs/GridHero.js +1 -1
  36. package/dist/cjs/HamMagazine.js +2 -2
  37. package/dist/cjs/HighlightenVideo.js +1 -1
  38. package/dist/cjs/HorizontalArticleListing.js +4 -4
  39. package/dist/cjs/HorizontalHero.js +1 -1
  40. package/dist/cjs/{ImageSlider-d65bc9c8.js → ImageSlider-984a697b.js} +116 -156
  41. package/dist/cjs/IssueContentDeck.js +1 -1
  42. package/dist/cjs/IssueLanding.js +6 -6
  43. package/dist/cjs/LeftNav.js +1 -1
  44. package/dist/cjs/MasterDeck.js +4 -4
  45. package/dist/cjs/MasterDeckPaginated.js +3 -3
  46. package/dist/cjs/MediaSeriesCard.js +4 -4
  47. package/dist/cjs/MediaSeriesLanding.js +9 -9
  48. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -9
  49. package/dist/cjs/NavMagazine.js +2 -2
  50. package/dist/cjs/NavNative.js +1 -1
  51. package/dist/cjs/OncliveHero.js +1 -1
  52. package/dist/cjs/OncliveLargeHero.js +1 -1
  53. package/dist/cjs/PartnerDetailListing.js +8 -7
  54. package/dist/cjs/PartnerDetailListingPaginated.js +8 -7
  55. package/dist/cjs/PodcastsLanding.js +7 -7
  56. package/dist/cjs/PtceDeck.js +1 -1
  57. package/dist/cjs/PubSection.js +4 -4
  58. package/dist/cjs/QueueDeckExpanded.js +4 -4
  59. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
  60. package/dist/cjs/RelatedContent.js +1 -1
  61. package/dist/cjs/SeriesListingDeck.js +2 -2
  62. package/dist/cjs/{SeriesSlider-a8b51591.js → SeriesSlider-086a8319.js} +1 -1
  63. package/dist/cjs/{SocialSearchComponent-9d272141.js → SocialSearchComponent-d7e5d3a6.js} +1 -1
  64. package/dist/cjs/TaxonomyDescription.js +4 -4
  65. package/dist/cjs/TemplateNormal.js +2 -2
  66. package/dist/cjs/{Tooltip-66c1a867.js → Tooltip-96fe6ef6.js} +85 -159
  67. package/dist/cjs/Ustream.js +1 -1
  68. package/dist/cjs/VerticalHero.js +1 -1
  69. package/dist/cjs/VideoProgramLandingPage.js +4 -4
  70. package/dist/cjs/VideoSeriesCard.js +1 -1
  71. package/dist/cjs/VideoSeriesLandingPage.js +4 -4
  72. package/dist/cjs/VideoSeriesListing.js +2 -2
  73. package/dist/cjs/View.js +5 -5
  74. package/dist/cjs/YahooHero.js +1 -1
  75. package/dist/cjs/YoutubeGroup.js +1 -1
  76. package/dist/cjs/{brightcove-react-player-loader.es-35faab67.js → brightcove-react-player-loader.es-4c7825a1.js} +3 -3
  77. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  78. package/dist/cjs/getRelatedArticle.js +15 -33
  79. package/dist/cjs/getSerializers.js +4 -4
  80. package/dist/cjs/{index-9ec837cc.js → index-50be6759.js} +25 -9
  81. package/dist/cjs/index-96c331fd.js +1572 -0
  82. package/dist/cjs/{index-1d905301.js → index-c8823aa4.js} +105 -284
  83. package/dist/cjs/index.js +13 -11
  84. package/dist/cjs/{main-812888f1.js → main-ae8472f3.js} +1 -1
  85. package/dist/cjs/{moment-f730814d.js → moment-aca40de1.js} +80 -95
  86. package/dist/cjs/timeDifferenceCalc.js +1 -1
  87. package/dist/cjs/typeof-1358762e.js +33 -0
  88. package/dist/esm/AD300x250.js +1 -1
  89. package/dist/esm/AD300x250x600.js +1 -1
  90. package/dist/esm/AD728x90.js +1 -1
  91. package/dist/esm/ADFloatingFooter.js +1 -1
  92. package/dist/esm/ADGutter.js +1 -1
  93. package/dist/esm/{ADInfeed-92953c60.js → ADInfeed-41bba2c6.js} +1 -1
  94. package/dist/esm/ADSkyscraper.js +1 -1
  95. package/dist/esm/ADSponsoredResources.js +1 -1
  96. package/dist/esm/ADWebcast.js +1 -1
  97. package/dist/esm/ADWelcome.js +1 -1
  98. package/dist/esm/{ADlgInfeed-338ff48c.js → ADlgInfeed-3c717ece.js} +1 -1
  99. package/dist/esm/AdSlot.js +1 -1
  100. package/dist/esm/AdSlotsProvider.js +1 -1
  101. package/dist/esm/AlgoliaSearch.js +247 -531
  102. package/dist/esm/ArticleCarousel.js +1 -1
  103. package/dist/esm/ArticleProgramLandingPage.js +4 -4
  104. package/dist/esm/ArticleSeriesLandingPage.js +4 -4
  105. package/dist/esm/ArticleSeriesListing.js +2 -2
  106. package/dist/esm/AuthWrapper.js +639 -263
  107. package/dist/esm/CEDeckSupabase.js +6 -2
  108. package/dist/esm/CMEDeck.js +6 -2
  109. package/dist/esm/Column3.js +1 -1
  110. package/dist/esm/ConferenceArticleCard.js +1 -1
  111. package/dist/esm/ContentCardPaginated.js +3 -3
  112. package/dist/esm/DeckContent.js +3 -3
  113. package/dist/esm/DeckQueue.js +2 -2
  114. package/dist/esm/DeckQueuePaginated.js +2 -2
  115. package/dist/esm/EventsDeck.js +3 -3
  116. package/dist/esm/ExternalResources.js +5 -5
  117. package/dist/esm/Feature.js +1 -1
  118. package/dist/esm/ForbesHero.js +1 -1
  119. package/dist/esm/GridContent.js +4 -4
  120. package/dist/esm/GridContentPaginated.js +4 -4
  121. package/dist/esm/GridHero.js +1 -1
  122. package/dist/esm/HamMagazine.js +2 -2
  123. package/dist/esm/HighlightenVideo.js +1 -1
  124. package/dist/esm/HorizontalArticleListing.js +4 -4
  125. package/dist/esm/HorizontalHero.js +1 -1
  126. package/dist/esm/{ImageSlider-801685f8.js → ImageSlider-9250ddc9.js} +117 -157
  127. package/dist/esm/IssueContentDeck.js +1 -1
  128. package/dist/esm/IssueLanding.js +6 -6
  129. package/dist/esm/LeftNav.js +1 -1
  130. package/dist/esm/MasterDeck.js +4 -4
  131. package/dist/esm/MasterDeckPaginated.js +3 -3
  132. package/dist/esm/MediaSeriesCard.js +4 -4
  133. package/dist/esm/MediaSeriesLanding.js +9 -9
  134. package/dist/esm/MediaSeriesLandingPaginated.js +9 -9
  135. package/dist/esm/NavMagazine.js +2 -2
  136. package/dist/esm/NavNative.js +1 -1
  137. package/dist/esm/OncliveHero.js +1 -1
  138. package/dist/esm/OncliveLargeHero.js +1 -1
  139. package/dist/esm/Pagination-9fe9f61d.js +1 -1
  140. package/dist/esm/PartnerDetailListing.js +8 -7
  141. package/dist/esm/PartnerDetailListingPaginated.js +8 -7
  142. package/dist/esm/PodcastsLanding.js +7 -7
  143. package/dist/esm/PtceDeck.js +1 -1
  144. package/dist/esm/PubSection.js +4 -4
  145. package/dist/esm/QueueDeckExpanded.js +4 -4
  146. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  147. package/dist/esm/RelatedContent.js +1 -1
  148. package/dist/esm/SeriesListingDeck.js +2 -2
  149. package/dist/esm/{SeriesSlider-5757414b.js → SeriesSlider-acbdf4c9.js} +1 -1
  150. package/dist/esm/{SocialSearchComponent-98bfc990.js → SocialSearchComponent-9e65c8d6.js} +1 -1
  151. package/dist/esm/TaxonomyDescription.js +4 -4
  152. package/dist/esm/TemplateNormal.js +2 -2
  153. package/dist/esm/{Tooltip-0b3b4558.js → Tooltip-bc98d17e.js} +244 -318
  154. package/dist/esm/Ustream.js +1 -1
  155. package/dist/esm/VerticalHero.js +1 -1
  156. package/dist/esm/VideoProgramLandingPage.js +4 -4
  157. package/dist/esm/VideoSeriesCard.js +1 -1
  158. package/dist/esm/VideoSeriesLandingPage.js +4 -4
  159. package/dist/esm/VideoSeriesListing.js +2 -2
  160. package/dist/esm/View.js +5 -5
  161. package/dist/esm/YahooHero.js +1 -1
  162. package/dist/esm/YoutubeGroup.js +1 -1
  163. package/dist/esm/{brightcove-react-player-loader.es-a2422c4b.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
  164. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  165. package/dist/esm/getRelatedArticle.js +16 -34
  166. package/dist/esm/getSerializers.js +4 -4
  167. package/dist/esm/index-30a6257d.js +1570 -0
  168. package/dist/esm/{index-0ce54f8a.js → index-98ca9cec.js} +25 -10
  169. package/dist/esm/{index-517a7573.js → index-be51248f.js} +105 -284
  170. package/dist/esm/index.js +13 -11
  171. package/dist/esm/{main-dde1592e.js → main-754d4992.js} +1 -1
  172. package/dist/esm/{moment-48faeb9c.js → moment-bc12cb97.js} +80 -95
  173. package/dist/esm/timeDifferenceCalc.js +1 -1
  174. package/dist/esm/typeof-2f07d0e8.js +30 -0
  175. package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
  176. package/package.json +1 -1
  177. package/dist/cjs/index-4d21663c.js +0 -1573
  178. package/dist/esm/index-887c1f5e.js +0 -1571
@@ -33,9 +33,18 @@ function _objectWithoutPropertiesLoose(source, excluded) {
33
33
  return target;
34
34
  }
35
35
 
36
+ function _setPrototypeOf(o, p) {
37
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
38
+ o.__proto__ = p;
39
+ return o;
40
+ };
41
+
42
+ return _setPrototypeOf(o, p);
43
+ }
44
+
36
45
  var classnames = createCommonjsModule(function (module) {
37
46
  /*!
38
- Copyright (c) 2017 Jed Watson.
47
+ Copyright (c) 2018 Jed Watson.
39
48
  Licensed under the MIT License (MIT), see
40
49
  http://jedwatson.github.io/classnames
41
50
  */
@@ -45,7 +54,7 @@ var classnames = createCommonjsModule(function (module) {
45
54
 
46
55
  var hasOwn = {}.hasOwnProperty;
47
56
 
48
- function classNames () {
57
+ function classNames() {
49
58
  var classes = [];
50
59
 
51
60
  for (var i = 0; i < arguments.length; i++) {
@@ -56,16 +65,22 @@ var classnames = createCommonjsModule(function (module) {
56
65
 
57
66
  if (argType === 'string' || argType === 'number') {
58
67
  classes.push(arg);
59
- } else if (Array.isArray(arg) && arg.length) {
60
- var inner = classNames.apply(null, arg);
61
- if (inner) {
62
- classes.push(inner);
68
+ } else if (Array.isArray(arg)) {
69
+ if (arg.length) {
70
+ var inner = classNames.apply(null, arg);
71
+ if (inner) {
72
+ classes.push(inner);
73
+ }
63
74
  }
64
75
  } else if (argType === 'object') {
65
- for (var key in arg) {
66
- if (hasOwn.call(arg, key) && arg[key]) {
67
- classes.push(key);
76
+ if (arg.toString === Object.prototype.toString) {
77
+ for (var key in arg) {
78
+ if (hasOwn.call(arg, key) && arg[key]) {
79
+ classes.push(key);
80
+ }
68
81
  }
82
+ } else {
83
+ classes.push(arg.toString());
69
84
  }
70
85
  }
71
86
  }
@@ -82,4 +97,4 @@ var classnames = createCommonjsModule(function (module) {
82
97
  }());
83
98
  });
84
99
 
85
- export { _objectWithoutPropertiesLoose as _, _extends as a, classnames as c };
100
+ export { _objectWithoutPropertiesLoose as _, _setPrototypeOf as a, _extends as b, classnames as c };
@@ -9,14 +9,14 @@ import PropTypes from 'prop-types';
9
9
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
10
10
  import './Beam.js';
11
11
  import Segment from './Segment.js';
12
- import { f as main_18, b as main_42, m as main_43 } from './main-dde1592e.js';
12
+ import { f as main_18, b as main_42, m as main_43 } from './main-754d4992.js';
13
13
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
14
14
  import { _ as _extends, b as _extends$1 } from './extends-2f4448b8.js';
15
15
  import { u as urlForFile } from './urlForFile-2e523b67.js';
16
16
  import { L as LazyLoad } from './index-755f2cc2.js';
17
17
  import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
18
18
  import { _ as _typeof$1 } from './typeof-3ab7d3b6.js';
19
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-a2422c4b.js';
19
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
20
20
  import { _ as _JSON$stringify } from './stringify-1e2a5946.js';
21
21
  import { _ as _export, a as _core } from './core.get-iterator-method-95db387d.js';
22
22
  import { _ as _objectToArray } from './_object-to-array-9dfdfb29.js';
@@ -26,7 +26,7 @@ import Button from 'react-bootstrap/Button';
26
26
  import Form from 'react-bootstrap/Form';
27
27
  import ReactGA from 'react-ga';
28
28
  import GroupDeck from './GroupDeck.js';
29
- import { m as moment } from './moment-48faeb9c.js';
29
+ import { m as moment } from './moment-bc12cb97.js';
30
30
  import SocialShare from './SocialShare.js';
31
31
  import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-e6f28e5c.js';
32
32
  import Pagination from 'react-bootstrap/Pagination';
@@ -695,7 +695,7 @@ debug.names;
695
695
  debug.skips;
696
696
  debug.formatters;
697
697
 
698
- var browser$1 = createCommonjsModule(function (module, exports) {
698
+ var browser = createCommonjsModule(function (module, exports) {
699
699
  /**
700
700
  * This is the web browser implementation of `debug()`.
701
701
  *
@@ -882,13 +882,13 @@ function localstorage() {
882
882
  } catch (e) {}
883
883
  }
884
884
  });
885
- browser$1.log;
886
- browser$1.formatArgs;
887
- browser$1.save;
888
- browser$1.load;
889
- browser$1.useColors;
890
- browser$1.storage;
891
- browser$1.colors;
885
+ browser.log;
886
+ browser.formatArgs;
887
+ browser.save;
888
+ browser.load;
889
+ browser.useColors;
890
+ browser.storage;
891
+ browser.colors;
892
892
 
893
893
  // MIT lisence
894
894
  // from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
@@ -912,227 +912,16 @@ var tty = {
912
912
  };
913
913
 
914
914
  // shim for using process in browser
915
- // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
916
-
917
- function defaultSetTimout() {
918
- throw new Error('setTimeout has not been defined');
919
- }
920
- function defaultClearTimeout () {
921
- throw new Error('clearTimeout has not been defined');
922
- }
923
- var cachedSetTimeout = defaultSetTimout;
924
- var cachedClearTimeout = defaultClearTimeout;
925
- if (typeof global.setTimeout === 'function') {
926
- cachedSetTimeout = setTimeout;
927
- }
928
- if (typeof global.clearTimeout === 'function') {
929
- cachedClearTimeout = clearTimeout;
930
- }
931
-
932
- function runTimeout(fun) {
933
- if (cachedSetTimeout === setTimeout) {
934
- //normal enviroments in sane situations
935
- return setTimeout(fun, 0);
936
- }
937
- // if setTimeout wasn't available but was latter defined
938
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
939
- cachedSetTimeout = setTimeout;
940
- return setTimeout(fun, 0);
941
- }
942
- try {
943
- // when when somebody has screwed with setTimeout but no I.E. maddness
944
- return cachedSetTimeout(fun, 0);
945
- } catch(e){
946
- try {
947
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
948
- return cachedSetTimeout.call(null, fun, 0);
949
- } catch(e){
950
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
951
- return cachedSetTimeout.call(this, fun, 0);
952
- }
953
- }
954
-
955
-
956
- }
957
- function runClearTimeout(marker) {
958
- if (cachedClearTimeout === clearTimeout) {
959
- //normal enviroments in sane situations
960
- return clearTimeout(marker);
961
- }
962
- // if clearTimeout wasn't available but was latter defined
963
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
964
- cachedClearTimeout = clearTimeout;
965
- return clearTimeout(marker);
966
- }
967
- try {
968
- // when when somebody has screwed with setTimeout but no I.E. maddness
969
- return cachedClearTimeout(marker);
970
- } catch (e){
971
- try {
972
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
973
- return cachedClearTimeout.call(null, marker);
974
- } catch (e){
975
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
976
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
977
- return cachedClearTimeout.call(this, marker);
978
- }
979
- }
980
-
981
-
982
-
983
- }
984
- var queue = [];
985
- var draining = false;
986
- var currentQueue;
987
- var queueIndex = -1;
988
-
989
- function cleanUpNextTick() {
990
- if (!draining || !currentQueue) {
991
- return;
992
- }
993
- draining = false;
994
- if (currentQueue.length) {
995
- queue = currentQueue.concat(queue);
996
- } else {
997
- queueIndex = -1;
998
- }
999
- if (queue.length) {
1000
- drainQueue();
1001
- }
1002
- }
1003
-
1004
- function drainQueue() {
1005
- if (draining) {
1006
- return;
1007
- }
1008
- var timeout = runTimeout(cleanUpNextTick);
1009
- draining = true;
1010
-
1011
- var len = queue.length;
1012
- while(len) {
1013
- currentQueue = queue;
1014
- queue = [];
1015
- while (++queueIndex < len) {
1016
- if (currentQueue) {
1017
- currentQueue[queueIndex].run();
1018
- }
1019
- }
1020
- queueIndex = -1;
1021
- len = queue.length;
1022
- }
1023
- currentQueue = null;
1024
- draining = false;
1025
- runClearTimeout(timeout);
1026
- }
1027
- function nextTick(fun) {
1028
- var args = new Array(arguments.length - 1);
1029
- if (arguments.length > 1) {
1030
- for (var i = 1; i < arguments.length; i++) {
1031
- args[i - 1] = arguments[i];
1032
- }
1033
- }
1034
- queue.push(new Item(fun, args));
1035
- if (queue.length === 1 && !draining) {
1036
- runTimeout(drainQueue);
1037
- }
1038
- }
1039
- // v8 likes predictible objects
1040
- function Item(fun, array) {
1041
- this.fun = fun;
1042
- this.array = array;
1043
- }
1044
- Item.prototype.run = function () {
1045
- this.fun.apply(null, this.array);
1046
- };
1047
- var title = 'browser';
1048
- var platform = 'browser';
1049
- var browser = true;
1050
- var env = {};
1051
- var argv = [];
1052
- var version = ''; // empty string to avoid regexp issues
1053
- var versions = {};
1054
- var release = {};
1055
- var config = {};
1056
-
1057
- function noop() {}
1058
-
1059
- var on = noop;
1060
- var addListener = noop;
1061
- var once = noop;
1062
- var off = noop;
1063
- var removeListener = noop;
1064
- var removeAllListeners = noop;
1065
- var emit = noop;
1066
-
1067
- function binding(name) {
1068
- throw new Error('process.binding is not supported');
1069
- }
1070
-
1071
- function cwd () { return '/' }
1072
- function chdir (dir) {
1073
- throw new Error('process.chdir is not supported');
1074
- }function umask() { return 0; }
1075
915
 
1076
916
  // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
1077
917
  var performance = global.performance || {};
1078
- var performanceNow =
1079
- performance.now ||
918
+ performance.now ||
1080
919
  performance.mozNow ||
1081
920
  performance.msNow ||
1082
921
  performance.oNow ||
1083
922
  performance.webkitNow ||
1084
923
  function(){ return (new Date()).getTime() };
1085
924
 
1086
- // generate timestamp or delta
1087
- // see http://nodejs.org/api/process.html#process_process_hrtime
1088
- function hrtime(previousTimestamp){
1089
- var clocktime = performanceNow.call(performance)*1e-3;
1090
- var seconds = Math.floor(clocktime);
1091
- var nanoseconds = Math.floor((clocktime%1)*1e9);
1092
- if (previousTimestamp) {
1093
- seconds = seconds - previousTimestamp[0];
1094
- nanoseconds = nanoseconds - previousTimestamp[1];
1095
- if (nanoseconds<0) {
1096
- seconds--;
1097
- nanoseconds += 1e9;
1098
- }
1099
- }
1100
- return [seconds,nanoseconds]
1101
- }
1102
-
1103
- var startTime = new Date();
1104
- function uptime() {
1105
- var currentTime = new Date();
1106
- var dif = currentTime - startTime;
1107
- return dif / 1000;
1108
- }
1109
-
1110
- var process$1 = {
1111
- nextTick: nextTick,
1112
- title: title,
1113
- browser: browser,
1114
- env: env,
1115
- argv: argv,
1116
- version: version,
1117
- versions: versions,
1118
- on: on,
1119
- addListener: addListener,
1120
- once: once,
1121
- off: off,
1122
- removeListener: removeListener,
1123
- removeAllListeners: removeAllListeners,
1124
- emit: emit,
1125
- binding: binding,
1126
- cwd: cwd,
1127
- chdir: chdir,
1128
- umask: umask,
1129
- hrtime: hrtime,
1130
- platform: platform,
1131
- release: release,
1132
- config: config,
1133
- uptime: uptime
1134
- };
1135
-
1136
925
  var inherits;
1137
926
  if (typeof Object.create === 'function'){
1138
927
  inherits = function inherits(ctor, superCtor) {
@@ -1209,18 +998,10 @@ function deprecate(fn, msg) {
1209
998
  };
1210
999
  }
1211
1000
 
1212
- if (process$1.noDeprecation === true) {
1213
- return fn;
1214
- }
1215
-
1216
1001
  var warned = false;
1217
1002
  function deprecated() {
1218
1003
  if (!warned) {
1219
- if (process$1.throwDeprecation) {
1220
- throw new Error(msg);
1221
- } else if (process$1.traceDeprecation) {
1222
- console.trace(msg);
1223
- } else {
1004
+ {
1224
1005
  console.error(msg);
1225
1006
  }
1226
1007
  warned = true;
@@ -1235,7 +1016,7 @@ var debugs = {};
1235
1016
  var debugEnviron;
1236
1017
  function debuglog(set) {
1237
1018
  if (isUndefined(debugEnviron))
1238
- debugEnviron = process$1.env.NODE_DEBUG || '';
1019
+ debugEnviron = '';
1239
1020
  set = set.toUpperCase();
1240
1021
  if (!debugs[set]) {
1241
1022
  if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
@@ -1982,7 +1763,7 @@ var src = createCommonjsModule(function (module) {
1982
1763
  */
1983
1764
 
1984
1765
  if (typeof process !== 'undefined' && process.type === 'renderer') {
1985
- module.exports = browser$1;
1766
+ module.exports = browser;
1986
1767
  } else {
1987
1768
  module.exports = node;
1988
1769
  }
@@ -8913,11 +8694,17 @@ var Poll$1 = function Poll(_ref) {
8913
8694
  showBorders = _useState6[0],
8914
8695
  setShowBorders = _useState6[1];
8915
8696
 
8697
+ var _useState7 = useState(false),
8698
+ _useState8 = _slicedToArray(_useState7, 2),
8699
+ dateChecked = _useState8[0],
8700
+ setDateChecked = _useState8[1];
8701
+
8916
8702
  var choices = node.choices,
8917
8703
  question = node.question,
8918
8704
  response = node.response,
8919
8705
  _node$showResults = node.showResults,
8920
- showResults = _node$showResults === undefined ? '' : _node$showResults;
8706
+ showResults = _node$showResults === undefined ? '' : _node$showResults,
8707
+ resultsDate = node.resultsDate;
8921
8708
 
8922
8709
  var inputRef = useRef([]);
8923
8710
 
@@ -8925,6 +8712,15 @@ var Poll$1 = function Poll(_ref) {
8925
8712
  e.preventDefault();
8926
8713
  onVote(node._key, selectedChoice);
8927
8714
  };
8715
+ useEffect(function () {
8716
+ var dateForResults = new Date(resultsDate);
8717
+ var today = new Date();
8718
+ if (today.getTime() >= dateForResults.getTime()) {
8719
+ setShowAnswer(true);
8720
+ setDateChecked(true);
8721
+ }
8722
+ }, [resultsDate]);
8723
+
8928
8724
  useEffect(function () {
8929
8725
  if (showResults) {
8930
8726
  setShowAnswer(true);
@@ -8963,44 +8759,10 @@ var Poll$1 = function Poll(_ref) {
8963
8759
  }
8964
8760
  };
8965
8761
 
8966
- return React__default.createElement(
8967
- 'div',
8968
- { className: 'pollHolder mb-3' },
8969
- question && React__default.createElement(
8970
- 'p',
8971
- { className: 'font-weight-bold' },
8972
- question
8973
- ),
8974
- !showAnswer && choices && choices.length > 0 && React__default.createElement(
8975
- 'form',
8976
- { className: 'formPoll', onSubmit: function onSubmit(e) {
8977
- return onSubmitPoll(e);
8978
- } },
8979
- choices && choices.map(function (choice, index) {
8980
- return React__default.createElement(
8981
- 'div',
8982
- { key: choice._key, 'data-index': index, onClick: function onClick(e) {
8983
- return userChoiceSelection(e);
8984
- } },
8985
- React__default.createElement(
8986
- 'label',
8987
- { className: 'pl-2' },
8988
- React__default.createElement('input', { ref: function ref(el) {
8989
- return inputRef.current[index] = el;
8990
- }, type: 'radio', id: 'male', name: choice._type, value: choice._key }),
8991
- ' ' + choice.choiceText
8992
- )
8993
- );
8994
- }),
8995
- React__default.createElement(
8996
- Button$1,
8997
- { disabled: !selectedChoice, style: { width: '100%', borderRadius: '5px', fontWeight: 'bold ' }, className: 'mt-3', type: 'submit' },
8998
- 'Vote'
8999
- )
9000
- ),
9001
- showAnswer && React__default.createElement(
8762
+ var Results = function Results() {
8763
+ return React__default.createElement(
9002
8764
  'div',
9003
- { className: 'progress-container mb-3' },
8765
+ null,
9004
8766
  showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
9005
8767
  var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
9006
8768
  return React__default.createElement(
@@ -9008,23 +8770,32 @@ var Poll$1 = function Poll(_ref) {
9008
8770
  {
9009
8771
  key: choice._key,
9010
8772
  style: { border: showBorders ? choice.choiceAnswer === true ? '2px solid limegreen' : checkChoice(choice._key) ? '2px solid red' : '' : '' },
9011
- className: 'mb-3' },
8773
+ className: 'mb-3'
8774
+ },
9012
8775
  React__default.createElement(
9013
8776
  'div',
9014
8777
  { className: 'correct-answer' },
9015
- React__default.createElement(ProgressBar, { now: percentage }),
9016
8778
  React__default.createElement(
9017
8779
  'div',
9018
- null,
9019
- choice.choiceText
9020
- ),
9021
- React__default.createElement(
9022
- 'div',
9023
- { className: 'float-right' },
9024
- percentage,
9025
- '% (',
9026
- choice.choiceCount ? choice.choiceCount : 0,
9027
- ' Votes)'
8780
+ { className: 'relative w-full h-6 bg-gray-600/50 mx-auto rounded-lg overflow-hidden border border-gray-300' },
8781
+ React__default.createElement('div', { style: { width: percentage + '%' }, className: 'top-0 absolute h-full bg-primary relative' }),
8782
+ React__default.createElement(
8783
+ 'div',
8784
+ { className: 'bottom-0 absolute h-full m-auto font-bold text-sm align-center flex justify-between w-full' },
8785
+ React__default.createElement(
8786
+ 'div',
8787
+ { className: 'text-white pl-2 max-w-[75%]' },
8788
+ choice.choiceText
8789
+ ),
8790
+ React__default.createElement(
8791
+ 'div',
8792
+ { className: 'pr-4 text-white' },
8793
+ percentage,
8794
+ '% (',
8795
+ choice.choiceCount ? choice.choiceCount : 0,
8796
+ ' Votes)'
8797
+ )
8798
+ )
9028
8799
  )
9029
8800
  )
9030
8801
  );
@@ -9035,6 +8806,56 @@ var Poll$1 = function Poll(_ref) {
9035
8806
  'Total Votes: ',
9036
8807
  choicesTotalCount
9037
8808
  )
8809
+ );
8810
+ };
8811
+
8812
+ return React__default.createElement(
8813
+ 'div',
8814
+ { className: 'pollHolder mb-3' },
8815
+ !dateChecked && React__default.createElement(
8816
+ 'div',
8817
+ null,
8818
+ question && React__default.createElement(
8819
+ 'p',
8820
+ { className: 'font-weight-bold' },
8821
+ question
8822
+ ),
8823
+ !showAnswer && choices && choices.length > 0 && React__default.createElement(
8824
+ 'form',
8825
+ { className: 'formPoll', onSubmit: function onSubmit(e) {
8826
+ return onSubmitPoll(e);
8827
+ } },
8828
+ choices && choices.map(function (choice, index) {
8829
+ return React__default.createElement(
8830
+ 'div',
8831
+ { key: choice._key, 'data-index': index, onClick: function onClick(e) {
8832
+ return userChoiceSelection(e);
8833
+ } },
8834
+ React__default.createElement(
8835
+ 'label',
8836
+ { className: 'pl-2' },
8837
+ React__default.createElement('input', { ref: function ref(el) {
8838
+ return inputRef.current[index] = el;
8839
+ }, type: 'radio', id: 'male', name: choice._type, value: choice._key }),
8840
+ ' ' + choice.choiceText
8841
+ )
8842
+ );
8843
+ }),
8844
+ React__default.createElement(
8845
+ Button$1,
8846
+ { disabled: !selectedChoice, style: { width: '100%', borderRadius: '5px', fontWeight: 'bold ' }, className: 'mt-3', type: 'submit' },
8847
+ 'Vote'
8848
+ )
8849
+ )
8850
+ ),
8851
+ showAnswer && dateChecked ? React__default.createElement(
8852
+ 'div',
8853
+ { className: 'progress-container mb-3' },
8854
+ React__default.createElement(Results, null)
8855
+ ) : React__default.createElement(
8856
+ 'div',
8857
+ null,
8858
+ !resultsDate && React__default.createElement(Results, null)
9038
8859
  ),
9039
8860
  showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
9040
8861
  React__default.createElement(
package/dist/esm/index.js CHANGED
@@ -77,7 +77,7 @@ import { _ as _JSON$stringify } from './stringify-1e2a5946.js';
77
77
  import { _ as _extends } from './extends-2f4448b8.js';
78
78
  import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
79
79
  import PropTypes from 'prop-types';
80
- import { m as momentTimezone } from './index-887c1f5e.js';
80
+ import { m as momentTimezone } from './index-30a6257d.js';
81
81
  import ProgressBar from 'react-bootstrap/ProgressBar';
82
82
  export { PixelTrackingArticle, PixelTrackingLandingPages } from './PixelTracking.js';
83
83
  export { default as ForbesHero } from './ForbesHero.js';
@@ -88,7 +88,7 @@ export { default as VerticalHero } from './VerticalHero.js';
88
88
  export { default as YahooHero } from './YahooHero.js';
89
89
  export { default as GridHero } from './GridHero.js';
90
90
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
91
- export { g as getSerializers } from './index-517a7573.js';
91
+ export { g as getSerializers } from './index-be51248f.js';
92
92
  export { default as Beam } from './Beam.js';
93
93
  export { default as Segment } from './Segment.js';
94
94
  export { default as KMTracker } from './KMTracker.js';
@@ -111,7 +111,7 @@ import './core.get-iterator-method-95db387d.js';
111
111
  import './web.dom.iterable-3fffc027.js';
112
112
  import './_is-array-68c79b29.js';
113
113
  import './_library-528f1934.js';
114
- import './moment-48faeb9c.js';
114
+ import './moment-bc12cb97.js';
115
115
  import './style-inject.es-1f59c1d0.js';
116
116
  import './BlockContent-1e73bd2c.js';
117
117
  import './index-3f5c03b2.js';
@@ -130,11 +130,11 @@ import './toNumber-5aeba6e7.js';
130
130
  import './index.es-a6137319.js';
131
131
  import './visibility-sensor-72fd8f8b.js';
132
132
  import 'react-dom';
133
- import './main-dde1592e.js';
133
+ import './main-754d4992.js';
134
134
  import './entities-6d9154b4.js';
135
- import './ADInfeed-92953c60.js';
135
+ import './ADInfeed-41bba2c6.js';
136
136
  import './lodash-f97fd99a.js';
137
- import './ADlgInfeed-338ff48c.js';
137
+ import './ADlgInfeed-3c717ece.js';
138
138
  import './getContentCategory-15dcc413.js';
139
139
  import './get-3c308da4.js';
140
140
  import './eq-bdcbf886.js';
@@ -155,7 +155,8 @@ import './_object-to-array-9dfdfb29.js';
155
155
  import 'react-bootstrap/Spinner';
156
156
  import 'react-bootstrap/Form';
157
157
  import './js.cookie-6874175c.js';
158
- import './index-0ce54f8a.js';
158
+ import './typeof-2f07d0e8.js';
159
+ import './index-98ca9cec.js';
159
160
  import './ConferenceBanner-8792ebd2.js';
160
161
  import 'next/head';
161
162
  import '@mjhls/mjh-framework/dist/cjs/urlFor';
@@ -169,7 +170,7 @@ import 'react-bootstrap/NavDropdown';
169
170
  import './index.esm-9b042655.js';
170
171
  import './NavFooter-4bcffccb.js';
171
172
  import './index.esm-9508070a.js';
172
- import './SocialSearchComponent-98bfc990.js';
173
+ import './SocialSearchComponent-9e65c8d6.js';
173
174
  import 'react-bootstrap/FormControl';
174
175
  import 'react-ga';
175
176
  import 'react-bootstrap/Carousel';
@@ -178,7 +179,7 @@ import './keys-185288f4.js';
178
179
  import 'react-bootstrap/DropdownButton';
179
180
  import 'react-bootstrap/Dropdown';
180
181
  import './index.esm-1bd8a0a8.js';
181
- import './brightcove-react-player-loader.es-a2422c4b.js';
182
+ import './brightcove-react-player-loader.es-57a70a56.js';
182
183
  import './_set-species-7d3317b7.js';
183
184
  import './urlForFile-2e523b67.js';
184
185
  import 'react-bootstrap/Modal';
@@ -187,10 +188,11 @@ import 'react-bootstrap/Figure';
187
188
  import 'react-bootstrap/OverlayTrigger';
188
189
  import 'react-bootstrap/Tooltip';
189
190
  import 'react-bootstrap/Popover';
190
- import './SeriesSlider-5757414b.js';
191
+ import './SeriesSlider-acbdf4c9.js';
191
192
  import 'disqus-react';
192
193
  import 'react-twitter-embed';
193
- import './ImageSlider-801685f8.js';
194
+ import './ImageSlider-9250ddc9.js';
195
+ import './defineProperty-23a8f8cd.js';
194
196
  import './VideoSeriesCard.js';
195
197
 
196
198
  //Feature query to be used