@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.
- package/dist/cjs/AlgoliaSearch.js +18 -142
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ArticleSeriesLandingPage.js +2 -2
- package/dist/cjs/Auth.js +17 -20
- package/dist/cjs/AuthWrapper.js +12 -18
- package/dist/cjs/CMEDeck.js +1 -5
- package/dist/cjs/Column1.js +1 -1
- package/dist/cjs/Column2.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ContentCardPaginated.js +3 -2
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueuePaginated.js +2 -1
- package/dist/cjs/Dfp-9be904d5.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/GridContentPaginated.js +4 -3
- package/dist/cjs/HamMagazine.js +1 -1
- package/dist/cjs/Header.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +3 -3
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +2 -2
- package/dist/cjs/MasterDeckPaginated.js +4 -3
- package/dist/cjs/{MediaSeriesCard-91982ed5.js → MediaSeriesCard-5bf9813e.js} +43 -65
- package/dist/cjs/MediaSeriesLanding.js +4 -4
- package/dist/cjs/MediaSeriesLandingPaginated.js +6 -5
- package/dist/cjs/NavDvm.js +1 -1
- package/dist/cjs/NavMagazine.js +1 -1
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +30 -28
- package/dist/cjs/PartnerDetailListingPaginated.js +5 -4
- package/dist/cjs/PubSection.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +2 -2
- package/dist/cjs/QueueDeckExpandedPaginated.js +4 -3
- package/dist/cjs/Segment.js +0 -49
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +2 -2
- package/dist/cjs/View.js +55 -144
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/index.js +4 -3
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AccordionPanel.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +20 -144
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +2 -2
- package/dist/esm/ArticleSeriesLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +18 -20
- package/dist/esm/AuthWrapper.js +13 -19
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/CMEDeck.js +2 -6
- package/dist/esm/Column1.js +2 -1
- package/dist/esm/Column2.js +2 -1
- package/dist/esm/Column3.js +2 -1
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/ContentCardPaginated.js +4 -3
- package/dist/esm/DeckContent.js +2 -2
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +3 -2
- package/dist/esm/Dfp-102f0beb.js +1 -1
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +2 -2
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/GridContentPaginated.js +5 -4
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +2 -1
- package/dist/esm/Header.js +2 -1
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +2 -2
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +4 -4
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +2 -1
- package/dist/esm/MasterDeck.js +3 -3
- package/dist/esm/MasterDeckPaginated.js +5 -4
- package/dist/esm/{MediaSeriesCard-da5c7499.js → MediaSeriesCard-305a9cb3.js} +43 -65
- package/dist/esm/MediaSeriesLanding.js +5 -5
- package/dist/esm/MediaSeriesLandingPaginated.js +7 -6
- package/dist/esm/NavDvm.js +2 -1
- package/dist/esm/NavMagazine.js +2 -1
- package/dist/esm/NavNative.js +2 -1
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PageFilter.js +1 -1
- package/dist/esm/Pagination-cd21f8c2.js +82 -0
- package/dist/esm/PartnerDetailListing.js +31 -29
- package/dist/esm/PartnerDetailListingPaginated.js +6 -5
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +1 -1
- package/dist/esm/PubSection.js +3 -3
- package/dist/esm/PubToc.js +1 -1
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/QueueDeckExpandedPaginated.js +5 -4
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/RelatedTopicsDropdown.js +1 -1
- package/dist/esm/RolesDeck.js +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/Search.js +1 -1
- package/dist/esm/Segment.js +2 -51
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +1 -1
- package/dist/esm/SocialIcons.js +1 -1
- package/dist/esm/SocialShare.js +1 -1
- package/dist/esm/TaxonomyCard.js +1 -1
- package/dist/esm/TaxonomyDescription.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +2 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -3
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +55 -145
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/ustream-api-d3714624.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Pagination-2a3d0103.js +0 -97
- package/dist/esm/Pagination-dc30727b.js +0 -90
- /package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-81006615.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-0db07099.js} +0 -0
- /package/dist/cjs/{index-f064c482.js → index-eb1c583d.js} +0 -0
- /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-6d1fc6bf.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-dc36c928.js} +0 -0
- /package/dist/esm/{index-8f118089.js → index-264bbd3c.js} +0 -0
package/dist/esm/NavDvm.js
CHANGED
package/dist/esm/NavMagazine.js
CHANGED
package/dist/esm/NavNative.js
CHANGED
package/dist/esm/OncliveHero.js
CHANGED
package/dist/esm/PageFilter.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
175
|
-
|
|
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
|
-
|
|
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
|
|
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', {
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
44
|
+
import './ADlgInfeed-dc36c928.js';
|
|
45
45
|
import './getContentCategory-15dcc413.js';
|
|
46
46
|
import './timeDifferenceCalc.js';
|
|
47
|
-
import './Pagination-
|
|
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
|
|
314
|
+
export default PartnerDetails;
|
package/dist/esm/PdfDownload.js
CHANGED
package/dist/esm/PopUpModal.js
CHANGED
package/dist/esm/PubSection.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
|
115
|
+
export default PubSection;
|
package/dist/esm/PubToc.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
1383
|
+
export default QueueDeckExpanded;
|
package/dist/esm/RecentNews.js
CHANGED
package/dist/esm/RolesDeck.js
CHANGED
package/dist/esm/Schema.js
CHANGED
package/dist/esm/Search.js
CHANGED
package/dist/esm/Segment.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
401
|
+
export default Segment;
|
package/dist/esm/SetCookie.js
CHANGED
package/dist/esm/SideFooter.js
CHANGED
package/dist/esm/SocialIcons.js
CHANGED
package/dist/esm/SocialShare.js
CHANGED
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -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-
|
|
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
|
|
200
|
+
export default TaxonomyDescription;
|
package/dist/esm/Ustream.js
CHANGED
package/dist/esm/VerticalHero.js
CHANGED
|
@@ -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-
|
|
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
|
|
253
|
+
export default VideoProgramLandingPage;
|