@mjhls/mjh-framework 1.0.974-test5 → 1.0.974

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 (165) hide show
  1. package/dist/cjs/AlgoliaSearch.js +18 -142
  2. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  3. package/dist/cjs/ArticleSeriesLandingPage.js +2 -2
  4. package/dist/cjs/Auth.js +17 -20
  5. package/dist/cjs/AuthWrapper.js +12 -18
  6. package/dist/cjs/CMEDeck.js +1 -5
  7. package/dist/cjs/Column1.js +1 -1
  8. package/dist/cjs/Column2.js +1 -1
  9. package/dist/cjs/Column3.js +1 -1
  10. package/dist/cjs/ContentCardPaginated.js +3 -2
  11. package/dist/cjs/DeckContent.js +1 -1
  12. package/dist/cjs/DeckQueuePaginated.js +2 -1
  13. package/dist/cjs/Dfp-9be904d5.js +1 -1
  14. package/dist/cjs/ExternalResources.js +1 -1
  15. package/dist/cjs/GridContent.js +2 -2
  16. package/dist/cjs/GridContentPaginated.js +4 -3
  17. package/dist/cjs/HamMagazine.js +1 -1
  18. package/dist/cjs/Header.js +1 -1
  19. package/dist/cjs/HorizontalArticleListing.js +1 -1
  20. package/dist/cjs/IssueLanding.js +3 -3
  21. package/dist/cjs/LeftNav.js +1 -1
  22. package/dist/cjs/MasterDeck.js +2 -2
  23. package/dist/cjs/MasterDeckPaginated.js +4 -3
  24. package/dist/cjs/{MediaSeriesCard-91982ed5.js → MediaSeriesCard-5bf9813e.js} +43 -65
  25. package/dist/cjs/MediaSeriesLanding.js +4 -4
  26. package/dist/cjs/MediaSeriesLandingPaginated.js +6 -5
  27. package/dist/cjs/NavDvm.js +1 -1
  28. package/dist/cjs/NavMagazine.js +1 -1
  29. package/dist/cjs/NavNative.js +1 -1
  30. package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
  31. package/dist/cjs/PartnerDetailListing.js +30 -28
  32. package/dist/cjs/PartnerDetailListingPaginated.js +5 -4
  33. package/dist/cjs/PubSection.js +2 -2
  34. package/dist/cjs/QueueDeckExpanded.js +2 -2
  35. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -3
  36. package/dist/cjs/Segment.js +0 -49
  37. package/dist/cjs/TaxonomyDescription.js +1 -1
  38. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  39. package/dist/cjs/VideoSeriesLandingPage.js +2 -2
  40. package/dist/cjs/View.js +55 -144
  41. package/dist/cjs/getSerializers.js +1 -1
  42. package/dist/cjs/index.js +4 -3
  43. package/dist/cjs/ustream-api-3819e4aa.js +1 -1
  44. package/dist/esm/AD.js +1 -1
  45. package/dist/esm/AD300x250.js +1 -1
  46. package/dist/esm/AD300x250x600.js +1 -1
  47. package/dist/esm/AD728x90.js +1 -1
  48. package/dist/esm/ADFloatingFooter.js +1 -1
  49. package/dist/esm/ADFooter.js +1 -1
  50. package/dist/esm/ADGutter.js +1 -1
  51. package/dist/esm/ADSkyscraper.js +1 -1
  52. package/dist/esm/ADSponsoredResources.js +1 -1
  53. package/dist/esm/ADWebcast.js +1 -1
  54. package/dist/esm/ADWelcome.js +1 -1
  55. package/dist/esm/AccordionPanel.js +1 -1
  56. package/dist/esm/AdSlot.js +1 -1
  57. package/dist/esm/AdSlotsProvider.js +1 -1
  58. package/dist/esm/AlgoliaSearch.js +20 -144
  59. package/dist/esm/AlphabeticList.js +1 -1
  60. package/dist/esm/ArticleCarousel.js +1 -1
  61. package/dist/esm/ArticleProgramLandingPage.js +2 -2
  62. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  63. package/dist/esm/ArticleSeriesListing.js +1 -1
  64. package/dist/esm/Auth.js +18 -20
  65. package/dist/esm/AuthWrapper.js +13 -19
  66. package/dist/esm/Beam.js +1 -1
  67. package/dist/esm/Breadcrumbs.js +1 -1
  68. package/dist/esm/CMEDeck.js +2 -6
  69. package/dist/esm/Column1.js +2 -1
  70. package/dist/esm/Column2.js +2 -1
  71. package/dist/esm/Column3.js +2 -1
  72. package/dist/esm/ConferenceArticleCard.js +1 -1
  73. package/dist/esm/ContentCardPaginated.js +4 -3
  74. package/dist/esm/DeckContent.js +2 -2
  75. package/dist/esm/DeckQueue.js +1 -1
  76. package/dist/esm/DeckQueuePaginated.js +3 -2
  77. package/dist/esm/Dfp-102f0beb.js +1 -1
  78. package/dist/esm/EventsDeck.js +1 -1
  79. package/dist/esm/ExternalResources.js +2 -2
  80. package/dist/esm/Feature.js +1 -1
  81. package/dist/esm/ForbesHero.js +1 -1
  82. package/dist/esm/GridContent.js +3 -3
  83. package/dist/esm/GridContentPaginated.js +5 -4
  84. package/dist/esm/GridHero.js +1 -1
  85. package/dist/esm/GroupDeck.js +1 -1
  86. package/dist/esm/HamMagazine.js +2 -1
  87. package/dist/esm/Header.js +2 -1
  88. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  89. package/dist/esm/Hero.js +1 -1
  90. package/dist/esm/HighlightenVideo.js +1 -1
  91. package/dist/esm/HorizontalArticleListing.js +2 -2
  92. package/dist/esm/HorizontalHero.js +1 -1
  93. package/dist/esm/IssueContentDeck.js +1 -1
  94. package/dist/esm/IssueDeck.js +1 -1
  95. package/dist/esm/IssueLanding.js +4 -4
  96. package/dist/esm/KMTracker.js +1 -1
  97. package/dist/esm/LeftNav.js +2 -1
  98. package/dist/esm/MasterDeck.js +3 -3
  99. package/dist/esm/MasterDeckPaginated.js +5 -4
  100. package/dist/esm/{MediaSeriesCard-da5c7499.js → MediaSeriesCard-305a9cb3.js} +43 -65
  101. package/dist/esm/MediaSeriesLanding.js +5 -5
  102. package/dist/esm/MediaSeriesLandingPaginated.js +7 -6
  103. package/dist/esm/NavDvm.js +2 -1
  104. package/dist/esm/NavMagazine.js +2 -1
  105. package/dist/esm/NavNative.js +2 -1
  106. package/dist/esm/OncliveHero.js +1 -1
  107. package/dist/esm/OncliveLargeHero.js +1 -1
  108. package/dist/esm/PageFilter.js +1 -1
  109. package/dist/esm/Pagination-cd21f8c2.js +82 -0
  110. package/dist/esm/PartnerDetailListing.js +31 -29
  111. package/dist/esm/PartnerDetailListingPaginated.js +6 -5
  112. package/dist/esm/PdfDownload.js +1 -1
  113. package/dist/esm/PopUpModal.js +1 -1
  114. package/dist/esm/PubSection.js +3 -3
  115. package/dist/esm/PubToc.js +1 -1
  116. package/dist/esm/PublicationDeck.js +1 -1
  117. package/dist/esm/PublicationLanding.js +1 -1
  118. package/dist/esm/QueueDeckExpanded.js +3 -3
  119. package/dist/esm/QueueDeckExpandedPaginated.js +5 -4
  120. package/dist/esm/RecentNews.js +1 -1
  121. package/dist/esm/RelatedContent.js +1 -1
  122. package/dist/esm/RelatedTopicsDropdown.js +1 -1
  123. package/dist/esm/RolesDeck.js +1 -1
  124. package/dist/esm/Schema.js +1 -1
  125. package/dist/esm/Search.js +1 -1
  126. package/dist/esm/Segment.js +2 -51
  127. package/dist/esm/SeriesListingDeck.js +1 -1
  128. package/dist/esm/SetCookie.js +1 -1
  129. package/dist/esm/SideFooter.js +1 -1
  130. package/dist/esm/SocialIcons.js +1 -1
  131. package/dist/esm/SocialShare.js +1 -1
  132. package/dist/esm/TaxonomyCard.js +1 -1
  133. package/dist/esm/TaxonomyDescription.js +2 -2
  134. package/dist/esm/TemplateNormal.js +1 -1
  135. package/dist/esm/ThumbnailCard.js +1 -1
  136. package/dist/esm/Ustream.js +1 -1
  137. package/dist/esm/VerticalHero.js +1 -1
  138. package/dist/esm/VideoProgramLandingPage.js +2 -2
  139. package/dist/esm/VideoSeriesCard.js +1 -1
  140. package/dist/esm/VideoSeriesFilter.js +1 -1
  141. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  142. package/dist/esm/VideoSeriesListing.js +1 -1
  143. package/dist/esm/View.js +55 -145
  144. package/dist/esm/YahooHero.js +1 -1
  145. package/dist/esm/YoutubeGroup.js +1 -1
  146. package/dist/esm/getKeywords.js +1 -1
  147. package/dist/esm/getQuery.js +1 -1
  148. package/dist/esm/getRelatedArticle.js +1 -1
  149. package/dist/esm/getRootDocGroup.js +1 -1
  150. package/dist/esm/getSerializers.js +1 -1
  151. package/dist/esm/getSeriesDetail.js +1 -1
  152. package/dist/esm/index.js +4 -3
  153. package/dist/esm/stringify-2b084bee.js +1 -1
  154. package/dist/esm/timeDifferenceCalc.js +1 -1
  155. package/dist/esm/urlFor.js +1 -1
  156. package/dist/esm/ustream-api-d3714624.js +1 -1
  157. package/package.json +1 -1
  158. package/dist/cjs/Pagination-2a3d0103.js +0 -97
  159. package/dist/esm/Pagination-dc30727b.js +0 -90
  160. /package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-81006615.js} +0 -0
  161. /package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-0db07099.js} +0 -0
  162. /package/dist/cjs/{index-f064c482.js → index-eb1c583d.js} +0 -0
  163. /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-6d1fc6bf.js} +0 -0
  164. /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-dc36c928.js} +0 -0
  165. /package/dist/esm/{index-8f118089.js → index-264bbd3c.js} +0 -0
@@ -229,4 +229,5 @@ var NavDvm = function NavDvm(props) {
229
229
  );
230
230
  };
231
231
 
232
- export { NavDvm, NavDvm as default };
232
+ export default NavDvm;
233
+ export { NavDvm };
@@ -579,4 +579,5 @@ var NavMagazine = function NavMagazine(props) {
579
579
 
580
580
  var MagazineNav = React__default.memo(NavMagazine);
581
581
 
582
- export { NavMagazine, MagazineNav as default };
582
+ export default MagazineNav;
583
+ export { NavMagazine };
@@ -842,4 +842,5 @@ var NavNative = function NavNative(props) {
842
842
  );
843
843
  };
844
844
 
845
- export { NavNative, NavNative as default };
845
+ export default NavNative;
846
+ export { NavNative };
@@ -70,4 +70,4 @@ var OncliveHero = function OncliveHero(props) {
70
70
  );
71
71
  };
72
72
 
73
- export { OncliveHero as default };
73
+ export default OncliveHero;
@@ -232,4 +232,4 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
232
232
  );
233
233
  };
234
234
 
235
- export { OncliveLargeHero as default };
235
+ export default OncliveLargeHero;
@@ -63,4 +63,4 @@ var PageFilter = function PageFilter(props) {
63
63
  return null;
64
64
  };
65
65
 
66
- export { PageFilter as default };
66
+ export default PageFilter;
@@ -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: currentPage === pageCount ? '' : '?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: 'disabled',
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: currentPage <= 1 ? '?page=1' : '?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 .disabled 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 };
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
11
11
  import Breadcrumbs from './Breadcrumbs.js';
12
12
  import Feature from './Feature.js';
13
13
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-8f118089.js';
14
+ import { g as getSerializers } from './index-264bbd3c.js';
15
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -32,7 +32,7 @@ import 'next/router';
32
32
  import './index-755f2cc2.js';
33
33
  import './main-1894c974.js';
34
34
  import './entities-6d9154b4.js';
35
- import './ADInfeed-5765a73a.js';
35
+ import './ADInfeed-6d1fc6bf.js';
36
36
  import 'react-bootstrap/Card';
37
37
  import './AdSlot.js';
38
38
  import './debounce-533d9748.js';
@@ -43,7 +43,7 @@ import './stringify-2b084bee.js';
43
43
  import './Segment.js';
44
44
  import './AuthorComponent-11adff02.js';
45
45
  import './lodash-f97fd99a.js';
46
- import './ADlgInfeed-5e36f317.js';
46
+ import './ADlgInfeed-dc36c928.js';
47
47
  import './getContentCategory-15dcc413.js';
48
48
  import './timeDifferenceCalc.js';
49
49
  import './index-3f5c03b2.js';
@@ -94,7 +94,8 @@ var PartnerDetails = function PartnerDetails(_ref) {
94
94
  client = _ref.client,
95
95
  Settings = _ref.Settings,
96
96
  pageview = _ref.pageview,
97
- page = _ref.page;
97
+ page = _ref.page,
98
+ nextPagePostsCount = _ref.nextPagePostsCount;
98
99
 
99
100
  var description = partnerDetails && partnerDetails.description ? partnerDetails.description.filter(function (block) {
100
101
  return block._type !== 'slideshows' ? block : null;
@@ -170,24 +171,9 @@ var PartnerDetails = function PartnerDetails(_ref) {
170
171
  rel: 'noopener noreferrer',
171
172
  style: { height: 30, width: 30 }
172
173
  }),
173
- partnerDetails.youtube && partnerDetails.youtubeIcon && React__default.createElement(reactSocialIcons_1, {
174
- url: partnerDetails.youtube,
175
- target: '_blank',
176
- rel: 'noopener noreferrer',
177
- style: { height: 30, width: 30, marginLeft: '0.25rem' }
178
- }),
179
- partnerDetails.twitter && partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, {
180
- url: partnerDetails.twitter,
181
- target: '_blank',
182
- rel: 'noopener noreferrer',
183
- style: { height: 30, width: 30, marginLeft: '0.25rem' }
184
- }),
185
- partnerDetails.facebook && !partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, {
186
- url: partnerDetails.facebook,
187
- target: '_blank',
188
- rel: 'noopener noreferrer',
189
- style: { height: 30, width: 30, marginLeft: '0.25rem' }
190
- })
174
+ partnerDetails.youtube && partnerDetails.youtubeIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.youtube, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }),
175
+ partnerDetails.twitter && partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.twitter, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }),
176
+ partnerDetails.facebook && !partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } })
191
177
  )
192
178
  )
193
179
  ),
@@ -244,7 +230,8 @@ var PartnerDetails = function PartnerDetails(_ref) {
244
230
  defaultImage: Settings.logo,
245
231
  showPublished: true,
246
232
  showCategory: true,
247
- pageview: pageview
233
+ pageview: pageview,
234
+ nextPagePostsCount: nextPagePostsCount
248
235
  })
249
236
  )
250
237
  )
@@ -255,7 +242,7 @@ PartnerDetails.returnGetInitialProps = function () {
255
242
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(identifier, partnerPageUrl, partnerDocumentGroupID, params, currentPage, client) {
256
243
  var category = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
257
244
 
258
- var today, featureQuery, partnerQuery, taxonomyQuery, _ref3, _ref4, features, partnerDetails, taxonomyDetails, articlesQuery, articles;
245
+ var today, featureQuery, partnerQuery, taxonomyQuery, _ref3, _ref4, features, partnerDetails, taxonomyDetails, articlesQuery, itemsPerPage, articles, nextPagePostsCount;
259
246
 
260
247
  return regenerator.wrap(function _callee$(_context) {
261
248
  while (1) {
@@ -288,12 +275,17 @@ PartnerDetails.returnGetInitialProps = function () {
288
275
  partnerDetails = _ref4[1];
289
276
  taxonomyDetails = _ref4[2];
290
277
  articlesQuery = '*[_type == \'article\' && !(_id in path("drafts.**")) && defined(title) && is_visible == true && defined(url) && dateTime(published) <= dateTime(\'' + today + '\') && passwordLocked != true && references(\'' + taxonomyDetails.id + '\')] | order(published desc)[$from...$to]{\n title,\n summary,\n thumbnail{ ..., asset-> },\n url,\n published,\n contentCategory->,\n \'pageNumber\': ' + currentPage + '\n }';
291
- _context.next = 16;
278
+ itemsPerPage = params.itemsPerPage ? params.itemsPerPage : params.from && params.to ? parseInt(params.to) - parseInt(params.from) : 10;
279
+ _context.next = 17;
292
280
  return client.fetch(articlesQuery, params);
293
281
 
294
- case 16:
282
+ case 17:
295
283
  articles = _context.sent;
284
+ _context.next = 20;
285
+ return client.fetch('count(' + articlesQuery + ')', _extends({}, params, { from: params.to, to: params.to + itemsPerPage }));
296
286
 
287
+ case 20:
288
+ nextPagePostsCount = _context.sent;
297
289
 
298
290
  // need to exclude slideshows from body due to the affiliate slider
299
291
  if (partnerDetails && partnerDetails.description) {
@@ -302,9 +294,19 @@ PartnerDetails.returnGetInitialProps = function () {
302
294
  });
303
295
  }
304
296
 
305
- return _context.abrupt('return', { articles: articles, taxonomyDetails: taxonomyDetails, partnerDetails: category ? partnerDetails.partner : partnerDetails, features: features, featureQuery: featureQuery, partnerQuery: partnerQuery, taxonomyQuery: taxonomyQuery, articlesQuery: articlesQuery });
297
+ return _context.abrupt('return', {
298
+ articles: articles,
299
+ taxonomyDetails: taxonomyDetails,
300
+ partnerDetails: category ? partnerDetails.partner : partnerDetails,
301
+ features: features,
302
+ featureQuery: featureQuery,
303
+ partnerQuery: partnerQuery,
304
+ taxonomyQuery: taxonomyQuery,
305
+ articlesQuery: articlesQuery,
306
+ nextPagePostsCount: nextPagePostsCount
307
+ });
306
308
 
307
- case 19:
309
+ case 23:
308
310
  case 'end':
309
311
  return _context.stop();
310
312
  }
@@ -317,4 +319,4 @@ PartnerDetails.returnGetInitialProps = function () {
317
319
  };
318
320
  }();
319
321
 
320
- export { PartnerDetails as default };
322
+ export default PartnerDetails;
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
11
11
  import Breadcrumbs from './Breadcrumbs.js';
12
12
  import Feature from './Feature.js';
13
13
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-8f118089.js';
14
+ import { g as getSerializers } from './index-264bbd3c.js';
15
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -31,7 +31,7 @@ import 'react-dom';
31
31
  import './lodash-f97fd99a.js';
32
32
  import './main-1894c974.js';
33
33
  import './entities-6d9154b4.js';
34
- import './ADInfeed-5765a73a.js';
34
+ import './ADInfeed-6d1fc6bf.js';
35
35
  import 'react-bootstrap/Card';
36
36
  import './AdSlot.js';
37
37
  import './debounce-533d9748.js';
@@ -41,10 +41,11 @@ import './Beam.js';
41
41
  import './stringify-2b084bee.js';
42
42
  import './Segment.js';
43
43
  import './AuthorComponent-11adff02.js';
44
- import './ADlgInfeed-5e36f317.js';
44
+ import './ADlgInfeed-dc36c928.js';
45
45
  import './getContentCategory-15dcc413.js';
46
46
  import './timeDifferenceCalc.js';
47
- import './Pagination-dc30727b.js';
47
+ import './Pagination-cd21f8c2.js';
48
+ import 'react-paginate';
48
49
  import 'react-bootstrap/Button';
49
50
  import './index.esm-1bd8a0a8.js';
50
51
  import './iconBase-ccc56b97.js';
@@ -310,4 +311,4 @@ PartnerDetails.returnGetInitialProps = function () {
310
311
  };
311
312
  }();
312
313
 
313
- export { PartnerDetails as default };
314
+ export default PartnerDetails;
@@ -19,4 +19,4 @@ var PdfDownload = function PdfDownload(props) {
19
19
  );
20
20
  };
21
21
 
22
- export { PdfDownload as default };
22
+ export default PdfDownload;
@@ -48,4 +48,4 @@ var PopUpModal = function PopUpModal(props) {
48
48
  );
49
49
  };
50
50
 
51
- export { PopUpModal as default };
51
+ export default PopUpModal;
@@ -24,7 +24,7 @@ import 'next/router';
24
24
  import './index-755f2cc2.js';
25
25
  import './main-1894c974.js';
26
26
  import './entities-6d9154b4.js';
27
- import './ADInfeed-5765a73a.js';
27
+ import './ADInfeed-6d1fc6bf.js';
28
28
  import 'react-bootstrap/Card';
29
29
  import './AdSlot.js';
30
30
  import './debounce-533d9748.js';
@@ -35,7 +35,7 @@ import './stringify-2b084bee.js';
35
35
  import './Segment.js';
36
36
  import './AuthorComponent-11adff02.js';
37
37
  import './lodash-f97fd99a.js';
38
- import './ADlgInfeed-5e36f317.js';
38
+ import './ADlgInfeed-dc36c928.js';
39
39
  import './getContentCategory-15dcc413.js';
40
40
  import './timeDifferenceCalc.js';
41
41
 
@@ -112,4 +112,4 @@ PubSection.getInitialProps = function () {
112
112
  };
113
113
  }();
114
114
 
115
- export { PubSection as default };
115
+ export default PubSection;
@@ -78,4 +78,4 @@ PubToc.getInitialProps = function () {
78
78
  };
79
79
  }();
80
80
 
81
- export { PubToc as default };
81
+ export default PubToc;
@@ -170,4 +170,4 @@ var PublicationDeck = function PublicationDeck(props) {
170
170
  }
171
171
  };
172
172
 
173
- export { PublicationDeck as default };
173
+ export default PublicationDeck;
@@ -844,4 +844,4 @@ _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
844
844
  );
845
845
  };
846
846
 
847
- export { PublicationLanding as default };
847
+ export default PublicationLanding;
@@ -12,10 +12,10 @@ import { useRouter } from 'next/router';
12
12
  import { L as LazyLoad } from './index-755f2cc2.js';
13
13
  import { m as main_43 } from './main-1894c974.js';
14
14
  import { c as clean_html_1 } from './entities-6d9154b4.js';
15
- import { A as ADInfeed } from './ADInfeed-5765a73a.js';
15
+ import { A as ADInfeed } from './ADInfeed-6d1fc6bf.js';
16
16
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
17
17
  import { l as lodash } from './lodash-f97fd99a.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-5e36f317.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-dc36c928.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -1532,4 +1532,4 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1532
1532
  );
1533
1533
  };
1534
1534
 
1535
- export { QueueDeckExpanded as default };
1535
+ export default QueueDeckExpanded;
@@ -11,13 +11,13 @@ import { L as LazyLoad } from './index-755f2cc2.js';
11
11
  import { l as lodash } from './lodash-f97fd99a.js';
12
12
  import { m as main_43 } from './main-1894c974.js';
13
13
  import { c as clean_html_1 } from './entities-6d9154b4.js';
14
- import { A as ADInfeed } from './ADInfeed-5765a73a.js';
14
+ import { A as ADInfeed } from './ADInfeed-6d1fc6bf.js';
15
15
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
16
- import { A as ADlgInfeed } from './ADlgInfeed-5e36f317.js';
16
+ import { A as ADlgInfeed } from './ADlgInfeed-dc36c928.js';
17
17
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
18
18
  import timeDifferenceCalc from './timeDifferenceCalc.js';
19
19
  import urlFor from './urlFor.js';
20
- import { P as Pagination } from './Pagination-dc30727b.js';
20
+ import { P as Pagination } from './Pagination-cd21f8c2.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
22
22
  import './core.get-iterator-method-ea258bb1.js';
23
23
  import './web.dom.iterable-ab4dea5c.js';
@@ -36,6 +36,7 @@ import './Beam.js';
36
36
  import './stringify-2b084bee.js';
37
37
  import './Segment.js';
38
38
  import './index-3f5c03b2.js';
39
+ import 'react-paginate';
39
40
  import 'react-bootstrap/Button';
40
41
  import './index.esm-1bd8a0a8.js';
41
42
  import './iconBase-ccc56b97.js';
@@ -1379,4 +1380,4 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1379
1380
  );
1380
1381
  };
1381
1382
 
1382
- export { QueueDeckExpanded as default };
1383
+ export default QueueDeckExpanded;
@@ -82,4 +82,4 @@ var RecentNews = function RecentNews(_ref) {
82
82
  );
83
83
  };
84
84
 
85
- export { RecentNews as default };
85
+ export default RecentNews;
@@ -105,4 +105,4 @@ var RelatedContent = function RelatedContent(props) {
105
105
  );
106
106
  };
107
107
 
108
- export { RelatedContent as default };
108
+ export default RelatedContent;
@@ -79,4 +79,4 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
79
79
  }
80
80
  };
81
81
 
82
- export { RelatedTopicsDropdown as default };
82
+ export default RelatedTopicsDropdown;
@@ -81,4 +81,4 @@ var RolesDeck = function RolesDeck(props) {
81
81
  );
82
82
  };
83
83
 
84
- export { RolesDeck as default };
84
+ export default RolesDeck;
@@ -92,4 +92,4 @@ var Schema = function Schema(props) {
92
92
  return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
93
93
  };
94
94
 
95
- export { Schema as default };
95
+ export default Schema;
@@ -54,4 +54,4 @@ var Search = function Search(props) {
54
54
  );
55
55
  };
56
56
 
57
- export { Search as default };
57
+ export default Search;
@@ -1,4 +1,4 @@
1
- import { a as _Promise, _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import './_commonjsHelpers-0c4b6f40.js';
3
3
  import './core.get-iterator-method-ea258bb1.js';
4
4
  import './web.dom.iterable-ab4dea5c.js';
@@ -38,55 +38,6 @@ var Segment = {
38
38
  email: email
39
39
  });
40
40
  },
41
- identifyWithGroupAndEmail: function identifyWithGroupAndEmail(groupId, email, anonId) {
42
- if (typeof analytics === 'undefined') {
43
- console.error('Segment not initialized', analytics);
44
- return;
45
- }
46
-
47
- // let buff = Buffer.from(email, 'ascii')
48
- // const eKey = buff.toString('base64')
49
-
50
- analytics.identify(anonId, {
51
- groupId: groupId,
52
- email: email
53
- });
54
- },
55
- createGroup: function createGroup(groupId, anonId, groupName) {
56
- if (typeof analytics === 'undefined') {
57
- console.error('Segment not initialized', analytics);
58
- return;
59
- }
60
-
61
- var buff = Buffer.from(groupId, 'ascii');
62
- console.log('buff', buff);
63
-
64
- var eKey = buff.toString('base64');
65
- console.log('eKey', eKey);
66
- _Promise.resolve(analytics.group(groupId, {
67
- anonymousId: anonId,
68
- name: groupName
69
- })).then(function (data) {
70
- return console.log('data', data);
71
- }).catch(function (e) {
72
- return console.log('Error: ' + e);
73
- });
74
- },
75
- identifyWithGroup: function identifyWithGroup(groupId, anonId) {
76
- if (!groupId) {
77
- throw new Error('Argument is not present');
78
- }
79
-
80
- if (typeof analytics === 'undefined') {
81
- console.error('Segment not initialized', analytics);
82
- return;
83
- }
84
- _Promise.resolve(analytics.identify(anonId, {
85
- groupId: groupId
86
- })).then(function (res) {
87
- return console.log('response', res);
88
- });
89
- },
90
41
  getURL: function getURL(url) {
91
42
  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
92
43
 
@@ -447,4 +398,4 @@ var Segment = {
447
398
  }
448
399
  };
449
400
 
450
- export { Segment as default };
401
+ export default Segment;
@@ -240,4 +240,4 @@ var SeriesListingDeck = function SeriesListingDeck(props) {
240
240
  );
241
241
  };
242
242
 
243
- export { SeriesListingDeck as default };
243
+ export default SeriesListingDeck;
@@ -5,4 +5,4 @@ var SetCookie = function SetCookie(key, value) {
5
5
  js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
6
6
  };
7
7
 
8
- export { SetCookie as default };
8
+ export default SetCookie;
@@ -142,4 +142,4 @@ var SideFooter = function SideFooter(props) {
142
142
  );
143
143
  };
144
144
 
145
- export { SideFooter as default };
145
+ export default SideFooter;
@@ -94,4 +94,4 @@ var SocialIcons = function SocialIcons(props) {
94
94
  }
95
95
  };
96
96
 
97
- export { SocialIcons as default };
97
+ export default SocialIcons;
@@ -64,4 +64,4 @@ var SocialShare = function SocialShare(props) {
64
64
 
65
65
  var SocialShare$1 = React__default.memo(SocialShare);
66
66
 
67
- export { SocialShare$1 as default };
67
+ export default SocialShare$1;
@@ -240,4 +240,4 @@ var TaxonomyCard = function TaxonomyCard(props) {
240
240
  );
241
241
  };
242
242
 
243
- export { TaxonomyCard as default };
243
+ export default TaxonomyCard;
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
5
5
  import { useRouter } from 'next/router';
6
6
  import Head from 'next/head';
7
7
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
8
- import { g as getSerializers } from './index-8f118089.js';
8
+ import { g as getSerializers } from './index-264bbd3c.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './_object-pie-133f504a.js';
@@ -197,4 +197,4 @@ TaxonomyDescription.getDescription = function () {
197
197
  };
198
198
  }();
199
199
 
200
- export { TaxonomyDescription as default };
200
+ export default TaxonomyDescription;
@@ -195,4 +195,4 @@ var TemplateNormal = function TemplateNormal(props) {
195
195
  );
196
196
  };
197
197
 
198
- export { TemplateNormal as default };
198
+ export default TemplateNormal;
@@ -49,4 +49,4 @@ var ThumbnailCard = function ThumbnailCard(_ref) {
49
49
  );
50
50
  };
51
51
 
52
- export { ThumbnailCard as default };
52
+ export default ThumbnailCard;
@@ -147,4 +147,4 @@ var Ustream = function Ustream(_ref) {
147
147
 
148
148
  var Ustream$1 = React__default.memo(Ustream);
149
149
 
150
- export { Ustream$1 as default };
150
+ export default Ustream$1;
@@ -65,4 +65,4 @@ var VerticalHero = function VerticalHero(props) {
65
65
  );
66
66
  };
67
67
 
68
- export { VerticalHero as default };
68
+ export default VerticalHero;
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-8f118089.js';
8
+ import { g as getSerializers } from './index-264bbd3c.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
@@ -250,4 +250,4 @@ VideoProgramLandingPage.getInitialData = function () {
250
250
  };
251
251
  }();
252
252
 
253
- export { VideoProgramLandingPage as default };
253
+ export default VideoProgramLandingPage;
@@ -79,4 +79,4 @@ var VideoSeriesCard = function VideoSeriesCard(props) {
79
79
  );
80
80
  };
81
81
 
82
- export { VideoSeriesCard as default };
82
+ export default VideoSeriesCard;
@@ -119,4 +119,4 @@ var VideoSeriesFilter = function VideoSeriesFilter(props) {
119
119
  };
120
120
  var VideoSeriesFilter$1 = withRouter(VideoSeriesFilter);
121
121
 
122
- export { VideoSeriesFilter$1 as default };
122
+ export default VideoSeriesFilter$1;