@mjhls/mjh-framework 1.0.939-nojs-pagination-v5 → 1.0.939-segment-test-v2

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 (82) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AlgoliaSearch.js +15 -131
  3. package/dist/cjs/ArticleProgramLandingPage.js +1 -2
  4. package/dist/cjs/ArticleSeriesLandingPage.js +1 -2
  5. package/dist/cjs/AuthWrapper.js +1 -1
  6. package/dist/cjs/ConferenceArticleCard.js +15 -15
  7. package/dist/cjs/ContentCardPaginated.js +2 -1
  8. package/dist/cjs/DeckContent.js +17 -30
  9. package/dist/cjs/DeckQueuePaginated.js +2 -1
  10. package/dist/cjs/EventsDeck.js +17 -17
  11. package/dist/cjs/GridContent.js +11 -26
  12. package/dist/cjs/GridContentPaginated.js +2 -1
  13. package/dist/cjs/HamMagazine.js +9 -9
  14. package/dist/cjs/IssueLanding.js +29 -29
  15. package/dist/cjs/KMTracker.js +15 -15
  16. package/dist/cjs/MasterDeck.js +18 -17
  17. package/dist/cjs/MasterDeckPaginated.js +10 -9
  18. package/dist/cjs/{MediaSeriesCard-cc5aa886.js → MediaSeriesCard-659279e0.js} +1 -1
  19. package/dist/cjs/MediaSeriesLanding.js +7 -8
  20. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -9
  21. package/dist/cjs/NavMagazine.js +10 -10
  22. package/dist/cjs/NavNative.js +9 -9
  23. package/dist/cjs/Pagination-885dcfbd.js +90 -0
  24. package/dist/cjs/PartnerDetailListingPaginated.js +2 -1
  25. package/dist/cjs/PublicationLanding.js +26 -26
  26. package/dist/cjs/QueueDeckExpanded.js +5 -3
  27. package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
  28. package/dist/cjs/RelatedContent.js +28 -28
  29. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  30. package/dist/cjs/SeriesListingDeck.js +1 -1
  31. package/dist/cjs/{SeriesSlider-de93a303.js → SeriesSlider-ba0c5d1a.js} +4 -4
  32. package/dist/cjs/SideFooter.js +2 -2
  33. package/dist/cjs/VideoProgramLandingPage.js +1 -2
  34. package/dist/cjs/VideoSeriesCard.js +1 -1
  35. package/dist/cjs/VideoSeriesListing.js +9 -17
  36. package/dist/cjs/View.js +68 -37
  37. package/dist/cjs/YoutubeGroup.js +4 -4
  38. package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
  39. package/dist/cjs/getTargeting.js +1 -1
  40. package/dist/cjs/index.js +3 -2
  41. package/dist/esm/AlgoliaSearch.js +16 -132
  42. package/dist/esm/ArticleProgramLandingPage.js +1 -2
  43. package/dist/esm/ArticleSeriesLandingPage.js +1 -2
  44. package/dist/esm/AuthWrapper.js +1 -1
  45. package/dist/esm/ConferenceArticleCard.js +15 -15
  46. package/dist/esm/ContentCardPaginated.js +2 -1
  47. package/dist/esm/DeckContent.js +17 -30
  48. package/dist/esm/DeckQueuePaginated.js +2 -1
  49. package/dist/esm/EventsDeck.js +17 -17
  50. package/dist/esm/GridContent.js +11 -26
  51. package/dist/esm/GridContentPaginated.js +2 -1
  52. package/dist/esm/HamMagazine.js +9 -9
  53. package/dist/esm/IssueLanding.js +29 -29
  54. package/dist/esm/KMTracker.js +15 -15
  55. package/dist/esm/MasterDeck.js +18 -17
  56. package/dist/esm/MasterDeckPaginated.js +10 -9
  57. package/dist/esm/{MediaSeriesCard-2dc3c439.js → MediaSeriesCard-06c6251a.js} +1 -1
  58. package/dist/esm/MediaSeriesLanding.js +7 -8
  59. package/dist/esm/MediaSeriesLandingPaginated.js +9 -9
  60. package/dist/esm/NavMagazine.js +10 -10
  61. package/dist/esm/NavNative.js +9 -9
  62. package/dist/esm/Pagination-59436882.js +82 -0
  63. package/dist/esm/PartnerDetailListingPaginated.js +2 -1
  64. package/dist/esm/PublicationLanding.js +26 -26
  65. package/dist/esm/QueueDeckExpanded.js +5 -3
  66. package/dist/esm/QueueDeckExpandedPaginated.js +2 -1
  67. package/dist/esm/RelatedContent.js +28 -28
  68. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  69. package/dist/esm/SeriesListingDeck.js +1 -1
  70. package/dist/esm/{SeriesSlider-98ad6d97.js → SeriesSlider-45adb8dc.js} +4 -4
  71. package/dist/esm/SideFooter.js +2 -2
  72. package/dist/esm/VideoProgramLandingPage.js +1 -2
  73. package/dist/esm/VideoSeriesCard.js +1 -1
  74. package/dist/esm/VideoSeriesListing.js +9 -17
  75. package/dist/esm/View.js +67 -37
  76. package/dist/esm/YoutubeGroup.js +4 -4
  77. package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
  78. package/dist/esm/getTargeting.js +1 -1
  79. package/dist/esm/index.js +3 -2
  80. package/package.json +115 -115
  81. package/dist/cjs/Pagination-42f92f7c.js +0 -97
  82. package/dist/esm/Pagination-484b86c5.js +0 -90
@@ -75,8 +75,7 @@ var GridContent = function (_React$Component) {
75
75
  currentPage: _this.props.currentPage || 1,
76
76
  lgInfeedAd: _this.props.lgInfeedAd ? _this.props.lgInfeedAd : false,
77
77
  showCategory: _this.props.showCategory ? _this.props.showCategory : false,
78
- contentCategoryMapping: _this.props.contentCategoryMapping ? contentCategoryMapping : [],
79
- lastDataSize: _this.data ? _this.data.length : 0
78
+ contentCategoryMapping: _this.props.contentCategoryMapping ? contentCategoryMapping : []
80
79
  }, _this.loadMore = debounce_1(function () {
81
80
  _this.setState(function (state) {
82
81
  var page = state.page,
@@ -131,13 +130,11 @@ var GridContent = function (_React$Component) {
131
130
  if (dataArr.length > 0) {
132
131
  return {
133
132
  data: [].concat(_toConsumableArray(data), _toConsumableArray(dataArr)),
134
- scrolling: true,
135
- lastDataSize: dataArr.length
133
+ scrolling: true
136
134
  };
137
135
  } else {
138
136
  return {
139
- scrolling: false,
140
- lastDataSize: 0
137
+ scrolling: false
141
138
  };
142
139
  }
143
140
  });
@@ -229,8 +226,7 @@ var GridContent = function (_React$Component) {
229
226
  { style: { display: 'flex', flex: '1 0 auto' } },
230
227
  rightItems[i].component
231
228
  );
232
- }, _this.renderManualPagination = function (_ref2) {
233
- var nextPagePostsCount = _ref2.nextPagePostsCount;
229
+ }, _this.renderManualPagination = function () {
234
230
  var currentPage = _this.state.currentPage;
235
231
 
236
232
  return React__default.createElement(
@@ -241,7 +237,7 @@ var GridContent = function (_React$Component) {
241
237
  { href: '?page=' + (currentPage - 1) },
242
238
  '<< Previous'
243
239
  ),
244
- !(_this.state.lastDataSize < _this.state.itemsPerPage) && nextPagePostsCount > 0 && React__default.createElement(
240
+ React__default.createElement(
245
241
  'a',
246
242
  { href: '?page=' + (currentPage + 1) },
247
243
  'Next >>'
@@ -733,30 +729,19 @@ var GridContent = function (_React$Component) {
733
729
  showVideo = _props.showVideo,
734
730
  VideoPlayer = _props.VideoPlayer,
735
731
  showBI = _props.showBI,
736
- brandInsight = _props.brandInsight,
737
- _props$nextPagePostsC = _props.nextPagePostsCount,
738
- nextPagePostsCount = _props$nextPagePostsC === undefined ? 3 : _props$nextPagePostsC;
732
+ brandInsight = _props.brandInsight;
739
733
 
740
734
 
741
735
  return React__default.createElement(
742
736
  'div',
743
737
  { className: 'contentDeck' },
744
738
  autoScroll ? React__default.createElement(
745
- React__default.Fragment,
746
- null,
747
- React__default.createElement(
748
- InfiniteScroll,
749
- { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
750
- React__default.createElement(
751
- Container,
752
- null,
753
- this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
754
- )
755
- ),
739
+ InfiniteScroll,
740
+ { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
756
741
  React__default.createElement(
757
- 'noscript',
742
+ Container,
758
743
  null,
759
- this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
744
+ this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
760
745
  )
761
746
  ) : React__default.createElement(
762
747
  React__default.Fragment,
@@ -790,7 +775,7 @@ var GridContent = function (_React$Component) {
790
775
  React__default.createElement(
791
776
  'noscript',
792
777
  null,
793
- this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
778
+ this.renderManualPagination()
794
779
  )
795
780
  )
796
781
  );
@@ -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-484b86c5.js';
25
+ import { P as Pagination } from './Pagination-59436882.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,6 +47,7 @@ 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';
50
51
  import './index.esm-1bd8a0a8.js';
51
52
  import './iconBase-ccc56b97.js';
52
53
 
@@ -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
@@ -70,35 +70,35 @@ import 'react-bootstrap/OverlayTrigger';
70
70
  import 'react-bootstrap/Tooltip';
71
71
  import 'react-bootstrap/Popover';
72
72
 
73
- /* usage
74
- import Settings, { Ads } from '../../../../settings'
75
- import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
76
- import client from '../../../../client'
77
- import moment from 'moment'
78
- import Shell from '../../../../components/2.0/Shell'
79
- import { pageview } from '../../../../utilities/gtag'
80
-
81
- const Issue = (props) => {
82
- const { pubIssue, cache } = props
83
- const targeting = {
84
- content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
85
- document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
86
- }
87
- return (
88
- <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
89
- <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
90
- </Shell>
91
- )
92
- }
93
-
94
- Issue.getInitialProps = async (ctx) => {
95
- const { query } = ctx
96
- const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
97
- )
98
- return { pubIssue }
99
- }
100
-
101
- export default Issue
73
+ /* usage
74
+ import Settings, { Ads } from '../../../../settings'
75
+ import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
76
+ import client from '../../../../client'
77
+ import moment from 'moment'
78
+ import Shell from '../../../../components/2.0/Shell'
79
+ import { pageview } from '../../../../utilities/gtag'
80
+
81
+ const Issue = (props) => {
82
+ const { pubIssue, cache } = props
83
+ const targeting = {
84
+ content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
85
+ document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
86
+ }
87
+ return (
88
+ <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
89
+ <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
90
+ </Shell>
91
+ )
92
+ }
93
+
94
+ Issue.getInitialProps = async (ctx) => {
95
+ const { query } = ctx
96
+ const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
97
+ )
98
+ return { pubIssue }
99
+ }
100
+
101
+ export default Issue
102
102
  */
103
103
 
104
104
  var IssueLanding = function IssueLanding(props) {
@@ -1,25 +1,25 @@
1
1
  var KMTracker = function KMTracker(props) {
2
- var id = props.id;
2
+ var id = props.id;
3
3
 
4
- if (document && id) {
4
+ if (document && id) {
5
5
  (function () {
6
- var ecnJquery = document.createElement('script');
6
+ var ecnJquery = document.createElement('script');
7
7
 
8
- ecnJquery.type = 'text/javascript';
9
- ecnJquery.async = true;
10
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
8
+ ecnJquery.type = 'text/javascript';
9
+ ecnJquery.async = true;
10
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
11
11
 
12
- var ecnScript = document.createElement('script');
12
+ var ecnScript = document.createElement('script');
13
13
 
14
- ecnScript.type = 'text/javascript';
15
- ecnScript.async = true;
16
- ecnScript.id = 'km-tracker';
17
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
14
+ ecnScript.type = 'text/javascript';
15
+ ecnScript.async = true;
16
+ ecnScript.id = 'km-tracker';
17
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
18
18
 
19
- document.head.appendChild(ecnJquery);
20
- document.head.appendChild(ecnScript);
21
- })();
22
- }
19
+ document.head.appendChild(ecnJquery);
20
+ document.head.appendChild(ecnScript);
21
+ })();
22
+ }
23
23
  };
24
24
 
25
25
  export default KMTracker;
@@ -223,14 +223,14 @@ var MasterDeck = function (_React$Component) {
223
223
  }
224
224
 
225
225
  // please leave this for later debug purpose : Yong Jun.
226
- /* console.log('page change reported', {
227
- currentPage: currentPage,
228
- pageNumber: pageNumber,
229
- pathname: pathname,
230
- path: path,
231
- newPath: newPath,
232
- firstPage: pageNumber === 1,
233
- queryString: queryString
226
+ /* console.log('page change reported', {
227
+ currentPage: currentPage,
228
+ pageNumber: pageNumber,
229
+ pathname: pathname,
230
+ path: path,
231
+ newPath: newPath,
232
+ firstPage: pageNumber === 1,
233
+ queryString: queryString
234
234
  }) */
235
235
 
236
236
  if (pageview) {
@@ -304,6 +304,7 @@ var MasterDeck = function (_React$Component) {
304
304
  document_url: brandInsightAd.targeting.document_url,
305
305
  document_group: brandInsightAd.targeting.document_group,
306
306
  rootDocumentGroup: brandInsightAd.targeting.rootDocumentGroup
307
+
307
308
  },
308
309
  _type: 'brandInsightAd',
309
310
  /* Passing refresh flag */
@@ -396,8 +397,7 @@ var MasterDeck = function (_React$Component) {
396
397
  { className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
397
398
  rightItems[i].component
398
399
  );
399
- }, _this.renderManualPagination = function (_ref2) {
400
- var nextPagePostsCount = _ref2.nextPagePostsCount;
400
+ }, _this.renderManualPagination = function () {
401
401
  var _this$state3 = _this.state,
402
402
  currentPage = _this$state3.currentPage,
403
403
  itemsPerPage = _this$state3.itemsPerPage,
@@ -405,7 +405,10 @@ var MasterDeck = function (_React$Component) {
405
405
 
406
406
  console.log('lastDataSize:', lastDataSize);
407
407
  console.log('itemsPerPage:', itemsPerPage);
408
- console.log('nextPagePostsCount:', nextPagePostsCount);
408
+ if (lastDataSize < itemsPerPage) {
409
+ return null;
410
+ }
411
+
409
412
  return React__default.createElement(
410
413
  'div',
411
414
  { className: 'd-flex justify-content-between' },
@@ -414,7 +417,7 @@ var MasterDeck = function (_React$Component) {
414
417
  { href: '?page=' + (currentPage - 1) },
415
418
  '<< Previous'
416
419
  ),
417
- !(lastDataSize < itemsPerPage) && nextPagePostsCount > 0 && React__default.createElement(
420
+ React__default.createElement(
418
421
  'a',
419
422
  { href: '?page=' + (currentPage + 1) },
420
423
  'Next >>'
@@ -476,9 +479,7 @@ var MasterDeck = function (_React$Component) {
476
479
  _props$showBI = _props.showBI,
477
480
  showBI = _props$showBI === undefined ? false : _props$showBI,
478
481
  _props$lgInfeedAd = _props.lgInfeedAd,
479
- lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
480
- _props$nextPagePostsC = _props.nextPagePostsCount,
481
- nextPagePostsCount = _props$nextPagePostsC === undefined ? 2 : _props$nextPagePostsC;
482
+ lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
482
483
 
483
484
  return React__default.createElement(
484
485
  'div',
@@ -498,7 +499,7 @@ var MasterDeck = function (_React$Component) {
498
499
  React__default.createElement(
499
500
  'noscript',
500
501
  null,
501
- this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
502
+ this.renderManualPagination()
502
503
  )
503
504
  ) : React__default.createElement(
504
505
  React__default.Fragment,
@@ -534,7 +535,7 @@ var MasterDeck = function (_React$Component) {
534
535
  React__default.createElement(
535
536
  'noscript',
536
537
  null,
537
- this.renderManualPagination({ nextPagePostsCount: nextPagePostsCount })
538
+ this.renderManualPagination()
538
539
  )
539
540
  )
540
541
  );
@@ -12,7 +12,7 @@ import { l as lodash } from './lodash-f97fd99a.js';
12
12
  import { m as main_43 } from './main-1894c974.js';
13
13
  import { A as ADlgInfeed } from './ADlgInfeed-ebcafb85.js';
14
14
  import { A as ADInfeed } from './ADInfeed-7af1f934.js';
15
- import { P as Pagination } from './Pagination-484b86c5.js';
15
+ import { P as Pagination } from './Pagination-59436882.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
18
18
  import './web.dom.iterable-ab4dea5c.js';
@@ -33,6 +33,7 @@ import './isSymbol-a7e9aafe.js';
33
33
  import './toNumber-5aeba6e7.js';
34
34
  import './Beam.js';
35
35
  import './Segment.js';
36
+ import 'react-paginate';
36
37
  import 'react-bootstrap/Button';
37
38
  import './index.esm-1bd8a0a8.js';
38
39
  import './iconBase-ccc56b97.js';
@@ -107,14 +108,14 @@ var MasterDeck = function (_React$Component) {
107
108
  }
108
109
 
109
110
  // please leave this for later debug purpose : Yong Jun.
110
- /* console.log('page change reported', {
111
- currentPage: currentPage,
112
- pageNumber: pageNumber,
113
- pathname: pathname,
114
- path: path,
115
- newPath: newPath,
116
- firstPage: pageNumber === 1,
117
- queryString: queryString
111
+ /* console.log('page change reported', {
112
+ currentPage: currentPage,
113
+ pageNumber: pageNumber,
114
+ pathname: pathname,
115
+ path: path,
116
+ newPath: newPath,
117
+ firstPage: pageNumber === 1,
118
+ queryString: queryString
118
119
  }) */
119
120
 
120
121
  if (pageview) {
@@ -9427,7 +9427,7 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
9427
9427
  Tooltip.defaultProps = defaultProps;
9428
9428
  Tooltip.displayName = 'Tooltip';
9429
9429
 
9430
- var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
9430
+ var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
9431
9431
  var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
9432
9432
  styleInject(css);
9433
9433
 
@@ -3,7 +3,7 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
5
5
  import React__default, { useState, useEffect } from 'react';
6
- import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-2dc3c439.js';
6
+ import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-06c6251a.js';
7
7
  import './index-98ca9cec.js';
8
8
  import 'react-dom';
9
9
  import Link from 'next/link';
@@ -92,11 +92,11 @@ var Filter = function Filter(_ref) {
92
92
  _useState6 = _slicedToArray(_useState5, 2),
93
93
  grandChildData = _useState6[0],
94
94
  setGrandChildData = _useState6[1];
95
- /*
96
- {parent: showAll,
97
- chidlren: show selected from parent,
98
- grandchildren: show selected from children
99
- }
95
+ /*
96
+ {parent: showAll,
97
+ chidlren: show selected from parent,
98
+ grandchildren: show selected from children
99
+ }
100
100
  */
101
101
 
102
102
 
@@ -389,8 +389,7 @@ MediaSeriesLanding.getInitialData = function () {
389
389
  count: itemsPerPage,
390
390
  from: start,
391
391
  to: start + itemsPerPage,
392
- url: pathname,
393
- itemsPerPage: itemsPerPage
392
+ url: pathname
394
393
  };
395
394
  _context2.next = 9;
396
395
  return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name,\n description\n }');
@@ -3,7 +3,7 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
5
5
  import React__default, { useState, useEffect } from 'react';
6
- import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-2dc3c439.js';
6
+ import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-06c6251a.js';
7
7
  import './index-98ca9cec.js';
8
8
  import 'react-dom';
9
9
  import Link from 'next/link';
@@ -44,7 +44,8 @@ import './toNumber-5aeba6e7.js';
44
44
  import './Beam.js';
45
45
  import './Segment.js';
46
46
  import './ADInfeed-7af1f934.js';
47
- import './Pagination-484b86c5.js';
47
+ import './Pagination-59436882.js';
48
+ import 'react-paginate';
48
49
  import 'react-bootstrap/Button';
49
50
  import './index.esm-1bd8a0a8.js';
50
51
  import './iconBase-ccc56b97.js';
@@ -93,11 +94,11 @@ var Filter = function Filter(_ref) {
93
94
  _useState6 = _slicedToArray(_useState5, 2),
94
95
  grandChildData = _useState6[0],
95
96
  setGrandChildData = _useState6[1];
96
- /*
97
- {parent: showAll,
98
- chidlren: show selected from parent,
99
- grandchildren: show selected from children
100
- }
97
+ /*
98
+ {parent: showAll,
99
+ chidlren: show selected from parent,
100
+ grandchildren: show selected from children
101
+ }
101
102
  */
102
103
 
103
104
 
@@ -411,8 +412,7 @@ MediaSeriesLanding.getInitialData = function () {
411
412
  count: itemsPerPage,
412
413
  from: start,
413
414
  to: start + itemsPerPage,
414
- url: pathname,
415
- itemsPerPage: itemsPerPage
415
+ url: pathname
416
416
  };
417
417
  _context2.next = 9;
418
418
  return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name,\n description\n }');
@@ -26,16 +26,16 @@ import 'react-bootstrap/FormControl';
26
26
  import 'react-bootstrap/Button';
27
27
 
28
28
  var NavMagazine = function NavMagazine(props) {
29
- /*
30
- Example Nav with acceptable props
31
- <MagazineNav
32
- showLogin
33
- user={props.cache.user}
34
- logo={props.settings.logo}
35
- dataObject={props.cache.mainNavCache}
36
- website={website}
37
- subNav={props.cache.subNavCache}
38
- />
29
+ /*
30
+ Example Nav with acceptable props
31
+ <MagazineNav
32
+ showLogin
33
+ user={props.cache.user}
34
+ logo={props.settings.logo}
35
+ dataObject={props.cache.mainNavCache}
36
+ website={website}
37
+ subNav={props.cache.subNavCache}
38
+ />
39
39
  */
40
40
 
41
41
  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
@@ -300,15 +300,15 @@ function chunk(array, size, guard) {
300
300
  var chunk_1 = chunk;
301
301
 
302
302
  var NavNative = function NavNative(props) {
303
- /*
304
- Example Nav with acceptable props
305
- <MagazineNav
306
- showLogin
307
- logo={props.settings.logo}
308
- dataObject={props.cache.mainNavCache}
309
- website={website}
310
- subNav={props.cache.subNavCache}
311
- />
303
+ /*
304
+ Example Nav with acceptable props
305
+ <MagazineNav
306
+ showLogin
307
+ logo={props.settings.logo}
308
+ dataObject={props.cache.mainNavCache}
309
+ website={website}
310
+ subNav={props.cache.subNavCache}
311
+ />
312
312
  */
313
313
  // Setting 'socialIconVariant' as 'dark' as default to make the social icons and search icon black
314
314
  var logo = props.logo,
@@ -0,0 +1,82 @@
1
+ import React__default from 'react';
2
+ import ReactPaginate from 'react-paginate';
3
+ import Button from 'react-bootstrap/Button';
4
+ import { d as FaArrowRight, e as FaArrowLeft } from './index.esm-1bd8a0a8.js';
5
+
6
+ var Pagination = function Pagination(props) {
7
+ var pageCount = props.pageCount,
8
+ _props$marginPagesDis = props.marginPagesDisplayed,
9
+ marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
10
+ _props$pageRangeDispl = props.pageRangeDisplayed,
11
+ pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
12
+ _props$currentPage = props.currentPage,
13
+ currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
14
+ _onPageChange = props.onPageChange,
15
+ _props$needLargePagin = props.needLargePaginateButtons,
16
+ needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
17
+
18
+ if (!pageCount || pageCount <= 1) return null;
19
+ return React__default.createElement(
20
+ React__default.Fragment,
21
+ null,
22
+ needLargePaginateButtons && React__default.createElement(
23
+ 'div',
24
+ { className: 'pagination-lg-btn-nxt' },
25
+ React__default.createElement(
26
+ Button,
27
+ {
28
+ onClick: function onClick(e) {
29
+ e.preventDefault();
30
+ _onPageChange(currentPage + 1);
31
+ },
32
+ disabled: currentPage === pageCount,
33
+ href: '?page=' + (currentPage + 1) },
34
+ 'NEXT PAGE',
35
+ React__default.createElement(FaArrowRight, { className: 'fa-arrow-right' })
36
+ )
37
+ ),
38
+ React__default.createElement(ReactPaginate, {
39
+ pageCount: pageCount,
40
+ marginPagesDisplayed: marginPagesDisplayed,
41
+ pageRangeDisplayed: pageRangeDisplayed,
42
+ forcePage: currentPage - 1,
43
+ onPageChange: function onPageChange(_ref) {
44
+ var selected = _ref.selected;
45
+ return _onPageChange(selected + 1);
46
+ },
47
+ hrefBuilder: function hrefBuilder(page) {
48
+ return '?page=' + page;
49
+ },
50
+ previousLabel: '<',
51
+ nextLabel: '>',
52
+ containerClassName: 'pagination-container',
53
+ previousLinkClassName: 'previous',
54
+ nextLinkClassName: 'next',
55
+ disabledClassName: 'disbaled',
56
+ activeClassName: 'active'
57
+ }),
58
+ needLargePaginateButtons && React__default.createElement(
59
+ 'div',
60
+ { className: 'pagination-lg-btn-prv' },
61
+ React__default.createElement(
62
+ Button,
63
+ {
64
+ onClick: function onClick(e) {
65
+ e.preventDefault();
66
+ _onPageChange(currentPage - 1);
67
+ },
68
+ disabled: currentPage === 1,
69
+ href: '?page=' + (currentPage - 1) },
70
+ React__default.createElement(FaArrowLeft, { className: 'fa-arrow-left' }),
71
+ 'PREVIOUS PAGE'
72
+ )
73
+ ),
74
+ React__default.createElement(
75
+ 'style',
76
+ { jsx: 'true' },
77
+ '\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n }\n .pagination-container li:first-child a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container li:last-child a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n .pagination-lg-btn-nxt,\n .pagination-lg-btn-prv {\n text-align: center;\n }\n .pagination-lg-btn-nxt .btn,\n .pagination-lg-btn-prv .btn {\n min-width: 80%;\n color: #000;\n color: var(--primary);\n background-color: transparent;\n border-color: #000;\n border-color: var(--primary);\n }\n .pagination-lg-btn-nxt {\n margin: 0 0 1.5rem;\n }\n .pagination-lg-btn-prv {\n margin: 1.5rem 0 0;\n }\n .pagination-lg-btn-nxt .btn:not(:disabled):not(.disabled).active,\n .pagination-lg-btn-prv .btn:not(:disabled):not(.disabled):active {\n color: #fff;\n background-color: #000;\n background-color: var(--primary);\n border-color: #000;\n border-color: var(--primary);\n }\n @media only screen and (min-width: 601px) {\n [class^=\'pagination-lg-btn\'] {\n display: none;\n }\n }\n .fa-arrow-left {\n margin-right: 0.5rem;\n }\n .fa-arrow-right {\n margin-left: 0.5rem;\n }\n .pagination-container::-webkit-scrollbar {\n height: 8px;\n }\n .pagination-container::-webkit-scrollbar-track,\n .pagination-container::-webkit-scrollbar-thumb {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n }\n .pagination-container::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .pagination-container::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.3);\n }\n '
78
+ )
79
+ );
80
+ };
81
+
82
+ export { Pagination as P };
@@ -44,7 +44,8 @@ import './AuthorComponent-11adff02.js';
44
44
  import './ADlgInfeed-ebcafb85.js';
45
45
  import './getContentCategory-15dcc413.js';
46
46
  import './timeDifferenceCalc.js';
47
- import './Pagination-484b86c5.js';
47
+ import './Pagination-59436882.js';
48
+ import 'react-paginate';
48
49
  import 'react-bootstrap/Button';
49
50
  import './index.esm-1bd8a0a8.js';
50
51
  import './iconBase-ccc56b97.js';