@mjhls/mjh-framework 1.0.915 → 1.0.917-healthcare
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +2 -1
- package/dist/cjs/ExternalResources.js +2 -1
- package/dist/cjs/HealthCareProfessionalModal.js +93 -0
- package/dist/cjs/HorizontalArticleListing.js +2 -1
- package/dist/cjs/IssueLanding.js +2 -1
- package/dist/cjs/{MediaSeriesCard-d46317f0.js → MediaSeriesCard-34235827.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +4 -3
- package/dist/cjs/MediaSeriesLandingPaginated.js +4 -3
- package/dist/cjs/PartnerDetailListing.js +2 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -1
- package/dist/cjs/PublicationLanding.js +3 -2
- package/dist/cjs/TaxonomyDescription.js +2 -1
- package/dist/cjs/VideoProgramLandingPage.js +2 -1
- package/dist/cjs/View.js +4 -3
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +2 -1
- package/dist/cjs/{index-5ce5e821.js → index-f9f5f7c0.js} +5 -25
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/urlForFile-29d3815a.js +24 -0
- package/dist/esm/ArticleProgramLandingPage.js +2 -1
- package/dist/esm/ExternalResources.js +2 -1
- package/dist/esm/HealthCareProfessionalModal.js +85 -0
- package/dist/esm/HorizontalArticleListing.js +2 -1
- package/dist/esm/IssueLanding.js +2 -1
- package/dist/esm/{MediaSeriesCard-b1845b19.js → MediaSeriesCard-8a9b91e6.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +4 -3
- package/dist/esm/MediaSeriesLandingPaginated.js +4 -3
- package/dist/esm/PartnerDetailListing.js +2 -1
- package/dist/esm/PartnerDetailListingPaginated.js +2 -1
- package/dist/esm/PublicationLanding.js +3 -2
- package/dist/esm/TaxonomyDescription.js +2 -1
- package/dist/esm/VideoProgramLandingPage.js +2 -1
- package/dist/esm/View.js +4 -3
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +2 -1
- package/dist/esm/{index-490f4f21.js → index-4d8a8743.js} +1 -21
- package/dist/esm/index.js +2 -1
- package/dist/esm/urlForFile-b69adffc.js +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.917
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
|
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
|
5
5
|
var _extends = require('./extends-7c86182f.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
9
9
|
var ArticleSeriesListing = require('./ArticleSeriesListing.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -26,6 +26,7 @@ require('./Beam.js');
|
|
|
26
26
|
require('./stringify-f7a37a8d.js');
|
|
27
27
|
require('./Segment.js');
|
|
28
28
|
require('./main-f1c77adb.js');
|
|
29
|
+
require('./urlForFile-29d3815a.js');
|
|
29
30
|
require('./index-eadd5035.js');
|
|
30
31
|
require('react-dom');
|
|
31
32
|
require('./typeof-567e31ff.js');
|
|
@@ -4,7 +4,7 @@ var _extends = require('./extends-7c86182f.js');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
7
|
-
var getSerializers = require('./index-
|
|
7
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
8
8
|
var index = require('./index-f86bb269.js');
|
|
9
9
|
var Router = require('next/router');
|
|
10
10
|
var Button = require('react-bootstrap/Button');
|
|
@@ -27,6 +27,7 @@ require('./_library-dd23b178.js');
|
|
|
27
27
|
require('./_iter-detect-b1df62f0.js');
|
|
28
28
|
require('./Segment.js');
|
|
29
29
|
require('./main-f1c77adb.js');
|
|
30
|
+
require('./urlForFile-29d3815a.js');
|
|
30
31
|
require('./index-eadd5035.js');
|
|
31
32
|
require('react-dom');
|
|
32
33
|
require('./typeof-567e31ff.js');
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
require('next/router');
|
|
5
|
+
var Modal = require('react-bootstrap/Modal');
|
|
6
|
+
var Button = require('react-bootstrap/Button');
|
|
7
|
+
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
+
var Modal__default = /*#__PURE__*/_interopDefaultLegacy(Modal);
|
|
13
|
+
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
14
|
+
|
|
15
|
+
var css = ".HealthcareProfessionalModal-module_container__HUaSr {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0,0,0,.1);\n z-index: 9999999999;\n display: grid;\n place-items: center;\n}\n.HealthcareProfessionalModal-module_modal__31CzM{\n background: #fff;\n padding: 1.5rem;\n text-align: center;\n position: relative;\n width: 400px;\n max-width: 90vw;\n\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n animation: HealthcareProfessionalModal-module_show__3soMo .5s forwards;\n transform: translateY(0);\n opacity:1;\n}\n.HealthcareProfessionalModal-module_header__3uIr7 {\n background-color: #0d335a;\nposition: absolute;\n padding: 1rem;\n width: 80%;\ntop: 0;\nleft: 50%;\ntransform: translateX(-50%) translateY(-50%) ;\n border-radius: 15px;\n}\n.HealthcareProfessionalModal-module_body__3bnyN {\n color: #202020;\n}\n.HealthcareProfessionalModal-module_body__3bnyN span{\n font-weight: bold;\n}\n.HealthcareProfessionalModal-module_body__3bnyN .HealthcareProfessionalModal-module_title__27l5n {\n font-size: 24px;\n margin-bottom: 1rem;\n}\n.HealthcareProfessionalModal-module_controls__1wXJl button {\n margin: 1.5rem 1rem;\n border-radius: 5px;\n font-size: 1rem;\n}\n@keyframes HealthcareProfessionalModal-module_show__3soMo {\n from{\n transform: translateY(25px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity:1;\n }\n}";
|
|
16
|
+
var styles = { "container": "HealthcareProfessionalModal-module_container__HUaSr", "modal": "HealthcareProfessionalModal-module_modal__31CzM", "show": "HealthcareProfessionalModal-module_show__3soMo", "header": "HealthcareProfessionalModal-module_header__3uIr7", "body": "HealthcareProfessionalModal-module_body__3bnyN", "title": "HealthcareProfessionalModal-module_title__27l5n", "controls": "HealthcareProfessionalModal-module_controls__1wXJl" };
|
|
17
|
+
styleInject_es.styleInject(css);
|
|
18
|
+
|
|
19
|
+
var HealthcareProfessionalModal = function HealthcareProfessionalModal(_ref) {
|
|
20
|
+
var SetCookie = _ref.SetCookie,
|
|
21
|
+
setHealthcareCheck = _ref.setHealthcareCheck;
|
|
22
|
+
|
|
23
|
+
var handleGoBack = function handleGoBack() {
|
|
24
|
+
console.log('going back');
|
|
25
|
+
window.history.back();
|
|
26
|
+
};
|
|
27
|
+
var handleHideModal = function handleHideModal() {
|
|
28
|
+
SetCookie('healthcareProfessional', true);
|
|
29
|
+
setHealthcareCheck(false);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return React__default['default'].createElement(
|
|
33
|
+
'div',
|
|
34
|
+
{ className: styles.container },
|
|
35
|
+
React__default['default'].createElement(
|
|
36
|
+
Modal__default['default'].Dialog,
|
|
37
|
+
{ style: { background: "#fff", width: '400px', maxWidth: '90vw' } },
|
|
38
|
+
React__default['default'].createElement(
|
|
39
|
+
Modal__default['default'].Header,
|
|
40
|
+
null,
|
|
41
|
+
React__default['default'].createElement(
|
|
42
|
+
Modal__default['default'].Title,
|
|
43
|
+
null,
|
|
44
|
+
'Confirmation'
|
|
45
|
+
)
|
|
46
|
+
),
|
|
47
|
+
React__default['default'].createElement(
|
|
48
|
+
Modal__default['default'].Body,
|
|
49
|
+
{ style: { padding: '1rem' } },
|
|
50
|
+
React__default['default'].createElement(
|
|
51
|
+
'p',
|
|
52
|
+
{ style: { fontSize: '1.2rem', marginBottom: '0' } },
|
|
53
|
+
'Are you a Healthcare Professional?'
|
|
54
|
+
)
|
|
55
|
+
),
|
|
56
|
+
React__default['default'].createElement(
|
|
57
|
+
Modal__default['default'].Footer,
|
|
58
|
+
null,
|
|
59
|
+
React__default['default'].createElement(
|
|
60
|
+
Button__default['default'],
|
|
61
|
+
{ onClick: handleGoBack, variant: 'secondary' },
|
|
62
|
+
'No'
|
|
63
|
+
),
|
|
64
|
+
React__default['default'].createElement(
|
|
65
|
+
Button__default['default'],
|
|
66
|
+
{ style: { backgroundColor: "#1b58ed", borderColor: '#1b58ed' }, onClick: handleHideModal, variant: 'secondary' },
|
|
67
|
+
'Yes'
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
)
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
// <div className={styles.container}>
|
|
74
|
+
// <div onClick={(e) => e.stopPropagation()} className={styles.modal}>
|
|
75
|
+
// {/* <div className={styles.header}></div> */}
|
|
76
|
+
// <div className={styles.body}>
|
|
77
|
+
// <div className={styles.title}>Are you a Healthcare Professional?</div>
|
|
78
|
+
// <div></div>
|
|
79
|
+
// <div className={styles.controls}>
|
|
80
|
+
// <button className='btn btn-lg btn-secondary' onClick={handleGoBack}>
|
|
81
|
+
// No
|
|
82
|
+
// </button>
|
|
83
|
+
// <button className='btn btn-lg btn-primary' onClick={handleHideModal}>
|
|
84
|
+
// Yes
|
|
85
|
+
// </button>
|
|
86
|
+
// </div>
|
|
87
|
+
// </div>
|
|
88
|
+
// </div>
|
|
89
|
+
// </div>
|
|
90
|
+
;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
module.exports = HealthcareProfessionalModal;
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var ArticleCarousel = require('./ArticleCarousel.js');
|
|
6
6
|
var index_esm = require('./index.esm-d81454e7.js');
|
|
7
7
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -32,6 +32,7 @@ require('./asyncToGenerator-77821af0.js');
|
|
|
32
32
|
require('./_library-dd23b178.js');
|
|
33
33
|
require('./_iter-detect-b1df62f0.js');
|
|
34
34
|
require('./Segment.js');
|
|
35
|
+
require('./urlForFile-29d3815a.js');
|
|
35
36
|
require('./typeof-567e31ff.js');
|
|
36
37
|
require('./_is-array-54228b29.js');
|
|
37
38
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
package/dist/cjs/IssueLanding.js
CHANGED
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
6
6
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
7
7
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -46,6 +46,7 @@ require('./timeDifferenceCalc.js');
|
|
|
46
46
|
require('react-bootstrap/Breadcrumb');
|
|
47
47
|
require('./index-187c967e.js');
|
|
48
48
|
require('./util-93a37fd0.js');
|
|
49
|
+
require('./urlForFile-29d3815a.js');
|
|
49
50
|
require('./typeof-567e31ff.js');
|
|
50
51
|
require('./_is-array-54228b29.js');
|
|
51
52
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
@@ -11,7 +11,7 @@ var urlFor = require('./urlFor.js');
|
|
|
11
11
|
var moment = require('./moment-aca40de1.js');
|
|
12
12
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
13
13
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
14
|
-
var getSerializers = require('./index-
|
|
14
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
17
|
|
|
@@ -5,13 +5,13 @@ var _typeof = require('./typeof-567e31ff.js');
|
|
|
5
5
|
var _extends = require('./extends-7c86182f.js');
|
|
6
6
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
8
|
+
var MediaSeriesCard = require('./MediaSeriesCard-34235827.js');
|
|
9
9
|
require('./index-50be6759.js');
|
|
10
10
|
require('react-dom');
|
|
11
11
|
var Link = require('next/link');
|
|
12
12
|
var MasterDeck = require('./MasterDeck.js');
|
|
13
13
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
14
|
-
var getSerializers = require('./index-
|
|
14
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
15
15
|
require('./_commonjsHelpers-06173234.js');
|
|
16
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
17
17
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -52,6 +52,7 @@ require('./ADInfeed-bce0ba07.js');
|
|
|
52
52
|
require('react-bootstrap');
|
|
53
53
|
require('./index-187c967e.js');
|
|
54
54
|
require('./util-93a37fd0.js');
|
|
55
|
+
require('./urlForFile-29d3815a.js');
|
|
55
56
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
56
57
|
require('./GroupDeck.js');
|
|
57
58
|
require('./smoothscroll-99df7f93.js');
|
|
@@ -429,7 +430,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
429
430
|
|
|
430
431
|
usedTopics = buildUsedTopicsArray(allSeries);
|
|
431
432
|
_context2.next = 21;
|
|
432
|
-
return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic]{\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)]{\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)]\n }\t\n }');
|
|
433
|
+
return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic] | order(name asc) {\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)] | order(name asc){\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)] | order(name asc) {...}\n }\t\n }');
|
|
433
434
|
|
|
434
435
|
case 21:
|
|
435
436
|
taxonomyFilter = _context2.sent;
|
|
@@ -5,13 +5,13 @@ var _typeof = require('./typeof-567e31ff.js');
|
|
|
5
5
|
var _extends = require('./extends-7c86182f.js');
|
|
6
6
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
8
|
+
var MediaSeriesCard = require('./MediaSeriesCard-34235827.js');
|
|
9
9
|
require('./index-50be6759.js');
|
|
10
10
|
require('react-dom');
|
|
11
11
|
var Link = require('next/link');
|
|
12
12
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
13
13
|
var MasterDeckPaginated = require('./MasterDeckPaginated.js');
|
|
14
|
-
var getSerializers = require('./index-
|
|
14
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
15
15
|
require('./_commonjsHelpers-06173234.js');
|
|
16
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
17
17
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -54,6 +54,7 @@ require('./iconBase-be4097c0.js');
|
|
|
54
54
|
require('react-bootstrap');
|
|
55
55
|
require('./index-187c967e.js');
|
|
56
56
|
require('./util-93a37fd0.js');
|
|
57
|
+
require('./urlForFile-29d3815a.js');
|
|
57
58
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
58
59
|
require('./GroupDeck.js');
|
|
59
60
|
require('./smoothscroll-99df7f93.js');
|
|
@@ -459,7 +460,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
459
460
|
|
|
460
461
|
usedTopics = buildUsedTopicsArray(allSeries);
|
|
461
462
|
_context2.next = 28;
|
|
462
|
-
return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic]{\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)]{\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)]\n }\t\n }');
|
|
463
|
+
return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic] | order(name asc) {\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)] | order(name asc) {\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)] | order(name asc){...}\n }\t\n }');
|
|
463
464
|
|
|
464
465
|
case 28:
|
|
465
466
|
taxonomyFilter = _context2.sent;
|
|
@@ -13,7 +13,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
|
13
13
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
14
14
|
var Feature = require('./Feature.js');
|
|
15
15
|
var urlFor = require('./urlFor.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -53,6 +53,7 @@ require('react-bootstrap/Breadcrumb');
|
|
|
53
53
|
require('react-bootstrap/Carousel');
|
|
54
54
|
require('./index-187c967e.js');
|
|
55
55
|
require('./util-93a37fd0.js');
|
|
56
|
+
require('./urlForFile-29d3815a.js');
|
|
56
57
|
require('./typeof-567e31ff.js');
|
|
57
58
|
require('./_is-array-54228b29.js');
|
|
58
59
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
@@ -13,7 +13,7 @@ var QueueDeckExpandedPaginated = require('./QueueDeckExpandedPaginated.js');
|
|
|
13
13
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
14
14
|
var Feature = require('./Feature.js');
|
|
15
15
|
var urlFor = require('./urlFor.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -56,6 +56,7 @@ require('react-bootstrap/Breadcrumb');
|
|
|
56
56
|
require('react-bootstrap/Carousel');
|
|
57
57
|
require('./index-187c967e.js');
|
|
58
58
|
require('./util-93a37fd0.js');
|
|
59
|
+
require('./urlForFile-29d3815a.js');
|
|
59
60
|
require('./typeof-567e31ff.js');
|
|
60
61
|
require('./_is-array-54228b29.js');
|
|
61
62
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
@@ -15,6 +15,7 @@ var Dropdown = require('react-bootstrap/Dropdown');
|
|
|
15
15
|
var Card = require('react-bootstrap/Card');
|
|
16
16
|
var Router = require('next/router');
|
|
17
17
|
var index = require('./index-eadd5035.js');
|
|
18
|
+
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
18
19
|
require('./_library-dd23b178.js');
|
|
19
20
|
require('./_iter-detect-b1df62f0.js');
|
|
20
21
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -770,7 +771,7 @@ asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.ma
|
|
|
770
771
|
) : null,
|
|
771
772
|
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default['default'].createElement(
|
|
772
773
|
'a',
|
|
773
|
-
{ rel: 'noopener', href: issue.pdf
|
|
774
|
+
{ rel: 'noopener', href: urlForFile.urlForFile(issue.pdf), target: '_blank', className: 'btn btn-primary' },
|
|
774
775
|
'Download Issue'
|
|
775
776
|
)
|
|
776
777
|
)
|
|
@@ -833,7 +834,7 @@ asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.ma
|
|
|
833
834
|
) : null,
|
|
834
835
|
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default['default'].createElement(
|
|
835
836
|
'a',
|
|
836
|
-
{ rel: 'noopener', href: issue.pdf
|
|
837
|
+
{ rel: 'noopener', href: urlForFile.urlForFile(issue.pdf), target: '_blank', className: 'btn btn-primary' },
|
|
837
838
|
'Download Issue'
|
|
838
839
|
)
|
|
839
840
|
)
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var Router = require('next/router');
|
|
7
7
|
var Head = require('next/head');
|
|
8
8
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
9
|
-
var getSerializers = require('./index-
|
|
9
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
12
12
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -26,6 +26,7 @@ require('./Beam.js');
|
|
|
26
26
|
require('./stringify-f7a37a8d.js');
|
|
27
27
|
require('./Segment.js');
|
|
28
28
|
require('./main-f1c77adb.js');
|
|
29
|
+
require('./urlForFile-29d3815a.js');
|
|
29
30
|
require('./index-eadd5035.js');
|
|
30
31
|
require('react-dom');
|
|
31
32
|
require('./typeof-567e31ff.js');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
|
7
7
|
var Col = require('react-bootstrap/Col');
|
|
8
8
|
var Form = require('react-bootstrap/Form');
|
|
9
9
|
var Button = require('react-bootstrap/Button');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
11
11
|
var VideoSeriesListing = require('./VideoSeriesListing.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -29,6 +29,7 @@ require('./Beam.js');
|
|
|
29
29
|
require('./stringify-f7a37a8d.js');
|
|
30
30
|
require('./Segment.js');
|
|
31
31
|
require('./main-f1c77adb.js');
|
|
32
|
+
require('./urlForFile-29d3815a.js');
|
|
32
33
|
require('./index-eadd5035.js');
|
|
33
34
|
require('react-dom');
|
|
34
35
|
require('./typeof-567e31ff.js');
|
package/dist/cjs/View.js
CHANGED
|
@@ -17,12 +17,13 @@ var FormControl = require('react-bootstrap/FormControl');
|
|
|
17
17
|
var Button = require('react-bootstrap/Button');
|
|
18
18
|
var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-ba0c5d1a.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-3c5754ac.js');
|
|
24
24
|
var getKeywords = require('./getKeywords.js');
|
|
25
25
|
var urlFor = require('./urlFor.js');
|
|
26
|
+
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
26
27
|
var _typeof = require('./typeof-567e31ff.js');
|
|
27
28
|
var index_esm = require('./index.esm-d51c9ac6.js');
|
|
28
29
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
@@ -1330,9 +1331,9 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
1330
1331
|
} },
|
|
1331
1332
|
'Download RIS'
|
|
1332
1333
|
),
|
|
1333
|
-
issue && issue.
|
|
1334
|
+
issue && issue.pdf && React__default['default'].createElement(
|
|
1334
1335
|
'a',
|
|
1335
|
-
{ rel: 'noopener', href: issue.
|
|
1336
|
+
{ rel: 'noopener', href: urlForFile.urlForFile({ asset: issue.pdf }), target: '_blank', title: 'Download issue' },
|
|
1336
1337
|
React__default['default'].createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1337
1338
|
'Download Issue : ',
|
|
1338
1339
|
issue.name
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -10,9 +10,9 @@ var getQuery = function getQuery(type) {
|
|
|
10
10
|
|
|
11
11
|
switch (type) {
|
|
12
12
|
case 'related':
|
|
13
|
-
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 }';
|
|
13
|
+
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 && isHealthcareProfessional != 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 }';
|
|
14
14
|
case 'article':
|
|
15
|
-
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 }';
|
|
15
|
+
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 }';
|
|
16
16
|
case 'publication':
|
|
17
17
|
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 }';
|
|
18
18
|
case 'issue':
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./extends-7c86182f.js');
|
|
4
4
|
require('react');
|
|
5
|
-
var getSerializers = require('./index-
|
|
5
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
6
6
|
require('./BlockContent-9ebd251f.js');
|
|
7
7
|
require('./entities-df1aed86.js');
|
|
8
8
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -26,6 +26,7 @@ require('./_library-dd23b178.js');
|
|
|
26
26
|
require('./_iter-detect-b1df62f0.js');
|
|
27
27
|
require('./Segment.js');
|
|
28
28
|
require('./main-f1c77adb.js');
|
|
29
|
+
require('./urlForFile-29d3815a.js');
|
|
29
30
|
require('./index-eadd5035.js');
|
|
30
31
|
require('react-dom');
|
|
31
32
|
require('./typeof-567e31ff.js');
|
|
@@ -15,6 +15,7 @@ require('./Beam.js');
|
|
|
15
15
|
var Segment = require('./Segment.js');
|
|
16
16
|
var main = require('./main-f1c77adb.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
|
+
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
18
19
|
var index$2 = require('./index-eadd5035.js');
|
|
19
20
|
var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
|
|
20
21
|
var _typeof$1 = require('./typeof-567e31ff.js');
|
|
@@ -2071,27 +2072,6 @@ var TableShow = function TableShow(_ref) {
|
|
|
2071
2072
|
);
|
|
2072
2073
|
};
|
|
2073
2074
|
|
|
2074
|
-
var urlForFile = function urlForFile(_ref) {
|
|
2075
|
-
var _ref$asset = _ref.asset,
|
|
2076
|
-
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
2077
|
-
var url = asset.url,
|
|
2078
|
-
originalFilename = asset.originalFilename;
|
|
2079
|
-
|
|
2080
|
-
// Appending file name in URL
|
|
2081
|
-
|
|
2082
|
-
if (url && originalFilename) {
|
|
2083
|
-
var _url$split = url.split('?'),
|
|
2084
|
-
_url$split2 = slicedToArray._slicedToArray(_url$split, 2),
|
|
2085
|
-
path = _url$split2[0],
|
|
2086
|
-
queryString = _url$split2[1];
|
|
2087
|
-
|
|
2088
|
-
originalFilename = encodeURIComponent(originalFilename);
|
|
2089
|
-
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
|
-
return url;
|
|
2093
|
-
};
|
|
2094
|
-
|
|
2095
2075
|
var Media = function Media(_ref) {
|
|
2096
2076
|
var node = _ref.node,
|
|
2097
2077
|
client = _ref.client;
|
|
@@ -2183,7 +2163,7 @@ var Media = function Media(_ref) {
|
|
|
2183
2163
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2184
2164
|
React__default['default'].createElement(
|
|
2185
2165
|
'a',
|
|
2186
|
-
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2166
|
+
{ href: urlForFile.urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2187
2167
|
React__default['default'].createElement(
|
|
2188
2168
|
index$2.LazyLoad,
|
|
2189
2169
|
{ once: true },
|
|
@@ -2207,8 +2187,8 @@ var Media = function Media(_ref) {
|
|
|
2207
2187
|
return React__default['default'].createElement(
|
|
2208
2188
|
'a',
|
|
2209
2189
|
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2210
|
-
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2211
|
-
} : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2190
|
+
href: urlForFile.urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
2191
|
+
} : { href: urlForFile.urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2212
2192
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
2213
2193
|
className: 'media-link' }),
|
|
2214
2194
|
caption
|
|
@@ -8347,7 +8327,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8347
8327
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8348
8328
|
React__default['default'].createElement(
|
|
8349
8329
|
'a',
|
|
8350
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8330
|
+
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile.urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8351
8331
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8352
8332
|
React__default['default'].createElement(
|
|
8353
8333
|
'div',
|
package/dist/cjs/index.js
CHANGED
|
@@ -82,7 +82,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
82
82
|
var YahooHero = require('./YahooHero.js');
|
|
83
83
|
var GridHero = require('./GridHero.js');
|
|
84
84
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
85
|
-
var getSerializers = require('./index-
|
|
85
|
+
var getSerializers = require('./index-f9f5f7c0.js');
|
|
86
86
|
var Beam = require('./Beam.js');
|
|
87
87
|
var Segment = require('./Segment.js');
|
|
88
88
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -180,6 +180,7 @@ require('react-bootstrap/DropdownButton');
|
|
|
180
180
|
require('react-bootstrap/Dropdown');
|
|
181
181
|
require('./index.esm-d51c9ac6.js');
|
|
182
182
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
183
|
+
require('./urlForFile-29d3815a.js');
|
|
183
184
|
require('react-bootstrap/Modal');
|
|
184
185
|
require('./util-93a37fd0.js');
|
|
185
186
|
require('react-bootstrap/Pagination');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
4
|
+
|
|
5
|
+
var urlForFile = function urlForFile(_ref) {
|
|
6
|
+
var _ref$asset = _ref.asset,
|
|
7
|
+
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
8
|
+
var url = asset.url,
|
|
9
|
+
originalFilename = asset.originalFilename;
|
|
10
|
+
// Appending file name in URL
|
|
11
|
+
|
|
12
|
+
if (url && originalFilename) {
|
|
13
|
+
var _url$split = url.split('?'),
|
|
14
|
+
_url$split2 = slicedToArray._slicedToArray(_url$split, 2),
|
|
15
|
+
path = _url$split2[0],
|
|
16
|
+
queryString = _url$split2[1];
|
|
17
|
+
|
|
18
|
+
originalFilename = encodeURIComponent(originalFilename);
|
|
19
|
+
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
20
|
+
}
|
|
21
|
+
return url;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.urlForFile = urlForFile;
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.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';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-6d8e3924.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
5
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
6
6
|
import { m as momentTimezone } from './index-79cfd25c.js';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
|
@@ -25,6 +25,7 @@ import './_library-528f1934.js';
|
|
|
25
25
|
import './_iter-detect-98db3b07.js';
|
|
26
26
|
import './Segment.js';
|
|
27
27
|
import './main-1894c974.js';
|
|
28
|
+
import './urlForFile-b69adffc.js';
|
|
28
29
|
import './index-755f2cc2.js';
|
|
29
30
|
import 'react-dom';
|
|
30
31
|
import './typeof-e9fc0c5d.js';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import 'next/router';
|
|
3
|
+
import Modal from 'react-bootstrap/Modal';
|
|
4
|
+
import Button from 'react-bootstrap/Button';
|
|
5
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
|
+
|
|
7
|
+
var css = ".HealthcareProfessionalModal-module_container__HUaSr {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0,0,0,.1);\n z-index: 9999999999;\n display: grid;\n place-items: center;\n}\n.HealthcareProfessionalModal-module_modal__31CzM{\n background: #fff;\n padding: 1.5rem;\n text-align: center;\n position: relative;\n width: 400px;\n max-width: 90vw;\n\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n animation: HealthcareProfessionalModal-module_show__3soMo .5s forwards;\n transform: translateY(0);\n opacity:1;\n}\n.HealthcareProfessionalModal-module_header__3uIr7 {\n background-color: #0d335a;\nposition: absolute;\n padding: 1rem;\n width: 80%;\ntop: 0;\nleft: 50%;\ntransform: translateX(-50%) translateY(-50%) ;\n border-radius: 15px;\n}\n.HealthcareProfessionalModal-module_body__3bnyN {\n color: #202020;\n}\n.HealthcareProfessionalModal-module_body__3bnyN span{\n font-weight: bold;\n}\n.HealthcareProfessionalModal-module_body__3bnyN .HealthcareProfessionalModal-module_title__27l5n {\n font-size: 24px;\n margin-bottom: 1rem;\n}\n.HealthcareProfessionalModal-module_controls__1wXJl button {\n margin: 1.5rem 1rem;\n border-radius: 5px;\n font-size: 1rem;\n}\n@keyframes HealthcareProfessionalModal-module_show__3soMo {\n from{\n transform: translateY(25px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity:1;\n }\n}";
|
|
8
|
+
var styles = { "container": "HealthcareProfessionalModal-module_container__HUaSr", "modal": "HealthcareProfessionalModal-module_modal__31CzM", "show": "HealthcareProfessionalModal-module_show__3soMo", "header": "HealthcareProfessionalModal-module_header__3uIr7", "body": "HealthcareProfessionalModal-module_body__3bnyN", "title": "HealthcareProfessionalModal-module_title__27l5n", "controls": "HealthcareProfessionalModal-module_controls__1wXJl" };
|
|
9
|
+
styleInject(css);
|
|
10
|
+
|
|
11
|
+
var HealthcareProfessionalModal = function HealthcareProfessionalModal(_ref) {
|
|
12
|
+
var SetCookie = _ref.SetCookie,
|
|
13
|
+
setHealthcareCheck = _ref.setHealthcareCheck;
|
|
14
|
+
|
|
15
|
+
var handleGoBack = function handleGoBack() {
|
|
16
|
+
console.log('going back');
|
|
17
|
+
window.history.back();
|
|
18
|
+
};
|
|
19
|
+
var handleHideModal = function handleHideModal() {
|
|
20
|
+
SetCookie('healthcareProfessional', true);
|
|
21
|
+
setHealthcareCheck(false);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return React__default.createElement(
|
|
25
|
+
'div',
|
|
26
|
+
{ className: styles.container },
|
|
27
|
+
React__default.createElement(
|
|
28
|
+
Modal.Dialog,
|
|
29
|
+
{ style: { background: "#fff", width: '400px', maxWidth: '90vw' } },
|
|
30
|
+
React__default.createElement(
|
|
31
|
+
Modal.Header,
|
|
32
|
+
null,
|
|
33
|
+
React__default.createElement(
|
|
34
|
+
Modal.Title,
|
|
35
|
+
null,
|
|
36
|
+
'Confirmation'
|
|
37
|
+
)
|
|
38
|
+
),
|
|
39
|
+
React__default.createElement(
|
|
40
|
+
Modal.Body,
|
|
41
|
+
{ style: { padding: '1rem' } },
|
|
42
|
+
React__default.createElement(
|
|
43
|
+
'p',
|
|
44
|
+
{ style: { fontSize: '1.2rem', marginBottom: '0' } },
|
|
45
|
+
'Are you a Healthcare Professional?'
|
|
46
|
+
)
|
|
47
|
+
),
|
|
48
|
+
React__default.createElement(
|
|
49
|
+
Modal.Footer,
|
|
50
|
+
null,
|
|
51
|
+
React__default.createElement(
|
|
52
|
+
Button,
|
|
53
|
+
{ onClick: handleGoBack, variant: 'secondary' },
|
|
54
|
+
'No'
|
|
55
|
+
),
|
|
56
|
+
React__default.createElement(
|
|
57
|
+
Button,
|
|
58
|
+
{ style: { backgroundColor: "#1b58ed", borderColor: '#1b58ed' }, onClick: handleHideModal, variant: 'secondary' },
|
|
59
|
+
'Yes'
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
// <div className={styles.container}>
|
|
66
|
+
// <div onClick={(e) => e.stopPropagation()} className={styles.modal}>
|
|
67
|
+
// {/* <div className={styles.header}></div> */}
|
|
68
|
+
// <div className={styles.body}>
|
|
69
|
+
// <div className={styles.title}>Are you a Healthcare Professional?</div>
|
|
70
|
+
// <div></div>
|
|
71
|
+
// <div className={styles.controls}>
|
|
72
|
+
// <button className='btn btn-lg btn-secondary' onClick={handleGoBack}>
|
|
73
|
+
// No
|
|
74
|
+
// </button>
|
|
75
|
+
// <button className='btn btn-lg btn-primary' onClick={handleHideModal}>
|
|
76
|
+
// Yes
|
|
77
|
+
// </button>
|
|
78
|
+
// </div>
|
|
79
|
+
// </div>
|
|
80
|
+
// </div>
|
|
81
|
+
// </div>
|
|
82
|
+
;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default HealthcareProfessionalModal;
|
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
4
|
import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -30,6 +30,7 @@ import './asyncToGenerator-5ef104a7.js';
|
|
|
30
30
|
import './_library-528f1934.js';
|
|
31
31
|
import './_iter-detect-98db3b07.js';
|
|
32
32
|
import './Segment.js';
|
|
33
|
+
import './urlForFile-b69adffc.js';
|
|
33
34
|
import './typeof-e9fc0c5d.js';
|
|
34
35
|
import './_is-array-8d21b9e3.js';
|
|
35
36
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -44,6 +44,7 @@ import './timeDifferenceCalc.js';
|
|
|
44
44
|
import 'react-bootstrap/Breadcrumb';
|
|
45
45
|
import './index-c7e2ac95.js';
|
|
46
46
|
import './util-8ed16d48.js';
|
|
47
|
+
import './urlForFile-b69adffc.js';
|
|
47
48
|
import './typeof-e9fc0c5d.js';
|
|
48
49
|
import './_is-array-8d21b9e3.js';
|
|
49
50
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
@@ -9,7 +9,7 @@ import urlFor from './urlFor.js';
|
|
|
9
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
10
10
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-8a9b91e6.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import MasterDeck from './MasterDeck.js';
|
|
11
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -50,6 +50,7 @@ import './ADInfeed-0a55cd2d.js';
|
|
|
50
50
|
import 'react-bootstrap';
|
|
51
51
|
import './index-c7e2ac95.js';
|
|
52
52
|
import './util-8ed16d48.js';
|
|
53
|
+
import './urlForFile-b69adffc.js';
|
|
53
54
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
54
55
|
import './GroupDeck.js';
|
|
55
56
|
import './smoothscroll-fa4e3f8c.js';
|
|
@@ -422,7 +423,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
422
423
|
|
|
423
424
|
usedTopics = buildUsedTopicsArray(allSeries);
|
|
424
425
|
_context2.next = 21;
|
|
425
|
-
return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic]{\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)]{\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)]\n }\t\n }');
|
|
426
|
+
return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic] | order(name asc) {\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)] | order(name asc){\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)] | order(name asc) {...}\n }\t\n }');
|
|
426
427
|
|
|
427
428
|
case 21:
|
|
428
429
|
taxonomyFilter = _context2.sent;
|
|
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-8a9b91e6.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
11
|
import MasterDeck from './MasterDeckPaginated.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -52,6 +52,7 @@ import './iconBase-ccc56b97.js';
|
|
|
52
52
|
import 'react-bootstrap';
|
|
53
53
|
import './index-c7e2ac95.js';
|
|
54
54
|
import './util-8ed16d48.js';
|
|
55
|
+
import './urlForFile-b69adffc.js';
|
|
55
56
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
56
57
|
import './GroupDeck.js';
|
|
57
58
|
import './smoothscroll-fa4e3f8c.js';
|
|
@@ -452,7 +453,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
452
453
|
|
|
453
454
|
usedTopics = buildUsedTopicsArray(allSeries);
|
|
454
455
|
_context2.next = 28;
|
|
455
|
-
return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic]{\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)]{\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)]\n }\t\n }');
|
|
456
|
+
return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic] | order(name asc) {\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)] | order(name asc) {\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)] | order(name asc){...}\n }\t\n }');
|
|
456
457
|
|
|
457
458
|
case 28:
|
|
458
459
|
taxonomyFilter = _context2.sent;
|
|
@@ -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-
|
|
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';
|
|
@@ -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-
|
|
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';
|
|
@@ -54,6 +54,7 @@ import 'react-bootstrap/Breadcrumb';
|
|
|
54
54
|
import 'react-bootstrap/Carousel';
|
|
55
55
|
import './index-c7e2ac95.js';
|
|
56
56
|
import './util-8ed16d48.js';
|
|
57
|
+
import './urlForFile-b69adffc.js';
|
|
57
58
|
import './typeof-e9fc0c5d.js';
|
|
58
59
|
import './_is-array-8d21b9e3.js';
|
|
59
60
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
@@ -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
|
|
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
|
|
827
|
+
{ rel: 'noopener', href: urlForFile(issue.pdf), target: '_blank', className: 'btn btn-primary' },
|
|
827
828
|
'Download Issue'
|
|
828
829
|
)
|
|
829
830
|
)
|
|
@@ -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-
|
|
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';
|
|
@@ -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-
|
|
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';
|
package/dist/esm/View.js
CHANGED
|
@@ -15,12 +15,13 @@ 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-
|
|
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';
|
|
@@ -1319,9 +1320,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1319
1320
|
} },
|
|
1320
1321
|
'Download RIS'
|
|
1321
1322
|
),
|
|
1322
|
-
issue && issue.
|
|
1323
|
+
issue && issue.pdf && React__default.createElement(
|
|
1323
1324
|
'a',
|
|
1324
|
-
{ rel: 'noopener', href: issue.
|
|
1325
|
+
{ rel: 'noopener', href: urlForFile({ asset: issue.pdf }), target: '_blank', title: 'Download issue' },
|
|
1325
1326
|
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1326
1327
|
'Download Issue : ',
|
|
1327
1328
|
issue.name
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -8,9 +8,9 @@ var getQuery = function getQuery(type) {
|
|
|
8
8
|
|
|
9
9
|
switch (type) {
|
|
10
10
|
case 'related':
|
|
11
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && 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 && isHealthcareProfessional != 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':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { g as default } from './index-
|
|
3
|
+
export { g as default } from './index-4d8a8743.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -24,6 +24,7 @@ import './_library-528f1934.js';
|
|
|
24
24
|
import './_iter-detect-98db3b07.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';
|
|
@@ -13,6 +13,7 @@ import './Beam.js';
|
|
|
13
13
|
import Segment from './Segment.js';
|
|
14
14
|
import { e as main_18, b as main_42, m as main_43 } from './main-1894c974.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
|
+
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
16
17
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
18
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
|
|
18
19
|
import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
|
|
@@ -2054,27 +2055,6 @@ var TableShow = function TableShow(_ref) {
|
|
|
2054
2055
|
);
|
|
2055
2056
|
};
|
|
2056
2057
|
|
|
2057
|
-
var urlForFile = function urlForFile(_ref) {
|
|
2058
|
-
var _ref$asset = _ref.asset,
|
|
2059
|
-
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
2060
|
-
var url = asset.url,
|
|
2061
|
-
originalFilename = asset.originalFilename;
|
|
2062
|
-
|
|
2063
|
-
// Appending file name in URL
|
|
2064
|
-
|
|
2065
|
-
if (url && originalFilename) {
|
|
2066
|
-
var _url$split = url.split('?'),
|
|
2067
|
-
_url$split2 = _slicedToArray(_url$split, 2),
|
|
2068
|
-
path = _url$split2[0],
|
|
2069
|
-
queryString = _url$split2[1];
|
|
2070
|
-
|
|
2071
|
-
originalFilename = encodeURIComponent(originalFilename);
|
|
2072
|
-
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
return url;
|
|
2076
|
-
};
|
|
2077
|
-
|
|
2078
2058
|
var Media = function Media(_ref) {
|
|
2079
2059
|
var node = _ref.node,
|
|
2080
2060
|
client = _ref.client;
|
package/dist/esm/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
79
79
|
export { default as YahooHero } from './YahooHero.js';
|
|
80
80
|
export { default as GridHero } from './GridHero.js';
|
|
81
81
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
82
|
-
export { g as getSerializers } from './index-
|
|
82
|
+
export { g as getSerializers } from './index-4d8a8743.js';
|
|
83
83
|
export { default as Beam } from './Beam.js';
|
|
84
84
|
export { default as Segment } from './Segment.js';
|
|
85
85
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -177,6 +177,7 @@ import 'react-bootstrap/DropdownButton';
|
|
|
177
177
|
import 'react-bootstrap/Dropdown';
|
|
178
178
|
import './index.esm-1bd8a0a8.js';
|
|
179
179
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
180
|
+
import './urlForFile-b69adffc.js';
|
|
180
181
|
import 'react-bootstrap/Modal';
|
|
181
182
|
import './util-8ed16d48.js';
|
|
182
183
|
import 'react-bootstrap/Pagination';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
2
|
+
|
|
3
|
+
var urlForFile = function urlForFile(_ref) {
|
|
4
|
+
var _ref$asset = _ref.asset,
|
|
5
|
+
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
6
|
+
var url = asset.url,
|
|
7
|
+
originalFilename = asset.originalFilename;
|
|
8
|
+
// Appending file name in URL
|
|
9
|
+
|
|
10
|
+
if (url && originalFilename) {
|
|
11
|
+
var _url$split = url.split('?'),
|
|
12
|
+
_url$split2 = _slicedToArray(_url$split, 2),
|
|
13
|
+
path = _url$split2[0],
|
|
14
|
+
queryString = _url$split2[1];
|
|
15
|
+
|
|
16
|
+
originalFilename = encodeURIComponent(originalFilename);
|
|
17
|
+
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
18
|
+
}
|
|
19
|
+
return url;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { urlForFile as u };
|