@mjhls/mjh-framework 1.0.971 → 1.0.972-masterdeck-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 (74) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AlgoliaSearch.js +131 -15
  3. package/dist/cjs/AuthWrapper.js +1 -1
  4. package/dist/cjs/ConferenceArticleCard.js +15 -15
  5. package/dist/cjs/ContentCardPaginated.js +1 -2
  6. package/dist/cjs/DeckContent.js +8 -8
  7. package/dist/cjs/DeckQueuePaginated.js +1 -2
  8. package/dist/cjs/EventsDeck.js +17 -17
  9. package/dist/cjs/GridContentPaginated.js +1 -2
  10. package/dist/cjs/HamMagazine.js +9 -9
  11. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  12. package/dist/cjs/IssueLanding.js +29 -29
  13. package/dist/cjs/KMTracker.js +15 -15
  14. package/dist/cjs/MasterDeck.js +8 -8
  15. package/dist/cjs/MasterDeckPaginated.js +9 -10
  16. package/dist/cjs/{MediaSeriesCard-5bf9813e.js → MediaSeriesCard-b81ba298.js} +1 -1
  17. package/dist/cjs/MediaSeriesLanding.js +6 -6
  18. package/dist/cjs/MediaSeriesLandingPaginated.js +7 -8
  19. package/dist/cjs/NavMagazine.js +10 -10
  20. package/dist/cjs/NavNative.js +9 -9
  21. package/dist/cjs/Pagination-2a3d0103.js +97 -0
  22. package/dist/cjs/PartnerDetailListingPaginated.js +1 -2
  23. package/dist/cjs/PublicationLanding.js +26 -26
  24. package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
  25. package/dist/cjs/RelatedContent.js +28 -28
  26. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  27. package/dist/cjs/SeriesListingDeck.js +1 -1
  28. package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-74546d19.js} +4 -4
  29. package/dist/cjs/SideFooter.js +2 -2
  30. package/dist/cjs/TaxonomyDescription.js +12 -8
  31. package/dist/cjs/VideoSeriesCard.js +1 -1
  32. package/dist/cjs/View.js +12 -8
  33. package/dist/cjs/YoutubeGroup.js +4 -4
  34. package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
  35. package/dist/cjs/getTargeting.js +1 -1
  36. package/dist/cjs/index.js +2 -3
  37. package/dist/esm/AlgoliaSearch.js +132 -16
  38. package/dist/esm/AuthWrapper.js +1 -1
  39. package/dist/esm/ConferenceArticleCard.js +15 -15
  40. package/dist/esm/ContentCardPaginated.js +1 -2
  41. package/dist/esm/DeckContent.js +8 -8
  42. package/dist/esm/DeckQueuePaginated.js +1 -2
  43. package/dist/esm/EventsDeck.js +17 -17
  44. package/dist/esm/GridContentPaginated.js +1 -2
  45. package/dist/esm/HamMagazine.js +9 -9
  46. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  47. package/dist/esm/IssueLanding.js +29 -29
  48. package/dist/esm/KMTracker.js +15 -15
  49. package/dist/esm/MasterDeck.js +8 -8
  50. package/dist/esm/MasterDeckPaginated.js +9 -10
  51. package/dist/esm/{MediaSeriesCard-305a9cb3.js → MediaSeriesCard-e3b52a0f.js} +1 -1
  52. package/dist/esm/MediaSeriesLanding.js +6 -6
  53. package/dist/esm/MediaSeriesLandingPaginated.js +7 -8
  54. package/dist/esm/NavMagazine.js +10 -10
  55. package/dist/esm/NavNative.js +9 -9
  56. package/dist/esm/Pagination-dc30727b.js +90 -0
  57. package/dist/esm/PartnerDetailListingPaginated.js +1 -2
  58. package/dist/esm/PublicationLanding.js +26 -26
  59. package/dist/esm/QueueDeckExpandedPaginated.js +1 -2
  60. package/dist/esm/RelatedContent.js +28 -28
  61. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  62. package/dist/esm/SeriesListingDeck.js +1 -1
  63. package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-e495571f.js} +4 -4
  64. package/dist/esm/SideFooter.js +2 -2
  65. package/dist/esm/TaxonomyDescription.js +12 -8
  66. package/dist/esm/VideoSeriesCard.js +1 -1
  67. package/dist/esm/View.js +12 -7
  68. package/dist/esm/YoutubeGroup.js +4 -4
  69. package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
  70. package/dist/esm/getTargeting.js +1 -1
  71. package/dist/esm/index.js +2 -3
  72. package/package.json +115 -115
  73. package/dist/cjs/Pagination-c63770a3.js +0 -90
  74. package/dist/esm/Pagination-6f8d5327.js +0 -82
@@ -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.
@@ -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-6d1fc6bf.js';
18
- import { P as Pagination } from './Pagination-6f8d5327.js';
18
+ import { P as Pagination } from './Pagination-dc30727b.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-6f8d5327.js';
19
+ import { P as Pagination } from './Pagination-dc30727b.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';
@@ -245,23 +245,23 @@ var EventsDeck = function EventsDeck(_ref) {
245
245
  if (cventAccessToken && cventAccessToken !== 'undefined') {
246
246
  setAccessToken(cventAccessToken);
247
247
  } else {
248
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
249
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
250
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
251
- fetch(url, {
252
- headers: {
253
- 'Content-Type': 'application/x-www-form-urlencoded',
254
- Authorization: `Basic ${encodedData}`
255
- },
256
- method: 'POST',
257
- body: `grant_type=client_credentials&client_id=${clientId}`
258
- })
259
- .then((response) => response.json())
260
- .then((json) => {
261
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
262
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
263
- setAccessToken(json.access_token)
264
- })
248
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
249
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
250
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
251
+ fetch(url, {
252
+ headers: {
253
+ 'Content-Type': 'application/x-www-form-urlencoded',
254
+ Authorization: `Basic ${encodedData}`
255
+ },
256
+ method: 'POST',
257
+ body: `grant_type=client_credentials&client_id=${clientId}`
258
+ })
259
+ .then((response) => response.json())
260
+ .then((json) => {
261
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
262
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
263
+ setAccessToken(json.access_token)
264
+ })
265
265
  .catch((e) => console.log(e))*/
266
266
  // hello
267
267
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -22,7 +22,7 @@ import urlFor from './urlFor.js';
22
22
  import { m as main_43 } from './main-1894c974.js';
23
23
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
24
24
  import { P as PublicationFeature } from './PublicationFeature-d88e76b9.js';
25
- import { P as Pagination } from './Pagination-6f8d5327.js';
25
+ import { P as Pagination } from './Pagination-dc30727b.js';
26
26
  import Spinner from 'react-bootstrap/Spinner';
27
27
  import './_commonjsHelpers-0c4b6f40.js';
28
28
  import './core.get-iterator-method-ea258bb1.js';
@@ -47,7 +47,6 @@ import './Segment.js';
47
47
  import './eq-bdcbf886.js';
48
48
  import './index-3f5c03b2.js';
49
49
  import 'react-bootstrap/Button';
50
- import 'react-paginate';
51
50
  import './index.esm-1bd8a0a8.js';
52
51
  import './iconBase-ccc56b97.js';
53
52
 
@@ -26,15 +26,15 @@ import './_library-528f1934.js';
26
26
  import './_iter-detect-98db3b07.js';
27
27
 
28
28
  var HamMagazine = function HamMagazine(props) {
29
- /*
30
- Example Nav with acceptable props
31
- <MagazineNav
32
- showLogin
33
- logo={props.settings.logo}
34
- dataObject={props.cache.mainNavCache}
35
- website={website}
36
- subNav={props.cache.subNavCache}
37
- />
29
+ /*
30
+ Example Nav with acceptable props
31
+ <MagazineNav
32
+ showLogin
33
+ logo={props.settings.logo}
34
+ dataObject={props.cache.mainNavCache}
35
+ website={website}
36
+ subNav={props.cache.subNavCache}
37
+ />
38
38
  */
39
39
 
40
40
  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
@@ -4,7 +4,7 @@ import Modal from 'react-bootstrap/Modal';
4
4
  import Button from 'react-bootstrap/Button';
5
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
6
6
 
7
- var css = ".HealthcareProfessionalModal-module_container__HUaSr {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0,0,0,.1);\n z-index: 9999999999;\n display: grid;\n place-items: center;\n}\n.HealthcareProfessionalModal-module_modal__31CzM{\n background: #fff;\n padding: 1.5rem;\n text-align: center;\n position: relative;\n width: 400px;\n max-width: 90vw;\n\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n animation: HealthcareProfessionalModal-module_show__3soMo .5s forwards;\n transform: translateY(0);\n opacity:1;\n}\n.HealthcareProfessionalModal-module_header__3uIr7 {\n background-color: #0d335a;\nposition: absolute;\n padding: 1rem;\n width: 80%;\ntop: 0;\nleft: 50%;\ntransform: translateX(-50%) translateY(-50%) ;\n border-radius: 15px;\n}\n.HealthcareProfessionalModal-module_body__3bnyN {\n color: #202020;\n}\n.HealthcareProfessionalModal-module_body__3bnyN span{\n font-weight: bold;\n}\n.HealthcareProfessionalModal-module_body__3bnyN .HealthcareProfessionalModal-module_title__27l5n {\n font-size: 24px;\n margin-bottom: 1rem;\n}\n.HealthcareProfessionalModal-module_controls__1wXJl button {\n margin: 1.5rem 1rem;\n border-radius: 5px;\n font-size: 1rem;\n}\n@keyframes HealthcareProfessionalModal-module_show__3soMo {\n from{\n transform: translateY(25px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity:1;\n }\n}";
7
+ var css = ".HealthcareProfessionalModal-module_container__HUaSr {\r\n position: fixed;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n bottom: 0;\r\n background: rgba(0,0,0,.1);\r\n z-index: 9999999999;\r\n display: grid;\r\n place-items: center;\r\n}\r\n.HealthcareProfessionalModal-module_modal__31CzM{\r\n background: #fff;\r\n padding: 1.5rem;\r\n text-align: center;\r\n position: relative;\r\n width: 400px;\r\n max-width: 90vw;\r\n\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n animation: HealthcareProfessionalModal-module_show__3soMo .5s forwards;\r\n transform: translateY(0);\r\n opacity:1;\r\n}\r\n.HealthcareProfessionalModal-module_header__3uIr7 {\r\n background-color: #0d335a;\r\nposition: absolute;\r\n padding: 1rem;\r\n width: 80%;\r\ntop: 0;\r\nleft: 50%;\r\ntransform: translateX(-50%) translateY(-50%) ;\r\n border-radius: 15px;\r\n}\r\n.HealthcareProfessionalModal-module_body__3bnyN {\r\n color: #202020;\r\n}\r\n.HealthcareProfessionalModal-module_body__3bnyN span{\r\n font-weight: bold;\r\n}\r\n.HealthcareProfessionalModal-module_body__3bnyN .HealthcareProfessionalModal-module_title__27l5n {\r\n font-size: 24px;\r\n margin-bottom: 1rem;\r\n}\r\n.HealthcareProfessionalModal-module_controls__1wXJl button {\r\n margin: 1.5rem 1rem;\r\n border-radius: 5px;\r\n font-size: 1rem;\r\n}\r\n@keyframes HealthcareProfessionalModal-module_show__3soMo {\r\n from{\r\n transform: translateY(25px);\r\n opacity: 0;\r\n }\r\n to {\r\n transform: translateY(0);\r\n opacity:1;\r\n }\r\n}";
8
8
  var styles = { "container": "HealthcareProfessionalModal-module_container__HUaSr", "modal": "HealthcareProfessionalModal-module_modal__31CzM", "show": "HealthcareProfessionalModal-module_show__3soMo", "header": "HealthcareProfessionalModal-module_header__3uIr7", "body": "HealthcareProfessionalModal-module_body__3bnyN", "title": "HealthcareProfessionalModal-module_title__27l5n", "controls": "HealthcareProfessionalModal-module_controls__1wXJl" };
9
9
  styleInject(css);
10
10
 
@@ -71,35 +71,35 @@ import 'react-bootstrap/OverlayTrigger';
71
71
  import 'react-bootstrap/Tooltip';
72
72
  import 'react-bootstrap/Popover';
73
73
 
74
- /* usage
75
- import Settings, { Ads } from '../../../../settings'
76
- import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
77
- import client from '../../../../client'
78
- import moment from 'moment'
79
- import Shell from '../../../../components/2.0/Shell'
80
- import { pageview } from '../../../../utilities/gtag'
81
-
82
- const Issue = (props) => {
83
- const { pubIssue, cache } = props
84
- const targeting = {
85
- content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
86
- document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
87
- }
88
- return (
89
- <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
90
- <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
91
- </Shell>
92
- )
93
- }
94
-
95
- Issue.getInitialProps = async (ctx) => {
96
- const { query } = ctx
97
- const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
98
- )
99
- return { pubIssue }
100
- }
101
-
102
- export default Issue
74
+ /* usage
75
+ import Settings, { Ads } from '../../../../settings'
76
+ import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
77
+ import client from '../../../../client'
78
+ import moment from 'moment'
79
+ import Shell from '../../../../components/2.0/Shell'
80
+ import { pageview } from '../../../../utilities/gtag'
81
+
82
+ const Issue = (props) => {
83
+ const { pubIssue, cache } = props
84
+ const targeting = {
85
+ content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
86
+ document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
87
+ }
88
+ return (
89
+ <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
90
+ <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
91
+ </Shell>
92
+ )
93
+ }
94
+
95
+ Issue.getInitialProps = async (ctx) => {
96
+ const { query } = ctx
97
+ const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
98
+ )
99
+ return { pubIssue }
100
+ }
101
+
102
+ export default Issue
103
103
  */
104
104
 
105
105
  var IssueLanding = function IssueLanding(props) {