@mjhls/mjh-framework 1.0.953 → 1.0.954-deck-pagination-v1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AlgoliaSearch.js +131 -15
  3. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  4. package/dist/cjs/AuthWrapper.js +1 -1
  5. package/dist/cjs/ConferenceArticleCard.js +15 -15
  6. package/dist/cjs/ContentCardPaginated.js +1 -2
  7. package/dist/cjs/DeckContent.js +8 -8
  8. package/dist/cjs/DeckQueuePaginated.js +1 -2
  9. package/dist/cjs/EventsDeck.js +17 -17
  10. package/dist/cjs/ExternalResources.js +1 -1
  11. package/dist/cjs/GridContentPaginated.js +1 -2
  12. package/dist/cjs/HamMagazine.js +9 -9
  13. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  14. package/dist/cjs/HorizontalArticleListing.js +1 -1
  15. package/dist/cjs/IssueLanding.js +30 -30
  16. package/dist/cjs/KMTracker.js +15 -15
  17. package/dist/cjs/MasterDeck.js +8 -8
  18. package/dist/cjs/MasterDeckPaginated.js +9 -10
  19. package/dist/cjs/{MediaSeriesCard-7a009439.js → MediaSeriesCard-e0de8cbf.js} +2 -2
  20. package/dist/cjs/MediaSeriesLanding.js +7 -7
  21. package/dist/cjs/MediaSeriesLandingPaginated.js +8 -9
  22. package/dist/cjs/NavMagazine.js +10 -10
  23. package/dist/cjs/NavNative.js +9 -9
  24. package/dist/cjs/Pagination-30bb1ca1.js +97 -0
  25. package/dist/cjs/PartnerDetailListing.js +1 -1
  26. package/dist/cjs/PartnerDetailListingPaginated.js +2 -3
  27. package/dist/cjs/PublicationLanding.js +26 -26
  28. package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
  29. package/dist/cjs/RelatedContent.js +28 -28
  30. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  31. package/dist/cjs/SeriesListingDeck.js +1 -1
  32. package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-74546d19.js} +4 -4
  33. package/dist/cjs/SideFooter.js +2 -2
  34. package/dist/cjs/TaxonomyDescription.js +1 -1
  35. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  36. package/dist/cjs/VideoSeriesCard.js +1 -1
  37. package/dist/cjs/View.js +13 -9
  38. package/dist/cjs/YoutubeGroup.js +4 -4
  39. package/dist/cjs/getSerializers.js +1 -1
  40. package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
  41. package/dist/cjs/getTargeting.js +1 -1
  42. package/dist/cjs/{index-45a704a9.js → index-bb6f5ec7.js} +24 -14
  43. package/dist/cjs/index.js +3 -4
  44. package/dist/esm/AlgoliaSearch.js +132 -16
  45. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  46. package/dist/esm/AuthWrapper.js +1 -1
  47. package/dist/esm/ConferenceArticleCard.js +15 -15
  48. package/dist/esm/ContentCardPaginated.js +1 -2
  49. package/dist/esm/DeckContent.js +8 -8
  50. package/dist/esm/DeckQueuePaginated.js +1 -2
  51. package/dist/esm/EventsDeck.js +17 -17
  52. package/dist/esm/ExternalResources.js +1 -1
  53. package/dist/esm/GridContentPaginated.js +1 -2
  54. package/dist/esm/HamMagazine.js +9 -9
  55. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  56. package/dist/esm/HorizontalArticleListing.js +1 -1
  57. package/dist/esm/IssueLanding.js +30 -30
  58. package/dist/esm/KMTracker.js +15 -15
  59. package/dist/esm/MasterDeck.js +8 -8
  60. package/dist/esm/MasterDeckPaginated.js +9 -10
  61. package/dist/esm/{MediaSeriesCard-4a68f1cf.js → MediaSeriesCard-bc66a709.js} +2 -2
  62. package/dist/esm/MediaSeriesLanding.js +7 -7
  63. package/dist/esm/MediaSeriesLandingPaginated.js +8 -9
  64. package/dist/esm/NavMagazine.js +10 -10
  65. package/dist/esm/NavNative.js +9 -9
  66. package/dist/esm/Pagination-194dd03f.js +90 -0
  67. package/dist/esm/PartnerDetailListing.js +1 -1
  68. package/dist/esm/PartnerDetailListingPaginated.js +2 -3
  69. package/dist/esm/PublicationLanding.js +26 -26
  70. package/dist/esm/QueueDeckExpandedPaginated.js +1 -2
  71. package/dist/esm/RelatedContent.js +28 -28
  72. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  73. package/dist/esm/SeriesListingDeck.js +1 -1
  74. package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-e495571f.js} +4 -4
  75. package/dist/esm/SideFooter.js +2 -2
  76. package/dist/esm/TaxonomyDescription.js +1 -1
  77. package/dist/esm/VideoProgramLandingPage.js +1 -1
  78. package/dist/esm/VideoSeriesCard.js +1 -1
  79. package/dist/esm/View.js +13 -8
  80. package/dist/esm/YoutubeGroup.js +4 -4
  81. package/dist/esm/getSerializers.js +1 -1
  82. package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
  83. package/dist/esm/getTargeting.js +1 -1
  84. package/dist/esm/{index-497db308.js → index-995ce566.js} +24 -14
  85. package/dist/esm/index.js +3 -4
  86. package/package.json +115 -115
  87. package/dist/cjs/Pagination-885dcfbd.js +0 -90
  88. package/dist/esm/Pagination-59436882.js +0 -82
@@ -8318,6 +8318,7 @@ var Quiz = function Quiz(_ref) {
8318
8318
  pageview = _ref.pageview,
8319
8319
  pageNumberFromURL = _ref.currentPage;
8320
8320
 
8321
+ var router = Router.useRouter();
8321
8322
  var pageCount = quizzes.length;
8322
8323
 
8323
8324
  var _useState = React.useState(pageNumberFromURL ? parseInt(pageNumberFromURL) : 1),
@@ -8349,8 +8350,19 @@ var Quiz = function Quiz(_ref) {
8349
8350
 
8350
8351
  var _useState11 = React.useState(false),
8351
8352
  _useState12 = slicedToArray._slicedToArray(_useState11, 2),
8352
- isDisabled = _useState12[0],
8353
- setIsDisabled = _useState12[1];
8353
+ firstRender = _useState12[0],
8354
+ setFirstRender = _useState12[1];
8355
+
8356
+ React.useEffect(function () {
8357
+ var pageNum = router.query ? router.query.page : null;
8358
+
8359
+ if (pageNum > 0 && pageNum <= pageCount) {
8360
+ setCurrentPage(pageNum);
8361
+ } else {
8362
+ changePage(1);
8363
+ }
8364
+ setFirstRender(true);
8365
+ });
8354
8366
 
8355
8367
  React.useEffect(function () {
8356
8368
  var totalPages = toConsumableArray._Array$from({ length: pageCount }, function (v, k) {
@@ -8443,7 +8455,7 @@ var Quiz = function Quiz(_ref) {
8443
8455
  pages.map(function (page) {
8444
8456
  return React__default['default'].createElement(
8445
8457
  Pagination__default['default'].Item,
8446
- { key: page, active: page === currentPage, onClick: function onClick() {
8458
+ { key: page, active: page === parseInt(currentPage), onClick: function onClick() {
8447
8459
  return changePage(page);
8448
8460
  } },
8449
8461
  page
@@ -8509,7 +8521,6 @@ var Quiz = function Quiz(_ref) {
8509
8521
  if (isCorrect >= 0) {
8510
8522
  input.parentElement.style.color = 'limegreen';
8511
8523
  }
8512
- setIsDisabled(true);
8513
8524
  };
8514
8525
 
8515
8526
  var _iteratorNormalCompletion2 = true;
@@ -8557,7 +8568,7 @@ var Quiz = function Quiz(_ref) {
8557
8568
  React__default['default'].createElement(
8558
8569
  'label',
8559
8570
  { className: 'pl-2' },
8560
- quizzes[currentPage - 1].multiAnswer ? React__default['default'].createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default['default'].createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
8571
+ quizzes[currentPage - 1].multiAnswer ? React__default['default'].createElement('input', { type: 'checkbox', id: 'male', disabled: showAnswer, name: answer._type, value: answer._key }) : React__default['default'].createElement('input', { type: 'radio', id: 'male', disabled: showAnswer, name: answer._type, value: answer._key }),
8561
8572
  ' ' + answer.answerText
8562
8573
  )
8563
8574
  );
@@ -8574,18 +8585,17 @@ var Quiz = function Quiz(_ref) {
8574
8585
  quizzes[currentPage - 1] && showAnswer && React__default['default'].createElement(
8575
8586
  React__default['default'].Fragment,
8576
8587
  null,
8577
- React__default['default'].createElement(
8578
- 'h4',
8579
- null,
8580
- 'Answer:'
8581
- ),
8582
8588
  quizzes[currentPage - 1].answer && React__default['default'].createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
8583
8589
  ),
8584
8590
  React__default['default'].createElement('br', null),
8585
- pageCount > 1 && React__default['default'].createElement(
8586
- 'div',
8587
- { className: 'd-flex justify-content-center' },
8588
- renderPagination()
8591
+ firstRender && React__default['default'].createElement(
8592
+ React__default['default'].Fragment,
8593
+ null,
8594
+ pageCount > 1 && currentPage && React__default['default'].createElement(
8595
+ 'div',
8596
+ { className: 'd-flex justify-content-center' },
8597
+ renderPagination()
8598
+ )
8589
8599
  )
8590
8600
  );
8591
8601
  };
package/dist/cjs/index.js CHANGED
@@ -89,7 +89,7 @@ var VerticalHero = require('./VerticalHero.js');
89
89
  var YahooHero = require('./YahooHero.js');
90
90
  var GridHero = require('./GridHero.js');
91
91
  var ConferenceArticleCard = require('./ConferenceArticleCard.js');
92
- var getSerializers = require('./index-45a704a9.js');
92
+ var getSerializers = require('./index-bb6f5ec7.js');
93
93
  var Beam = require('./Beam.js');
94
94
  var Segment = require('./Segment.js');
95
95
  var KMTracker = require('./KMTracker.js');
@@ -104,7 +104,7 @@ var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
104
104
  var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
105
105
  var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
106
106
  var Schema = require('./Schema.js');
107
- var getTargeting = require('./getTargeting-3c5754ac.js');
107
+ var getTargeting = require('./getTargeting-dab97fe1.js');
108
108
  var getKeywords = require('./getKeywords.js');
109
109
  var getQuery = require('./getQuery.js');
110
110
  require('./toConsumableArray-d7797c2b.js');
@@ -194,10 +194,9 @@ require('swr');
194
194
  require('passport-local');
195
195
  require('mysql');
196
196
  require('./md5-e1ca5797.js');
197
- require('./SeriesSlider-594b19eb.js');
197
+ require('./SeriesSlider-74546d19.js');
198
198
  require('./style-inject.es-dcee06b6.js');
199
199
  require('disqus-react');
200
- require('file-saver');
201
200
  require('react-twitter-embed');
202
201
  require('./ImageSlider-6c00b878.js');
203
202
  require('./defineProperty-e0fb52c5.js');
@@ -1,7 +1,7 @@
1
1
  import { _ as _extends$1 } from './extends-6d8e3924.js';
2
2
  import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a6ba2ec4.js';
3
3
  import { _ as _typeof$2 } from './typeof-e9fc0c5d.js';
4
- import React__default, { createContext, Component, Children, version as version$2 } from 'react';
4
+ import React__default, { createContext, Component, Fragment, Children, version as version$2 } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { _ as _typeof$1 } from './typeof-2f07d0e8.js';
7
7
  import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-98ca9cec.js';
@@ -822,7 +822,7 @@ function parseAlgoliaHit(_ref2) {
822
822
  });
823
823
  }
824
824
 
825
- var version$1 = '6.11.2';
825
+ var version$1 = '6.12.0';
826
826
 
827
827
  var withKeysPropType = function withKeysPropType(keys) {
828
828
  return function (props, propName, componentName) {
@@ -904,6 +904,10 @@ function translatable(defaultTranslations) {
904
904
  function getIndexId(context) {
905
905
  return hasMultipleIndices(context) ? context.multiIndexContext.targetedIndex : context.ais.mainTargetedIndex;
906
906
  }
907
+ /**
908
+ * @returns {import('algoliasearch-helper').SearchResults} results
909
+ */
910
+
907
911
  function getResults(searchResults, context) {
908
912
  if (searchResults.results) {
909
913
  if (searchResults.results.hits) {
@@ -4768,7 +4772,7 @@ var requestBuilder = {
4768
4772
 
4769
4773
  var requestBuilder_1 = requestBuilder;
4770
4774
 
4771
- var version = '3.5.3';
4775
+ var version = '3.5.4';
4772
4776
 
4773
4777
  /**
4774
4778
  * Event triggered when a parameter is set or updated
@@ -6416,6 +6420,87 @@ ConfigureRelatedItems.propTypes = {
6416
6420
  };
6417
6421
  connectConfigureRelatedItems(ConfigureRelatedItems);
6418
6422
 
6423
+ var connectDynamicWidgets = createConnectorWithContext({
6424
+ displayName: 'AlgoliaDynamicWidgets',
6425
+ defaultProps: {
6426
+ transformItems: function transformItems(items) {
6427
+ return items;
6428
+ }
6429
+ },
6430
+ propTypes: {
6431
+ transformItems: PropTypes.func
6432
+ },
6433
+ getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
6434
+ var results = getResults(searchResults, {
6435
+ ais: props.contextValue,
6436
+ multiIndexContext: props.indexContextValue
6437
+ });
6438
+
6439
+ if (!results) {
6440
+ return {
6441
+ attributesToRender: []
6442
+ };
6443
+ }
6444
+
6445
+ var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
6446
+ return {
6447
+ attributesToRender: props.transformItems(facetOrder, {
6448
+ results: results
6449
+ })
6450
+ };
6451
+ }
6452
+ });
6453
+
6454
+ function getAttribute(component) {
6455
+ if (_typeof(component) !== 'object') {
6456
+ return undefined;
6457
+ }
6458
+
6459
+ if (component.props.attribute) {
6460
+ return component.props.attribute;
6461
+ }
6462
+
6463
+ if (Array.isArray(component.props.attributes)) {
6464
+ return component.props.attributes[0];
6465
+ }
6466
+
6467
+ if (component.props.children) {
6468
+ return getAttribute(React__default.Children.only(component.props.children));
6469
+ }
6470
+
6471
+ return undefined;
6472
+ }
6473
+
6474
+ function DynamicWidgets(_ref) {
6475
+ var children = _ref.children,
6476
+ attributesToRender = _ref.attributesToRender,
6477
+ _ref$fallbackComponen = _ref.fallbackComponent,
6478
+ Fallback = _ref$fallbackComponen === void 0 ? function () {
6479
+ return null;
6480
+ } : _ref$fallbackComponen;
6481
+ var widgets = new Map();
6482
+ React__default.Children.forEach(children, function (child) {
6483
+ var attribute = getAttribute(child);
6484
+
6485
+ if (!attribute) {
6486
+ throw new Error("Could not find \"attribute\" prop for ".concat(getDisplayName(child), "."));
6487
+ }
6488
+
6489
+ widgets.set(attribute, child);
6490
+ }); // on initial render this will be empty, but React InstantSearch keeps
6491
+ // search state for unmounted components in place, so routing works.
6492
+
6493
+ return React__default.createElement(React__default.Fragment, null, attributesToRender.map(function (attribute) {
6494
+ return React__default.createElement(Fragment, {
6495
+ key: attribute
6496
+ }, widgets.get(attribute) || React__default.createElement(Fallback, {
6497
+ attribute: attribute
6498
+ }));
6499
+ }));
6500
+ }
6501
+
6502
+ connectDynamicWidgets(DynamicWidgets);
6503
+
6419
6504
  // A context rule must consist only of alphanumeric characters, hyphens, and underscores.
6420
6505
  // See https://www.algolia.com/doc/guides/managing-results/refine-results/merchandising-and-promoting/in-depth/implementing-query-rules/#context
6421
6506
  function escapeRuleContext(ruleName) {
@@ -7825,7 +7910,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
7825
7910
  showMore: PropTypes.bool,
7826
7911
  limit: PropTypes.number,
7827
7912
  showMoreLimit: PropTypes.number,
7828
- transformItems: PropTypes.func
7913
+ transformItems: PropTypes.func,
7914
+ facetOrdering: PropTypes.bool
7829
7915
  },
7830
7916
  defaultProps: {
7831
7917
  showMore: false,
@@ -7833,12 +7919,14 @@ var connectHierarchicalMenu = createConnectorWithContext({
7833
7919
  showMoreLimit: 20,
7834
7920
  separator: ' > ',
7835
7921
  rootPath: null,
7836
- showParentLevel: true
7922
+ showParentLevel: true,
7923
+ facetOrdering: true
7837
7924
  },
7838
7925
  getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
7839
7926
  var showMore = props.showMore,
7840
7927
  limit = props.limit,
7841
- showMoreLimit = props.showMoreLimit;
7928
+ showMoreLimit = props.showMoreLimit,
7929
+ facetOrdering = props.facetOrdering;
7842
7930
  var id = getId$c(props);
7843
7931
  var results = getResults(searchResults, {
7844
7932
  ais: props.contextValue,
@@ -7859,7 +7947,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
7859
7947
 
7860
7948
  var itemsLimit = showMore ? showMoreLimit : limit;
7861
7949
  var value = results.getFacetValues(id, {
7862
- sortBy: sortBy$1
7950
+ sortBy: sortBy$1,
7951
+ facetOrdering: facetOrdering
7863
7952
  });
7864
7953
  var items = value.data ? transformValue(value.data, props, searchState, {
7865
7954
  ais: props.contextValue,
@@ -8411,17 +8500,20 @@ var connectMenu = createConnectorWithContext({
8411
8500
  showMoreLimit: PropTypes.number,
8412
8501
  defaultRefinement: PropTypes.string,
8413
8502
  transformItems: PropTypes.func,
8414
- searchable: PropTypes.bool
8503
+ searchable: PropTypes.bool,
8504
+ facetOrdering: PropTypes.bool
8415
8505
  },
8416
8506
  defaultProps: {
8417
8507
  showMore: false,
8418
8508
  limit: 10,
8419
- showMoreLimit: 20
8509
+ showMoreLimit: 20,
8510
+ facetOrdering: true
8420
8511
  },
8421
8512
  getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {
8422
8513
  var attribute = props.attribute,
8423
8514
  searchable = props.searchable,
8424
- indexContextValue = props.indexContextValue;
8515
+ indexContextValue = props.indexContextValue,
8516
+ facetOrdering = props.facetOrdering;
8425
8517
  var results = getResults(searchResults, {
8426
8518
  ais: props.contextValue,
8427
8519
  multiIndexContext: props.indexContextValue
@@ -8467,7 +8559,8 @@ var connectMenu = createConnectorWithContext({
8467
8559
  });
8468
8560
  } else {
8469
8561
  items = results.getFacetValues(attribute, {
8470
- sortBy: searchable ? undefined : defaultSortBy
8562
+ sortBy: searchable ? undefined : defaultSortBy,
8563
+ facetOrdering: facetOrdering
8471
8564
  }).map(function (v) {
8472
8565
  return {
8473
8566
  label: v.name,
@@ -9324,18 +9417,21 @@ var connectRefinementList = createConnectorWithContext({
9324
9417
  showMoreLimit: PropTypes.number,
9325
9418
  defaultRefinement: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
9326
9419
  searchable: PropTypes.bool,
9327
- transformItems: PropTypes.func
9420
+ transformItems: PropTypes.func,
9421
+ facetOrdering: PropTypes.bool
9328
9422
  },
9329
9423
  defaultProps: {
9330
9424
  operator: 'or',
9331
9425
  showMore: false,
9332
9426
  limit: 10,
9333
- showMoreLimit: 20
9427
+ showMoreLimit: 20,
9428
+ facetOrdering: true
9334
9429
  },
9335
9430
  getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {
9336
9431
  var attribute = props.attribute,
9337
9432
  searchable = props.searchable,
9338
- indexContextValue = props.indexContextValue;
9433
+ indexContextValue = props.indexContextValue,
9434
+ facetOrdering = props.facetOrdering;
9339
9435
  var results = getResults(searchResults, {
9340
9436
  ais: props.contextValue,
9341
9437
  multiIndexContext: props.indexContextValue
@@ -9376,7 +9472,8 @@ var connectRefinementList = createConnectorWithContext({
9376
9472
  isRefined: v.isRefined
9377
9473
  };
9378
9474
  }) : results.getFacetValues(attribute, {
9379
- sortBy: sortBy
9475
+ sortBy: sortBy,
9476
+ facetOrdering: facetOrdering
9380
9477
  }).map(function (v) {
9381
9478
  return {
9382
9479
  label: v.name,
@@ -10876,6 +10973,7 @@ function (_Component) {
10876
10973
 
10877
10974
  var _this$props4 = this.props,
10878
10975
  className = _this$props4.className,
10976
+ inputId = _this$props4.inputId,
10879
10977
  translate = _this$props4.translate,
10880
10978
  autoFocus = _this$props4.autoFocus,
10881
10979
  loadingIndicator = _this$props4.loadingIndicator,
@@ -10903,6 +11001,7 @@ function (_Component) {
10903
11001
  role: "search"
10904
11002
  }, React__default.createElement("input", _extends({
10905
11003
  ref: this.onInputMount,
11004
+ id: inputId,
10906
11005
  type: "search",
10907
11006
  placeholder: translate('placeholder'),
10908
11007
  autoFocus: autoFocus,
@@ -10954,7 +11053,8 @@ _defineProperty(SearchBox$1, "propTypes", {
10954
11053
  showLoadingIndicator: PropTypes.bool,
10955
11054
  inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.exact({
10956
11055
  current: PropTypes.object
10957
- })])
11056
+ })]),
11057
+ inputId: PropTypes.string
10958
11058
  });
10959
11059
 
10960
11060
  _defineProperty(SearchBox$1, "defaultProps", {
@@ -11593,9 +11693,11 @@ function (_Component) {
11593
11693
  value: function render() {
11594
11694
  var _this$props = this.props,
11595
11695
  cx = _this$props.cx,
11696
+ id = _this$props.id,
11596
11697
  items = _this$props.items,
11597
11698
  selectedItem = _this$props.selectedItem;
11598
11699
  return React__default.createElement("select", {
11700
+ id: id,
11599
11701
  className: cx('select'),
11600
11702
  value: selectedItem,
11601
11703
  onChange: this.onChange
@@ -11615,6 +11717,7 @@ function (_Component) {
11615
11717
 
11616
11718
  _defineProperty(Select, "propTypes", {
11617
11719
  cx: PropTypes.func.isRequired,
11720
+ id: PropTypes.string,
11618
11721
  onSelect: PropTypes.func.isRequired,
11619
11722
  items: PropTypes.arrayOf(PropTypes.shape({
11620
11723
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
@@ -11642,6 +11745,7 @@ function (_Component) {
11642
11745
  key: "render",
11643
11746
  value: function render() {
11644
11747
  var _this$props = this.props,
11748
+ id = _this$props.id,
11645
11749
  items = _this$props.items,
11646
11750
  currentRefinement = _this$props.currentRefinement,
11647
11751
  refine = _this$props.refine,
@@ -11649,6 +11753,7 @@ function (_Component) {
11649
11753
  return React__default.createElement("div", {
11650
11754
  className: classnames(cx$h(''), className)
11651
11755
  }, React__default.createElement(Select, {
11756
+ id: id,
11652
11757
  onSelect: refine,
11653
11758
  selectedItem: currentRefinement,
11654
11759
  items: items,
@@ -11661,6 +11766,7 @@ function (_Component) {
11661
11766
  }(Component);
11662
11767
 
11663
11768
  _defineProperty(HitsPerPage, "propTypes", {
11769
+ id: PropTypes.string,
11664
11770
  items: PropTypes.arrayOf(PropTypes.shape({
11665
11771
  value: PropTypes.number.isRequired,
11666
11772
  label: PropTypes.string
@@ -11683,6 +11789,7 @@ _defineProperty(HitsPerPage, "defaultProps", {
11683
11789
  *
11684
11790
  * @name HitsPerPage
11685
11791
  * @kind widget
11792
+ * @propType {string} id - The id of the select input
11686
11793
  * @propType {{value: number, label: string}[]} items - List of available options.
11687
11794
  * @propType {number} defaultRefinement - The number of items selected by default
11688
11795
  * @propType {function} [transformItems] - Function to modify the items being displayed, e.g. for filtering or sorting them. Takes an items as parameter and expects it back in return.
@@ -12051,6 +12158,7 @@ function (_Component) {
12051
12158
  key: "render",
12052
12159
  value: function render() {
12053
12160
  var _this$props = this.props,
12161
+ id = _this$props.id,
12054
12162
  items = _this$props.items,
12055
12163
  canRefine = _this$props.canRefine,
12056
12164
  translate = _this$props.translate,
@@ -12058,6 +12166,7 @@ function (_Component) {
12058
12166
  return React__default.createElement("div", {
12059
12167
  className: classnames(cx$e('', !canRefine && '-noRefinement'), className)
12060
12168
  }, React__default.createElement("select", {
12169
+ id: id,
12061
12170
  value: this.selectedValue,
12062
12171
  onChange: this.handleSelectChange,
12063
12172
  className: cx$e('select')
@@ -12090,6 +12199,7 @@ function (_Component) {
12090
12199
  }(Component);
12091
12200
 
12092
12201
  _defineProperty(MenuSelect, "propTypes", {
12202
+ id: PropTypes.string,
12093
12203
  items: PropTypes.arrayOf(PropTypes.shape({
12094
12204
  label: PropTypes.string.isRequired,
12095
12205
  value: PropTypes.string.isRequired,
@@ -12116,6 +12226,7 @@ var MenuSelect$1 = translatable({
12116
12226
  * @kind widget
12117
12227
  * @requirements The attribute passed to the `attribute` prop must be present in "attributes for faceting"
12118
12228
  * on the Algolia dashboard or configured as `attributesForFaceting` via a set settings call to the Algolia API.
12229
+ * @propType {string} id - the id of the select input
12119
12230
  * @propType {string} attribute - the name of the attribute in the record
12120
12231
  * @propType {string} [defaultRefinement] - the value of the item selected by default
12121
12232
  * @propType {number} [limit=10] - the minimum number of diplayed items
@@ -13447,6 +13558,7 @@ connectScrollTo(ScrollTo);
13447
13558
  * @propType {node} [reset] - Change the apparence of the default reset button (cross).
13448
13559
  * @propType {node} [loadingIndicator] - Change the apparence of the default loading indicator (spinning circle).
13449
13560
  * @propType {string} [defaultRefinement] - Provide default refinement value when component is mounted.
13561
+ * @propType {string} [inputId] - The id of the search input
13450
13562
  * @propType {boolean} [showLoadingIndicator=false] - Display that the search is loading. This only happens after a certain amount of time to avoid a blinking effect. This timer can be configured with `stalledSearchDelay` props on <InstantSearch>. By default, the value is 200ms.
13451
13563
  * @themeKey ais-SearchBox - the root div of the widget
13452
13564
  * @themeKey ais-SearchBox-form - the wrapping form
@@ -13597,6 +13709,7 @@ function (_Component) {
13597
13709
  key: "render",
13598
13710
  value: function render() {
13599
13711
  var _this$props = this.props,
13712
+ id = _this$props.id,
13600
13713
  items = _this$props.items,
13601
13714
  currentRefinement = _this$props.currentRefinement,
13602
13715
  refine = _this$props.refine,
@@ -13604,6 +13717,7 @@ function (_Component) {
13604
13717
  return React__default.createElement("div", {
13605
13718
  className: classnames(cx$4(''), className)
13606
13719
  }, React__default.createElement(Select, {
13720
+ id: id,
13607
13721
  cx: cx$4,
13608
13722
  items: items,
13609
13723
  selectedItem: currentRefinement,
@@ -13616,6 +13730,7 @@ function (_Component) {
13616
13730
  }(Component);
13617
13731
 
13618
13732
  _defineProperty(SortBy, "propTypes", {
13733
+ id: PropTypes.string,
13619
13734
  items: PropTypes.arrayOf(PropTypes.shape({
13620
13735
  label: PropTypes.string,
13621
13736
  value: PropTypes.string.isRequired
@@ -13635,6 +13750,7 @@ _defineProperty(SortBy, "defaultProps", {
13635
13750
  * @requirements Algolia handles sorting by creating replica indices. [Read more about sorting](https://www.algolia.com/doc/guides/relevance/sorting/) on
13636
13751
  * the Algolia website.
13637
13752
  * @kind widget
13753
+ * @propType {string} id - The id of the select input
13638
13754
  * @propType {{value: string, label: string}[]} items - The list of indexes to search in.
13639
13755
  * @propType {string} defaultRefinement - The default selected index.
13640
13756
  * @propType {function} [transformItems] - Function to modify the items being displayed, e.g. for filtering or sorting them. Takes an items as parameter and expects it back in return.
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import React__default from 'react';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-497db308.js';
6
+ import { g as getSerializers } from './index-995ce566.js';
7
7
  import ArticleSeriesListing from './ArticleSeriesListing.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-ea258bb1.js';
@@ -1761,7 +1761,7 @@ client$1.Provider;
1761
1761
 
1762
1762
  var client = client$1.default;
1763
1763
 
1764
- var css = ".AuthWrapper-module_loginBox__3l-BE {\n margin-bottom: 2rem;\n width: 350px;\n max-width: 90vw;\n margin-left: auto;\n margin-right: auto;\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\n background: #fff;\n z-index: 1;\n}\n.AuthWrapper-module_loginBox_title__12rGD {\n margin-bottom: 2rem;\n text-align: center;\n}\n.AuthWrapper-module_bar__1dafn {\n background: #eee;\n margin-left: unset;\n margin-right: unset;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\n float: left;\n border-right: 1rem solid #fff;\n background: rgb(245, 245, 245);\n height: 10rem;\n width: 25%;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 2rem;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\n width: 97%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\n width: 96%;\n height: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\n width: 72%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\n width: 88%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n\n.AuthWrapper-module_iframe__2wDJW {\n margin-top: -3rem;\n border: none;\n width: 100%;\n height: 1900px;\n}";
1764
+ var css = ".AuthWrapper-module_loginBox__3l-BE {\r\n margin-bottom: 2rem;\r\n width: 350px;\r\n max-width: 90vw;\r\n margin-left: auto;\r\n margin-right: auto;\r\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\r\n background: #fff;\r\n z-index: 1;\r\n}\r\n.AuthWrapper-module_loginBox_title__12rGD {\r\n margin-bottom: 2rem;\r\n text-align: center;\r\n}\r\n.AuthWrapper-module_bar__1dafn {\r\n background: #eee;\r\n margin-left: unset;\r\n margin-right: unset;\r\n}\r\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\r\n float: left;\r\n border-right: 1rem solid #fff;\r\n background: rgb(245, 245, 245);\r\n height: 10rem;\r\n width: 25%;\r\n margin-left: auto;\r\n margin-right: auto;\r\n margin-bottom: 2rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\r\n width: 97%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\r\n width: 96%;\r\n height: 1.5rem;\r\n margin-bottom: 1.5rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\r\n width: 72%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\r\n width: 88%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n\r\n.AuthWrapper-module_iframe__2wDJW {\r\n margin-top: -3rem;\r\n border: none;\r\n width: 100%;\r\n height: 1900px;\r\n}";
1765
1765
  var styles = { "loginBox": "AuthWrapper-module_loginBox__3l-BE", "loginBox_title": "AuthWrapper-module_loginBox_title__12rGD", "bar": "AuthWrapper-module_bar__1dafn", "iframe": "AuthWrapper-module_iframe__2wDJW" };
1766
1766
  styleInject(css);
1767
1767
 
@@ -7,21 +7,21 @@ import './web.dom.iterable-ab4dea5c.js';
7
7
  import './core.get-iterator-method-ea258bb1.js';
8
8
  import './index-3f5c03b2.js';
9
9
 
10
- /*
11
- Example usage - targetedonc.com/latest-conference
12
- const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
13
- ...,
14
- title,
15
- summary,
16
- thumbnail,
17
- url,
18
- published,
19
- documentGroup->,
20
- contentCategory->,
21
- 'pageNumber': ${currentPage}
22
- }`
23
-
24
- const posts = await client.fetch(query, params)
10
+ /*
11
+ Example usage - targetedonc.com/latest-conference
12
+ const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
13
+ ...,
14
+ title,
15
+ summary,
16
+ thumbnail,
17
+ url,
18
+ published,
19
+ documentGroup->,
20
+ contentCategory->,
21
+ 'pageNumber': ${currentPage}
22
+ }`
23
+
24
+ const posts = await client.fetch(query, params)
25
25
  */
26
26
 
27
27
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -15,7 +15,7 @@ import { L as LazyLoad } from './index-755f2cc2.js';
15
15
  import { m as main_43 } from './main-1894c974.js';
16
16
  import { c as clean_html_1 } from './entities-6d9154b4.js';
17
17
  import { A as ADInfeed } from './ADInfeed-7af1f934.js';
18
- import { P as Pagination } from './Pagination-59436882.js';
18
+ import { P as Pagination } from './Pagination-194dd03f.js';
19
19
  import Spinner from 'react-bootstrap/Spinner';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
21
21
  import './core.get-iterator-method-ea258bb1.js';
@@ -39,7 +39,6 @@ import './toNumber-5aeba6e7.js';
39
39
  import './Beam.js';
40
40
  import './stringify-2b084bee.js';
41
41
  import './Segment.js';
42
- import 'react-paginate';
43
42
  import 'react-bootstrap/Button';
44
43
  import './index.esm-1bd8a0a8.js';
45
44
  import './iconBase-ccc56b97.js';
@@ -182,14 +182,14 @@ var DeckContent = function (_React$Component) {
182
182
  var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
183
183
 
184
184
  // please leave this for later debug purpose : Yong Jun.
185
- /* console.log('page change reported', {
186
- currentPage: currentPage,
187
- pageNumber: pageNumber,
188
- pathname: pathname,
189
- path: path,
190
- newPath: newPath,
191
- firstPage: pageNumber === 1,
192
- queryString: queryString
185
+ /* console.log('page change reported', {
186
+ currentPage: currentPage,
187
+ pageNumber: pageNumber,
188
+ pathname: pathname,
189
+ path: path,
190
+ newPath: newPath,
191
+ firstPage: pageNumber === 1,
192
+ queryString: queryString
193
193
  }) */
194
194
 
195
195
  if (pageview) {
@@ -16,7 +16,7 @@ import { g as get_1 } from './get-3c308da4.js';
16
16
  import { m as main_43 } from './main-1894c974.js';
17
17
  import urlFor from './urlFor.js';
18
18
  import { c as clean_html_1 } from './entities-6d9154b4.js';
19
- import { P as Pagination } from './Pagination-59436882.js';
19
+ import { P as Pagination } from './Pagination-194dd03f.js';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
21
21
  import './core.get-iterator-method-ea258bb1.js';
22
22
  import './web.dom.iterable-ab4dea5c.js';
@@ -34,7 +34,6 @@ import './isSymbol-a7e9aafe.js';
34
34
  import './eq-bdcbf886.js';
35
35
  import './slicedToArray-6ebcbfea.js';
36
36
  import './index-3f5c03b2.js';
37
- import 'react-paginate';
38
37
  import 'react-bootstrap/Button';
39
38
  import './index.esm-1bd8a0a8.js';
40
39
  import './iconBase-ccc56b97.js';
@@ -243,23 +243,23 @@ var EventsDeck = function EventsDeck(_ref) {
243
243
  if (cventAccessToken && cventAccessToken !== 'undefined') {
244
244
  setAccessToken(cventAccessToken);
245
245
  } else {
246
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
247
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
248
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
249
- fetch(url, {
250
- headers: {
251
- 'Content-Type': 'application/x-www-form-urlencoded',
252
- Authorization: `Basic ${encodedData}`
253
- },
254
- method: 'POST',
255
- body: `grant_type=client_credentials&client_id=${clientId}`
256
- })
257
- .then((response) => response.json())
258
- .then((json) => {
259
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
260
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
261
- setAccessToken(json.access_token)
262
- })
246
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
247
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
248
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
249
+ fetch(url, {
250
+ headers: {
251
+ 'Content-Type': 'application/x-www-form-urlencoded',
252
+ Authorization: `Basic ${encodedData}`
253
+ },
254
+ method: 'POST',
255
+ body: `grant_type=client_credentials&client_id=${clientId}`
256
+ })
257
+ .then((response) => response.json())
258
+ .then((json) => {
259
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
260
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
261
+ setAccessToken(json.access_token)
262
+ })
263
263
  .catch((e) => console.log(e))*/
264
264
  // hello
265
265
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-6d8e3924.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default, { useState, useEffect } from 'react';
4
4
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
- import { g as getSerializers } from './index-497db308.js';
5
+ import { g as getSerializers } from './index-995ce566.js';
6
6
  import { m as momentTimezone } from './index-79cfd25c.js';
7
7
  import { useRouter } from 'next/router';
8
8
  import Button from 'react-bootstrap/Button';