@mjhls/mjh-framework 1.0.915-nav-fix-v1 → 1.0.916

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 (157) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AlgoliaSearch.js +18 -140
  3. package/dist/cjs/ArticleProgramLandingPage.js +2 -1
  4. package/dist/cjs/Auth.js +17 -20
  5. package/dist/cjs/AuthWrapper.js +12 -18
  6. package/dist/cjs/CMEDeck.js +1 -5
  7. package/dist/cjs/Column1.js +1 -1
  8. package/dist/cjs/Column2.js +1 -1
  9. package/dist/cjs/Column3.js +1 -1
  10. package/dist/cjs/ContentCardPaginated.js +2 -1
  11. package/dist/cjs/DeckQueuePaginated.js +2 -1
  12. package/dist/cjs/Dfp-9be904d5.js +1 -1
  13. package/dist/cjs/ExternalResources.js +2 -1
  14. package/dist/cjs/GridContentPaginated.js +2 -1
  15. package/dist/cjs/HamMagazine.js +1 -1
  16. package/dist/cjs/Header.js +1 -1
  17. package/dist/cjs/HorizontalArticleListing.js +2 -1
  18. package/dist/cjs/IssueLanding.js +2 -1
  19. package/dist/cjs/LeftNav.js +1 -1
  20. package/dist/cjs/MasterDeckPaginated.js +2 -1
  21. package/dist/cjs/{MediaSeriesCard-8c3c5514.js → MediaSeriesCard-34235827.js} +43 -65
  22. package/dist/cjs/MediaSeriesLanding.js +3 -2
  23. package/dist/cjs/MediaSeriesLandingPaginated.js +5 -3
  24. package/dist/cjs/NavDvm.js +1 -1
  25. package/dist/cjs/NavMagazine.js +2 -2
  26. package/dist/cjs/NavNative.js +1 -1
  27. package/dist/cjs/Pagination-885dcfbd.js +90 -0
  28. package/dist/cjs/PartnerDetailListing.js +2 -1
  29. package/dist/cjs/PartnerDetailListingPaginated.js +4 -2
  30. package/dist/cjs/PublicationLanding.js +3 -2
  31. package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
  32. package/dist/cjs/TaxonomyDescription.js +2 -1
  33. package/dist/cjs/VideoProgramLandingPage.js +2 -1
  34. package/dist/cjs/View.js +8 -11
  35. package/dist/cjs/getQuery.js +2 -2
  36. package/dist/cjs/getSerializers.js +2 -1
  37. package/dist/cjs/{index-5ce5e821.js → index-f9f5f7c0.js} +5 -25
  38. package/dist/cjs/index.js +3 -1
  39. package/dist/cjs/urlForFile-29d3815a.js +24 -0
  40. package/dist/cjs/ustream-api-3819e4aa.js +1 -1
  41. package/dist/esm/AD.js +1 -1
  42. package/dist/esm/AD300x250.js +1 -1
  43. package/dist/esm/AD300x250x600.js +1 -1
  44. package/dist/esm/AD728x90.js +1 -1
  45. package/dist/esm/ADFloatingFooter.js +1 -1
  46. package/dist/esm/ADFooter.js +1 -1
  47. package/dist/esm/ADGutter.js +1 -1
  48. package/dist/esm/ADSkyscraper.js +1 -1
  49. package/dist/esm/ADSponsoredResources.js +1 -1
  50. package/dist/esm/ADWebcast.js +1 -1
  51. package/dist/esm/ADWelcome.js +1 -1
  52. package/dist/esm/AccordionPanel.js +1 -1
  53. package/dist/esm/AdSlot.js +1 -1
  54. package/dist/esm/AdSlotsProvider.js +1 -1
  55. package/dist/esm/AlgoliaSearch.js +20 -142
  56. package/dist/esm/AlphabeticList.js +1 -1
  57. package/dist/esm/ArticleCarousel.js +1 -1
  58. package/dist/esm/ArticleProgramLandingPage.js +3 -2
  59. package/dist/esm/ArticleSeriesLandingPage.js +1 -1
  60. package/dist/esm/ArticleSeriesListing.js +1 -1
  61. package/dist/esm/Auth.js +18 -20
  62. package/dist/esm/AuthWrapper.js +13 -19
  63. package/dist/esm/Beam.js +1 -1
  64. package/dist/esm/Breadcrumbs.js +1 -1
  65. package/dist/esm/CMEDeck.js +2 -6
  66. package/dist/esm/Column1.js +2 -1
  67. package/dist/esm/Column2.js +2 -1
  68. package/dist/esm/Column3.js +2 -1
  69. package/dist/esm/ConferenceArticleCard.js +1 -1
  70. package/dist/esm/ContentCardPaginated.js +3 -2
  71. package/dist/esm/DeckContent.js +1 -1
  72. package/dist/esm/DeckQueue.js +1 -1
  73. package/dist/esm/DeckQueuePaginated.js +3 -2
  74. package/dist/esm/Dfp-102f0beb.js +1 -1
  75. package/dist/esm/EventsDeck.js +1 -1
  76. package/dist/esm/ExternalResources.js +3 -2
  77. package/dist/esm/Feature.js +1 -1
  78. package/dist/esm/ForbesHero.js +1 -1
  79. package/dist/esm/GridContent.js +1 -1
  80. package/dist/esm/GridContentPaginated.js +3 -2
  81. package/dist/esm/GridHero.js +1 -1
  82. package/dist/esm/GroupDeck.js +1 -1
  83. package/dist/esm/HamMagazine.js +2 -1
  84. package/dist/esm/Header.js +2 -1
  85. package/dist/esm/Hero.js +1 -1
  86. package/dist/esm/HighlightenVideo.js +1 -1
  87. package/dist/esm/HorizontalArticleListing.js +3 -2
  88. package/dist/esm/HorizontalHero.js +1 -1
  89. package/dist/esm/IssueContentDeck.js +1 -1
  90. package/dist/esm/IssueDeck.js +1 -1
  91. package/dist/esm/IssueLanding.js +3 -2
  92. package/dist/esm/KMTracker.js +1 -1
  93. package/dist/esm/LeftNav.js +2 -1
  94. package/dist/esm/MasterDeck.js +1 -1
  95. package/dist/esm/MasterDeckPaginated.js +3 -2
  96. package/dist/esm/{MediaSeriesCard-30892d60.js → MediaSeriesCard-8a9b91e6.js} +43 -65
  97. package/dist/esm/MediaSeriesLanding.js +4 -3
  98. package/dist/esm/MediaSeriesLandingPaginated.js +6 -4
  99. package/dist/esm/NavDvm.js +2 -1
  100. package/dist/esm/NavMagazine.js +3 -2
  101. package/dist/esm/NavNative.js +2 -1
  102. package/dist/esm/OncliveHero.js +1 -1
  103. package/dist/esm/OncliveLargeHero.js +1 -1
  104. package/dist/esm/PageFilter.js +1 -1
  105. package/dist/esm/Pagination-59436882.js +82 -0
  106. package/dist/esm/PartnerDetailListing.js +3 -2
  107. package/dist/esm/PartnerDetailListingPaginated.js +5 -3
  108. package/dist/esm/PdfDownload.js +1 -1
  109. package/dist/esm/PopUpModal.js +1 -1
  110. package/dist/esm/PubSection.js +1 -1
  111. package/dist/esm/PubToc.js +1 -1
  112. package/dist/esm/PublicationDeck.js +1 -1
  113. package/dist/esm/PublicationLanding.js +4 -3
  114. package/dist/esm/QueueDeckExpanded.js +1 -1
  115. package/dist/esm/QueueDeckExpandedPaginated.js +3 -2
  116. package/dist/esm/RecentNews.js +1 -1
  117. package/dist/esm/RelatedContent.js +1 -1
  118. package/dist/esm/RelatedTopicsDropdown.js +1 -1
  119. package/dist/esm/RolesDeck.js +1 -1
  120. package/dist/esm/Schema.js +1 -1
  121. package/dist/esm/Search.js +1 -1
  122. package/dist/esm/Segment.js +1 -1
  123. package/dist/esm/SeriesListingDeck.js +1 -1
  124. package/dist/esm/SetCookie.js +1 -1
  125. package/dist/esm/SideFooter.js +1 -1
  126. package/dist/esm/SocialIcons.js +1 -1
  127. package/dist/esm/SocialShare.js +1 -1
  128. package/dist/esm/TaxonomyCard.js +1 -1
  129. package/dist/esm/TaxonomyDescription.js +3 -2
  130. package/dist/esm/TemplateNormal.js +1 -1
  131. package/dist/esm/ThumbnailCard.js +1 -1
  132. package/dist/esm/Ustream.js +1 -1
  133. package/dist/esm/VerticalHero.js +1 -1
  134. package/dist/esm/VideoProgramLandingPage.js +3 -2
  135. package/dist/esm/VideoSeriesCard.js +1 -1
  136. package/dist/esm/VideoSeriesFilter.js +1 -1
  137. package/dist/esm/VideoSeriesLandingPage.js +1 -1
  138. package/dist/esm/VideoSeriesListing.js +1 -1
  139. package/dist/esm/View.js +8 -12
  140. package/dist/esm/YahooHero.js +1 -1
  141. package/dist/esm/YoutubeGroup.js +1 -1
  142. package/dist/esm/getKeywords.js +1 -1
  143. package/dist/esm/getQuery.js +3 -3
  144. package/dist/esm/getRelatedArticle.js +1 -1
  145. package/dist/esm/getRootDocGroup.js +1 -1
  146. package/dist/esm/getSerializers.js +2 -1
  147. package/dist/esm/getSeriesDetail.js +1 -1
  148. package/dist/esm/{index-490f4f21.js → index-4d8a8743.js} +1 -21
  149. package/dist/esm/index.js +3 -1
  150. package/dist/esm/stringify-2b084bee.js +1 -1
  151. package/dist/esm/timeDifferenceCalc.js +1 -1
  152. package/dist/esm/urlFor.js +1 -1
  153. package/dist/esm/urlForFile-b69adffc.js +22 -0
  154. package/dist/esm/ustream-api-d3714624.js +1 -1
  155. package/package.json +1 -1
  156. package/dist/cjs/Pagination-42f92f7c.js +0 -97
  157. package/dist/esm/Pagination-484b86c5.js +0 -90
@@ -0,0 +1,82 @@
1
+ import React__default from 'react';
2
+ import ReactPaginate from 'react-paginate';
3
+ import Button from 'react-bootstrap/Button';
4
+ import { d as FaArrowRight, e as FaArrowLeft } from './index.esm-1bd8a0a8.js';
5
+
6
+ var Pagination = function Pagination(props) {
7
+ var pageCount = props.pageCount,
8
+ _props$marginPagesDis = props.marginPagesDisplayed,
9
+ marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
10
+ _props$pageRangeDispl = props.pageRangeDisplayed,
11
+ pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
12
+ _props$currentPage = props.currentPage,
13
+ currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
14
+ _onPageChange = props.onPageChange,
15
+ _props$needLargePagin = props.needLargePaginateButtons,
16
+ needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
17
+
18
+ if (!pageCount || pageCount <= 1) return null;
19
+ return React__default.createElement(
20
+ React__default.Fragment,
21
+ null,
22
+ needLargePaginateButtons && React__default.createElement(
23
+ 'div',
24
+ { className: 'pagination-lg-btn-nxt' },
25
+ React__default.createElement(
26
+ Button,
27
+ {
28
+ onClick: function onClick(e) {
29
+ e.preventDefault();
30
+ _onPageChange(currentPage + 1);
31
+ },
32
+ disabled: currentPage === pageCount,
33
+ href: '?page=' + (currentPage + 1) },
34
+ 'NEXT PAGE',
35
+ React__default.createElement(FaArrowRight, { className: 'fa-arrow-right' })
36
+ )
37
+ ),
38
+ React__default.createElement(ReactPaginate, {
39
+ pageCount: pageCount,
40
+ marginPagesDisplayed: marginPagesDisplayed,
41
+ pageRangeDisplayed: pageRangeDisplayed,
42
+ forcePage: currentPage - 1,
43
+ onPageChange: function onPageChange(_ref) {
44
+ var selected = _ref.selected;
45
+ return _onPageChange(selected + 1);
46
+ },
47
+ hrefBuilder: function hrefBuilder(page) {
48
+ return '?page=' + page;
49
+ },
50
+ previousLabel: '<',
51
+ nextLabel: '>',
52
+ containerClassName: 'pagination-container',
53
+ previousLinkClassName: 'previous',
54
+ nextLinkClassName: 'next',
55
+ disabledClassName: 'disbaled',
56
+ activeClassName: 'active'
57
+ }),
58
+ needLargePaginateButtons && React__default.createElement(
59
+ 'div',
60
+ { className: 'pagination-lg-btn-prv' },
61
+ React__default.createElement(
62
+ Button,
63
+ {
64
+ onClick: function onClick(e) {
65
+ e.preventDefault();
66
+ _onPageChange(currentPage - 1);
67
+ },
68
+ disabled: currentPage === 1,
69
+ href: '?page=' + (currentPage - 1) },
70
+ React__default.createElement(FaArrowLeft, { className: 'fa-arrow-left' }),
71
+ 'PREVIOUS PAGE'
72
+ )
73
+ ),
74
+ React__default.createElement(
75
+ 'style',
76
+ { jsx: 'true' },
77
+ '\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n }\n .pagination-container li:first-child a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container li:last-child a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n .pagination-lg-btn-nxt,\n .pagination-lg-btn-prv {\n text-align: center;\n }\n .pagination-lg-btn-nxt .btn,\n .pagination-lg-btn-prv .btn {\n min-width: 80%;\n color: #000;\n color: var(--primary);\n background-color: transparent;\n border-color: #000;\n border-color: var(--primary);\n }\n .pagination-lg-btn-nxt {\n margin: 0 0 1.5rem;\n }\n .pagination-lg-btn-prv {\n margin: 1.5rem 0 0;\n }\n .pagination-lg-btn-nxt .btn:not(:disabled):not(.disabled).active,\n .pagination-lg-btn-prv .btn:not(:disabled):not(.disabled):active {\n color: #fff;\n background-color: #000;\n background-color: var(--primary);\n border-color: #000;\n border-color: var(--primary);\n }\n @media only screen and (min-width: 601px) {\n [class^=\'pagination-lg-btn\'] {\n display: none;\n }\n }\n .fa-arrow-left {\n margin-right: 0.5rem;\n }\n .fa-arrow-right {\n margin-left: 0.5rem;\n }\n .pagination-container::-webkit-scrollbar {\n height: 8px;\n }\n .pagination-container::-webkit-scrollbar-track,\n .pagination-container::-webkit-scrollbar-thumb {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n }\n .pagination-container::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .pagination-container::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.3);\n }\n '
78
+ )
79
+ );
80
+ };
81
+
82
+ export { Pagination as P };
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
11
11
  import Breadcrumbs from './Breadcrumbs.js';
12
12
  import Feature from './Feature.js';
13
13
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-490f4f21.js';
14
+ import { g as getSerializers } from './index-4d8a8743.js';
15
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -51,6 +51,7 @@ import 'react-bootstrap/Breadcrumb';
51
51
  import 'react-bootstrap/Carousel';
52
52
  import './index-c7e2ac95.js';
53
53
  import './util-8ed16d48.js';
54
+ import './urlForFile-b69adffc.js';
54
55
  import './typeof-e9fc0c5d.js';
55
56
  import './_is-array-8d21b9e3.js';
56
57
  import './brightcove-react-player-loader.es-57a70a56.js';
@@ -292,4 +293,4 @@ PartnerDetails.returnGetInitialProps = function () {
292
293
  };
293
294
  }();
294
295
 
295
- export { PartnerDetails as default };
296
+ export default PartnerDetails;
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
11
11
  import Breadcrumbs from './Breadcrumbs.js';
12
12
  import Feature from './Feature.js';
13
13
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-490f4f21.js';
14
+ import { g as getSerializers } from './index-4d8a8743.js';
15
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -44,7 +44,8 @@ import './AuthorComponent-11adff02.js';
44
44
  import './ADlgInfeed-013e1f4a.js';
45
45
  import './getContentCategory-15dcc413.js';
46
46
  import './timeDifferenceCalc.js';
47
- import './Pagination-484b86c5.js';
47
+ import './Pagination-59436882.js';
48
+ import 'react-paginate';
48
49
  import 'react-bootstrap/Button';
49
50
  import './index.esm-1bd8a0a8.js';
50
51
  import './iconBase-ccc56b97.js';
@@ -53,6 +54,7 @@ import 'react-bootstrap/Breadcrumb';
53
54
  import 'react-bootstrap/Carousel';
54
55
  import './index-c7e2ac95.js';
55
56
  import './util-8ed16d48.js';
57
+ import './urlForFile-b69adffc.js';
56
58
  import './typeof-e9fc0c5d.js';
57
59
  import './_is-array-8d21b9e3.js';
58
60
  import './brightcove-react-player-loader.es-57a70a56.js';
@@ -306,4 +308,4 @@ PartnerDetails.returnGetInitialProps = function () {
306
308
  };
307
309
  }();
308
310
 
309
- export { PartnerDetails as default };
311
+ export default PartnerDetails;
@@ -19,4 +19,4 @@ var PdfDownload = function PdfDownload(props) {
19
19
  );
20
20
  };
21
21
 
22
- export { PdfDownload as default };
22
+ export default PdfDownload;
@@ -48,4 +48,4 @@ var PopUpModal = function PopUpModal(props) {
48
48
  );
49
49
  };
50
50
 
51
- export { PopUpModal as default };
51
+ export default PopUpModal;
@@ -112,4 +112,4 @@ PubSection.getInitialProps = function () {
112
112
  };
113
113
  }();
114
114
 
115
- export { PubSection as default };
115
+ export default PubSection;
@@ -78,4 +78,4 @@ PubToc.getInitialProps = function () {
78
78
  };
79
79
  }();
80
80
 
81
- export { PubToc as default };
81
+ export default PubToc;
@@ -170,4 +170,4 @@ var PublicationDeck = function PublicationDeck(props) {
170
170
  }
171
171
  };
172
172
 
173
- export { PublicationDeck as default };
173
+ export default PublicationDeck;
@@ -13,6 +13,7 @@ import Dropdown from 'react-bootstrap/Dropdown';
13
13
  import Card from 'react-bootstrap/Card';
14
14
  import { useRouter } from 'next/router';
15
15
  import { L as LazyLoad } from './index-755f2cc2.js';
16
+ import { u as urlForFile } from './urlForFile-b69adffc.js';
16
17
  import './_library-528f1934.js';
17
18
  import './_iter-detect-98db3b07.js';
18
19
  import './_object-pie-133f504a.js';
@@ -760,7 +761,7 @@ _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
760
761
  ) : null,
761
762
  issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
762
763
  'a',
763
- { rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary' },
764
+ { rel: 'noopener', href: urlForFile(issue.pdf), target: '_blank', className: 'btn btn-primary' },
764
765
  'Download Issue'
765
766
  )
766
767
  )
@@ -823,7 +824,7 @@ _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
823
824
  ) : null,
824
825
  issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
825
826
  'a',
826
- { rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary' },
827
+ { rel: 'noopener', href: urlForFile(issue.pdf), target: '_blank', className: 'btn btn-primary' },
827
828
  'Download Issue'
828
829
  )
829
830
  )
@@ -843,4 +844,4 @@ _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
843
844
  );
844
845
  };
845
846
 
846
- export { PublicationLanding as default };
847
+ export default PublicationLanding;
@@ -1532,4 +1532,4 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1532
1532
  );
1533
1533
  };
1534
1534
 
1535
- export { QueueDeckExpanded as default };
1535
+ export default QueueDeckExpanded;
@@ -17,7 +17,7 @@ import { A as ADlgInfeed } from './ADlgInfeed-013e1f4a.js';
17
17
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
18
18
  import timeDifferenceCalc from './timeDifferenceCalc.js';
19
19
  import urlFor from './urlFor.js';
20
- import { P as Pagination } from './Pagination-484b86c5.js';
20
+ import { P as Pagination } from './Pagination-59436882.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
22
22
  import './core.get-iterator-method-ea258bb1.js';
23
23
  import './web.dom.iterable-ab4dea5c.js';
@@ -36,6 +36,7 @@ import './Beam.js';
36
36
  import './stringify-2b084bee.js';
37
37
  import './Segment.js';
38
38
  import './index-3f5c03b2.js';
39
+ import 'react-paginate';
39
40
  import 'react-bootstrap/Button';
40
41
  import './index.esm-1bd8a0a8.js';
41
42
  import './iconBase-ccc56b97.js';
@@ -1377,4 +1378,4 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1377
1378
  );
1378
1379
  };
1379
1380
 
1380
- export { QueueDeckExpanded as default };
1381
+ export default QueueDeckExpanded;
@@ -82,4 +82,4 @@ var RecentNews = function RecentNews(_ref) {
82
82
  );
83
83
  };
84
84
 
85
- export { RecentNews as default };
85
+ export default RecentNews;
@@ -105,4 +105,4 @@ var RelatedContent = function RelatedContent(props) {
105
105
  );
106
106
  };
107
107
 
108
- export { RelatedContent as default };
108
+ export default RelatedContent;
@@ -79,4 +79,4 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
79
79
  }
80
80
  };
81
81
 
82
- export { RelatedTopicsDropdown as default };
82
+ export default RelatedTopicsDropdown;
@@ -81,4 +81,4 @@ var RolesDeck = function RolesDeck(props) {
81
81
  );
82
82
  };
83
83
 
84
- export { RolesDeck as default };
84
+ export default RolesDeck;
@@ -92,4 +92,4 @@ var Schema = function Schema(props) {
92
92
  return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
93
93
  };
94
94
 
95
- export { Schema as default };
95
+ export default Schema;
@@ -54,4 +54,4 @@ var Search = function Search(props) {
54
54
  );
55
55
  };
56
56
 
57
- export { Search as default };
57
+ export default Search;
@@ -350,4 +350,4 @@ var Segment = {
350
350
  }
351
351
  };
352
352
 
353
- export { Segment as default };
353
+ export default Segment;
@@ -240,4 +240,4 @@ var SeriesListingDeck = function SeriesListingDeck(props) {
240
240
  );
241
241
  };
242
242
 
243
- export { SeriesListingDeck as default };
243
+ export default SeriesListingDeck;
@@ -5,4 +5,4 @@ var SetCookie = function SetCookie(key, value) {
5
5
  js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
6
6
  };
7
7
 
8
- export { SetCookie as default };
8
+ export default SetCookie;
@@ -142,4 +142,4 @@ var SideFooter = function SideFooter(props) {
142
142
  );
143
143
  };
144
144
 
145
- export { SideFooter as default };
145
+ export default SideFooter;
@@ -94,4 +94,4 @@ var SocialIcons = function SocialIcons(props) {
94
94
  }
95
95
  };
96
96
 
97
- export { SocialIcons as default };
97
+ export default SocialIcons;
@@ -64,4 +64,4 @@ var SocialShare = function SocialShare(props) {
64
64
 
65
65
  var SocialShare$1 = React__default.memo(SocialShare);
66
66
 
67
- export { SocialShare$1 as default };
67
+ export default SocialShare$1;
@@ -240,4 +240,4 @@ var TaxonomyCard = function TaxonomyCard(props) {
240
240
  );
241
241
  };
242
242
 
243
- export { TaxonomyCard as default };
243
+ export default TaxonomyCard;
@@ -4,7 +4,7 @@ import React__default from 'react';
4
4
  import { useRouter } from 'next/router';
5
5
  import Head from 'next/head';
6
6
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
7
- import { g as getSerializers } from './index-490f4f21.js';
7
+ import { g as getSerializers } from './index-4d8a8743.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-ea258bb1.js';
10
10
  import './web.dom.iterable-ab4dea5c.js';
@@ -24,6 +24,7 @@ import './Beam.js';
24
24
  import './stringify-2b084bee.js';
25
25
  import './Segment.js';
26
26
  import './main-1894c974.js';
27
+ import './urlForFile-b69adffc.js';
27
28
  import './index-755f2cc2.js';
28
29
  import 'react-dom';
29
30
  import './typeof-e9fc0c5d.js';
@@ -176,4 +177,4 @@ TaxonomyDescription.getDescription = function () {
176
177
  };
177
178
  }();
178
179
 
179
- export { TaxonomyDescription as default };
180
+ export default TaxonomyDescription;
@@ -195,4 +195,4 @@ var TemplateNormal = function TemplateNormal(props) {
195
195
  );
196
196
  };
197
197
 
198
- export { TemplateNormal as default };
198
+ export default TemplateNormal;
@@ -49,4 +49,4 @@ var ThumbnailCard = function ThumbnailCard(_ref) {
49
49
  );
50
50
  };
51
51
 
52
- export { ThumbnailCard as default };
52
+ export default ThumbnailCard;
@@ -147,4 +147,4 @@ var Ustream = function Ustream(_ref) {
147
147
 
148
148
  var Ustream$1 = React__default.memo(Ustream);
149
149
 
150
- export { Ustream$1 as default };
150
+ export default Ustream$1;
@@ -65,4 +65,4 @@ var VerticalHero = function VerticalHero(props) {
65
65
  );
66
66
  };
67
67
 
68
- export { VerticalHero as default };
68
+ export default VerticalHero;
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-490f4f21.js';
8
+ import { g as getSerializers } from './index-4d8a8743.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
@@ -27,6 +27,7 @@ import './Beam.js';
27
27
  import './stringify-2b084bee.js';
28
28
  import './Segment.js';
29
29
  import './main-1894c974.js';
30
+ import './urlForFile-b69adffc.js';
30
31
  import './index-755f2cc2.js';
31
32
  import 'react-dom';
32
33
  import './typeof-e9fc0c5d.js';
@@ -246,4 +247,4 @@ VideoProgramLandingPage.getInitialData = function () {
246
247
  };
247
248
  }();
248
249
 
249
- export { VideoProgramLandingPage as default };
250
+ export default VideoProgramLandingPage;
@@ -79,4 +79,4 @@ var VideoSeriesCard = function VideoSeriesCard(props) {
79
79
  );
80
80
  };
81
81
 
82
- export { VideoSeriesCard as default };
82
+ export default VideoSeriesCard;
@@ -119,4 +119,4 @@ var VideoSeriesFilter = function VideoSeriesFilter(props) {
119
119
  };
120
120
  var VideoSeriesFilter$1 = withRouter(VideoSeriesFilter);
121
121
 
122
- export { VideoSeriesFilter$1 as default };
122
+ export default VideoSeriesFilter$1;
@@ -170,4 +170,4 @@ VideoSeriesLandingPage.getInitialData = function () {
170
170
  };
171
171
  }();
172
172
 
173
- export { VideoSeriesLandingPage as default };
173
+ export default VideoSeriesLandingPage;
@@ -405,4 +405,4 @@ var VideoSeriesListing = function (_React$Component) {
405
405
 
406
406
  var VideoSeriesListing$1 = withRouter(VideoSeriesListing);
407
407
 
408
- export { VideoSeriesListing$1 as default };
408
+ export default VideoSeriesListing$1;
package/dist/esm/View.js CHANGED
@@ -15,25 +15,27 @@ 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-490f4f21.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-4d8a8743.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
20
  import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
21
21
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-42f9b439.js';
22
22
  import getKeywords from './getKeywords.js';
23
23
  import urlFor from './urlFor.js';
24
+ import { u as urlForFile } from './urlForFile-b69adffc.js';
24
25
  import { _ as _typeof } from './typeof-e9fc0c5d.js';
25
26
  import { b as FaMinus, c as FaPlus } from './index.esm-1bd8a0a8.js';
26
27
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
27
28
  import './index-755f2cc2.js';
28
29
  import { DiscussionEmbed } from 'disqus-react';
29
30
  import Schema from './Schema.js';
30
- import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
31
+ import FileSaver from 'file-saver';
31
32
  import { _ as _Object$keys } from './keys-31dcdb31.js';
32
33
  import { I as InfiniteScroll } from './index.es-a6137319.js';
33
34
  import { l as lib_3 } from './index-f0fc23eb.js';
34
35
  import getRelatedArticle from './getRelatedArticle.js';
35
36
  import getQuery from './getQuery.js';
36
37
  import getSeriesDetail from './getSeriesDetail.js';
38
+ import './_commonjsHelpers-0c4b6f40.js';
37
39
  import './core.get-iterator-method-ea258bb1.js';
38
40
  import './web.dom.iterable-ab4dea5c.js';
39
41
  import './_library-528f1934.js';
@@ -436,12 +438,6 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
436
438
  return showSocialShare;
437
439
  };
438
440
 
439
- var FileSaver_min = createCommonjsModule(function (module, exports) {
440
- (function(a,b){b();})(commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
441
-
442
-
443
- });
444
-
445
441
  var Article = forwardRef(function (props, ref) {
446
442
  var onVote = function () {
447
443
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
@@ -709,7 +705,7 @@ var Article = forwardRef(function (props, ref) {
709
705
  var downloadRIS = function downloadRIS() {
710
706
  var fileContent = generateRIS();
711
707
  var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
712
- FileSaver_min.saveAs(file, 'citation-' + url + '.ris');
708
+ FileSaver.saveAs(file, 'citation-' + url + '.ris');
713
709
  };
714
710
 
715
711
  var RelevantTopics = function RelevantTopics() {
@@ -1324,9 +1320,9 @@ var Article = forwardRef(function (props, ref) {
1324
1320
  } },
1325
1321
  'Download RIS'
1326
1322
  ),
1327
- issue && issue.url && React__default.createElement(
1323
+ issue && issue.pdf && React__default.createElement(
1328
1324
  'a',
1329
- { rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
1325
+ { rel: 'noopener', href: urlForFile({ asset: issue.pdf }), target: '_blank', title: 'Download issue' },
1330
1326
  React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
1331
1327
  'Download Issue : ',
1332
1328
  issue.name
@@ -2013,4 +2009,4 @@ View.returnGetInitialProps = function () {
2013
2009
  };
2014
2010
  }();
2015
2011
 
2016
- export { View as default };
2012
+ export default View;
@@ -117,4 +117,4 @@ var YahooHero = function YahooHero(props) {
117
117
  );
118
118
  };
119
119
 
120
- export { YahooHero as default };
120
+ export default YahooHero;
@@ -362,4 +362,4 @@ var YoutubeGroup = function YoutubeGroup(props) {
362
362
  );
363
363
  };
364
364
 
365
- export { YoutubeGroup as default };
365
+ export default YoutubeGroup;
@@ -41,4 +41,4 @@ var getKeywords = function getKeywords(article) {
41
41
  return keywords;
42
42
  };
43
43
 
44
- export { getKeywords as default };
44
+ export default getKeywords;
@@ -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 && defined(published) \n && dateTime(published) <= dateTime(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 fieldAbstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, 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 },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\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 isbn_issn,\n abbreviatedJournal,\n }\n }';
11
+ return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(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 fieldAbstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, 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 },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\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 \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
12
12
  case 'article':
13
- 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 fieldAbstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, 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, 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 },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\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 year,\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 isbn_issn,\n abbreviatedJournal,\n }\n\n }';
13
+ 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 fieldAbstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, 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, 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 },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\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 year,\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 \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\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 thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
16
16
  case 'issue':
@@ -22,4 +22,4 @@ var getQuery = function getQuery(type) {
22
22
  }
23
23
  };
24
24
 
25
- export { getQuery as default };
25
+ export default getQuery;
@@ -537,4 +537,4 @@ var getRelatedArticle = function () {
537
537
  };
538
538
  }();
539
539
 
540
- export { getRelatedArticle as default };
540
+ export default getRelatedArticle;
@@ -57,4 +57,4 @@ var getRootDocGroup = function () {
57
57
  };
58
58
  }();
59
59
 
60
- export { getRootDocGroup as default };
60
+ export default getRootDocGroup;