@mjhls/mjh-framework 1.0.728 → 1.0.729-isiscroll
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 +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +4 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +1 -1
- package/dist/cjs/CMEDeck.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +10 -10
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{Dfp-80146e98.js → Dfp-a863cf48.js} +1 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +3 -3
- package/dist/cjs/GridContent.js +3 -3
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HorizontalArticleListing.js +2 -2
- package/dist/cjs/IssueLanding.js +32 -32
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +11 -11
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/PartnerDetailListing.js +4 -4
- package/dist/cjs/PublicationLanding.js +33 -33
- package/dist/cjs/QueueDeckExpanded.js +3 -3
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +75 -6
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getSerializers.js +2 -2
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-963303c6.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-5260126b.js → index-58d40052.js} +1 -1
- package/dist/cjs/{index-0e4427c8.js → index-5ad2b070.js} +18 -37
- package/dist/cjs/{index-4d74ffd6.js → index-cb6ed1fc.js} +29 -29
- package/dist/cjs/index.js +6 -6
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +4 -3
- package/dist/esm/ArticleSeriesLandingPage.js +5 -4
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/CMEDeck.js +1 -1
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/DeckContent.js +10 -10
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Dfp-8bfbd310.js → Dfp-5d779279.js} +1 -1
- package/dist/esm/EventsDeck.js +18 -18
- package/dist/esm/ExternalResources.js +3 -3
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HorizontalArticleListing.js +2 -2
- package/dist/esm/IssueLanding.js +32 -32
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +11 -11
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/PartnerDetailListing.js +4 -4
- package/dist/esm/PublicationLanding.js +33 -33
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +2 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -3
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +75 -6
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getSerializers.js +2 -2
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-85315091.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-888f9253.js → index-669ff425.js} +18 -37
- package/dist/esm/{index-d6ad9248.js → index-6eef5e56.js} +1 -1
- package/dist/esm/{index-ccb770c7.js → index-750a7380.js} +29 -29
- package/dist/esm/index.js +6 -6
- package/package.json +105 -105
- /package/dist/cjs/{ADInfeed-5fe7fd9d.js → ADInfeed-70ebf89f.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-a62d2f9b.js → ADlgInfeed-7b7f88d3.js} +0 -0
- /package/dist/esm/{ADInfeed-3a9eef39.js → ADInfeed-4fe6b23b.js} +0 -0
- /package/dist/esm/{ADlgInfeed-8d63ff91.js → ADlgInfeed-a01132a5.js} +0 -0
|
@@ -14,16 +14,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14
14
|
_ref$className = _ref.className,
|
|
15
15
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
-
example:
|
|
20
|
-
<RelatedTopicDropdown
|
|
21
|
-
page='/clinical'
|
|
22
|
-
exclude="clinical"
|
|
23
|
-
className='mb-3'
|
|
24
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
-
subTaxonomies={props.subTaxonomies}
|
|
26
|
-
/>
|
|
17
|
+
/*
|
|
18
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
+
example:
|
|
20
|
+
<RelatedTopicDropdown
|
|
21
|
+
page='/clinical'
|
|
22
|
+
exclude="clinical"
|
|
23
|
+
className='mb-3'
|
|
24
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
+
subTaxonomies={props.subTaxonomies}
|
|
26
|
+
/>
|
|
27
27
|
*/
|
|
28
28
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
29
29
|
if (parentTaxonomy.identifier == exclude) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -34,8 +34,8 @@ var renderLink = function renderLink(row) {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
var SideFooter = function SideFooter(props) {
|
|
37
|
-
/*
|
|
38
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
37
|
+
/*
|
|
38
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
39
39
|
*/
|
|
40
40
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
41
41
|
socialLinks = _get.socialLinks,
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-6eef5e56.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './es6.string.iterator-aa6068a3.js';
|
|
10
10
|
import './_to-object-97770c52.js';
|
|
@@ -18,7 +18,7 @@ import 'prop-types';
|
|
|
18
18
|
import './index-3f5c03b2.js';
|
|
19
19
|
import './slicedToArray-cdeaee08.js';
|
|
20
20
|
import 'react-bootstrap';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-669ff425.js';
|
|
22
22
|
import './index-c7e2ac95.js';
|
|
23
23
|
import './util-3ab476bf.js';
|
|
24
24
|
import './Beam.js';
|
|
@@ -22,7 +22,7 @@ import './AdSlot.js';
|
|
|
22
22
|
import './extends-31d65aba.js';
|
|
23
23
|
import './_object-pie-33c40e79.js';
|
|
24
24
|
import 'prop-types';
|
|
25
|
-
import './index-
|
|
25
|
+
import './index-669ff425.js';
|
|
26
26
|
import './debounce-1a993acf.js';
|
|
27
27
|
import './isSymbol-807e927e.js';
|
|
28
28
|
import './Beam.js';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-d8cd739c.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-6eef5e56.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './es6.string.iterator-aa6068a3.js';
|
|
@@ -20,7 +20,7 @@ import 'prop-types';
|
|
|
20
20
|
import './index-3f5c03b2.js';
|
|
21
21
|
import './slicedToArray-cdeaee08.js';
|
|
22
22
|
import 'react-bootstrap';
|
|
23
|
-
import './index-
|
|
23
|
+
import './index-669ff425.js';
|
|
24
24
|
import 'next/router';
|
|
25
25
|
import './index-c7e2ac95.js';
|
|
26
26
|
import './util-3ab476bf.js';
|
|
@@ -14,7 +14,7 @@ import './_object-pie-33c40e79.js';
|
|
|
14
14
|
import './_library-528f1934.js';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
|
|
17
|
-
var css = ".VideoSeriesCard-module_article__Hlc3e {\
|
|
17
|
+
var css = ".VideoSeriesCard-module_article__Hlc3e {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.VideoSeriesCard-module_article__Hlc3e a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.VideoSeriesCard-module_thumb__3hGyJ {\n width: 25%;\n}\n.VideoSeriesCard-module_thumb__3hGyJ img {\n width: 100%;\n height: auto;\n}\n.VideoSeriesCard-module_info__2_i1N {\n width: 75%;\n font-size: 1rem;\n}\n.VideoSeriesCard-module_info__2_i1N h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.VideoSeriesCard-module_published__1fI0q {\n color: #6d6d6d;\n margin: 0;\n}\n.VideoSeriesCard-module_summary__3hWJT {\n margin: 0.5rem 0 0 0;\n}\n.VideoSeriesCard-module_author__aU35o {\n margin: 0;\n}\n.VideoSeriesCard-module_author__aU35o span {\n color: #6d6d6d;\n}\n@media only screen and (max-width: 568px) {\n .VideoSeriesCard-module_article__Hlc3e {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .VideoSeriesCard-module_article__Hlc3e a {\n flex-direction: column;\n align-items: center;\n }\n .VideoSeriesCard-module_thumb__3hGyJ {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .VideoSeriesCard-module_thumb__3hGyJ img{\n border-radius: 10px 10px 0 0; \n }\n .VideoSeriesCard-module_thumb__3hGyJ figure {\n margin: 0;\n }\n .VideoSeriesCard-module_info__2_i1N {\n width: 90%;\n padding: 1rem !important;\n }\n .VideoSeriesCard-module_info__2_i1N h2 {\n font-size: 1rem;\n }\n}\n";
|
|
18
18
|
var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
|
|
19
19
|
styleInject(css);
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ import './extends-31d65aba.js';
|
|
|
23
23
|
import './inherits-5906fbea.js';
|
|
24
24
|
import './_object-sap-fd3054d0.js';
|
|
25
25
|
import './define-property-ec6d528d.js';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-669ff425.js';
|
|
27
27
|
import 'prop-types';
|
|
28
28
|
import 'react-bootstrap/Container';
|
|
29
29
|
import 'react-bootstrap/Row';
|
|
@@ -37,13 +37,13 @@ import './index.es-c6222053.js';
|
|
|
37
37
|
import './visibility-sensor-082c757b.js';
|
|
38
38
|
import 'react-dom';
|
|
39
39
|
import './index-3f5c03b2.js';
|
|
40
|
-
import './ADlgInfeed-
|
|
40
|
+
import './ADlgInfeed-a01132a5.js';
|
|
41
41
|
import './AdSlot.js';
|
|
42
42
|
import './Beam.js';
|
|
43
43
|
import './stringify-d4839bab.js';
|
|
44
44
|
import './Segment.js';
|
|
45
45
|
import './main-1450d277.js';
|
|
46
|
-
import './ADInfeed-
|
|
46
|
+
import './ADInfeed-4fe6b23b.js';
|
|
47
47
|
import './index-752d1dae.js';
|
|
48
48
|
import './style-inject.es-1f59c1d0.js';
|
|
49
49
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _extends } from './extends-31d65aba.js';
|
|
2
2
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-5906fbea.js';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import { l as lib_3 } from './index-669ff425.js';
|
|
5
5
|
import Container from 'react-bootstrap/Container';
|
|
6
6
|
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
7
7
|
import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -13,10 +13,10 @@ import 'react-bootstrap/Dropdown';
|
|
|
13
13
|
import Form from 'react-bootstrap/Form';
|
|
14
14
|
import FormControl from 'react-bootstrap/FormControl';
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
16
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-6eef5e56.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
18
|
import DFPAdSlot from './AdSlot.js';
|
|
19
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
19
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-85315091.js';
|
|
20
20
|
import getKeywords from './getKeywords.js';
|
|
21
21
|
import urlFor from './urlFor.js';
|
|
22
22
|
import { _ as _typeof } from './typeof-e9cea9e8.js';
|
|
@@ -25,7 +25,7 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
25
25
|
import './index-752d1dae.js';
|
|
26
26
|
import { _ as _Object$keys } from './keys-a0b0c7a4.js';
|
|
27
27
|
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
28
|
-
import { l as lib_3 } from './index-
|
|
28
|
+
import { l as lib_3 } from './index-669ff425.js';
|
|
29
29
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
30
30
|
import getQuery from './getQuery.js';
|
|
31
31
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
@@ -196,7 +196,13 @@ var ISI = function ISI(props) {
|
|
|
196
196
|
active = _useState2[0],
|
|
197
197
|
setActive = _useState2[1];
|
|
198
198
|
|
|
199
|
+
var _useState3 = useState(false),
|
|
200
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
201
|
+
bottomOfArticle = _useState4[0],
|
|
202
|
+
setbottomOfArticle = _useState4[1];
|
|
203
|
+
|
|
199
204
|
var isi = useRef();
|
|
205
|
+
|
|
200
206
|
useEffect(function () {
|
|
201
207
|
if (active) {
|
|
202
208
|
var offset = '5rem';
|
|
@@ -211,6 +217,69 @@ var ISI = function ISI(props) {
|
|
|
211
217
|
isi.current.style.overflowY = '';
|
|
212
218
|
}
|
|
213
219
|
}, [active]);
|
|
220
|
+
useEffect(function () {
|
|
221
|
+
|
|
222
|
+
var detectBottomOfArticle = function detectBottomOfArticle() {
|
|
223
|
+
var article_body = document.getElementById('article__block');
|
|
224
|
+
var articleBottomPosition = article_body.getBoundingClientRect().bottom - window.innerHeight;
|
|
225
|
+
console.log(articleBottomPosition, bottomOfArticle);
|
|
226
|
+
if (articleBottomPosition < 30) {
|
|
227
|
+
setbottomOfArticle(true);
|
|
228
|
+
}
|
|
229
|
+
if (articleBottomPosition > 60) {
|
|
230
|
+
setbottomOfArticle(false);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
window.addEventListener('scroll', detectBottomOfArticle);
|
|
234
|
+
return function () {
|
|
235
|
+
return window.removeEventListener('scroll', detectBottomOfArticle);
|
|
236
|
+
};
|
|
237
|
+
}, []);
|
|
238
|
+
|
|
239
|
+
useEffect(function () {
|
|
240
|
+
var isi = document.getElementById('isi');
|
|
241
|
+
if (bottomOfArticle === true && !isi.classList.contains('in-view')) {
|
|
242
|
+
toggleSticky(true);
|
|
243
|
+
isi.classList.add('in-view');
|
|
244
|
+
if (active) {
|
|
245
|
+
setActive(false);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
if (bottomOfArticle === false && isi.classList.contains('in-view')) {
|
|
249
|
+
toggleSticky(false);
|
|
250
|
+
isi.classList.remove('in-view');
|
|
251
|
+
}
|
|
252
|
+
}, [bottomOfArticle]);
|
|
253
|
+
|
|
254
|
+
var toggleSticky = function toggleSticky(sticky) {
|
|
255
|
+
var isiToggle = document.getElementById('isiToggle');
|
|
256
|
+
var isiContent = document.getElementById('isiContent');
|
|
257
|
+
var isi = document.getElementById('isi');
|
|
258
|
+
if (sticky) {
|
|
259
|
+
isi.style.bottom = '-200px';
|
|
260
|
+
setTimeout(function () {
|
|
261
|
+
isi.style.maxHeight = 'unset';
|
|
262
|
+
isi.style.position = 'relative';
|
|
263
|
+
isi.style.boxShadow = 'none';
|
|
264
|
+
isi.style.zIndex = '1';
|
|
265
|
+
isi.style.marginTop = '-25rem';
|
|
266
|
+
isiToggle.style.display = 'none';
|
|
267
|
+
isiContent.style.padding = '0';
|
|
268
|
+
}, 300);
|
|
269
|
+
}if (!sticky) {
|
|
270
|
+
|
|
271
|
+
isi.style.maxHeight = '10rem';
|
|
272
|
+
isi.style.position = 'fixed';
|
|
273
|
+
isi.style.boxShadow = '0 0 1rem 0 rgba(0, 0, 0, 0.5)';
|
|
274
|
+
isi.style.zIndex = '99999';
|
|
275
|
+
isi.style.marginTop = '0';
|
|
276
|
+
isiToggle.style.display = 'block';
|
|
277
|
+
isiContent.style.padding = '1rem';
|
|
278
|
+
setTimeout(function () {
|
|
279
|
+
isi.style.bottom = '0';
|
|
280
|
+
}, 300);
|
|
281
|
+
}
|
|
282
|
+
};
|
|
214
283
|
return React.createElement(
|
|
215
284
|
React.Fragment,
|
|
216
285
|
null,
|
|
@@ -245,12 +314,12 @@ var ISI = function ISI(props) {
|
|
|
245
314
|
React.createElement(
|
|
246
315
|
'style',
|
|
247
316
|
{ jsx: true },
|
|
248
|
-
'\n #isi {\n position: fixed;\n z-index:
|
|
317
|
+
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 10rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n transition: max-height 0.2s;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .4s , margin .3s, max-height .3s;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n '
|
|
249
318
|
)
|
|
250
319
|
);
|
|
251
320
|
};
|
|
252
321
|
|
|
253
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
322
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
254
323
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
255
324
|
styleInject(css);
|
|
256
325
|
|
|
@@ -805,7 +874,7 @@ var Article = function Article(props) {
|
|
|
805
874
|
} },
|
|
806
875
|
React.createElement(
|
|
807
876
|
'div',
|
|
808
|
-
|
|
877
|
+
{ id: 'article__block' },
|
|
809
878
|
React.createElement(
|
|
810
879
|
'div',
|
|
811
880
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -17,10 +17,10 @@ import './core.get-iterator-method-d1d5ed02.js';
|
|
|
17
17
|
import 'react-dom';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
|
|
20
|
-
/*
|
|
21
|
-
GROQ query -
|
|
22
|
-
accepts an array of title, URL
|
|
23
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
20
|
+
/*
|
|
21
|
+
GROQ query -
|
|
22
|
+
accepts an array of title, URL
|
|
23
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { g as default } from './index-
|
|
2
|
+
export { g as default } from './index-6eef5e56.js';
|
|
3
3
|
import './BlockContent-d8cd739c.js';
|
|
4
4
|
import './entities-932b50cf.js';
|
|
5
5
|
import './slicedToArray-cdeaee08.js';
|
|
@@ -10,7 +10,7 @@ import './_to-object-97770c52.js';
|
|
|
10
10
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
11
11
|
import 'react-bootstrap';
|
|
12
12
|
import './index-3f5c03b2.js';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-669ff425.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import 'next/router';
|
|
16
16
|
import './index-c7e2ac95.js';
|
|
@@ -2,18 +2,18 @@ import { _ as _extends } from './extends-31d65aba.js';
|
|
|
2
2
|
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var cp_url = '';
|
|
6
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
7
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
11
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.path;
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
return cp_url;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
var getTargeting = function getTargeting(props) {
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-31d65aba.js';
|
|
2
2
|
import './toConsumableArray-fa2dcda7.js';
|
|
3
|
-
export { g as default } from './getTargeting-
|
|
3
|
+
export { g as default } from './getTargeting-85315091.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './_to-object-97770c52.js';
|
|
6
6
|
import './_object-pie-33c40e79.js';
|
|
@@ -530,7 +530,6 @@ var disableInitialLoadEnabled = false;
|
|
|
530
530
|
var lazyLoadEnabled = false;
|
|
531
531
|
var lazyLoadConfig = null;
|
|
532
532
|
var servePersonalizedAds = true;
|
|
533
|
-
var serveCookies = true;
|
|
534
533
|
var registeredSlots = {};
|
|
535
534
|
var managerAlreadyInitialized = false;
|
|
536
535
|
var globalTargetingArguments = {};
|
|
@@ -572,15 +571,9 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
572
571
|
configurePersonalizedAds: function configurePersonalizedAds(value) {
|
|
573
572
|
servePersonalizedAds = value;
|
|
574
573
|
},
|
|
575
|
-
configureCookieOption: function configureCookieOption(value) {
|
|
576
|
-
serveCookies = value;
|
|
577
|
-
},
|
|
578
574
|
personalizedAdsEnabled: function personalizedAdsEnabled() {
|
|
579
575
|
return servePersonalizedAds;
|
|
580
576
|
},
|
|
581
|
-
cookiesEnabled: function cookiesEnabled() {
|
|
582
|
-
return serveCookies;
|
|
583
|
-
},
|
|
584
577
|
setAdSenseAttribute: function setAdSenseAttribute(key, value) {
|
|
585
578
|
this.setAdSenseAttributes(_defineProperty({}, key, value));
|
|
586
579
|
},
|
|
@@ -671,7 +664,6 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
671
664
|
});
|
|
672
665
|
});
|
|
673
666
|
pubadsService.setRequestNonPersonalizedAds(_this.personalizedAdsEnabled() ? 0 : 1);
|
|
674
|
-
pubadsService.setCookieOptions(_this.cookiesEnabled() ? 0 : 1);
|
|
675
667
|
});
|
|
676
668
|
});
|
|
677
669
|
}
|
|
@@ -783,9 +775,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
783
775
|
|
|
784
776
|
googletag.cmd.push(function () {
|
|
785
777
|
googletag.enableServices();
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
778
|
+
|
|
779
|
+
if (!_this3.disableInitialLoadIsEnabled()) {
|
|
780
|
+
slotsToInitialize.forEach(function (theSlotId) {
|
|
781
|
+
googletag.display(theSlotId);
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
|
|
789
785
|
resolve();
|
|
790
786
|
});
|
|
791
787
|
});
|
|
@@ -808,7 +804,6 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
808
804
|
googletag.cmd.push(function () {
|
|
809
805
|
var pubadsService = googletag.pubads();
|
|
810
806
|
pubadsService.setRequestNonPersonalizedAds(_this5.personalizedAdsEnabled() ? 0 : 1);
|
|
811
|
-
pubadsService.setCookieOptions(_this5.cookiesEnabled() ? 0 : 1);
|
|
812
807
|
|
|
813
808
|
var targetingArguments = _this5.getTargetingArguments(); // set global targetting arguments
|
|
814
809
|
|
|
@@ -875,25 +870,17 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
875
870
|
}, slots);
|
|
876
871
|
},
|
|
877
872
|
refresh: function refresh() {
|
|
878
|
-
var _this6 = this;
|
|
879
|
-
|
|
880
|
-
for (var _len4 = arguments.length, slots = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
881
|
-
slots[_key4] = arguments[_key4];
|
|
882
|
-
}
|
|
883
|
-
|
|
884
873
|
if (loadPromise === null) {
|
|
885
874
|
this.load();
|
|
886
875
|
} else {
|
|
887
|
-
|
|
888
|
-
_this6.gptRefreshAds(Object.keys(_this6.getRefreshableSlots.apply(_this6, slots)));
|
|
889
|
-
});
|
|
876
|
+
this.gptRefreshAds(Object.keys(this.getRefreshableSlots.apply(this, arguments)));
|
|
890
877
|
}
|
|
891
878
|
},
|
|
892
879
|
gptRefreshAds: function gptRefreshAds(slots) {
|
|
893
|
-
var
|
|
880
|
+
var _this6 = this;
|
|
894
881
|
|
|
895
882
|
return this.getGoogletag().then(function (googletag) {
|
|
896
|
-
|
|
883
|
+
_this6.configureOptions(googletag);
|
|
897
884
|
|
|
898
885
|
googletag.cmd.push(function () {
|
|
899
886
|
var pubadsService = googletag.pubads();
|
|
@@ -904,17 +891,17 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
904
891
|
});
|
|
905
892
|
},
|
|
906
893
|
reload: function reload() {
|
|
907
|
-
var
|
|
894
|
+
var _this7 = this;
|
|
908
895
|
|
|
909
896
|
return this.destroyGPTSlots.apply(this, arguments).then(function () {
|
|
910
|
-
return
|
|
897
|
+
return _this7.load();
|
|
911
898
|
});
|
|
912
899
|
},
|
|
913
900
|
destroyGPTSlots: function destroyGPTSlots() {
|
|
914
|
-
var
|
|
901
|
+
var _this8 = this;
|
|
915
902
|
|
|
916
|
-
for (var
|
|
917
|
-
slotsToDestroy[
|
|
903
|
+
for (var _len4 = arguments.length, slotsToDestroy = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
904
|
+
slotsToDestroy[_key4] = arguments[_key4];
|
|
918
905
|
}
|
|
919
906
|
|
|
920
907
|
if (slotsToDestroy.length === 0) {
|
|
@@ -931,7 +918,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
931
918
|
slots.push(slot);
|
|
932
919
|
}
|
|
933
920
|
|
|
934
|
-
|
|
921
|
+
_this8.getGoogletag().then(function (googletag) {
|
|
935
922
|
googletag.cmd.push(function () {
|
|
936
923
|
if (managerAlreadyInitialized === true) {
|
|
937
924
|
if (slotsToDestroy.length > 0) {
|
|
@@ -954,7 +941,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
954
941
|
});
|
|
955
942
|
},
|
|
956
943
|
registerSlot: function registerSlot(_ref) {
|
|
957
|
-
var
|
|
944
|
+
var _this9 = this;
|
|
958
945
|
|
|
959
946
|
var slotId = _ref.slotId,
|
|
960
947
|
dfpNetworkId = _ref.dfpNetworkId,
|
|
@@ -993,7 +980,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
993
980
|
gptSlot = slot.gptSlot;
|
|
994
981
|
|
|
995
982
|
if (loading === false && !gptSlot) {
|
|
996
|
-
|
|
983
|
+
_this9.load(slotId);
|
|
997
984
|
}
|
|
998
985
|
}
|
|
999
986
|
});
|
|
@@ -1183,8 +1170,6 @@ function (_React$Component) {
|
|
|
1183
1170
|
value: function applyConfigs() {
|
|
1184
1171
|
_manager.default.configurePersonalizedAds(this.props.personalizedAds);
|
|
1185
1172
|
|
|
1186
|
-
_manager.default.configureCookieOption(this.props.cookieOption);
|
|
1187
|
-
|
|
1188
1173
|
_manager.default.configureSingleRequest(this.props.singleRequest);
|
|
1189
1174
|
|
|
1190
1175
|
_manager.default.configureDisableInitialLoad(this.props.disableInitialLoad);
|
|
@@ -1281,7 +1266,6 @@ _defineProperty(DFPSlotsProvider, "propTypes", {
|
|
|
1281
1266
|
autoReload: _propTypes.default.shape({
|
|
1282
1267
|
dfpNetworkId: _propTypes.default.bool,
|
|
1283
1268
|
personalizedAds: _propTypes.default.bool,
|
|
1284
|
-
cookieOption: _propTypes.default.bool,
|
|
1285
1269
|
singleRequest: _propTypes.default.bool,
|
|
1286
1270
|
disableInitialLoad: _propTypes.default.bool,
|
|
1287
1271
|
adUnit: _propTypes.default.bool,
|
|
@@ -1293,7 +1277,6 @@ _defineProperty(DFPSlotsProvider, "propTypes", {
|
|
|
1293
1277
|
}),
|
|
1294
1278
|
dfpNetworkId: _propTypes.default.string.isRequired,
|
|
1295
1279
|
personalizedAds: _propTypes.default.bool,
|
|
1296
|
-
cookieOption: _propTypes.default.bool,
|
|
1297
1280
|
singleRequest: _propTypes.default.bool,
|
|
1298
1281
|
disableInitialLoad: _propTypes.default.bool,
|
|
1299
1282
|
adUnit: _propTypes.default.string,
|
|
@@ -1314,7 +1297,6 @@ _defineProperty(DFPSlotsProvider, "defaultProps", {
|
|
|
1314
1297
|
autoReload: {
|
|
1315
1298
|
dfpNetworkId: false,
|
|
1316
1299
|
personalizedAds: false,
|
|
1317
|
-
cookieOption: false,
|
|
1318
1300
|
singleRequest: false,
|
|
1319
1301
|
disableInitialLoad: false,
|
|
1320
1302
|
adUnit: false,
|
|
@@ -1325,7 +1307,6 @@ _defineProperty(DFPSlotsProvider, "defaultProps", {
|
|
|
1325
1307
|
lazyLoad: false
|
|
1326
1308
|
},
|
|
1327
1309
|
personalizedAds: true,
|
|
1328
|
-
cookieOption: true,
|
|
1329
1310
|
singleRequest: true,
|
|
1330
1311
|
disableInitialLoad: false,
|
|
1331
1312
|
collapseEmptyDivs: null,
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from
|
|
|
2
2
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-cdeaee08.js';
|
|
3
3
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
4
4
|
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
5
|
+
import { l as lib_3 } from './index-669ff425.js';
|
|
6
6
|
import Router, { useRouter } from 'next/router';
|
|
7
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|