@mjhls/mjh-framework 1.0.1011 → 1.0.1012

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD300x250.js +2 -1
  3. package/dist/cjs/AD300x250x600.js +2 -1
  4. package/dist/cjs/AD728x90.js +2 -1
  5. package/dist/cjs/ADFloatingFooter.js +2 -1
  6. package/dist/cjs/ADGutter.js +2 -1
  7. package/dist/cjs/ADSkyscraper.js +2 -1
  8. package/dist/cjs/ADSponsoredResources.js +2 -1
  9. package/dist/cjs/ADWebcast.js +2 -1
  10. package/dist/cjs/ADWelcome.js +2 -1
  11. package/dist/cjs/AdSlot.js +2 -1
  12. package/dist/cjs/AdSlotsProvider.js +2 -1
  13. package/dist/cjs/ArticleProgramLandingPage.js +3 -2
  14. package/dist/cjs/ArticleSeriesLandingPage.js +4 -3
  15. package/dist/cjs/Auth.js +2 -1
  16. package/dist/cjs/Beam.js +2 -1
  17. package/dist/cjs/CMEDeck.js +2 -1
  18. package/dist/cjs/Column2.js +2 -1
  19. package/dist/cjs/Column3.js +2 -1
  20. package/dist/cjs/ContentCardPaginated.js +3 -2
  21. package/dist/cjs/DeckContent.js +3 -2
  22. package/dist/cjs/DeckQueuePaginated.js +2 -1
  23. package/dist/cjs/ExternalResources.js +3 -2
  24. package/dist/cjs/GridContent.js +4 -3
  25. package/dist/cjs/GridContentPaginated.js +4 -3
  26. package/dist/cjs/HamMagazine.js +2 -1
  27. package/dist/cjs/HorizontalArticleListing.js +3 -2
  28. package/dist/cjs/IssueLanding.js +5 -4
  29. package/dist/cjs/LeftNav.js +2 -1
  30. package/dist/cjs/MasterDeck.js +4 -3
  31. package/dist/cjs/MasterDeckPaginated.js +4 -3
  32. package/dist/cjs/{MediaSeriesCard-7f8ea2ea.js → MediaSeriesCard-775036a8.js} +1 -1
  33. package/dist/cjs/MediaSeriesLanding.js +6 -5
  34. package/dist/cjs/MediaSeriesLandingPaginated.js +6 -5
  35. package/dist/cjs/NavDvm.js +2 -1
  36. package/dist/cjs/NavMagazine.js +2 -1
  37. package/dist/cjs/NavNative.js +2 -1
  38. package/dist/cjs/PartnerDetailListing.js +5 -4
  39. package/dist/cjs/PartnerDetailListingPaginated.js +5 -4
  40. package/dist/cjs/PodcastsLanding.js +6 -5
  41. package/dist/cjs/PtceDeck.js +2 -1
  42. package/dist/cjs/PubSection.js +4 -3
  43. package/dist/cjs/PubToc.js +2 -1
  44. package/dist/cjs/PublicationLanding.js +42 -89
  45. package/dist/cjs/QueueDeckExpanded.js +4 -3
  46. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -3
  47. package/dist/cjs/Segment.js +2 -1
  48. package/dist/cjs/SideFooter.js +2 -1
  49. package/dist/cjs/TaxonomyDescription.js +3 -2
  50. package/dist/cjs/TemplateNormal.js +2 -1
  51. package/dist/cjs/Ustream.js +2 -1
  52. package/dist/cjs/VideoProgramLandingPage.js +3 -2
  53. package/dist/cjs/VideoSeriesFilter.js +2 -1
  54. package/dist/cjs/VideoSeriesLandingPage.js +4 -3
  55. package/dist/cjs/View.js +3 -2
  56. package/dist/cjs/_set-species-0c7864a2.js +55 -0
  57. package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-65df6bf8.js} +8 -56
  58. package/dist/cjs/faundadb.js +2 -1
  59. package/dist/cjs/getPtceActivities.js +2 -1
  60. package/dist/cjs/getQuery.js +1 -1
  61. package/dist/cjs/getRelatedArticle.js +2 -1
  62. package/dist/cjs/getRootDocGroup.js +2 -1
  63. package/dist/cjs/getSerializers.js +3 -2
  64. package/dist/cjs/{index-b41ea6a0.js → index-7ca74b82.js} +1 -1
  65. package/dist/cjs/index.js +5 -4
  66. package/dist/esm/AD300x250.js +2 -1
  67. package/dist/esm/AD300x250x600.js +2 -1
  68. package/dist/esm/AD728x90.js +2 -1
  69. package/dist/esm/ADFloatingFooter.js +2 -1
  70. package/dist/esm/ADGutter.js +2 -1
  71. package/dist/esm/ADSkyscraper.js +2 -1
  72. package/dist/esm/ADSponsoredResources.js +2 -1
  73. package/dist/esm/ADWebcast.js +2 -1
  74. package/dist/esm/ADWelcome.js +2 -1
  75. package/dist/esm/AdSlot.js +2 -1
  76. package/dist/esm/AdSlotsProvider.js +2 -1
  77. package/dist/esm/ArticleProgramLandingPage.js +3 -2
  78. package/dist/esm/ArticleSeriesLandingPage.js +4 -3
  79. package/dist/esm/Auth.js +2 -1
  80. package/dist/esm/Beam.js +2 -1
  81. package/dist/esm/CMEDeck.js +2 -1
  82. package/dist/esm/Column2.js +2 -1
  83. package/dist/esm/Column3.js +2 -1
  84. package/dist/esm/ContentCardPaginated.js +3 -2
  85. package/dist/esm/DeckContent.js +3 -2
  86. package/dist/esm/DeckQueuePaginated.js +2 -1
  87. package/dist/esm/ExternalResources.js +3 -2
  88. package/dist/esm/GridContent.js +4 -3
  89. package/dist/esm/GridContentPaginated.js +4 -3
  90. package/dist/esm/HamMagazine.js +2 -1
  91. package/dist/esm/HorizontalArticleListing.js +3 -2
  92. package/dist/esm/IssueLanding.js +5 -4
  93. package/dist/esm/LeftNav.js +2 -1
  94. package/dist/esm/MasterDeck.js +4 -3
  95. package/dist/esm/MasterDeckPaginated.js +4 -3
  96. package/dist/esm/{MediaSeriesCard-478f939a.js → MediaSeriesCard-96d46dee.js} +1 -1
  97. package/dist/esm/MediaSeriesLanding.js +6 -5
  98. package/dist/esm/MediaSeriesLandingPaginated.js +6 -5
  99. package/dist/esm/NavDvm.js +2 -1
  100. package/dist/esm/NavMagazine.js +2 -1
  101. package/dist/esm/NavNative.js +2 -1
  102. package/dist/esm/PartnerDetailListing.js +5 -4
  103. package/dist/esm/PartnerDetailListingPaginated.js +5 -4
  104. package/dist/esm/PodcastsLanding.js +6 -5
  105. package/dist/esm/PtceDeck.js +2 -1
  106. package/dist/esm/PubSection.js +4 -3
  107. package/dist/esm/PubToc.js +2 -1
  108. package/dist/esm/PublicationLanding.js +31 -78
  109. package/dist/esm/QueueDeckExpanded.js +4 -3
  110. package/dist/esm/QueueDeckExpandedPaginated.js +4 -3
  111. package/dist/esm/Segment.js +2 -1
  112. package/dist/esm/SideFooter.js +2 -1
  113. package/dist/esm/TaxonomyDescription.js +3 -2
  114. package/dist/esm/TemplateNormal.js +2 -1
  115. package/dist/esm/Ustream.js +2 -1
  116. package/dist/esm/VideoProgramLandingPage.js +3 -2
  117. package/dist/esm/VideoSeriesFilter.js +2 -1
  118. package/dist/esm/VideoSeriesLandingPage.js +4 -3
  119. package/dist/esm/View.js +3 -2
  120. package/dist/esm/_set-species-2cd9340f.js +50 -0
  121. package/dist/esm/{asyncToGenerator-958ef5fc.js → asyncToGenerator-64822ccc.js} +6 -50
  122. package/dist/esm/faundadb.js +2 -1
  123. package/dist/esm/getPtceActivities.js +2 -1
  124. package/dist/esm/getQuery.js +1 -1
  125. package/dist/esm/getRelatedArticle.js +2 -1
  126. package/dist/esm/getRootDocGroup.js +2 -1
  127. package/dist/esm/getSerializers.js +3 -2
  128. package/dist/esm/{index-dd204fd9.js → index-fbb977dc.js} +1 -1
  129. package/dist/esm/index.js +5 -4
  130. package/package.json +1 -1
  131. /package/dist/cjs/{ADInfeed-ef933a08.js → ADInfeed-43871736.js} +0 -0
  132. /package/dist/cjs/{ADlgInfeed-0e931f24.js → ADlgInfeed-6ca217b7.js} +0 -0
  133. /package/dist/esm/{ADInfeed-f946441a.js → ADInfeed-65b1c440.js} +0 -0
  134. /package/dist/esm/{ADlgInfeed-012e6f16.js → ADlgInfeed-fccdebf4.js} +0 -0
@@ -1,9 +1,8 @@
1
- import { b as _anInstance, c as _forOf, d as _redefineAll, e as _setSpecies, _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-958ef5fc.js';
2
- import { _ as _extends } from './extends-6d8e3924.js';
3
1
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
2
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
5
3
  import { b as _isObject, c as _objectDp, d as _objectCreate, e as _ctx, f as _descriptors, g as _iterDefine, h as _wks, i as _toObject, j as _iobject, k as _toLength, l as _global, m as _fails, n as _hide, o as _setToStringTag, _ as _export, p as _classof, q as _aFunction, a as _core } from './core.get-iterator-method-ea258bb1.js';
6
4
  import { _ as _iterStep } from './web.dom.iterable-ab4dea5c.js';
5
+ import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './_set-species-2cd9340f.js';
7
6
  import { _ as _meta, a as _isArray } from './_is-array-8d21b9e3.js';
8
7
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
9
8
  import React__default, { useState, useEffect } from 'react';
@@ -14,9 +13,7 @@ import Card from 'react-bootstrap/Card';
14
13
  import { useRouter } from 'next/router';
15
14
  import { L as LazyLoad } from './index-755f2cc2.js';
16
15
  import { u as urlForFile } from './urlForFile-b69adffc.js';
17
- import './_library-528f1934.js';
18
16
  import './_iter-detect-98db3b07.js';
19
- import './_object-pie-133f504a.js';
20
17
  import 'react-dom';
21
18
  import 'prop-types';
22
19
 
@@ -427,8 +424,8 @@ var PublicationLanding = function PublicationLanding(props) {
427
424
  href = props.href;
428
425
  props.pdf;
429
426
  var _props$contentPlaceme = props.contentPlacement,
430
- contentPlacement = _props$contentPlaceme === undefined ? '' : _props$contentPlaceme,
431
- client = props.client;
427
+ contentPlacement = _props$contentPlaceme === undefined ? '' : _props$contentPlaceme;
428
+ props.client;
432
429
 
433
430
 
434
431
  var router = useRouter();
@@ -457,79 +454,35 @@ var PublicationLanding = function PublicationLanding(props) {
457
454
  sortedIssues = _useState8[0],
458
455
  setSortedIssues = _useState8[1];
459
456
 
460
- useEffect(function () {
461
- _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
462
- var _this = this;
463
-
464
- var promises, articles;
465
- return regenerator.wrap(function _callee2$(_context2) {
466
- while (1) {
467
- switch (_context2.prev = _context2.next) {
468
- case 0:
469
- if (!(issueData && issueData.length > 0 && client)) {
470
- _context2.next = 12;
471
- break;
472
- }
473
-
474
- _context2.prev = 1;
475
- promises = issueData.map(function () {
476
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(issue) {
477
- var articlesQuery;
478
- return regenerator.wrap(function _callee$(_context) {
479
- while (1) {
480
- switch (_context.prev = _context.next) {
481
- case 0:
482
- articlesQuery = '*[\n _type == \'article\' \n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(\'' + issue._id + '\')\n ][0...1]{_id}';
483
- _context.t0 = _extends;
484
- _context.t1 = {};
485
- _context.t2 = issue;
486
- _context.next = 6;
487
- return client.fetch(articlesQuery);
488
-
489
- case 6:
490
- _context.t3 = _context.sent;
491
- _context.t4 = {
492
- articles: _context.t3
493
- };
494
- return _context.abrupt('return', (0, _context.t0)(_context.t1, _context.t2, _context.t4));
495
-
496
- case 9:
497
- case 'end':
498
- return _context.stop();
499
- }
500
- }
501
- }, _callee, _this);
502
- }));
503
-
504
- return function (_x) {
505
- return _ref2.apply(this, arguments);
506
- };
507
- }());
508
- _context2.next = 5;
509
- return _Promise.all(promises);
510
-
511
- case 5:
512
- articles = _context2.sent;
513
-
514
- setIssueData(articles);
515
- _context2.next = 12;
516
- break;
517
-
518
- case 9:
519
- _context2.prev = 9;
520
- _context2.t0 = _context2['catch'](1);
521
-
522
- console.error(_context2.t0);
523
-
524
- case 12:
525
- case 'end':
526
- return _context2.stop();
527
- }
528
- }
529
- }, _callee2, this, [[1, 9]]);
530
- }))();
531
- }, []);
457
+ // useEffect(() => {
458
+ // ;(async function() {
459
+ // if (issueData && issueData.length > 0 && client) {
460
+ // try {
461
+ // const promises = issueData.map(async (issue) => {
462
+ // const articlesQuery = `*[
463
+ // _type == 'article'
464
+ // && !(_id in path("drafts.**"))
465
+ // && defined(title)
466
+ // && is_visible
467
+ // && defined(url)
468
+ // && defined(published)
469
+ // && dateTime(published) <= dateTime(now())
470
+ // && passwordLock != true
471
+ // && references('${issue._id}')
472
+ // ][0...1]{_id}`
473
+ // return { ...issue, articles: await client.fetch(articlesQuery) }
474
+ // })
475
+ // const articles = await Promise.all(promises)
476
+ // setIssueData(articles)
477
+ // } catch (error) {
478
+ // console.error(error)
479
+ // }
480
+ // }
481
+ // })()
482
+ // }, [])
532
483
  // function for filtering by year
484
+
485
+
533
486
  var filterByYear = function filterByYear(year) {
534
487
  return issueData.filter(function (issue) {
535
488
  return issue.year == year;
@@ -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-9f6806ea.js';
14
14
  import { c as clean_html_1 } from './entities-6d9154b4.js';
15
- import { A as ADInfeed } from './ADInfeed-f946441a.js';
15
+ import { A as ADInfeed } from './ADInfeed-65b1c440.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-012e6f16.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-fccdebf4.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -33,8 +33,9 @@ import './isSymbol-a7e9aafe.js';
33
33
  import './toNumber-5aeba6e7.js';
34
34
  import './Beam.js';
35
35
  import './stringify-2b084bee.js';
36
- import './asyncToGenerator-958ef5fc.js';
36
+ import './asyncToGenerator-64822ccc.js';
37
37
  import './_library-528f1934.js';
38
+ import './_set-species-2cd9340f.js';
38
39
  import './Segment.js';
39
40
 
40
41
  var renderCardImage = function renderCardImage(row, client) {
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import { _ as _extends } from './extends-6d8e3924.js';
3
3
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
4
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
@@ -11,9 +11,9 @@ 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-9f6806ea.js';
13
13
  import { c as clean_html_1 } from './entities-6d9154b4.js';
14
- import { A as ADInfeed } from './ADInfeed-f946441a.js';
14
+ import { A as ADInfeed } from './ADInfeed-65b1c440.js';
15
15
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
16
- import { A as ADlgInfeed } from './ADlgInfeed-012e6f16.js';
16
+ import { A as ADlgInfeed } from './ADlgInfeed-fccdebf4.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';
@@ -22,6 +22,7 @@ import './_commonjsHelpers-0c4b6f40.js';
22
22
  import './core.get-iterator-method-ea258bb1.js';
23
23
  import './web.dom.iterable-ab4dea5c.js';
24
24
  import './_library-528f1934.js';
25
+ import './_set-species-2cd9340f.js';
25
26
  import './_iter-detect-98db3b07.js';
26
27
  import './_object-pie-133f504a.js';
27
28
  import 'prop-types';
@@ -1,8 +1,9 @@
1
- import { a as _Promise, _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { a as _Promise, _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import './_commonjsHelpers-0c4b6f40.js';
3
3
  import './core.get-iterator-method-ea258bb1.js';
4
4
  import './web.dom.iterable-ab4dea5c.js';
5
5
  import './_library-528f1934.js';
6
+ import './_set-species-2cd9340f.js';
6
7
  import './_iter-detect-98db3b07.js';
7
8
 
8
9
  require('babel-polyfill');
@@ -7,10 +7,11 @@ import './_commonjsHelpers-0c4b6f40.js';
7
7
  import 'prop-types';
8
8
  import './isSymbol-a7e9aafe.js';
9
9
  import './eq-bdcbf886.js';
10
- import './asyncToGenerator-958ef5fc.js';
10
+ import './asyncToGenerator-64822ccc.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
12
12
  import './web.dom.iterable-ab4dea5c.js';
13
13
  import './_library-528f1934.js';
14
+ import './_set-species-2cd9340f.js';
14
15
  import './_iter-detect-98db3b07.js';
15
16
 
16
17
  var year = new Date().getFullYear();
@@ -1,16 +1,17 @@
1
1
  import { _ as _extends, a as _Object$assign } from './extends-6d8e3924.js';
2
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
3
3
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
4
  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-dd204fd9.js';
8
+ import { g as getSerializers } from './index-fbb977dc.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './_object-pie-133f504a.js';
12
12
  import './web.dom.iterable-ab4dea5c.js';
13
13
  import './_library-528f1934.js';
14
+ import './_set-species-2cd9340f.js';
14
15
  import './_iter-detect-98db3b07.js';
15
16
  import 'prop-types';
16
17
  import './index-3f5c03b2.js';
@@ -25,8 +25,9 @@ import './isSymbol-a7e9aafe.js';
25
25
  import './toNumber-5aeba6e7.js';
26
26
  import './Beam.js';
27
27
  import './stringify-2b084bee.js';
28
- import './asyncToGenerator-958ef5fc.js';
28
+ import './asyncToGenerator-64822ccc.js';
29
29
  import './_library-528f1934.js';
30
+ import './_set-species-2cd9340f.js';
30
31
  import './_iter-detect-98db3b07.js';
31
32
  import './Segment.js';
32
33
  import './main-9f6806ea.js';
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default, { useState, useRef, useEffect } from 'react';
4
4
  import { F as FaWindowClose } from './index.esm-1bd8a0a8.js';
@@ -7,6 +7,7 @@ import './_commonjsHelpers-0c4b6f40.js';
7
7
  import './core.get-iterator-method-ea258bb1.js';
8
8
  import './web.dom.iterable-ab4dea5c.js';
9
9
  import './_library-528f1934.js';
10
+ import './_set-species-2cd9340f.js';
10
11
  import './_iter-detect-98db3b07.js';
11
12
  import './iconBase-ccc56b97.js';
12
13
 
@@ -1,16 +1,17 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import { _ as _extends } from './extends-6d8e3924.js';
3
3
  import React__default from 'react';
4
4
  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-dd204fd9.js';
8
+ import { g as getSerializers } from './index-fbb977dc.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
12
12
  import './web.dom.iterable-ab4dea5c.js';
13
13
  import './_library-528f1934.js';
14
+ import './_set-species-2cd9340f.js';
14
15
  import './_iter-detect-98db3b07.js';
15
16
  import './_object-pie-133f504a.js';
16
17
  import 'prop-types';
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default, { useState, useEffect } from 'react';
4
4
  import { withRouter } from 'next/router';
@@ -7,6 +7,7 @@ import './_commonjsHelpers-0c4b6f40.js';
7
7
  import './core.get-iterator-method-ea258bb1.js';
8
8
  import './web.dom.iterable-ab4dea5c.js';
9
9
  import './_library-528f1934.js';
10
+ import './_set-species-2cd9340f.js';
10
11
  import './_iter-detect-98db3b07.js';
11
12
 
12
13
  var _this = undefined;
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import { _ as _typeof } from './typeof-e9fc0c5d.js';
3
3
  import React__default from 'react';
4
4
  import { m as moment } from './moment-bc12cb97.js';
@@ -10,6 +10,7 @@ import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './web.dom.iterable-ab4dea5c.js';
12
12
  import './_library-528f1934.js';
13
+ import './_set-species-2cd9340f.js';
13
14
  import './_iter-detect-98db3b07.js';
14
15
  import './_is-array-8d21b9e3.js';
15
16
  import './_object-pie-133f504a.js';
@@ -35,13 +36,13 @@ import './index.es-a6137319.js';
35
36
  import './visibility-sensor-72fd8f8b.js';
36
37
  import 'react-dom';
37
38
  import './index-3f5c03b2.js';
38
- import './ADlgInfeed-012e6f16.js';
39
+ import './ADlgInfeed-fccdebf4.js';
39
40
  import './AdSlot.js';
40
41
  import './Beam.js';
41
42
  import './stringify-2b084bee.js';
42
43
  import './Segment.js';
43
44
  import './main-9f6806ea.js';
44
- import './ADInfeed-f946441a.js';
45
+ import './ADInfeed-65b1c440.js';
45
46
  import './index-755f2cc2.js';
46
47
  import './urlFor.js';
47
48
  import './style-inject.es-1f59c1d0.js';
package/dist/esm/View.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-64822ccc.js';
2
2
  import { _ as _extends, a as _Object$assign } from './extends-6d8e3924.js';
3
3
  import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
4
  import React__default, { useState, useRef, useEffect, forwardRef } from 'react';
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
17
17
  import SocialShare from './SocialShare.js';
18
- import { r as renderAuthor, g as getSerializers } from './index-dd204fd9.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-fbb977dc.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
20
  import { S as SeriesSlider } from './SeriesSlider-5728e349.js';
21
21
  import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-9bd28724.js';
@@ -40,6 +40,7 @@ import getSeriesDetail from './getSeriesDetail.js';
40
40
  import './core.get-iterator-method-ea258bb1.js';
41
41
  import './web.dom.iterable-ab4dea5c.js';
42
42
  import './_library-528f1934.js';
43
+ import './_set-species-2cd9340f.js';
43
44
  import './_iter-detect-98db3b07.js';
44
45
  import './_object-pie-133f504a.js';
45
46
  import 'prop-types';
@@ -0,0 +1,50 @@
1
+ import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
+ import { s as core_getIteratorMethod, e as _ctx, k as _toLength, v as _anObject, n as _hide, h as _wks, a as _core, l as _global, f as _descriptors, c as _objectDp } from './core.get-iterator-method-ea258bb1.js';
3
+ import { a as _isArrayIter, b as _iterCall } from './_iter-detect-98db3b07.js';
4
+
5
+ var _anInstance = function (it, Constructor, name, forbiddenField) {
6
+ if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
7
+ throw TypeError(name + ': incorrect invocation!');
8
+ } return it;
9
+ };
10
+
11
+ var _forOf = createCommonjsModule(function (module) {
12
+ var BREAK = {};
13
+ var RETURN = {};
14
+ var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
15
+ var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
16
+ var f = _ctx(fn, that, entries ? 2 : 1);
17
+ var index = 0;
18
+ var length, step, iterator, result;
19
+ if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
20
+ // fast case for arrays with default iterator
21
+ if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
22
+ result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
23
+ if (result === BREAK || result === RETURN) return result;
24
+ } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
25
+ result = _iterCall(iterator, f, step.value, entries);
26
+ if (result === BREAK || result === RETURN) return result;
27
+ }
28
+ };
29
+ exports.BREAK = BREAK;
30
+ exports.RETURN = RETURN;
31
+ });
32
+
33
+ var _redefineAll = function (target, src, safe) {
34
+ for (var key in src) {
35
+ if (safe && target[key]) target[key] = src[key];
36
+ else _hide(target, key, src[key]);
37
+ } return target;
38
+ };
39
+
40
+ var SPECIES = _wks('species');
41
+
42
+ var _setSpecies = function (KEY) {
43
+ var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
44
+ if (_descriptors && C && !C[SPECIES]) _objectDp.f(C, SPECIES, {
45
+ configurable: true,
46
+ get: function () { return this; }
47
+ });
48
+ };
49
+
50
+ export { _anInstance as _, _forOf as a, _redefineAll as b, _setSpecies as c };
@@ -1,8 +1,9 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { s as core_getIteratorMethod, e as _ctx, k as _toLength, v as _anObject, h as _wks, q as _aFunction, l as _global, G as _cof, H as _domCreate, I as _html, b as _isObject, n as _hide, a as _core, f as _descriptors, c as _objectDp, p as _classof, _ as _export, o as _setToStringTag } from './core.get-iterator-method-ea258bb1.js';
2
+ import { h as _wks, v as _anObject, q as _aFunction, l as _global, G as _cof, e as _ctx, H as _domCreate, I as _html, b as _isObject, p as _classof, _ as _export, o as _setToStringTag, a as _core } from './core.get-iterator-method-ea258bb1.js';
3
3
  import './web.dom.iterable-ab4dea5c.js';
4
4
  import { _ as _library } from './_library-528f1934.js';
5
- import { a as _isArrayIter, b as _iterCall, _ as _iterDetect } from './_iter-detect-98db3b07.js';
5
+ import { _ as _anInstance, b as _redefineAll, c as _setSpecies, a as _forOf } from './_set-species-2cd9340f.js';
6
+ import { _ as _iterDetect } from './_iter-detect-98db3b07.js';
6
7
 
7
8
  var runtime = createCommonjsModule(function (module) {
8
9
  /**
@@ -769,42 +770,14 @@ if (hadRuntime) {
769
770
 
770
771
  var regenerator = runtimeModule;
771
772
 
772
- var _anInstance = function (it, Constructor, name, forbiddenField) {
773
- if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
774
- throw TypeError(name + ': incorrect invocation!');
775
- } return it;
776
- };
777
-
778
- var _forOf = createCommonjsModule(function (module) {
779
- var BREAK = {};
780
- var RETURN = {};
781
- var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
782
- var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
783
- var f = _ctx(fn, that, entries ? 2 : 1);
784
- var index = 0;
785
- var length, step, iterator, result;
786
- if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
787
- // fast case for arrays with default iterator
788
- if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
789
- result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
790
- if (result === BREAK || result === RETURN) return result;
791
- } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
792
- result = _iterCall(iterator, f, step.value, entries);
793
- if (result === BREAK || result === RETURN) return result;
794
- }
795
- };
796
- exports.BREAK = BREAK;
797
- exports.RETURN = RETURN;
798
- });
799
-
800
773
  // 7.3.20 SpeciesConstructor(O, defaultConstructor)
801
774
 
802
775
 
803
- var SPECIES$1 = _wks('species');
776
+ var SPECIES = _wks('species');
804
777
  var _speciesConstructor = function (O, D) {
805
778
  var C = _anObject(O).constructor;
806
779
  var S;
807
- return C === undefined || (S = _anObject(C)[SPECIES$1]) == undefined ? D : _aFunction(S);
780
+ return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S);
808
781
  };
809
782
 
810
783
  // fast apply, http://jsperf.lnkit.com/fast-apply/5
@@ -1016,23 +989,6 @@ var _promiseResolve = function (C, x) {
1016
989
  return promiseCapability.promise;
1017
990
  };
1018
991
 
1019
- var _redefineAll = function (target, src, safe) {
1020
- for (var key in src) {
1021
- if (safe && target[key]) target[key] = src[key];
1022
- else _hide(target, key, src[key]);
1023
- } return target;
1024
- };
1025
-
1026
- var SPECIES = _wks('species');
1027
-
1028
- var _setSpecies = function (KEY) {
1029
- var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
1030
- if (_descriptors && C && !C[SPECIES]) _objectDp.f(C, SPECIES, {
1031
- configurable: true,
1032
- get: function () { return this; }
1033
- });
1034
- };
1035
-
1036
992
  var task = _task.set;
1037
993
  var microtask = _microtask();
1038
994
 
@@ -1384,4 +1340,4 @@ exports.default = function (fn) {
1384
1340
 
1385
1341
  var _asyncToGenerator = unwrapExports(asyncToGenerator);
1386
1342
 
1387
- export { _asyncToGenerator as _, _Promise as a, _anInstance as b, _forOf as c, _redefineAll as d, _setSpecies as e, regenerator as r };
1343
+ export { _asyncToGenerator as _, _Promise as a, regenerator as r };
@@ -1,9 +1,10 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import { m as md5 } from './md5-4e42248e.js';
3
3
  import './_commonjsHelpers-0c4b6f40.js';
4
4
  import './core.get-iterator-method-ea258bb1.js';
5
5
  import './web.dom.iterable-ab4dea5c.js';
6
6
  import './_library-528f1934.js';
7
+ import './_set-species-2cd9340f.js';
7
8
  import './_iter-detect-98db3b07.js';
8
9
 
9
10
  var encrypt = function () {
@@ -1,8 +1,9 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import './_commonjsHelpers-0c4b6f40.js';
3
3
  import './core.get-iterator-method-ea258bb1.js';
4
4
  import './web.dom.iterable-ab4dea5c.js';
5
5
  import './_library-528f1934.js';
6
+ import './_set-species-2cd9340f.js';
6
7
  import './_iter-detect-98db3b07.js';
7
8
 
8
9
  var getPtceActivities = function () {
@@ -13,7 +13,7 @@ var getQuery = function getQuery(type) {
13
13
  case 'article':
14
14
  return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, showIssueNameOnly, showPageNumber, parent-> },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\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 poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n disableEpisodeNumber,\n excludeRelatedContents,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n isSeries,\n disableEpisodeNumber,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n excludeRelatedContents,\n \'path\': identifier.current,\n hideSeriesSlider,\n pixelTrackingCode->\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 year,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
15
15
  case 'publication':
16
- 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 thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
16
+ 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 thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n "articles": *[\n _type == \'article\' \n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)\n ][0]{_id}\n } | order(year desc, month desc)\n }';
17
17
  case 'issue':
18
18
  return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && is_visible != false\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n thumbnail{ ..., asset-> },\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n },\n \'pageNumber\': 1\n }\n }\n }';
19
19
  case 'externalResources':
@@ -1,10 +1,11 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import { c as createCommonjsModule, a as commonjsGlobal, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
3
3
  import { c as cookie } from './index-db3bb315.js';
4
4
  import getQuery from './getQuery.js';
5
5
  import './core.get-iterator-method-ea258bb1.js';
6
6
  import './web.dom.iterable-ab4dea5c.js';
7
7
  import './_library-528f1934.js';
8
+ import './_set-species-2cd9340f.js';
8
9
  import './_iter-detect-98db3b07.js';
9
10
 
10
11
  var defaultParseOptions = {
@@ -1,8 +1,9 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
2
  import './_commonjsHelpers-0c4b6f40.js';
3
3
  import './core.get-iterator-method-ea258bb1.js';
4
4
  import './web.dom.iterable-ab4dea5c.js';
5
5
  import './_library-528f1934.js';
6
+ import './_set-species-2cd9340f.js';
6
7
  import './_iter-detect-98db3b07.js';
7
8
 
8
9
  var _this = undefined;
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { g as default } from './index-dd204fd9.js';
2
+ export { g as default } from './index-fbb977dc.js';
3
3
  import './BlockContent-1e73bd2c.js';
4
4
  import './entities-6d9154b4.js';
5
5
  import './slicedToArray-6ebcbfea.js';
@@ -16,8 +16,9 @@ import './index-c7e2ac95.js';
16
16
  import './util-8ed16d48.js';
17
17
  import './Beam.js';
18
18
  import './stringify-2b084bee.js';
19
- import './asyncToGenerator-958ef5fc.js';
19
+ import './asyncToGenerator-64822ccc.js';
20
20
  import './_library-528f1934.js';
21
+ import './_set-species-2cd9340f.js';
21
22
  import './_iter-detect-98db3b07.js';
22
23
  import './Segment.js';
23
24
  import './main-9f6806ea.js';
@@ -15,7 +15,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
15
  import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
16
16
  import { u as urlForFile } from './urlForFile-b69adffc.js';
17
17
  import { L as LazyLoad } from './index-755f2cc2.js';
18
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
18
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
19
19
  import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
20
20
  import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
21
21
  import { _ as _JSON$stringify } from './stringify-2b084bee.js';