@mjhls/mjh-framework 1.0.994-CypressV3 → 1.0.994-invalidelement-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -5
- package/dist/cjs/AD300x250x600.js +5 -5
- package/dist/cjs/AD728x90.js +6 -6
- package/dist/cjs/ADFloatingFooter.js +8 -8
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -8
- package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-f316b66a.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +8 -8
- package/dist/cjs/ADSponsoredResources.js +8 -8
- package/dist/cjs/ADWebcast.js +8 -8
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-2003306e.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -9
- package/dist/cjs/AdSlotsProvider.js +7 -8
- package/dist/cjs/AlgoliaSearch.js +1214 -1129
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +16 -16
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
- package/dist/cjs/ArticleSeriesListing.js +29 -29
- package/dist/cjs/Auth.js +23075 -242
- package/dist/cjs/AuthWrapper.js +120 -30
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +27 -27
- package/dist/cjs/ConferenceArticleCard.js +27 -27
- package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -49
- package/dist/cjs/DeckContent.js +66 -66
- package/dist/cjs/DeckQueue.js +57 -57
- package/dist/cjs/DeckQueuePaginated.js +46 -46
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-c313a700.js} +17 -17
- package/dist/cjs/EventsDeck.js +107 -107
- package/dist/cjs/ExternalResources.js +36 -36
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -134
- package/dist/cjs/GridContentPaginated.js +121 -121
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +130 -130
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +18 -18
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +30 -30
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-6c00b878.js → ImageSlider-ca708da8.js} +1315 -176
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +50 -50
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +17 -17
- package/dist/cjs/MasterDeck.js +47 -47
- package/dist/cjs/MasterDeckPaginated.js +37 -37
- package/dist/cjs/{Tooltip-f075b7ef.js → MediaSeriesCard-f6db8f70.js} +678 -531
- package/dist/cjs/MediaSeriesLanding.js +56 -57
- package/dist/cjs/MediaSeriesLandingPaginated.js +54 -55
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-4799de4b.js → NavFooter-880e9d87.js} +11 -11
- package/dist/cjs/NavMagazine.js +116 -116
- package/dist/cjs/NavNative.js +106 -106
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-2a3d0103.js → Pagination-6359861a.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +52 -53
- package/dist/cjs/PartnerDetailListingPaginated.js +50 -73
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -13
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-a989a2b3.js} +29 -29
- package/dist/cjs/PublicationLanding.js +99 -99
- package/dist/cjs/QueueDeckExpanded.js +245 -245
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -222
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +42 -42
- package/dist/cjs/RelatedTopicsDropdown.js +24 -24
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +55 -52
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -18
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-f5248377.js} +26 -26
- package/dist/cjs/SideFooter.js +20 -20
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-d2ab3d62.js → SocialSearchComponent-ca9c0c45.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +13 -13
- package/dist/cjs/TemplateNormal.js +27 -27
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +30 -30
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -11
- package/dist/cjs/VideoSeriesListing.js +46 -46
- package/dist/cjs/View.js +261 -274
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +37 -37
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
- package/dist/cjs/defineProperty-ad65f5f0.js +110 -0
- package/dist/{esm/util-8ed16d48.js → cjs/empty-559717f3.js} +146 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +8 -8
- package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-4439c99d.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-be4097c0.js +2 -4
- package/dist/cjs/index-0cf4c9fc.js +904 -0
- package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/{index-50be6759.js → index-9ec837cc.js} +9 -25
- package/dist/cjs/{index-f95a3c0f.js → index-b10d6863.js} +495 -511
- package/dist/cjs/{index-fc2f1ca2.js → index-d2a6ef75.js} +4 -4
- package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
- package/dist/cjs/{index.esm-1461604c.js → index.esm-f59ef5b4.js} +14 -14
- package/dist/cjs/index.js +106 -111
- package/dist/cjs/{main-f1c77adb.js → main-6054981e.js} +17 -22
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.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/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/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlgoliaSearch.js +643 -558
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +22999 -163
- package/dist/esm/AuthWrapper.js +93 -3
- package/dist/esm/CMEDeck.js +1 -1
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +3 -3
- package/dist/esm/DeckContent.js +10 -10
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +2 -2
- package/dist/esm/EventsDeck.js +19 -19
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/GridContentPaginated.js +4 -4
- package/dist/esm/HamMagazine.js +29 -29
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +4 -4
- package/dist/esm/{ImageSlider-f84174cb.js → ImageSlider-fada4f0c.js} +1257 -119
- package/dist/esm/IssueLanding.js +35 -35
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +11 -11
- package/dist/esm/MasterDeckPaginated.js +12 -12
- package/dist/esm/{Tooltip-95655b44.js → MediaSeriesCard-96ac8ed4.js} +396 -250
- package/dist/esm/MediaSeriesLanding.js +18 -19
- package/dist/esm/MediaSeriesLandingPaginated.js +18 -19
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +10 -10
- package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +8 -9
- package/dist/esm/PartnerDetailListingPaginated.js +16 -39
- package/dist/esm/PubSection.js +3 -3
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Schema.js +55 -52
- package/dist/esm/SeriesListingDeck.js +2 -2
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-4875823e.js} +5 -5
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-165b4ae7.js → SocialSearchComponent-68d948b9.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +4 -4
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +4 -4
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -3
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +45 -58
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/defineProperty-50094484.js +101 -0
- package/dist/{cjs/util-93a37fd0.js → esm/empty-a8042e3c.js} +135 -3
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{getTargeting-9bd28724.js → getTargeting-c6884f34.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-04817712.js → index-076baa11.js} +12 -27
- package/dist/esm/{index-98ca9cec.js → index-0ce54f8a.js} +10 -25
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/index-e7075467.js +897 -0
- package/dist/esm/index.js +13 -18
- package/dist/esm/{main-1894c974.js → main-9f6806ea.js} +4 -9
- package/package.json +115 -115
- package/dist/cjs/CypressTesting.js +0 -53
- package/dist/cjs/MediaSeriesCard-2e5cd247.js +0 -81
- package/dist/cjs/PodcastsLanding.js +0 -235
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/CypressTesting.js +0 -47
- package/dist/esm/MediaSeriesCard-afb517a5.js +0 -75
- package/dist/esm/PodcastsLanding.js +0 -228
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-777bb0b3.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-e7fd1bb6.js} +0 -0
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
|
|
2
|
-
import { _ as _extends } from './extends-6d8e3924.js';
|
|
3
|
-
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
4
|
-
import React__default, { useState } from 'react';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
import MasterDeck from './MasterDeck.js';
|
|
7
|
-
import { M as MediaSeriesCard } from './MediaSeriesCard-afb517a5.js';
|
|
8
|
-
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
9
|
-
import { g as getSerializers } from './index-04817712.js';
|
|
10
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import './core.get-iterator-method-ea258bb1.js';
|
|
12
|
-
import './web.dom.iterable-ab4dea5c.js';
|
|
13
|
-
import './_library-528f1934.js';
|
|
14
|
-
import './_iter-detect-98db3b07.js';
|
|
15
|
-
import './_object-pie-133f504a.js';
|
|
16
|
-
import './toConsumableArray-f7074d7c.js';
|
|
17
|
-
import './inherits-a6ba2ec4.js';
|
|
18
|
-
import './_object-sap-7cee6f84.js';
|
|
19
|
-
import './define-property-5f1bda73.js';
|
|
20
|
-
import './typeof-e9fc0c5d.js';
|
|
21
|
-
import './_is-array-8d21b9e3.js';
|
|
22
|
-
import './index-f0fc23eb.js';
|
|
23
|
-
import './events-6c3a7a63.js';
|
|
24
|
-
import 'prop-types';
|
|
25
|
-
import 'react-bootstrap/Container';
|
|
26
|
-
import 'react-bootstrap/Row';
|
|
27
|
-
import 'react-bootstrap/Col';
|
|
28
|
-
import 'react-bootstrap/Card';
|
|
29
|
-
import './moment-bc12cb97.js';
|
|
30
|
-
import 'next/router';
|
|
31
|
-
import './lodash-f97fd99a.js';
|
|
32
|
-
import './debounce-533d9748.js';
|
|
33
|
-
import './isSymbol-a7e9aafe.js';
|
|
34
|
-
import './toNumber-5aeba6e7.js';
|
|
35
|
-
import './index.es-a6137319.js';
|
|
36
|
-
import './visibility-sensor-72fd8f8b.js';
|
|
37
|
-
import 'react-dom';
|
|
38
|
-
import './index-3f5c03b2.js';
|
|
39
|
-
import './ADlgInfeed-5e36f317.js';
|
|
40
|
-
import './AdSlot.js';
|
|
41
|
-
import './Beam.js';
|
|
42
|
-
import './stringify-2b084bee.js';
|
|
43
|
-
import './Segment.js';
|
|
44
|
-
import './main-1894c974.js';
|
|
45
|
-
import './ADInfeed-5765a73a.js';
|
|
46
|
-
import './index-755f2cc2.js';
|
|
47
|
-
import './urlFor.js';
|
|
48
|
-
import './style-inject.es-1f59c1d0.js';
|
|
49
|
-
import 'react-bootstrap';
|
|
50
|
-
import './index-c7e2ac95.js';
|
|
51
|
-
import './util-8ed16d48.js';
|
|
52
|
-
import './urlForFile-b69adffc.js';
|
|
53
|
-
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
54
|
-
import 'react-bootstrap/Modal';
|
|
55
|
-
import 'react-bootstrap/Button';
|
|
56
|
-
import 'react-bootstrap/Form';
|
|
57
|
-
import 'react-ga';
|
|
58
|
-
import './GroupDeck.js';
|
|
59
|
-
import './smoothscroll-fa4e3f8c.js';
|
|
60
|
-
import './SocialShare.js';
|
|
61
|
-
import 'next/head';
|
|
62
|
-
import 'react-share';
|
|
63
|
-
import './_object-to-array-2300e51b.js';
|
|
64
|
-
import 'react-bootstrap/Pagination';
|
|
65
|
-
import './entities-6d9154b4.js';
|
|
66
|
-
import './index.esm-eb1e8e80.js';
|
|
67
|
-
import './iconBase-ccc56b97.js';
|
|
68
|
-
import 'react-bootstrap/Figure';
|
|
69
|
-
import 'react-bootstrap/OverlayTrigger';
|
|
70
|
-
import 'react-bootstrap/Tooltip';
|
|
71
|
-
import 'react-bootstrap/Popover';
|
|
72
|
-
import './checkSisterSite-baa4fb6b.js';
|
|
73
|
-
|
|
74
|
-
var _this = undefined;
|
|
75
|
-
|
|
76
|
-
var PodcastsLanding = function PodcastsLanding(props) {
|
|
77
|
-
var client = props.client,
|
|
78
|
-
pageview = props.pageview,
|
|
79
|
-
currentPage = props.currentPage;
|
|
80
|
-
props.taxonomyId;
|
|
81
|
-
props.parentUrl;
|
|
82
|
-
var nextPagePostsCount = props.nextPagePostsCount;
|
|
83
|
-
|
|
84
|
-
var _useState = useState(props.seriesData),
|
|
85
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
86
|
-
seriesData = _useState2[0];
|
|
87
|
-
_useState2[1];
|
|
88
|
-
|
|
89
|
-
var _useState3 = useState(props.params),
|
|
90
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
91
|
-
params = _useState4[0];
|
|
92
|
-
_useState4[1];
|
|
93
|
-
|
|
94
|
-
var _useState5 = useState(props.query),
|
|
95
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
96
|
-
query = _useState6[0];
|
|
97
|
-
_useState6[1];
|
|
98
|
-
|
|
99
|
-
if (props.statusCode === 404) {
|
|
100
|
-
return React__default.createElement(
|
|
101
|
-
'div',
|
|
102
|
-
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
103
|
-
React__default.createElement(
|
|
104
|
-
'h3',
|
|
105
|
-
null,
|
|
106
|
-
'404: Resource not found'
|
|
107
|
-
),
|
|
108
|
-
React__default.createElement(
|
|
109
|
-
'p',
|
|
110
|
-
null,
|
|
111
|
-
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
112
|
-
),
|
|
113
|
-
React__default.createElement(
|
|
114
|
-
'p',
|
|
115
|
-
null,
|
|
116
|
-
'Click here to',
|
|
117
|
-
React__default.createElement(
|
|
118
|
-
Link,
|
|
119
|
-
{ href: '/' },
|
|
120
|
-
React__default.createElement(
|
|
121
|
-
'a',
|
|
122
|
-
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
123
|
-
' return to homepage.'
|
|
124
|
-
)
|
|
125
|
-
)
|
|
126
|
-
)
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return React__default.createElement(
|
|
131
|
-
'div',
|
|
132
|
-
{ className: 'mb-5' },
|
|
133
|
-
props.taxonomy && props.taxonomy.summary && React__default.createElement(BlockContent, { style: { marginTop: '1rem !important' }, blocks: props.taxonomy.summary, serializers: getSerializers(client) }),
|
|
134
|
-
React__default.createElement('hr', { style: { marginTop: '2rem', marginBottom: '2rem' } }),
|
|
135
|
-
seriesData && React__default.createElement(MasterDeck, {
|
|
136
|
-
deck: MediaSeriesCard,
|
|
137
|
-
variant: 'left',
|
|
138
|
-
defaultImage: '/placeholder.jpg',
|
|
139
|
-
client: client,
|
|
140
|
-
dataRecord: seriesData,
|
|
141
|
-
query: query && query,
|
|
142
|
-
params: params && params,
|
|
143
|
-
currentPage: currentPage,
|
|
144
|
-
pageview: pageview,
|
|
145
|
-
autoScroll: true,
|
|
146
|
-
seoPaginate: true,
|
|
147
|
-
nextPagePostsCount: nextPagePostsCount
|
|
148
|
-
})
|
|
149
|
-
);
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
PodcastsLanding.getInitialData = function () {
|
|
153
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(ctx, client, cache) {
|
|
154
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, taxonomyId, seriesQuery, seriesData, nextPagePostsCount;
|
|
155
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
156
|
-
while (1) {
|
|
157
|
-
switch (_context.prev = _context.next) {
|
|
158
|
-
case 0:
|
|
159
|
-
urlQuery = ctx.query, pathname = ctx.pathname;
|
|
160
|
-
identifier = pathname.replace('/', '');
|
|
161
|
-
itemsPerPage = 10;
|
|
162
|
-
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
163
|
-
start = (currentPage - 1) * itemsPerPage;
|
|
164
|
-
statusCode = 200;
|
|
165
|
-
params = {
|
|
166
|
-
count: itemsPerPage,
|
|
167
|
-
from: start,
|
|
168
|
-
to: start + itemsPerPage,
|
|
169
|
-
url: pathname,
|
|
170
|
-
itemsPerPage: itemsPerPage
|
|
171
|
-
};
|
|
172
|
-
_context.next = 9;
|
|
173
|
-
return client.fetch('*[_type == \'taxonomy\' && identifier == \'' + identifier + '\'][0]{\n _id, \n name,\n summary,\n pixelTrackingCode->\n }');
|
|
174
|
-
|
|
175
|
-
case 9:
|
|
176
|
-
taxonomyId = _context.sent;
|
|
177
|
-
|
|
178
|
-
// const taxonomyId = await client.fetch(`*[_type == 'taxonomy' && _id == '6d748e0d-7946-4a14-968e-ca8182f06c1e']`)
|
|
179
|
-
// console.log('taxonomyId', taxonomyId)
|
|
180
|
-
seriesQuery = '*[_type == \'taxonomy\' && isMainTopic == true && references(\'' + taxonomyId._id + '\')] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n thumbnail{ ..., asset-> },\n summary,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + identifier + '\'\n }';
|
|
181
|
-
_context.next = 13;
|
|
182
|
-
return client.fetch(seriesQuery, params);
|
|
183
|
-
|
|
184
|
-
case 13:
|
|
185
|
-
seriesData = _context.sent;
|
|
186
|
-
|
|
187
|
-
seriesData.forEach(function (seriesObj) {
|
|
188
|
-
seriesObj.description = seriesObj.summary;
|
|
189
|
-
seriesObj.identifier = { _type: 'slug', current: seriesObj.identifier };
|
|
190
|
-
});
|
|
191
|
-
_context.next = 17;
|
|
192
|
-
return client.fetch('count(' + seriesQuery + ')', _extends({}, params, { from: params.to, to: params.to + itemsPerPage }));
|
|
193
|
-
|
|
194
|
-
case 17:
|
|
195
|
-
nextPagePostsCount = _context.sent;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
if (currentPage > 1 && seriesData.length === 0) {
|
|
199
|
-
statusCode = 404;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
return _context.abrupt('return', {
|
|
203
|
-
seriesData: seriesData,
|
|
204
|
-
query: seriesQuery,
|
|
205
|
-
params: params,
|
|
206
|
-
currentPage: currentPage,
|
|
207
|
-
identifier: identifier,
|
|
208
|
-
taxonomyId: taxonomyId,
|
|
209
|
-
parentUrl: identifier,
|
|
210
|
-
statusCode: statusCode,
|
|
211
|
-
taxonomy: taxonomyId,
|
|
212
|
-
nextPagePostsCount: nextPagePostsCount
|
|
213
|
-
});
|
|
214
|
-
|
|
215
|
-
case 20:
|
|
216
|
-
case 'end':
|
|
217
|
-
return _context.stop();
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}, _callee, _this);
|
|
221
|
-
}));
|
|
222
|
-
|
|
223
|
-
return function (_x, _x2, _x3) {
|
|
224
|
-
return _ref.apply(this, arguments);
|
|
225
|
-
};
|
|
226
|
-
}();
|
|
227
|
-
|
|
228
|
-
export { PodcastsLanding as default };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
|
|
3
|
-
var asyncToGenerator = createCommonjsModule(function (module) {
|
|
4
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5
|
-
try {
|
|
6
|
-
var info = gen[key](arg);
|
|
7
|
-
var value = info.value;
|
|
8
|
-
} catch (error) {
|
|
9
|
-
reject(error);
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (info.done) {
|
|
14
|
-
resolve(value);
|
|
15
|
-
} else {
|
|
16
|
-
Promise.resolve(value).then(_next, _throw);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function _asyncToGenerator(fn) {
|
|
21
|
-
return function () {
|
|
22
|
-
var self = this,
|
|
23
|
-
args = arguments;
|
|
24
|
-
return new Promise(function (resolve, reject) {
|
|
25
|
-
var gen = fn.apply(self, args);
|
|
26
|
-
|
|
27
|
-
function _next(value) {
|
|
28
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function _throw(err) {
|
|
32
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
_next(undefined);
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
module.exports = _asyncToGenerator;
|
|
41
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
var _asyncToGenerator = unwrapExports(asyncToGenerator);
|
|
45
|
-
|
|
46
|
-
var defineProperty = createCommonjsModule(function (module) {
|
|
47
|
-
function _defineProperty(obj, key, value) {
|
|
48
|
-
if (key in obj) {
|
|
49
|
-
Object.defineProperty(obj, key, {
|
|
50
|
-
value: value,
|
|
51
|
-
enumerable: true,
|
|
52
|
-
configurable: true,
|
|
53
|
-
writable: true
|
|
54
|
-
});
|
|
55
|
-
} else {
|
|
56
|
-
obj[key] = value;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return obj;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
module.exports = _defineProperty;
|
|
63
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
var _defineProperty = unwrapExports(defineProperty);
|
|
67
|
-
|
|
68
|
-
export { _asyncToGenerator as _, _defineProperty as a, asyncToGenerator as b, defineProperty as d };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
|
|
3
|
-
var _typeof_1 = createCommonjsModule(function (module) {
|
|
4
|
-
function _typeof(obj) {
|
|
5
|
-
"@babel/helpers - typeof";
|
|
6
|
-
|
|
7
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
8
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
9
|
-
return typeof obj;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
13
|
-
} else {
|
|
14
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
15
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return _typeof(obj);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
module.exports = _typeof;
|
|
25
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
var _typeof = unwrapExports(_typeof_1);
|
|
29
|
-
|
|
30
|
-
export { _typeof as _, _typeof_1 as a };
|
|
File without changes
|
|
File without changes
|