@mjhls/mjh-framework 1.0.1050-pdfGating-v4 → 1.0.1050

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 (135) hide show
  1. package/dist/cjs/AD300x250.js +2 -1
  2. package/dist/cjs/AD300x250x600.js +2 -1
  3. package/dist/cjs/AD728x90.js +2 -1
  4. package/dist/cjs/ADFloatingFooter.js +2 -1
  5. package/dist/cjs/ADGutter.js +2 -1
  6. package/dist/cjs/ADSkyscraper.js +2 -1
  7. package/dist/cjs/ADSponsoredResources.js +2 -1
  8. package/dist/cjs/ADWebcast.js +2 -1
  9. package/dist/cjs/ADWelcome.js +2 -1
  10. package/dist/cjs/AdSlot.js +2 -1
  11. package/dist/cjs/AdSlotsProvider.js +2 -1
  12. package/dist/cjs/ArticleProgramLandingPage.js +4 -3
  13. package/dist/cjs/ArticleSeriesLandingPage.js +4 -3
  14. package/dist/cjs/Auth.js +2 -1
  15. package/dist/cjs/Beam.js +2 -1
  16. package/dist/cjs/CMEDeck.js +2 -1
  17. package/dist/cjs/Column2.js +2 -1
  18. package/dist/cjs/Column3.js +2 -1
  19. package/dist/cjs/ContentCardPaginated.js +3 -2
  20. package/dist/cjs/DeckContent.js +3 -2
  21. package/dist/cjs/DeckQueuePaginated.js +2 -1
  22. package/dist/cjs/ExternalResources.js +4 -3
  23. package/dist/cjs/GridContent.js +4 -3
  24. package/dist/cjs/GridContentPaginated.js +4 -3
  25. package/dist/cjs/HamMagazine.js +2 -1
  26. package/dist/cjs/HorizontalArticleListing.js +4 -3
  27. package/dist/cjs/IssueLanding.js +6 -5
  28. package/dist/cjs/LeftNav.js +2 -1
  29. package/dist/cjs/MasterDeck.js +4 -3
  30. package/dist/cjs/MasterDeckPaginated.js +4 -3
  31. package/dist/cjs/{MediaSeriesCard-d169c597.js → MediaSeriesCard-efefab13.js} +1 -1
  32. package/dist/cjs/MediaSeriesLanding.js +7 -6
  33. package/dist/cjs/MediaSeriesLandingPaginated.js +7 -6
  34. package/dist/cjs/NavDvm.js +2 -1
  35. package/dist/cjs/NavMagazine.js +2 -1
  36. package/dist/cjs/NavNative.js +2 -1
  37. package/dist/cjs/PartnerDetailListing.js +6 -5
  38. package/dist/cjs/PartnerDetailListingPaginated.js +6 -5
  39. package/dist/cjs/PodcastsLanding.js +7 -6
  40. package/dist/cjs/PtceDeck.js +2 -1
  41. package/dist/cjs/PubSection.js +4 -3
  42. package/dist/cjs/PubToc.js +2 -1
  43. package/dist/cjs/PublicationLanding.js +18 -349
  44. package/dist/cjs/QueueDeckExpanded.js +4 -3
  45. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -3
  46. package/dist/cjs/Segment.js +2 -1
  47. package/dist/cjs/SideFooter.js +2 -1
  48. package/dist/cjs/TaxonomyDescription.js +4 -3
  49. package/dist/cjs/TemplateNormal.js +2 -1
  50. package/dist/cjs/Ustream.js +2 -1
  51. package/dist/cjs/VideoProgramLandingPage.js +4 -3
  52. package/dist/cjs/VideoSeriesFilter.js +2 -1
  53. package/dist/cjs/VideoSeriesLandingPage.js +4 -3
  54. package/dist/cjs/View.js +4 -3
  55. package/dist/cjs/_set-species-0c7864a2.js +55 -0
  56. package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-65df6bf8.js} +8 -56
  57. package/dist/cjs/faundadb.js +2 -1
  58. package/dist/cjs/getPtceActivities.js +2 -1
  59. package/dist/cjs/getRelatedArticle.js +2 -1
  60. package/dist/cjs/getRootDocGroup.js +2 -1
  61. package/dist/cjs/getSerializers.js +4 -3
  62. package/dist/cjs/getTIData.js +2 -1
  63. package/dist/cjs/{index-e8600243.js → index-a17fd994.js} +2 -2
  64. package/dist/cjs/index.js +8 -7
  65. package/dist/cjs/{urlForFile-ef20990d.js → urlForFile-5084fc48.js} +1 -2
  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 +4 -3
  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 +4 -3
  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 +4 -3
  92. package/dist/esm/IssueLanding.js +6 -5
  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-db3db926.js → MediaSeriesCard-f89bf2aa.js} +1 -1
  97. package/dist/esm/MediaSeriesLanding.js +7 -6
  98. package/dist/esm/MediaSeriesLandingPaginated.js +7 -6
  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 +6 -5
  103. package/dist/esm/PartnerDetailListingPaginated.js +6 -5
  104. package/dist/esm/PodcastsLanding.js +7 -6
  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 +8 -335
  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 +4 -3
  114. package/dist/esm/TemplateNormal.js +2 -1
  115. package/dist/esm/Ustream.js +2 -1
  116. package/dist/esm/VideoProgramLandingPage.js +4 -3
  117. package/dist/esm/VideoSeriesFilter.js +2 -1
  118. package/dist/esm/VideoSeriesLandingPage.js +4 -3
  119. package/dist/esm/View.js +4 -3
  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/getRelatedArticle.js +2 -1
  125. package/dist/esm/getRootDocGroup.js +2 -1
  126. package/dist/esm/getSerializers.js +4 -3
  127. package/dist/esm/getTIData.js +2 -1
  128. package/dist/esm/{index-60cb5113.js → index-8f28f687.js} +2 -2
  129. package/dist/esm/index.js +8 -7
  130. package/dist/esm/{urlForFile-dc111d7f.js → urlForFile-f6485737.js} +1 -2
  131. package/package.json +1 -1
  132. /package/dist/cjs/{ADInfeed-49bdb9e1.js → ADInfeed-98ee4120.js} +0 -0
  133. /package/dist/cjs/{ADlgInfeed-33be9ab6.js → ADlgInfeed-55df7d69.js} +0 -0
  134. /package/dist/esm/{ADInfeed-d2229e62.js → ADInfeed-6d0c0856.js} +0 -0
  135. /package/dist/esm/{ADlgInfeed-e13fb474.js → ADlgInfeed-93bc2250.js} +0 -0
@@ -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 { _ as _extends } from './extends-1559c147.js';
4
4
  import React__default from 'react';
@@ -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 './toConsumableArray-f7074d7c.js';
12
13
  import 'react-bootstrap';
@@ -22,7 +23,7 @@ import 'next/router';
22
23
  import './index-755f2cc2.js';
23
24
  import './main-754d4992.js';
24
25
  import './entities-6d9154b4.js';
25
- import './ADInfeed-d2229e62.js';
26
+ import './ADInfeed-6d0c0856.js';
26
27
  import 'react-bootstrap/Card';
27
28
  import './AdSlot.js';
28
29
  import './debounce-533d9748.js';
@@ -33,7 +34,7 @@ import './stringify-2b084bee.js';
33
34
  import './Segment.js';
34
35
  import './AuthorComponent-11adff02.js';
35
36
  import './lodash-f97fd99a.js';
36
- import './ADlgInfeed-e13fb474.js';
37
+ import './ADlgInfeed-93bc2250.js';
37
38
  import './getContentCategory-15dcc413.js';
38
39
  import './timeDifferenceCalc.js';
39
40
 
@@ -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 { _ 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';
8
9
  import './_iter-detect-98db3b07.js';
9
10
 
10
11
  var _this = undefined;
@@ -1,25 +1,18 @@
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';
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
- import React__default, { useState, useRef, useEffect } from 'react';
8
+ import React__default, { useState, useEffect } from 'react';
10
9
  import Row from 'react-bootstrap/Row';
11
10
  import Col from 'react-bootstrap/Col';
12
11
  import Dropdown from 'react-bootstrap/Dropdown';
13
12
  import Card from 'react-bootstrap/Card';
14
13
  import { useRouter } from 'next/router';
15
14
  import { L as LazyLoad } from './index-755f2cc2.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';
15
+ import { u as urlForFile } from './urlForFile-f6485737.js';
23
16
  import './_iter-detect-98db3b07.js';
24
17
  import 'react-dom';
25
18
  import 'prop-types';
@@ -380,8 +373,6 @@ module.exports = { "default": set$1, __esModule: true };
380
373
 
381
374
  var _Set = unwrapExports(set);
382
375
 
383
- var _this = undefined;
384
-
385
376
  /* usage & query
386
377
  const Publication = (props) => {
387
378
  const { cache, pub, year } = props
@@ -464,48 +455,6 @@ var PublicationLanding = function PublicationLanding(props) {
464
455
 
465
456
  var baseUrl = client ? client.config().baseUrl : '';
466
457
 
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
- checkBox = _useState16[0],
485
- setCheckBox = _useState16[1];
486
-
487
- var _useState17 = useState(false),
488
- _useState18 = _slicedToArray(_useState17, 2),
489
- isValidated = _useState18[0],
490
- SetIsValidated = _useState18[1];
491
-
492
- var DL_PDF = useRef();
493
- var overLayRef = useRef([]);
494
- var pdfFormRef = useRef();
495
-
496
- var _useState19 = useState(true),
497
- _useState20 = _slicedToArray(_useState19, 2),
498
- sendingData = _useState20[0],
499
- setSendingData = _useState20[1];
500
-
501
- var _useState21 = useState(''),
502
- _useState22 = _slicedToArray(_useState21, 2),
503
- errorMsg = _useState22[0],
504
- setErrorMsg = _useState22[1];
505
-
506
- var triggerAction = 'click';
507
- var placementLocation = main_42 ? 'top' : 'top';
508
-
509
458
  // useEffect(() => {
510
459
  // ;(async function() {
511
460
  // if (issueData && issueData.length > 0 && client) {
@@ -636,245 +585,6 @@ var PublicationLanding = function PublicationLanding(props) {
636
585
  }
637
586
  }, [activeYear, activeContentPlacement, issueData]);
638
587
 
639
- var handleFormInput = function handleFormInput(e) {
640
- console.dir(e.currentTarget);
641
- switch (e.currentTarget.name) {
642
- case 'firstName':
643
- setFirstName(e.currentTarget.value);
644
- break;
645
- case 'lastName':
646
- setLastName(e.currentTarget.value);
647
- break;
648
- case 'email':
649
- setEmail(e.currentTarget.value);
650
- break;
651
- case 'checkbox':
652
- setCheckBox(e.currentTarget.checked);
653
- break;
654
- }
655
- };
656
-
657
- useEffect(function () {
658
- if (firstName.length > 3 && lastName.length > 3 && email.includes('@') && checkBox) {
659
- setSendingData(false);
660
- }
661
- }, [firstName, lastName, email, checkBox]);
662
-
663
- var isGatedFormHandler = function () {
664
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(e) {
665
- var form, body, res;
666
- return regenerator.wrap(function _callee$(_context) {
667
- while (1) {
668
- switch (_context.prev = _context.next) {
669
- case 0:
670
- e.preventDefault();
671
- e.stopPropagation();
672
- setSendingData(true);
673
- form = e.currentTarget;
674
-
675
- if (!(form.checkValidity() === false)) {
676
- _context.next = 6;
677
- break;
678
- }
679
-
680
- return _context.abrupt('return');
681
-
682
- case 6:
683
- console.dir(overLayRef);
684
- body = {};
685
-
686
- body['firstName'] = firstName;
687
- body['lastName'] = lastName;
688
- body['email'] = email;
689
- body['downloadedPDF'] = DL_PDF.current.dataset.pdfname;
690
- body['publication'] = router.query.publication ? router.query.publication : null;
691
- body['site'] = window.location.hostname;
692
- SetIsValidated(true);
693
-
694
- _context.prev = 15;
695
- _context.next = 18;
696
- return fetch('/api/pdfGating/check', {
697
- method: 'POST',
698
- headers: { 'Content-Type': 'application/json' },
699
- body: _JSON$stringify(body)
700
- });
701
-
702
- case 18:
703
- res = _context.sent;
704
-
705
- if (!(res.status === 202)) {
706
- _context.next = 24;
707
- break;
708
- }
709
-
710
- window.open(DL_PDF.current.dataset.pdf, '_blank');
711
- closeAllOverlays();
712
- _context.next = 29;
713
- break;
714
-
715
- case 24:
716
- _context.t0 = Error;
717
- _context.next = 27;
718
- return res.text();
719
-
720
- case 27:
721
- _context.t1 = _context.sent;
722
- throw new _context.t0(_context.t1);
723
-
724
- case 29:
725
- _context.next = 34;
726
- break;
727
-
728
- case 31:
729
- _context.prev = 31;
730
- _context.t2 = _context['catch'](15);
731
-
732
- setErrorMsg(_context.t2.message);
733
-
734
- case 34:
735
- setSendingData(false);
736
- SetIsValidated(false);
737
-
738
- case 36:
739
- case 'end':
740
- return _context.stop();
741
- }
742
- }
743
- }, _callee, _this, [[15, 31]]);
744
- }));
745
-
746
- return function isGatedFormHandler(_x) {
747
- return _ref.apply(this, arguments);
748
- };
749
- }();
750
-
751
- var closeAllOverlays = function closeAllOverlays() {
752
- overLayRef.current.forEach(function (element) {
753
- try {
754
- console.dir(element);
755
- element.handleHide();
756
- } catch (e) {
757
- console.error(e.message);
758
- }
759
- });
760
- };
761
-
762
- var isGatedPDFPopOver = function isGatedPDFPopOver(key) {
763
- return React__default.createElement(
764
- Popover,
765
- { id: 'popover-basic-' + key },
766
- React__default.createElement(
767
- Popover.Content,
768
- null,
769
- React__default.createElement(
770
- Form,
771
- { ref: pdfFormRef, validated: isValidated, onSubmit: isGatedFormHandler },
772
- React__default.createElement(
773
- Row,
774
- { className: 'gatedPdfForm' },
775
- React__default.createElement(
776
- Form.Group,
777
- { className: 'mb-3 mt-3', controlId: 'pdfFormFirstName' },
778
- React__default.createElement(
779
- Form.Label,
780
- null,
781
- React__default.createElement(
782
- 'span',
783
- { style: { color: 'red' } },
784
- '*'
785
- ),
786
- 'First Name'
787
- ),
788
- React__default.createElement(Form.Control, { onChange: function onChange(e) {
789
- return handleFormInput(e);
790
- }, value: firstName, name: 'firstName', required: true, type: 'text', min: '1', placeholder: 'First Name' }),
791
- React__default.createElement(
792
- Form.Control.Feedback,
793
- { type: 'invalid' },
794
- 'Please provide your first name.'
795
- )
796
- ),
797
- React__default.createElement(
798
- Form.Group,
799
- { required: true, className: 'mb-3', controlId: 'pdfFormLastName' },
800
- React__default.createElement(
801
- Form.Label,
802
- null,
803
- React__default.createElement(
804
- 'span',
805
- { style: { color: 'red' } },
806
- '*'
807
- ),
808
- 'Last Name'
809
- ),
810
- React__default.createElement(Form.Control, { onChange: function onChange(e) {
811
- return handleFormInput(e);
812
- }, value: lastName, name: 'lastName', required: true, type: 'text', min: '1', placeholder: 'Last Name' }),
813
- React__default.createElement(
814
- Form.Control.Feedback,
815
- { type: 'invalid' },
816
- 'Please provide your last name.'
817
- )
818
- ),
819
- React__default.createElement(
820
- Form.Group,
821
- { className: 'mb-3', controlId: 'pdfFormEmail' },
822
- React__default.createElement(
823
- Form.Label,
824
- null,
825
- React__default.createElement(
826
- 'span',
827
- { style: { color: 'red' } },
828
- '*'
829
- ),
830
- 'Email'
831
- ),
832
- React__default.createElement(Form.Control, { onChange: function onChange(e) {
833
- return handleFormInput(e);
834
- }, value: email, name: 'email', required: true, type: 'email', placeholder: 'Email' }),
835
- React__default.createElement(
836
- Form.Control.Feedback,
837
- { type: 'invalid' },
838
- 'Please provide your email.'
839
- )
840
- ),
841
- React__default.createElement(
842
- Form.Group,
843
- { className: 'mb-3', controlId: 'pdfPrivacyCheck' },
844
- React__default.createElement(
845
- Form.Check,
846
- null,
847
- React__default.createElement(Form.Check.Input, { required: true, onChange: function onChange(e) {
848
- return handleFormInput(e);
849
- }, type: 'checkbox', name: 'checkbox' }),
850
- React__default.createElement(
851
- Form.Check.Label,
852
- null,
853
- 'By clicking on \'Submit\', you accept our ',
854
- React__default.createElement(
855
- 'a',
856
- { href: 'https://www.dentalproductsreport.com/privacy', target: '_blank' },
857
- 'Privacy Policy'
858
- )
859
- )
860
- )
861
- ),
862
- React__default.createElement(
863
- Button,
864
- { disabled: sendingData, className: 'btn btn-primary mb-3', type: 'submit' },
865
- 'Submit'
866
- ),
867
- errorMsg ? React__default.createElement(
868
- 'div',
869
- { style: { color: 'red' } },
870
- errorMsg
871
- ) : null
872
- )
873
- )
874
- )
875
- );
876
- };
877
-
878
588
  return React__default.createElement(
879
589
  'div',
880
590
  { id: 'publicationLanding' },
@@ -1002,30 +712,11 @@ var PublicationLanding = function PublicationLanding(props) {
1002
712
  { href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
1003
713
  'View Issue'
1004
714
  ) : null,
1005
- issue.isGatedPDF ? issue.pdf && issue.pdf.asset && issue.pdf.asset.url ? React__default.createElement(
1006
- OverlayTrigger,
1007
- {
1008
- rootClose: true,
1009
- rootCloseEvent: 'click',
1010
- key: key,
1011
- ref: function ref(el) {
1012
- console.dir(el);
1013
- overLayRef.current[key] = el;
1014
- },
1015
- trigger: triggerAction,
1016
- placement: placementLocation,
1017
- delay: { show: 250, hide: 400 },
1018
- overlay: isGatedPDFPopOver(key) },
1019
- React__default.createElement(
1020
- 'button',
1021
- { rel: 'noopener', ref: DL_PDF, 'data-key': key, 'data-pdfName': issue.name, 'data-pdf': urlForFile(issue.pdf, baseUrl), className: 'btn btn-primary' },
1022
- 'Download Issue'
1023
- )
1024
- ) : null : issue.pdf && issue.pdf.asset && issue.pdf.asset.url ? React__default.createElement(
715
+ issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
1025
716
  'a',
1026
717
  { rel: 'noopener', href: urlForFile(issue.pdf, baseUrl), target: '_blank', className: 'btn btn-primary' },
1027
718
  'Download Issue'
1028
- ) : null
719
+ )
1029
720
  )
1030
721
  )
1031
722
  )
@@ -1084,29 +775,11 @@ var PublicationLanding = function PublicationLanding(props) {
1084
775
  { href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
1085
776
  'View Issue'
1086
777
  ) : null,
1087
- issue.isGatedPDF ? issue.pdf && issue.pdf.asset && issue.pdf.asset.url ? React__default.createElement(
1088
- OverlayTrigger,
1089
- {
1090
- rootClose: true,
1091
- rootCloseEvent: 'click',
1092
- key: key,
1093
- ref: function ref(el) {
1094
- return overLayRef.current[key] = el;
1095
- },
1096
- trigger: triggerAction,
1097
- placement: placementLocation,
1098
- delay: { show: 250, hide: 400 },
1099
- overlay: isGatedPDFPopOver(key) },
1100
- React__default.createElement(
1101
- 'button',
1102
- { rel: 'noopener', ref: DL_PDF, 'data-key': key, 'data-pdfName': issue.name, 'data-pdf': urlForFile(issue.pdf, baseUrl), className: 'btn btn-primary' },
1103
- 'Download Issue'
1104
- )
1105
- ) : null : issue.pdf && issue.pdf.asset && issue.pdf.asset.url ? React__default.createElement(
778
+ issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
1106
779
  'a',
1107
780
  { rel: 'noopener', href: urlForFile(issue.pdf, baseUrl), target: '_blank', className: 'btn btn-primary' },
1108
781
  'Download Issue'
1109
- ) : null
782
+ )
1110
783
  )
1111
784
  )
1112
785
  )
@@ -1119,7 +792,7 @@ var PublicationLanding = function PublicationLanding(props) {
1119
792
  React__default.createElement(
1120
793
  'style',
1121
794
  { jsx: 'true' },
1122
- '\n .gatedPdfForm {\n justify-content: center;\n flex-direction: column;\n padding: 0 1.5rem;\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 '
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 '
1123
796
  )
1124
797
  );
1125
798
  };
@@ -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-754d4992.js';
14
14
  import { c as clean_html_1 } from './entities-6d9154b4.js';
15
- import { A as ADInfeed } from './ADInfeed-d2229e62.js';
15
+ import { A as ADInfeed } from './ADInfeed-6d0c0856.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-e13fb474.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-93bc2250.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -32,8 +32,9 @@ import './isSymbol-a7e9aafe.js';
32
32
  import './toNumber-5aeba6e7.js';
33
33
  import './Beam.js';
34
34
  import './stringify-2b084bee.js';
35
- import './asyncToGenerator-958ef5fc.js';
35
+ import './asyncToGenerator-64822ccc.js';
36
36
  import './_library-528f1934.js';
37
+ import './_set-species-2cd9340f.js';
37
38
  import './Segment.js';
38
39
 
39
40
  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-1559c147.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-754d4992.js';
13
13
  import { c as clean_html_1 } from './entities-6d9154b4.js';
14
- import { A as ADInfeed } from './ADInfeed-d2229e62.js';
14
+ import { A as ADInfeed } from './ADInfeed-6d0c0856.js';
15
15
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
16
- import { A as ADlgInfeed } from './ADlgInfeed-e13fb474.js';
16
+ import { A as ADlgInfeed } from './ADlgInfeed-93bc2250.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 'prop-types';
27
28
  import 'react-dom';
@@ -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');
@@ -9,9 +9,10 @@ import './core.get-iterator-method-ea258bb1.js';
9
9
  import 'prop-types';
10
10
  import './isSymbol-a7e9aafe.js';
11
11
  import './eq-bdcbf886.js';
12
- import './asyncToGenerator-958ef5fc.js';
12
+ import './asyncToGenerator-64822ccc.js';
13
13
  import './web.dom.iterable-ab4dea5c.js';
14
14
  import './_library-528f1934.js';
15
+ import './_set-species-2cd9340f.js';
15
16
  import './_iter-detect-98db3b07.js';
16
17
 
17
18
  var year = new Date().getFullYear();
@@ -1,15 +1,16 @@
1
1
  import { _ as _extends, a as _Object$assign } from './extends-1559c147.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-60cb5113.js';
8
+ import { g as getSerializers } from './index-8f28f687.js';
9
9
  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 'prop-types';
15
16
  import './index-3f5c03b2.js';
@@ -22,7 +23,7 @@ import './Beam.js';
22
23
  import './stringify-2b084bee.js';
23
24
  import './Segment.js';
24
25
  import './main-754d4992.js';
25
- import './urlForFile-dc111d7f.js';
26
+ import './urlForFile-f6485737.js';
26
27
  import './index-755f2cc2.js';
27
28
  import 'react-dom';
28
29
  import './typeof-657f25da.js';
@@ -24,8 +24,9 @@ import './isSymbol-a7e9aafe.js';
24
24
  import './toNumber-5aeba6e7.js';
25
25
  import './Beam.js';
26
26
  import './stringify-2b084bee.js';
27
- import './asyncToGenerator-958ef5fc.js';
27
+ import './asyncToGenerator-64822ccc.js';
28
28
  import './_library-528f1934.js';
29
+ import './_set-species-2cd9340f.js';
29
30
  import './_iter-detect-98db3b07.js';
30
31
  import './Segment.js';
31
32
  import './main-754d4992.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-1559c147.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-60cb5113.js';
8
+ import { g as getSerializers } from './index-8f28f687.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 'prop-types';
16
17
  import './index-3f5c03b2.js';
@@ -25,7 +26,7 @@ import './Beam.js';
25
26
  import './stringify-2b084bee.js';
26
27
  import './Segment.js';
27
28
  import './main-754d4992.js';
28
- import './urlForFile-dc111d7f.js';
29
+ import './urlForFile-f6485737.js';
29
30
  import './index-755f2cc2.js';
30
31
  import 'react-dom';
31
32
  import './typeof-657f25da.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, 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-657f25da.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 './extends-1559c147.js';
@@ -34,13 +35,13 @@ import './index.es-a6137319.js';
34
35
  import './visibility-sensor-72fd8f8b.js';
35
36
  import 'react-dom';
36
37
  import './index-3f5c03b2.js';
37
- import './ADlgInfeed-e13fb474.js';
38
+ import './ADlgInfeed-93bc2250.js';
38
39
  import './AdSlot.js';
39
40
  import './Beam.js';
40
41
  import './stringify-2b084bee.js';
41
42
  import './Segment.js';
42
43
  import './main-754d4992.js';
43
- import './ADInfeed-d2229e62.js';
44
+ import './ADInfeed-6d0c0856.js';
44
45
  import './index-755f2cc2.js';
45
46
  import './urlFor.js';
46
47
  import './style-inject.es-1f59c1d0.js';