@mjhls/mjh-framework 1.0.665-beta.4 → 1.0.666-ad-update-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.
- package/README.md +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleCarousel.js +3 -3
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/Auth.js +5 -5
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-80b15fac.js} +1 -1
- package/dist/cjs/CMEDeck.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/DeckContent.js +3 -3
- package/dist/cjs/DeckQueue.js +2 -2
- package/dist/cjs/{Dfp-f6a18ed2.js → Dfp-390337bf.js} +1 -1
- package/dist/cjs/EventsDeck.js +11 -3
- package/dist/cjs/ExternalResources.js +4 -4
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +5 -5
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +5 -5
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +13 -8
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +14 -14
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +5 -5
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +161 -260
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +1 -1
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-fa8ed292.js → index-099d45ae.js} +30 -21
- package/dist/cjs/{index-bc3e2d5c.js → index-0ba539e4.js} +451 -439
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/{index.esm-89fabc47.js → index.esm-ff47db6f.js} +10 -0
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/urlFor.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/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 +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/Auth.js +2 -2
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c409aca5.js} +1 -1
- package/dist/esm/CMEDeck.js +1 -1
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/DeckContent.js +3 -3
- package/dist/esm/DeckQueue.js +2 -2
- package/dist/esm/{Dfp-96b49def.js → Dfp-741c01be.js} +1 -1
- package/dist/esm/EventsDeck.js +11 -3
- package/dist/esm/ExternalResources.js +4 -4
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +5 -5
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +5 -5
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +13 -8
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +12 -12
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +5 -5
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/TaxonomyCard.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/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +134 -233
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{index-6d49c905.js → index-26c19b64.js} +451 -439
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/{index-0e45a0b2.js → index-3f4dd6f2.js} +30 -21
- package/dist/esm/{index.esm-9a4c8813.js → index.esm-cf08bf18.js} +9 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
- /package/dist/cjs/{ADInfeed-388ec28a.js → ADInfeed-61658341.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-5548ff47.js → ADlgInfeed-61b2f7ae.js} +0 -0
- /package/dist/esm/{ADInfeed-eae0af19.js → ADInfeed-034c433d.js} +0 -0
- /package/dist/esm/{ADlgInfeed-2f4c7a7c.js → ADlgInfeed-0fb12879.js} +0 -0
package/dist/esm/View.js
CHANGED
|
@@ -14,7 +14,7 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
14
14
|
import { _ as _typeof } from './typeof-08f2c380.js';
|
|
15
15
|
import './_is-array-49698029.js';
|
|
16
16
|
import React__default, { useState, useEffect } from 'react';
|
|
17
|
-
import { l as lib_3 } from './index-
|
|
17
|
+
import { l as lib_3 } from './index-3f4dd6f2.js';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
import 'react-bootstrap/Row';
|
|
20
20
|
import 'react-bootstrap/Col';
|
|
@@ -24,7 +24,7 @@ import './isSymbol-807e927e.js';
|
|
|
24
24
|
import './debounce-1a993acf.js';
|
|
25
25
|
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
26
26
|
import 'react-dom';
|
|
27
|
-
import './index-
|
|
27
|
+
import './index-3849e3fe.js';
|
|
28
28
|
import './index-5f9f807a.js';
|
|
29
29
|
import { m as main_36 } from './main-5d1e4bd3.js';
|
|
30
30
|
import './entities-7cc3bf45.js';
|
|
@@ -34,14 +34,15 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c6
|
|
|
34
34
|
import './_set-species-cede29f8.js';
|
|
35
35
|
import './beam-681a9749.js';
|
|
36
36
|
import DFPAdSlot from './AdSlot.js';
|
|
37
|
-
import { B as BlockContent } from './BlockContent-
|
|
37
|
+
import { B as BlockContent } from './BlockContent-c409aca5.js';
|
|
38
38
|
import './smoothscroll-4b699764.js';
|
|
39
39
|
import './GroupDeck.js';
|
|
40
40
|
import 'react-bootstrap';
|
|
41
|
+
import './iconBase-602d52fe.js';
|
|
41
42
|
import Button from 'react-bootstrap/Button';
|
|
42
43
|
import { _ as _defineProperty } from './defineProperty-b798470d.js';
|
|
43
44
|
import Form from 'react-bootstrap/Form';
|
|
44
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
45
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-26c19b64.js';
|
|
45
46
|
import './util-7700fc59.js';
|
|
46
47
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
47
48
|
import 'react-bootstrap/Pagination';
|
|
@@ -51,6 +52,7 @@ import SocialShare from './SocialShare.js';
|
|
|
51
52
|
import FormControl from 'react-bootstrap/FormControl';
|
|
52
53
|
import { _ as _Object$keys } from './keys-fc2d4c34.js';
|
|
53
54
|
import 'react-bootstrap/Dropdown';
|
|
55
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-cf08bf18.js';
|
|
54
56
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
55
57
|
import './index-db3bb315.js';
|
|
56
58
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
@@ -182,7 +184,54 @@ var findIndex = function findIndex(arr) {
|
|
|
182
184
|
return indexes;
|
|
183
185
|
};
|
|
184
186
|
|
|
185
|
-
var
|
|
187
|
+
var ISI = function ISI(props) {
|
|
188
|
+
var children = props.children;
|
|
189
|
+
|
|
190
|
+
var _useState = useState(false),
|
|
191
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
192
|
+
active = _useState2[0],
|
|
193
|
+
setActive = _useState2[1];
|
|
194
|
+
|
|
195
|
+
return React__default.createElement(
|
|
196
|
+
React__default.Fragment,
|
|
197
|
+
null,
|
|
198
|
+
React__default.createElement(
|
|
199
|
+
'div',
|
|
200
|
+
{ id: 'isi', className: active ? 'active' : '' },
|
|
201
|
+
React__default.createElement(
|
|
202
|
+
'div',
|
|
203
|
+
{ id: 'isiContent' },
|
|
204
|
+
React__default.createElement(
|
|
205
|
+
'div',
|
|
206
|
+
{ onClick: function onClick() {
|
|
207
|
+
return setActive(function (prev) {
|
|
208
|
+
return !prev;
|
|
209
|
+
});
|
|
210
|
+
}, id: 'isiToggle' },
|
|
211
|
+
active ? React__default.createElement(
|
|
212
|
+
'p',
|
|
213
|
+
null,
|
|
214
|
+
'Close ',
|
|
215
|
+
React__default.createElement(FaMinus, null)
|
|
216
|
+
) : React__default.createElement(
|
|
217
|
+
'p',
|
|
218
|
+
null,
|
|
219
|
+
'Click For More ',
|
|
220
|
+
React__default.createElement(FaPlus, null)
|
|
221
|
+
)
|
|
222
|
+
),
|
|
223
|
+
children
|
|
224
|
+
)
|
|
225
|
+
),
|
|
226
|
+
React__default.createElement(
|
|
227
|
+
'style',
|
|
228
|
+
{ jsx: true },
|
|
229
|
+
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 10rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n transition: max-height 0.2s;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n }\n #isi.active {\n max-height: calc(100% - 5rem) !important;\n overflow-y: scroll !important;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n '
|
|
230
|
+
)
|
|
231
|
+
);
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n width: 100%;\r\n height: auto;\r\n\r\n max-height: 175px;\r\n object-fit: contain;\r\n margin-bottom: 1rem;\r\n }\r\n}\r\n";
|
|
186
235
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
187
236
|
styleInject(css);
|
|
188
237
|
|
|
@@ -310,6 +359,8 @@ var Article = function Article(props) {
|
|
|
310
359
|
issue = _props$article.issue,
|
|
311
360
|
source = _props$article.source,
|
|
312
361
|
documentGroupMapping = _props$article.documentGroupMapping,
|
|
362
|
+
showIsi = _props$article.showIsi,
|
|
363
|
+
isi = _props$article.isi,
|
|
313
364
|
regionalPages = props.regionalPages,
|
|
314
365
|
nationalPage = props.nationalPage,
|
|
315
366
|
ISIContent = props.ISIContent,
|
|
@@ -403,56 +454,10 @@ var Article = function Article(props) {
|
|
|
403
454
|
};
|
|
404
455
|
|
|
405
456
|
var RelevantTopics = function RelevantTopics() {
|
|
406
|
-
if (content_placement && content_placement.length > 0 || documentGroupMapping
|
|
407
|
-
var relatedLinks = [];
|
|
408
|
-
if (documentGroupMapping && documentGroupMapping.length > 0) {
|
|
409
|
-
documentGroupMapping.forEach(function (documentGroup) {
|
|
410
|
-
if (documentGroup.parent) {
|
|
411
|
-
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path }]);
|
|
412
|
-
}
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
if (content_placement && content_placement.length > 0) {
|
|
416
|
-
content_placement.filter(function (item) {
|
|
417
|
-
return item.path !== 'news';
|
|
418
|
-
}).forEach(function (cp) {
|
|
419
|
-
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
420
|
-
var href = '/' + cp_url;
|
|
421
|
-
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
if (relatedLinks && relatedLinks.length > 0) {
|
|
425
|
-
return React__default.createElement(
|
|
426
|
-
'div',
|
|
427
|
-
null,
|
|
428
|
-
relatedLinks.map(function (relatedLink, index) {
|
|
429
|
-
return React__default.createElement(
|
|
430
|
-
'span',
|
|
431
|
-
{ key: index, className: 'related-link' },
|
|
432
|
-
React__default.createElement(
|
|
433
|
-
'a',
|
|
434
|
-
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
435
|
-
relatedLink.label
|
|
436
|
-
),
|
|
437
|
-
React__default.createElement(
|
|
438
|
-
'style',
|
|
439
|
-
{ jsx: 'true' },
|
|
440
|
-
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
441
|
-
)
|
|
442
|
-
);
|
|
443
|
-
})
|
|
444
|
-
);
|
|
445
|
-
}
|
|
446
|
-
return null;
|
|
447
|
-
}
|
|
448
|
-
return null;
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
var renderRelatedSection = function renderRelatedSection() {
|
|
452
|
-
if (showRelatedArticles) {
|
|
457
|
+
if (content_placement && content_placement.length > 0 || documentGroupMapping) {
|
|
453
458
|
return React__default.createElement(
|
|
454
|
-
'
|
|
455
|
-
{
|
|
459
|
+
'div',
|
|
460
|
+
{ style: { color: '#262626' } },
|
|
456
461
|
React__default.createElement(
|
|
457
462
|
'p',
|
|
458
463
|
{ className: 'mb-0' },
|
|
@@ -462,21 +467,47 @@ var Article = function Article(props) {
|
|
|
462
467
|
'Related Content:'
|
|
463
468
|
)
|
|
464
469
|
),
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
470
|
+
documentGroupMapping && documentGroupMapping.map(function (documentGroup) {
|
|
471
|
+
if (!documentGroup.parent) {
|
|
472
|
+
return null;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
return React__default.createElement(
|
|
476
|
+
React__default.Fragment,
|
|
477
|
+
null,
|
|
478
|
+
React__default.createElement(
|
|
479
|
+
'span',
|
|
480
|
+
{ className: '' },
|
|
481
|
+
React__default.createElement(
|
|
482
|
+
'a',
|
|
483
|
+
{
|
|
484
|
+
className: 'related-links',
|
|
485
|
+
style: { color: 'blue' },
|
|
486
|
+
href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path },
|
|
487
|
+
documentGroup.name
|
|
488
|
+
)
|
|
489
|
+
),
|
|
490
|
+
content_placement && content_placement.length ? ' | ' : null
|
|
491
|
+
);
|
|
492
|
+
}),
|
|
493
|
+
content_placement && content_placement.length > 0 ? content_placement.map(function (cp, index) {
|
|
494
|
+
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
495
|
+
var href = '/' + cp_url;
|
|
496
|
+
return React__default.createElement(
|
|
497
|
+
React__default.Fragment,
|
|
498
|
+
{ key: index },
|
|
499
|
+
React__default.createElement(
|
|
500
|
+
'span',
|
|
501
|
+
null,
|
|
502
|
+
React__default.createElement(
|
|
503
|
+
'a',
|
|
504
|
+
{ className: 'related-links', key: index, href: href, style: { color: 'blue' } },
|
|
505
|
+
cp.name
|
|
506
|
+
)
|
|
507
|
+
),
|
|
508
|
+
content_placement.length > index + 1 ? ' | ' : null
|
|
509
|
+
);
|
|
510
|
+
}) : null
|
|
480
511
|
);
|
|
481
512
|
}
|
|
482
513
|
return null;
|
|
@@ -585,7 +616,6 @@ var Article = function Article(props) {
|
|
|
585
616
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
586
617
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
587
618
|
),
|
|
588
|
-
renderRelatedSection(),
|
|
589
619
|
React__default.createElement(BlockContent, _extends({
|
|
590
620
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
591
621
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
@@ -653,7 +683,6 @@ var Article = function Article(props) {
|
|
|
653
683
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
|
|
654
684
|
),
|
|
655
685
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
656
|
-
renderRelatedSection(),
|
|
657
686
|
React__default.createElement(BlockContent, _extends({
|
|
658
687
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
659
688
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
@@ -696,31 +725,12 @@ var Article = function Article(props) {
|
|
|
696
725
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
697
726
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
698
727
|
),
|
|
699
|
-
renderRelatedSection(),
|
|
700
728
|
React__default.createElement(BlockContent, _extends({
|
|
701
729
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
702
730
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
703
731
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
704
732
|
}, client.config()))
|
|
705
733
|
);
|
|
706
|
-
} else if (indexes.length >= 2 && body.length > 3 && showRelatedArticles) {
|
|
707
|
-
var _selectedIndex3 = indexes[1] + 1;
|
|
708
|
-
return React__default.createElement(
|
|
709
|
-
React__default.Fragment,
|
|
710
|
-
null,
|
|
711
|
-
React__default.createElement(BlockContent, _extends({
|
|
712
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
713
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))),
|
|
714
|
-
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
715
|
-
}, client.config())),
|
|
716
|
-
React__default.createElement('span', { className: 'clearfix' }),
|
|
717
|
-
renderRelatedSection(),
|
|
718
|
-
React__default.createElement(BlockContent, _extends({
|
|
719
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
720
|
-
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
721
|
-
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
722
|
-
}, client.config()))
|
|
723
|
-
);
|
|
724
734
|
} else {
|
|
725
735
|
return React__default.createElement(BlockContent, _extends({
|
|
726
736
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
@@ -781,7 +791,7 @@ var Article = function Article(props) {
|
|
|
781
791
|
null,
|
|
782
792
|
React__default.createElement(
|
|
783
793
|
'div',
|
|
784
|
-
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) ? '
|
|
794
|
+
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
785
795
|
React__default.createElement(
|
|
786
796
|
'h1',
|
|
787
797
|
{ className: 'page-title', style: { fontSize: '1.9rem' } },
|
|
@@ -960,9 +970,31 @@ var Article = function Article(props) {
|
|
|
960
970
|
issue.name
|
|
961
971
|
)
|
|
962
972
|
),
|
|
963
|
-
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } })
|
|
973
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
974
|
+
showRelatedArticles && !showIsi && React__default.createElement(
|
|
975
|
+
React__default.Fragment,
|
|
976
|
+
null,
|
|
977
|
+
React__default.createElement(
|
|
978
|
+
'div',
|
|
979
|
+
null,
|
|
980
|
+
React__default.createElement(RelevantTopics, null)
|
|
981
|
+
),
|
|
982
|
+
React__default.createElement(
|
|
983
|
+
'div',
|
|
984
|
+
{ className: 'pt-2' },
|
|
985
|
+
React__default.createElement(RelatedArticle, { articles: article.relatedArticle, client: client })
|
|
986
|
+
)
|
|
987
|
+
)
|
|
964
988
|
),
|
|
965
989
|
renderIsiContent(props.article)
|
|
990
|
+
),
|
|
991
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React__default.createElement(
|
|
992
|
+
ISI,
|
|
993
|
+
null,
|
|
994
|
+
React__default.createElement(BlockContent, {
|
|
995
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
996
|
+
blocks: isi
|
|
997
|
+
})
|
|
966
998
|
)
|
|
967
999
|
),
|
|
968
1000
|
main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
@@ -1005,127 +1037,6 @@ var Article = function Article(props) {
|
|
|
1005
1037
|
|
|
1006
1038
|
var _this = undefined;
|
|
1007
1039
|
|
|
1008
|
-
var getRelatedContents = function () {
|
|
1009
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
1010
|
-
var client = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
1011
|
-
var article = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1012
|
-
var prevUrl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
|
|
1013
|
-
var articleCount = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
1014
|
-
|
|
1015
|
-
var _article$url, url, content_placement, documentGroupMapping, issueGroup, params, conditions, taxonomy, documentGroup, relatedContents, relatedContentQuery;
|
|
1016
|
-
|
|
1017
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
1018
|
-
while (1) {
|
|
1019
|
-
switch (_context.prev = _context.next) {
|
|
1020
|
-
case 0:
|
|
1021
|
-
_article$url = article.url;
|
|
1022
|
-
_article$url = _article$url === undefined ? {
|
|
1023
|
-
current: null
|
|
1024
|
-
} : _article$url;
|
|
1025
|
-
url = _article$url.current, content_placement = article.content_placement, documentGroupMapping = article.documentGroupMapping, issueGroup = article.issueGroup;
|
|
1026
|
-
params = { url: url };
|
|
1027
|
-
conditions = '';
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
if (content_placement && content_placement.length > 0) {
|
|
1031
|
-
taxonomy = [];
|
|
1032
|
-
|
|
1033
|
-
content_placement.forEach(function (_ref2) {
|
|
1034
|
-
var path = _ref2.path,
|
|
1035
|
-
_id = _ref2._id;
|
|
1036
|
-
|
|
1037
|
-
if (!_id || typeof _id == 'undefined') {
|
|
1038
|
-
return null;
|
|
1039
|
-
}
|
|
1040
|
-
var prev_url_to_check = prevUrl;
|
|
1041
|
-
if (prev_url_to_check.includes('?')) {
|
|
1042
|
-
prev_url_to_check = prev_url_to_check.split('?')[0];
|
|
1043
|
-
}
|
|
1044
|
-
if (prev_url_to_check.endsWith(path) && _id) taxonomy.push(_id);
|
|
1045
|
-
});
|
|
1046
|
-
if (taxonomy.length === 0) {
|
|
1047
|
-
content_placement.filter(function (_ref3) {
|
|
1048
|
-
var identifier = _ref3.identifier;
|
|
1049
|
-
return identifier !== 'news';
|
|
1050
|
-
}).forEach(function (_ref4) {
|
|
1051
|
-
var _id = _ref4._id;
|
|
1052
|
-
|
|
1053
|
-
if (_id) taxonomy.push(_id);
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
if (taxonomy.length > 0) {
|
|
1057
|
-
params = _extends({}, params, { taxonomy: taxonomy });
|
|
1058
|
-
conditions = '&& taxonomyMapping[]._ref in $taxonomy';
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
if (documentGroupMapping && documentGroupMapping.length > 0) {
|
|
1063
|
-
documentGroup = [];
|
|
1064
|
-
|
|
1065
|
-
documentGroupMapping.forEach(function (_ref5) {
|
|
1066
|
-
var _id = _ref5._id;
|
|
1067
|
-
|
|
1068
|
-
if (_id) documentGroup.push(_id);
|
|
1069
|
-
});
|
|
1070
|
-
if (params.taxonomy && documentGroup.length > 0) {
|
|
1071
|
-
params = _extends({}, params, { documentGroup: documentGroup });
|
|
1072
|
-
conditions = '&& (taxonomyMapping[]._ref in $taxonomy || documentGroupMapping[]._ref in $documentGroup)';
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
if (issueGroup && issueGroup._ref) {
|
|
1077
|
-
if (params.taxonomy && params.documentGroup) {
|
|
1078
|
-
params = _extends({}, params, { issueAssociation: issueGroup._ref });
|
|
1079
|
-
conditions = '&& (taxonomyMapping[]._ref in $taxonomy || documentGroupMapping[]._ref in $documentGroup || issueGroup._ref == $issueAssociation )';
|
|
1080
|
-
} else if (params.taxonomy) {
|
|
1081
|
-
params = _extends({}, params, { issueAssociation: issueGroup._ref });
|
|
1082
|
-
conditions = '&& (taxonomyMapping[]._ref in $taxonomy || issueGroup._ref == $issueAssociation )';
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
relatedContents = [];
|
|
1087
|
-
|
|
1088
|
-
if (!(params.taxonomy && params.taxonomy.length > 0)) {
|
|
1089
|
-
_context.next = 21;
|
|
1090
|
-
break;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
relatedContentQuery = '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && passwordLock != true\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory.name != \'Poll\'\n && contentCategory.name != \'Slideshows\'\n \t&& contentCategory.disableAds != \'true\'\n && ExcludeFromInfiniteScroll != true\n && url.current != $url\n && !defined(body[].videos)\n && published <= \'' + new Date().toISOString() + '\'\n ' + conditions + '\n ]| order(published desc)[' + articleCount + ']\n {\n title,\n url,\n thumbnail\n }';
|
|
1094
|
-
_context.prev = 11;
|
|
1095
|
-
_context.next = 14;
|
|
1096
|
-
return client.fetch(relatedContentQuery, params);
|
|
1097
|
-
|
|
1098
|
-
case 14:
|
|
1099
|
-
relatedContents = _context.sent;
|
|
1100
|
-
|
|
1101
|
-
debugger;
|
|
1102
|
-
_context.next = 21;
|
|
1103
|
-
break;
|
|
1104
|
-
|
|
1105
|
-
case 18:
|
|
1106
|
-
_context.prev = 18;
|
|
1107
|
-
_context.t0 = _context['catch'](11);
|
|
1108
|
-
|
|
1109
|
-
console.error(_context.t0);
|
|
1110
|
-
|
|
1111
|
-
case 21:
|
|
1112
|
-
return _context.abrupt('return', relatedContents);
|
|
1113
|
-
|
|
1114
|
-
case 22:
|
|
1115
|
-
case 'end':
|
|
1116
|
-
return _context.stop();
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
}, _callee, _this, [[11, 18]]);
|
|
1120
|
-
}));
|
|
1121
|
-
|
|
1122
|
-
return function getRelatedContents() {
|
|
1123
|
-
return _ref.apply(this, arguments);
|
|
1124
|
-
};
|
|
1125
|
-
}();
|
|
1126
|
-
|
|
1127
|
-
var _this$1 = undefined;
|
|
1128
|
-
|
|
1129
1040
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1130
1041
|
var _props$prevUrl = props.prevUrl,
|
|
1131
1042
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
@@ -1251,7 +1162,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1251
1162
|
switch (_context.prev = _context.next) {
|
|
1252
1163
|
case 0:
|
|
1253
1164
|
if (!(article && article._id)) {
|
|
1254
|
-
_context.next =
|
|
1165
|
+
_context.next = 9;
|
|
1255
1166
|
break;
|
|
1256
1167
|
}
|
|
1257
1168
|
|
|
@@ -1263,22 +1174,17 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1263
1174
|
|
|
1264
1175
|
case 5:
|
|
1265
1176
|
article.relatedArticle = _context.sent;
|
|
1266
|
-
_context.next = 8;
|
|
1267
|
-
return getRelatedContents(null, props.client, article, prevUrl, startingIndex + '..' + endingIndex);
|
|
1268
|
-
|
|
1269
|
-
case 8:
|
|
1270
|
-
article.relatedContents = _context.sent;
|
|
1271
1177
|
targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
|
|
1272
1178
|
|
|
1273
1179
|
article.Ads = Ads.getRightItems(targeting);
|
|
1274
1180
|
setQueueData([].concat(_toConsumableArray(queueData), [article]));
|
|
1275
1181
|
|
|
1276
|
-
case
|
|
1182
|
+
case 9:
|
|
1277
1183
|
case 'end':
|
|
1278
1184
|
return _context.stop();
|
|
1279
1185
|
}
|
|
1280
1186
|
}
|
|
1281
|
-
}, _callee, _this
|
|
1187
|
+
}, _callee, _this);
|
|
1282
1188
|
}));
|
|
1283
1189
|
|
|
1284
1190
|
return function (_x) {
|
|
@@ -1426,7 +1332,7 @@ var Articles = function Articles(props) {
|
|
|
1426
1332
|
}, _defineProperty(_extends2, 'pageview', pageview), _defineProperty(_extends2, 'onVote', function onVote() {}), _defineProperty(_extends2, 'ISIContent', ISIContent), _defineProperty(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty(_extends2, 'sponsoredTaxonomies', []), _defineProperty(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty(_extends2, 'Settings', Settings), _defineProperty(_extends2, 'canonicalTag', canonicalTag), _extends2), props));
|
|
1427
1333
|
};
|
|
1428
1334
|
|
|
1429
|
-
var _this$
|
|
1335
|
+
var _this$1 = undefined;
|
|
1430
1336
|
|
|
1431
1337
|
var View = function View(props) {
|
|
1432
1338
|
var router = useRouter();
|
|
@@ -1503,7 +1409,7 @@ var View = function View(props) {
|
|
|
1503
1409
|
|
|
1504
1410
|
var isVideoSeries = checkVideoSeries(props.article);
|
|
1505
1411
|
var isArticleSeries = checkArticleSeries(props.article);
|
|
1506
|
-
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag;
|
|
1412
|
+
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi;
|
|
1507
1413
|
|
|
1508
1414
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1509
1415
|
description = null;
|
|
@@ -1634,12 +1540,12 @@ View.returnGetInitialProps = function () {
|
|
|
1634
1540
|
}
|
|
1635
1541
|
|
|
1636
1542
|
article.relatedArticle = null;
|
|
1637
|
-
_context.next =
|
|
1543
|
+
_context.next = 18;
|
|
1638
1544
|
break;
|
|
1639
1545
|
|
|
1640
1546
|
case 14:
|
|
1641
1547
|
if (!article) {
|
|
1642
|
-
_context.next =
|
|
1548
|
+
_context.next = 18;
|
|
1643
1549
|
break;
|
|
1644
1550
|
}
|
|
1645
1551
|
|
|
@@ -1648,13 +1554,8 @@ View.returnGetInitialProps = function () {
|
|
|
1648
1554
|
|
|
1649
1555
|
case 17:
|
|
1650
1556
|
article.relatedArticle = _context.sent;
|
|
1651
|
-
_context.next = 20;
|
|
1652
|
-
return getRelatedContents(context, client, article, prevUrl, '0..2');
|
|
1653
1557
|
|
|
1654
|
-
case
|
|
1655
|
-
article.relatedContents = _context.sent;
|
|
1656
|
-
|
|
1657
|
-
case 21:
|
|
1558
|
+
case 18:
|
|
1658
1559
|
return _context.abrupt('return', {
|
|
1659
1560
|
url: url,
|
|
1660
1561
|
sao: sao,
|
|
@@ -1665,12 +1566,12 @@ View.returnGetInitialProps = function () {
|
|
|
1665
1566
|
sponsoredFlag: sponsoredFlag
|
|
1666
1567
|
});
|
|
1667
1568
|
|
|
1668
|
-
case
|
|
1569
|
+
case 19:
|
|
1669
1570
|
case 'end':
|
|
1670
1571
|
return _context.stop();
|
|
1671
1572
|
}
|
|
1672
1573
|
}
|
|
1673
|
-
}, _callee, _this$
|
|
1574
|
+
}, _callee, _this$1);
|
|
1674
1575
|
}));
|
|
1675
1576
|
|
|
1676
1577
|
return function (_x, _x2, _x3, _x4, _x5) {
|
package/dist/esm/YahooHero.js
CHANGED
|
@@ -7,7 +7,7 @@ import React__default from 'react';
|
|
|
7
7
|
import 'prop-types';
|
|
8
8
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
9
9
|
import 'react-dom';
|
|
10
|
-
import { i as imageUrlBuilder } from './index-
|
|
10
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
11
11
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
12
12
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
13
13
|
import './slicedToArray-7021e5df.js';
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -10,7 +10,7 @@ import './_is-array-49698029.js';
|
|
|
10
10
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
11
11
|
import 'prop-types';
|
|
12
12
|
import 'react-dom';
|
|
13
|
-
import { i as imageUrlBuilder } from './index-
|
|
13
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
14
14
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
16
16
|
import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -8,9 +8,9 @@ var getQuery = function getQuery(type) {
|
|
|
8
8
|
|
|
9
9
|
switch (type) {
|
|
10
10
|
case 'related':
|
|
11
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && published <= now()\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n
|
|
11
|
+
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && published <= now()\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
|
|
12
12
|
case 'article':
|
|
13
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n
|
|
13
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
14
14
|
case 'publication':
|
|
15
15
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
16
16
|
case 'issue':
|
|
@@ -304,7 +304,7 @@ function setCookie$1(ctx, name, value, options) {
|
|
|
304
304
|
var cookiesToSet_1 = [];
|
|
305
305
|
parsedCookies.forEach(function (parsedCookie) {
|
|
306
306
|
if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
|
|
307
|
-
cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({}, parsedCookie)));
|
|
307
|
+
cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
310
|
cookiesToSet_1.push(cookie.serialize(name, value, options));
|
|
@@ -14,7 +14,7 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
14
14
|
import './typeof-08f2c380.js';
|
|
15
15
|
import './_is-array-49698029.js';
|
|
16
16
|
import 'react';
|
|
17
|
-
import './index-
|
|
17
|
+
import './index-3f4dd6f2.js';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
import 'react-bootstrap/Row';
|
|
20
20
|
import 'react-bootstrap/Col';
|
|
@@ -23,7 +23,7 @@ import 'next/router';
|
|
|
23
23
|
import './isSymbol-807e927e.js';
|
|
24
24
|
import './debounce-1a993acf.js';
|
|
25
25
|
import 'react-dom';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-3849e3fe.js';
|
|
27
27
|
import './index-5f9f807a.js';
|
|
28
28
|
import './main-5d1e4bd3.js';
|
|
29
29
|
import './entities-7cc3bf45.js';
|
|
@@ -33,12 +33,12 @@ import './asyncToGenerator-7c654f36.js';
|
|
|
33
33
|
import './_set-species-cede29f8.js';
|
|
34
34
|
import './beam-681a9749.js';
|
|
35
35
|
import './AdSlot.js';
|
|
36
|
-
import './BlockContent-
|
|
36
|
+
import './BlockContent-c409aca5.js';
|
|
37
37
|
import './smoothscroll-4b699764.js';
|
|
38
38
|
import './GroupDeck.js';
|
|
39
39
|
import 'react-bootstrap';
|
|
40
40
|
import 'react-bootstrap/Button';
|
|
41
|
-
export { g as default } from './index-
|
|
41
|
+
export { g as default } from './index-26c19b64.js';
|
|
42
42
|
import './util-7700fc59.js';
|
|
43
43
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
44
44
|
import 'react-bootstrap/Pagination';
|