@mjhls/mjh-framework 1.0.1050-lightbox-v7 → 1.0.1050-pdfGating

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 (190) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -4
  4. package/dist/cjs/AD300x250x600.js +2 -4
  5. package/dist/cjs/AD728x90.js +2 -4
  6. package/dist/cjs/ADFloatingFooter.js +2 -4
  7. package/dist/cjs/ADGutter.js +2 -4
  8. package/dist/cjs/ADSkyscraper.js +2 -4
  9. package/dist/cjs/ADSponsoredResources.js +2 -4
  10. package/dist/cjs/ADWebcast.js +2 -4
  11. package/dist/cjs/ADWelcome.js +2 -4
  12. package/dist/cjs/AdSlot.js +2 -4
  13. package/dist/cjs/AdSlotsProvider.js +2 -4
  14. package/dist/cjs/AlgoliaSearch.js +337 -38
  15. package/dist/cjs/ArticleProgramLandingPage.js +4 -6
  16. package/dist/cjs/ArticleSeriesLandingPage.js +4 -6
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/Auth.js +1 -2
  19. package/dist/cjs/AuthWrapper.js +6 -96
  20. package/dist/cjs/Beam.js +1 -2
  21. package/dist/cjs/CEDeckSupabase.js +2 -3
  22. package/dist/cjs/CMEDeck.js +2 -4
  23. package/dist/cjs/Column2.js +1 -2
  24. package/dist/cjs/Column3.js +2 -4
  25. package/dist/cjs/ConferenceArticleCard.js +15 -15
  26. package/dist/cjs/ContentCardPaginated.js +3 -5
  27. package/dist/cjs/DeckContent.js +11 -13
  28. package/dist/cjs/DeckQueue.js +1 -2
  29. package/dist/cjs/DeckQueuePaginated.js +2 -4
  30. package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
  31. package/dist/cjs/EventsDeck.js +17 -17
  32. package/dist/cjs/ExternalResources.js +4 -6
  33. package/dist/cjs/GridContent.js +4 -6
  34. package/dist/cjs/GridContentPaginated.js +4 -6
  35. package/dist/cjs/HamMagazine.js +10 -11
  36. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  37. package/dist/cjs/HorizontalArticleListing.js +4 -6
  38. package/dist/cjs/{ImageSlider-d65bc9c8.js → ImageSlider-984a697b.js} +116 -156
  39. package/dist/cjs/IssueLanding.js +35 -37
  40. package/dist/cjs/KMTracker.js +15 -15
  41. package/dist/cjs/LeftNav.js +2 -4
  42. package/dist/cjs/MasterDeck.js +12 -14
  43. package/dist/cjs/MasterDeckPaginated.js +12 -14
  44. package/dist/cjs/{MediaSeriesCard-9c30d800.js → MediaSeriesCard-d169c597.js} +2 -2
  45. package/dist/cjs/MediaSeriesLanding.js +14 -16
  46. package/dist/cjs/MediaSeriesLandingPaginated.js +14 -16
  47. package/dist/cjs/NavDvm.js +1 -2
  48. package/dist/cjs/NavMagazine.js +11 -12
  49. package/dist/cjs/NavNative.js +10 -11
  50. package/dist/cjs/PartnerDetailListing.js +8 -9
  51. package/dist/cjs/PartnerDetailListingPaginated.js +8 -9
  52. package/dist/cjs/PodcastsLanding.js +7 -9
  53. package/dist/cjs/PtceDeck.js +1 -2
  54. package/dist/cjs/PubSection.js +4 -6
  55. package/dist/cjs/PubToc.js +1 -2
  56. package/dist/cjs/PublicationLanding.js +340 -44
  57. package/dist/cjs/QueueDeckExpanded.js +4 -6
  58. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -6
  59. package/dist/cjs/RelatedContent.js +28 -28
  60. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  61. package/dist/cjs/Segment.js +1 -2
  62. package/dist/cjs/SeriesListingDeck.js +2 -3
  63. package/dist/cjs/{SeriesSlider-c7ed509b.js → SeriesSlider-086a8319.js} +4 -4
  64. package/dist/cjs/SideFooter.js +3 -4
  65. package/dist/cjs/TaxonomyDescription.js +4 -6
  66. package/dist/cjs/TemplateNormal.js +2 -4
  67. package/dist/cjs/{Tooltip-02a841b5.js → Tooltip-96fe6ef6.js} +34 -86
  68. package/dist/cjs/Ustream.js +1 -2
  69. package/dist/cjs/VideoProgramLandingPage.js +4 -6
  70. package/dist/cjs/VideoSeriesCard.js +1 -1
  71. package/dist/cjs/VideoSeriesFilter.js +1 -2
  72. package/dist/cjs/VideoSeriesLandingPage.js +4 -6
  73. package/dist/cjs/VideoSeriesListing.js +1 -2
  74. package/dist/cjs/View.js +8 -10
  75. package/dist/cjs/YoutubeGroup.js +4 -4
  76. package/dist/cjs/{asyncToGenerator-65df6bf8.js → asyncToGenerator-77821af0.js} +56 -8
  77. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  78. package/dist/cjs/faundadb.js +1 -2
  79. package/dist/cjs/getPtceActivities.js +1 -2
  80. package/dist/cjs/getRelatedArticle.js +1 -2
  81. package/dist/cjs/getRootDocGroup.js +1 -2
  82. package/dist/cjs/getSerializers.js +4 -6
  83. package/dist/cjs/getTIData.js +1 -2
  84. package/dist/cjs/{getTargeting-45ffbee8.js → getTargeting-5b954783.js} +9 -9
  85. package/dist/cjs/getTargeting.js +1 -1
  86. package/dist/cjs/{index-9ec837cc.js → index-50be6759.js} +25 -9
  87. package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
  88. package/dist/cjs/{index-d4139113.js → index-e8600243.js} +25 -16
  89. package/dist/cjs/index.js +14 -14
  90. package/dist/cjs/typeof-1358762e.js +33 -0
  91. package/dist/cjs/{urlForFile-5084fc48.js → urlForFile-ef20990d.js} +2 -1
  92. package/dist/esm/AD.js +1 -1
  93. package/dist/esm/AD300x250.js +2 -4
  94. package/dist/esm/AD300x250x600.js +2 -4
  95. package/dist/esm/AD728x90.js +2 -4
  96. package/dist/esm/ADFloatingFooter.js +2 -4
  97. package/dist/esm/ADGutter.js +2 -4
  98. package/dist/esm/ADSkyscraper.js +2 -4
  99. package/dist/esm/ADSponsoredResources.js +2 -4
  100. package/dist/esm/ADWebcast.js +2 -4
  101. package/dist/esm/ADWelcome.js +2 -4
  102. package/dist/esm/AdSlot.js +2 -4
  103. package/dist/esm/AdSlotsProvider.js +2 -4
  104. package/dist/esm/AlgoliaSearch.js +336 -37
  105. package/dist/esm/ArticleProgramLandingPage.js +4 -6
  106. package/dist/esm/ArticleSeriesLandingPage.js +4 -6
  107. package/dist/esm/ArticleSeriesListing.js +1 -2
  108. package/dist/esm/Auth.js +1 -2
  109. package/dist/esm/AuthWrapper.js +3 -93
  110. package/dist/esm/Beam.js +1 -2
  111. package/dist/esm/CEDeckSupabase.js +2 -3
  112. package/dist/esm/CMEDeck.js +2 -4
  113. package/dist/esm/Column2.js +1 -2
  114. package/dist/esm/Column3.js +2 -4
  115. package/dist/esm/ConferenceArticleCard.js +15 -15
  116. package/dist/esm/ContentCardPaginated.js +3 -5
  117. package/dist/esm/DeckContent.js +11 -13
  118. package/dist/esm/DeckQueue.js +1 -2
  119. package/dist/esm/DeckQueuePaginated.js +2 -4
  120. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  121. package/dist/esm/EventsDeck.js +17 -17
  122. package/dist/esm/ExternalResources.js +4 -6
  123. package/dist/esm/GridContent.js +4 -6
  124. package/dist/esm/GridContentPaginated.js +4 -6
  125. package/dist/esm/HamMagazine.js +10 -11
  126. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  127. package/dist/esm/HorizontalArticleListing.js +4 -6
  128. package/dist/esm/{ImageSlider-da225417.js → ImageSlider-497e9c88.js} +117 -157
  129. package/dist/esm/IssueLanding.js +35 -37
  130. package/dist/esm/KMTracker.js +15 -15
  131. package/dist/esm/LeftNav.js +2 -4
  132. package/dist/esm/MasterDeck.js +12 -14
  133. package/dist/esm/MasterDeckPaginated.js +12 -14
  134. package/dist/esm/{MediaSeriesCard-0830bfb5.js → MediaSeriesCard-db3db926.js} +2 -2
  135. package/dist/esm/MediaSeriesLanding.js +14 -16
  136. package/dist/esm/MediaSeriesLandingPaginated.js +14 -16
  137. package/dist/esm/NavDvm.js +1 -2
  138. package/dist/esm/NavMagazine.js +11 -12
  139. package/dist/esm/NavNative.js +10 -11
  140. package/dist/esm/PartnerDetailListing.js +8 -9
  141. package/dist/esm/PartnerDetailListingPaginated.js +8 -9
  142. package/dist/esm/PodcastsLanding.js +7 -9
  143. package/dist/esm/PtceDeck.js +1 -2
  144. package/dist/esm/PubSection.js +4 -6
  145. package/dist/esm/PubToc.js +1 -2
  146. package/dist/esm/PublicationLanding.js +326 -34
  147. package/dist/esm/QueueDeckExpanded.js +4 -6
  148. package/dist/esm/QueueDeckExpandedPaginated.js +4 -6
  149. package/dist/esm/RelatedContent.js +28 -28
  150. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  151. package/dist/esm/Segment.js +1 -2
  152. package/dist/esm/SeriesListingDeck.js +2 -3
  153. package/dist/esm/{SeriesSlider-b467f00c.js → SeriesSlider-a6b1d617.js} +4 -4
  154. package/dist/esm/SideFooter.js +3 -4
  155. package/dist/esm/TaxonomyDescription.js +4 -6
  156. package/dist/esm/TemplateNormal.js +2 -4
  157. package/dist/esm/{Tooltip-7a093cd4.js → Tooltip-bc98d17e.js} +192 -244
  158. package/dist/esm/Ustream.js +1 -2
  159. package/dist/esm/VideoProgramLandingPage.js +4 -6
  160. package/dist/esm/VideoSeriesCard.js +1 -1
  161. package/dist/esm/VideoSeriesFilter.js +1 -2
  162. package/dist/esm/VideoSeriesLandingPage.js +4 -6
  163. package/dist/esm/VideoSeriesListing.js +1 -2
  164. package/dist/esm/View.js +8 -10
  165. package/dist/esm/YoutubeGroup.js +4 -4
  166. package/dist/esm/{asyncToGenerator-64822ccc.js → asyncToGenerator-958ef5fc.js} +50 -6
  167. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  168. package/dist/esm/faundadb.js +1 -2
  169. package/dist/esm/getPtceActivities.js +1 -2
  170. package/dist/esm/getRelatedArticle.js +1 -2
  171. package/dist/esm/getRootDocGroup.js +1 -2
  172. package/dist/esm/getSerializers.js +4 -6
  173. package/dist/esm/getTIData.js +1 -2
  174. package/dist/esm/{getTargeting-a569a9cc.js → getTargeting-5a281334.js} +9 -9
  175. package/dist/esm/getTargeting.js +1 -1
  176. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  177. package/dist/esm/{index-d0cdb127.js → index-60cb5113.js} +25 -16
  178. package/dist/esm/{index-0ce54f8a.js → index-98ca9cec.js} +25 -10
  179. package/dist/esm/index.js +14 -14
  180. package/dist/esm/typeof-2f07d0e8.js +30 -0
  181. package/dist/esm/{urlForFile-f6485737.js → urlForFile-dc111d7f.js} +2 -1
  182. package/package.json +116 -116
  183. package/dist/cjs/_set-species-0c7864a2.js +0 -55
  184. package/dist/cjs/events-1b438fe7.js +0 -469
  185. package/dist/esm/_set-species-2cd9340f.js +0 -50
  186. package/dist/esm/events-6c3a7a63.js +0 -467
  187. /package/dist/cjs/{ADInfeed-89f63b7d.js → ADInfeed-49bdb9e1.js} +0 -0
  188. /package/dist/cjs/{ADlgInfeed-a536168e.js → ADlgInfeed-33be9ab6.js} +0 -0
  189. /package/dist/esm/{ADInfeed-c14e043c.js → ADInfeed-d2229e62.js} +0 -0
  190. /package/dist/esm/{ADlgInfeed-2892de3c.js → ADlgInfeed-e13fb474.js} +0 -0
@@ -1,37 +1,36 @@
1
- import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import { _ as _extends } from './extends-1559c147.js';
4
4
  import React__default from 'react';
5
5
  import { TwitterTimelineEmbed } from 'react-twitter-embed';
6
- import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-da225417.js';
6
+ import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-497e9c88.js';
7
+ import './defineProperty-23a8f8cd.js';
7
8
  import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
8
9
  import './moment-bc12cb97.js';
9
10
  import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
10
11
  import Breadcrumbs from './Breadcrumbs.js';
11
12
  import Feature from './Feature.js';
12
13
  import urlFor from './urlFor.js';
13
- import { g as getSerializers } from './index-d0cdb127.js';
14
+ import { g as getSerializers } from './index-60cb5113.js';
14
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
16
  import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
16
17
  import './_commonjsHelpers-0c4b6f40.js';
17
18
  import './core.get-iterator-method-ea258bb1.js';
18
19
  import './web.dom.iterable-ab4dea5c.js';
19
20
  import './_library-528f1934.js';
20
- import './_set-species-2cd9340f.js';
21
21
  import './_iter-detect-98db3b07.js';
22
22
  import 'prop-types';
23
23
  import './smoothscroll-fa4e3f8c.js';
24
24
  import './toConsumableArray-f7074d7c.js';
25
25
  import 'react-bootstrap';
26
- import './index-f0fc23eb.js';
27
- import './events-6c3a7a63.js';
26
+ import './index-5cc7b406.js';
28
27
  import 'next/router';
29
28
  import './index-755f2cc2.js';
30
29
  import 'react-dom';
31
30
  import './lodash-f97fd99a.js';
32
31
  import './main-754d4992.js';
33
32
  import './entities-6d9154b4.js';
34
- import './ADInfeed-c14e043c.js';
33
+ import './ADInfeed-d2229e62.js';
35
34
  import 'react-bootstrap/Card';
36
35
  import './AdSlot.js';
37
36
  import './debounce-533d9748.js';
@@ -41,7 +40,7 @@ import './Beam.js';
41
40
  import './stringify-2b084bee.js';
42
41
  import './Segment.js';
43
42
  import './AuthorComponent-11adff02.js';
44
- import './ADlgInfeed-2892de3c.js';
43
+ import './ADlgInfeed-e13fb474.js';
45
44
  import './getContentCategory-15dcc413.js';
46
45
  import './timeDifferenceCalc.js';
47
46
  import './Pagination-9fe9f61d.js';
@@ -53,7 +52,7 @@ import 'react-bootstrap/Breadcrumb';
53
52
  import 'react-bootstrap/Carousel';
54
53
  import './index-c7e2ac95.js';
55
54
  import './util-8ed16d48.js';
56
- import './urlForFile-f6485737.js';
55
+ import './urlForFile-dc111d7f.js';
57
56
  import './typeof-657f25da.js';
58
57
  import './_is-array-8d21b9e3.js';
59
58
  import './brightcove-react-player-loader.es-57a70a56.js';
@@ -1,17 +1,16 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _extends } from './extends-1559c147.js';
3
3
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
4
  import React__default, { useState } from 'react';
5
5
  import Link from 'next/link';
6
6
  import MasterDeck from './MasterDeck.js';
7
- import { M as MediaSeriesCard } from './MediaSeriesCard-0830bfb5.js';
7
+ import { M as MediaSeriesCard } from './MediaSeriesCard-db3db926.js';
8
8
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
9
- import { g as getSerializers } from './index-d0cdb127.js';
9
+ import { g as getSerializers } from './index-60cb5113.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';
15
14
  import './_iter-detect-98db3b07.js';
16
15
  import './toConsumableArray-f7074d7c.js';
17
16
  import './inherits-d21b4ef9.js';
@@ -19,8 +18,7 @@ import './_object-sap-7cee6f84.js';
19
18
  import './define-property-5f1bda73.js';
20
19
  import './typeof-657f25da.js';
21
20
  import './_is-array-8d21b9e3.js';
22
- import './index-f0fc23eb.js';
23
- import './events-6c3a7a63.js';
21
+ import './index-5cc7b406.js';
24
22
  import 'prop-types';
25
23
  import 'react-bootstrap/Container';
26
24
  import 'react-bootstrap/Row';
@@ -36,20 +34,20 @@ import './index.es-a6137319.js';
36
34
  import './visibility-sensor-72fd8f8b.js';
37
35
  import 'react-dom';
38
36
  import './index-3f5c03b2.js';
39
- import './ADlgInfeed-2892de3c.js';
37
+ import './ADlgInfeed-e13fb474.js';
40
38
  import './AdSlot.js';
41
39
  import './Beam.js';
42
40
  import './stringify-2b084bee.js';
43
41
  import './Segment.js';
44
42
  import './main-754d4992.js';
45
- import './ADInfeed-c14e043c.js';
43
+ import './ADInfeed-d2229e62.js';
46
44
  import './index-755f2cc2.js';
47
45
  import './urlFor.js';
48
46
  import './style-inject.es-1f59c1d0.js';
49
47
  import 'react-bootstrap';
50
48
  import './index-c7e2ac95.js';
51
49
  import './util-8ed16d48.js';
52
- import './urlForFile-f6485737.js';
50
+ import './urlForFile-dc111d7f.js';
53
51
  import './brightcove-react-player-loader.es-57a70a56.js';
54
52
  import './_object-to-array-b61d5965.js';
55
53
  import './keys-31dcdb31.js';
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
3
3
  import { _ as _JSON$stringify } from './stringify-2b084bee.js';
4
4
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
@@ -9,7 +9,6 @@ import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-ea258bb1.js';
10
10
  import './web.dom.iterable-ab4dea5c.js';
11
11
  import './_library-528f1934.js';
12
- import './_set-species-2cd9340f.js';
13
12
  import './_iter-detect-98db3b07.js';
14
13
 
15
14
  function PtceDeck(props) {
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import { _ as _extends } from './extends-1559c147.js';
4
4
  import React__default from 'react';
@@ -7,7 +7,6 @@ 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';
11
10
  import './_iter-detect-98db3b07.js';
12
11
  import './toConsumableArray-f7074d7c.js';
13
12
  import 'react-bootstrap';
@@ -17,14 +16,13 @@ import './index.es-a6137319.js';
17
16
  import './moment-bc12cb97.js';
18
17
  import './visibility-sensor-72fd8f8b.js';
19
18
  import 'react-dom';
20
- import './index-f0fc23eb.js';
21
- import './events-6c3a7a63.js';
19
+ import './index-5cc7b406.js';
22
20
  import 'prop-types';
23
21
  import 'next/router';
24
22
  import './index-755f2cc2.js';
25
23
  import './main-754d4992.js';
26
24
  import './entities-6d9154b4.js';
27
- import './ADInfeed-c14e043c.js';
25
+ import './ADInfeed-d2229e62.js';
28
26
  import 'react-bootstrap/Card';
29
27
  import './AdSlot.js';
30
28
  import './debounce-533d9748.js';
@@ -35,7 +33,7 @@ import './stringify-2b084bee.js';
35
33
  import './Segment.js';
36
34
  import './AuthorComponent-11adff02.js';
37
35
  import './lodash-f97fd99a.js';
38
- import './ADlgInfeed-2892de3c.js';
36
+ import './ADlgInfeed-e13fb474.js';
39
37
  import './getContentCategory-15dcc413.js';
40
38
  import './timeDifferenceCalc.js';
41
39
 
@@ -1,11 +1,10 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default from 'react';
4
4
  import './_commonjsHelpers-0c4b6f40.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';
9
8
  import './_iter-detect-98db3b07.js';
10
9
 
11
10
  var _this = undefined;
@@ -1,18 +1,25 @@
1
+ import { b as _anInstance, c as _forOf, d as _redefineAll, e as _setSpecies, _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
+ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
1
3
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
2
4
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
3
5
  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';
4
6
  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';
6
7
  import { _ as _meta, a as _isArray } from './_is-array-8d21b9e3.js';
7
8
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
8
- import React__default, { useState, useEffect } from 'react';
9
+ import React__default, { useState, useRef, useEffect } from 'react';
9
10
  import Row from 'react-bootstrap/Row';
10
11
  import Col from 'react-bootstrap/Col';
11
12
  import Dropdown from 'react-bootstrap/Dropdown';
12
13
  import Card from 'react-bootstrap/Card';
13
14
  import { useRouter } from 'next/router';
14
15
  import { L as LazyLoad } from './index-755f2cc2.js';
15
- import { u as urlForFile } from './urlForFile-f6485737.js';
16
+ import { u as urlForFile } from './urlForFile-dc111d7f.js';
17
+ import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
18
+ import Popover from 'react-bootstrap/Popover';
19
+ import Button from 'react-bootstrap/Button';
20
+ import Form from 'react-bootstrap/Form';
21
+ import { b as main_42 } from './main-754d4992.js';
22
+ import './_library-528f1934.js';
16
23
  import './_iter-detect-98db3b07.js';
17
24
  import 'react-dom';
18
25
  import 'prop-types';
@@ -373,32 +380,34 @@ module.exports = { "default": set$1, __esModule: true };
373
380
 
374
381
  var _Set = unwrapExports(set);
375
382
 
376
- /* usage & query
377
- const Publication = (props) => {
378
- const { cache, pub, year } = props
379
- const targeting = {
380
- content_placement: [`/journals/${pub.identifier.current}`],
381
- document_url: [`/journals/${pub.identifier.current}`],
382
- }
383
- return (
384
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
385
- <PublicationLanding publication={pub} year={year} href={'journals'} />
386
- </Shell>
387
- )
388
- }
389
- Publication.getInitialProps = async (ctx) => {
390
- const { query } = ctx
391
- const {
392
- query: { year },
393
- } = ctx
394
- const pub = await client.fetch(getQuery('publication'), query)
395
- **import urlFor from framework**
396
- pub.issues.map((issue) => {
397
- issue.thumbnail = urlFor({client, source: issue.thumbnail})
398
- })
399
- return { pub, year }
400
- }
401
- export default Publication
383
+ var _this = undefined;
384
+
385
+ /* usage & query
386
+ const Publication = (props) => {
387
+ const { cache, pub, year } = props
388
+ const targeting = {
389
+ content_placement: [`/journals/${pub.identifier.current}`],
390
+ document_url: [`/journals/${pub.identifier.current}`],
391
+ }
392
+ return (
393
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
394
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
395
+ </Shell>
396
+ )
397
+ }
398
+ Publication.getInitialProps = async (ctx) => {
399
+ const { query } = ctx
400
+ const {
401
+ query: { year },
402
+ } = ctx
403
+ const pub = await client.fetch(getQuery('publication'), query)
404
+ **import urlFor from framework**
405
+ pub.issues.map((issue) => {
406
+ issue.thumbnail = urlFor({client, source: issue.thumbnail})
407
+ })
408
+ return { pub, year }
409
+ }
410
+ export default Publication
402
411
  */
403
412
 
404
413
  var generateContentPlacements = function generateContentPlacements(issues) {
@@ -455,6 +464,43 @@ var PublicationLanding = function PublicationLanding(props) {
455
464
 
456
465
  var baseUrl = client ? client.config().baseUrl : '';
457
466
 
467
+ var _useState9 = useState(''),
468
+ _useState10 = _slicedToArray(_useState9, 2),
469
+ email = _useState10[0],
470
+ setEmail = _useState10[1];
471
+
472
+ var _useState11 = useState(''),
473
+ _useState12 = _slicedToArray(_useState11, 2),
474
+ firstName = _useState12[0],
475
+ setFirstName = _useState12[1];
476
+
477
+ var _useState13 = useState(''),
478
+ _useState14 = _slicedToArray(_useState13, 2),
479
+ lastName = _useState14[0],
480
+ setLastName = _useState14[1];
481
+
482
+ var _useState15 = useState(false),
483
+ _useState16 = _slicedToArray(_useState15, 2),
484
+ isValidated = _useState16[0],
485
+ SetIsValidated = _useState16[1];
486
+
487
+ var DL_PDF = useRef();
488
+ var overLayRef = useRef([]);
489
+ var pdfFormRef = useRef();
490
+
491
+ var _useState17 = useState(false),
492
+ _useState18 = _slicedToArray(_useState17, 2),
493
+ sendingData = _useState18[0],
494
+ setSendingData = _useState18[1];
495
+
496
+ var _useState19 = useState(''),
497
+ _useState20 = _slicedToArray(_useState19, 2),
498
+ errorMsg = _useState20[0],
499
+ setErrorMsg = _useState20[1];
500
+
501
+ var triggerAction = 'click';
502
+ var placementLocation = main_42 ? 'top' : 'top';
503
+
458
504
  // useEffect(() => {
459
505
  // ;(async function() {
460
506
  // if (issueData && issueData.length > 0 && client) {
@@ -585,6 +631,220 @@ var PublicationLanding = function PublicationLanding(props) {
585
631
  }
586
632
  }, [activeYear, activeContentPlacement, issueData]);
587
633
 
634
+ var handleFormInput = function handleFormInput(e) {
635
+ switch (e.currentTarget.name) {
636
+ case 'firstName':
637
+ setFirstName(e.currentTarget.value);
638
+ break;
639
+ case 'lastName':
640
+ setLastName(e.currentTarget.value);
641
+ break;
642
+ case 'email':
643
+ setEmail(e.currentTarget.value);
644
+ break;
645
+ default:
646
+ closeOverlay(e.currentTarget.dataset['key']);
647
+ break;
648
+ }
649
+ };
650
+
651
+ var closeOverlay = function closeOverlay(key) {
652
+ overLayRef.current[key].handleHide();
653
+ };
654
+
655
+ var isGatedFormHandler = function () {
656
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(e) {
657
+ var form, body, res;
658
+ return regenerator.wrap(function _callee$(_context) {
659
+ while (1) {
660
+ switch (_context.prev = _context.next) {
661
+ case 0:
662
+ e.preventDefault();
663
+ e.stopPropagation();
664
+ setSendingData(true);
665
+ form = e.currentTarget;
666
+
667
+ if (!(form.checkValidity() === false)) {
668
+ _context.next = 6;
669
+ break;
670
+ }
671
+
672
+ return _context.abrupt('return');
673
+
674
+ case 6:
675
+ body = {};
676
+
677
+ body['firstName'] = firstName;
678
+ body['lastName'] = lastName;
679
+ body['email'] = email;
680
+ body['downloadedPDF'] = DL_PDF.current.dataset.pdfname;
681
+ body['publication'] = router.query.publication ? router.query.publication : null;
682
+ body['site'] = window.location.hostname;
683
+ SetIsValidated(true);
684
+
685
+ _context.prev = 14;
686
+ _context.next = 17;
687
+ return fetch('/api/pdfGating/check', {
688
+ method: 'POST',
689
+ headers: { 'Content-Type': 'application/json' },
690
+ body: _JSON$stringify(body)
691
+ });
692
+
693
+ case 17:
694
+ res = _context.sent;
695
+
696
+ if (!(res.status === 202)) {
697
+ _context.next = 23;
698
+ break;
699
+ }
700
+
701
+ window.open(DL_PDF.current.dataset.pdf, '_blank');
702
+ closeOverlay(DL_PDF.current.dataset.key);
703
+ _context.next = 28;
704
+ break;
705
+
706
+ case 23:
707
+ _context.t0 = Error;
708
+ _context.next = 26;
709
+ return res.text();
710
+
711
+ case 26:
712
+ _context.t1 = _context.sent;
713
+ throw new _context.t0(_context.t1);
714
+
715
+ case 28:
716
+ _context.next = 33;
717
+ break;
718
+
719
+ case 30:
720
+ _context.prev = 30;
721
+ _context.t2 = _context['catch'](14);
722
+
723
+ setErrorMsg(_context.t2.message);
724
+
725
+ case 33:
726
+ setSendingData(false);
727
+ SetIsValidated(false);
728
+
729
+ case 35:
730
+ case 'end':
731
+ return _context.stop();
732
+ }
733
+ }
734
+ }, _callee, _this, [[14, 30]]);
735
+ }));
736
+
737
+ return function isGatedFormHandler(_x) {
738
+ return _ref.apply(this, arguments);
739
+ };
740
+ }();
741
+
742
+ var isGatedPDFPopOver = function isGatedPDFPopOver(key) {
743
+ return React__default.createElement(
744
+ Popover,
745
+ { id: 'popover-basic-' },
746
+ React__default.createElement(
747
+ Popover.Content,
748
+ null,
749
+ React__default.createElement(
750
+ 'div',
751
+ { className: 'popoverClose' },
752
+ React__default.createElement(
753
+ 'button',
754
+ { 'data-key': key, onClick: function onClick(e) {
755
+ return handleFormInput(e);
756
+ } },
757
+ 'X'
758
+ )
759
+ ),
760
+ React__default.createElement(
761
+ Form,
762
+ { ref: pdfFormRef, validated: isValidated, onSubmit: isGatedFormHandler },
763
+ React__default.createElement(
764
+ Row,
765
+ { className: 'gatedPdfForm' },
766
+ React__default.createElement(
767
+ Form.Group,
768
+ { className: 'mb-3 mt-3', controlId: 'pdfFormFirstName' },
769
+ React__default.createElement(
770
+ Form.Label,
771
+ null,
772
+ React__default.createElement(
773
+ 'span',
774
+ { style: { color: 'red' } },
775
+ '*'
776
+ ),
777
+ 'First Name'
778
+ ),
779
+ React__default.createElement(Form.Control, { onChange: function onChange(e) {
780
+ return handleFormInput(e);
781
+ }, value: firstName, name: 'firstName', required: true, type: 'text', min: '1', placeholder: 'First Name' }),
782
+ React__default.createElement(
783
+ Form.Control.Feedback,
784
+ { type: 'invalid' },
785
+ 'Please provide your first name.'
786
+ )
787
+ ),
788
+ React__default.createElement(
789
+ Form.Group,
790
+ { required: true, className: 'mb-3', controlId: 'pdfFormLastName' },
791
+ React__default.createElement(
792
+ Form.Label,
793
+ null,
794
+ React__default.createElement(
795
+ 'span',
796
+ { style: { color: 'red' } },
797
+ '*'
798
+ ),
799
+ 'Last Name'
800
+ ),
801
+ React__default.createElement(Form.Control, { onChange: function onChange(e) {
802
+ return handleFormInput(e);
803
+ }, value: lastName, name: 'lastName', required: true, type: 'text', min: '1', placeholder: 'Last Name' }),
804
+ React__default.createElement(
805
+ Form.Control.Feedback,
806
+ { type: 'invalid' },
807
+ 'Please provide your last name.'
808
+ )
809
+ ),
810
+ React__default.createElement(
811
+ Form.Group,
812
+ { className: 'mb-3', controlId: 'pdfFormEmail' },
813
+ React__default.createElement(
814
+ Form.Label,
815
+ null,
816
+ React__default.createElement(
817
+ 'span',
818
+ { style: { color: 'red' } },
819
+ '*'
820
+ ),
821
+ 'Email'
822
+ ),
823
+ React__default.createElement(Form.Control, { onChange: function onChange(e) {
824
+ return handleFormInput(e);
825
+ }, value: email, name: 'email', required: true, type: 'email', placeholder: 'Email' }),
826
+ React__default.createElement(
827
+ Form.Control.Feedback,
828
+ { type: 'invalid' },
829
+ 'Please provide your email.'
830
+ )
831
+ ),
832
+ React__default.createElement(
833
+ Button,
834
+ { disabled: sendingData, className: 'btn btn-primary mb-3', type: 'submit' },
835
+ 'Submit'
836
+ ),
837
+ errorMsg ? React__default.createElement(
838
+ 'div',
839
+ { style: { color: 'red' } },
840
+ errorMsg
841
+ ) : null
842
+ )
843
+ )
844
+ )
845
+ );
846
+ };
847
+
588
848
  return React__default.createElement(
589
849
  'div',
590
850
  { id: 'publicationLanding' },
@@ -712,11 +972,27 @@ var PublicationLanding = function PublicationLanding(props) {
712
972
  { href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
713
973
  'View Issue'
714
974
  ) : null,
715
- issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
975
+ issue.isGatedPDF ? issue.pdf && issue.pdf.asset && issue.pdf.asset.url ? React__default.createElement(
976
+ OverlayTrigger,
977
+ {
978
+ key: key,
979
+ ref: function ref(el) {
980
+ return overLayRef.current[key] = el;
981
+ },
982
+ trigger: triggerAction,
983
+ placement: placementLocation,
984
+ delay: { show: 250, hide: 400 },
985
+ overlay: isGatedPDFPopOver(key) },
986
+ React__default.createElement(
987
+ 'button',
988
+ { rel: 'noopener', ref: DL_PDF, 'data-key': key, 'data-pdfName': issue.name, 'data-pdf': urlForFile(issue.pdf, baseUrl), className: 'btn btn-primary' },
989
+ 'Download Issue'
990
+ )
991
+ ) : null : issue.pdf && issue.pdf.asset && issue.pdf.asset.url ? React__default.createElement(
716
992
  'a',
717
993
  { rel: 'noopener', href: urlForFile(issue.pdf, baseUrl), target: '_blank', className: 'btn btn-primary' },
718
994
  'Download Issue'
719
- )
995
+ ) : null
720
996
  )
721
997
  )
722
998
  )
@@ -775,11 +1051,27 @@ var PublicationLanding = function PublicationLanding(props) {
775
1051
  { href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
776
1052
  'View Issue'
777
1053
  ) : null,
778
- issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
1054
+ issue.isGatedPDF ? issue.pdf && issue.pdf.asset && issue.pdf.asset.url ? React__default.createElement(
1055
+ OverlayTrigger,
1056
+ {
1057
+ key: key,
1058
+ ref: function ref(el) {
1059
+ return overLayRef.current[key] = el;
1060
+ },
1061
+ trigger: triggerAction,
1062
+ placement: placementLocation,
1063
+ delay: { show: 250, hide: 400 },
1064
+ overlay: isGatedPDFPopOver(key) },
1065
+ React__default.createElement(
1066
+ 'button',
1067
+ { rel: 'noopener', ref: DL_PDF, 'data-key': key, 'data-pdfName': issue.name, 'data-pdf': urlForFile(issue.pdf, baseUrl), className: 'btn btn-primary' },
1068
+ 'Download Issue'
1069
+ )
1070
+ ) : null : issue.pdf && issue.pdf.asset && issue.pdf.asset.url ? React__default.createElement(
779
1071
  'a',
780
1072
  { rel: 'noopener', href: urlForFile(issue.pdf, baseUrl), target: '_blank', className: 'btn btn-primary' },
781
1073
  'Download Issue'
782
- )
1074
+ ) : null
783
1075
  )
784
1076
  )
785
1077
  )
@@ -792,7 +1084,7 @@ var PublicationLanding = function PublicationLanding(props) {
792
1084
  React__default.createElement(
793
1085
  'style',
794
1086
  { jsx: 'true' },
795
- '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .dropdown-toggle {\n min-width: 5rem;\n }\n .dropdown-toggle:empty:after {\n margin-left: 4rem;\n }\n .card-footer {\n background-color: transparent;\n border-top: 0;\n }\n .card-footer a:not(:first-child) {\n margin-left: 1rem;\n }\n '
1087
+ '\n .gatedPdfForm {\n justify-content: center;\n }\n .popoverClose {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n }\n .popoverClose button {\n border: none;\n background: transparent;\n color: #2780e3;\n }\n .card-footer button:not(:first-child) {\n color: #fff;\n margin-left: 1rem;\n }\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .dropdown-toggle {\n min-width: 5rem;\n }\n .dropdown-toggle:empty:after {\n margin-left: 4rem;\n }\n .card-footer {\n background-color: transparent;\n border-top: 0;\n }\n .card-footer a:not(:first-child) {\n margin-left: 1rem;\n }\n '
796
1088
  )
797
1089
  );
798
1090
  };
@@ -7,15 +7,15 @@ import urlFor from './urlFor.js';
7
7
  import { I as InfiniteScroll } from './index.es-a6137319.js';
8
8
  import { m as moment } from './moment-bc12cb97.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
10
- import { l as lib_3 } from './index-f0fc23eb.js';
10
+ import { l as lib_3 } from './index-5cc7b406.js';
11
11
  import { useRouter } from 'next/router';
12
12
  import { L as LazyLoad } from './index-755f2cc2.js';
13
13
  import { m as main_43 } from './main-754d4992.js';
14
14
  import { c as clean_html_1 } from './entities-6d9154b4.js';
15
- import { A as ADInfeed } from './ADInfeed-c14e043c.js';
15
+ import { A as ADInfeed } from './ADInfeed-d2229e62.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-2892de3c.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-e13fb474.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -24,7 +24,6 @@ import './core.get-iterator-method-ea258bb1.js';
24
24
  import './_iter-detect-98db3b07.js';
25
25
  import './index-3f5c03b2.js';
26
26
  import 'react-dom';
27
- import './events-6c3a7a63.js';
28
27
  import 'prop-types';
29
28
  import 'react-bootstrap/Card';
30
29
  import './AdSlot.js';
@@ -33,9 +32,8 @@ import './isSymbol-a7e9aafe.js';
33
32
  import './toNumber-5aeba6e7.js';
34
33
  import './Beam.js';
35
34
  import './stringify-2b084bee.js';
36
- import './asyncToGenerator-64822ccc.js';
35
+ import './asyncToGenerator-958ef5fc.js';
37
36
  import './_library-528f1934.js';
38
- import './_set-species-2cd9340f.js';
39
37
  import './Segment.js';
40
38
 
41
39
  var renderCardImage = function renderCardImage(row, client) {