@mjhls/mjh-framework 1.0.109-4.test-v1 → 1.0.109-8.1
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/AD300x250.js +0 -2
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +1 -1
- package/dist/cjs/MediaSeriesCard.js +1 -1
- package/dist/cjs/MediaSeriesLanding.js +1 -1
- package/dist/cjs/MediaSeriesLandingPaginated.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -1
- package/dist/cjs/PodcastsLanding.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +12 -5
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-5b954783.js → getTargeting-7ce7037b.js} +3 -1
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-e742f099.js → index-a26637a3.js} +76 -28
- package/dist/cjs/index.js +2 -2
- package/dist/esm/AD300x250.js +0 -2
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/MediaSeriesCard.js +1 -1
- package/dist/esm/MediaSeriesLanding.js +1 -1
- package/dist/esm/MediaSeriesLandingPaginated.js +1 -1
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +1 -1
- package/dist/esm/PodcastsLanding.js +1 -1
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +12 -5
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-b62a177c.js → getTargeting-301942ae.js} +3 -1
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-e560ccc3.js → index-a68bfe70.js} +76 -28
- package/dist/esm/index.js +2 -2
- 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.1098
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
package/dist/cjs/AD300x250.js
CHANGED
|
@@ -47,7 +47,6 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
47
47
|
_useState2[0];
|
|
48
48
|
var setPreviewAd = _useState2[1];
|
|
49
49
|
|
|
50
|
-
console.log("targeting in fm ", targeting);
|
|
51
50
|
React.useEffect(function () {
|
|
52
51
|
var path = window && window.location && window.location.search;
|
|
53
52
|
// Setting flag for Ad-preview URLs
|
|
@@ -67,7 +66,6 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
67
66
|
issue_url: targeting.issue_url,
|
|
68
67
|
publication_url: targeting.publication_url
|
|
69
68
|
};
|
|
70
|
-
console.log("ad targeting in fm ", adTargeting);
|
|
71
69
|
|
|
72
70
|
var browserSizes = [[300, 600], [300, 250], [300, 100]];
|
|
73
71
|
var mobileSizes = [[300, 250], [300, 100]];
|
|
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
|
5
5
|
var _extends = require('./extends-be0d85bc.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
9
9
|
var ArticleSeriesListing = require('./ArticleSeriesListing.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -4,7 +4,7 @@ var _extends = require('./extends-be0d85bc.js');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
7
|
-
var getSerializers = require('./index-
|
|
7
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
8
8
|
var index = require('./index-3177f564.js');
|
|
9
9
|
var Router = require('next/router');
|
|
10
10
|
var Button = require('react-bootstrap/Button');
|
|
@@ -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-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./YoutubeGroup.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-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
9
9
|
var PixelTracking = require('./PixelTracking.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -7,7 +7,7 @@ var urlFor = require('./urlFor.js');
|
|
|
7
7
|
var moment = require('./moment-f730814d.js');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
9
9
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
11
11
|
require('./_commonjsHelpers-06173234.js');
|
|
12
12
|
require('./core.get-iterator-method-5643aa10.js');
|
|
13
13
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -12,7 +12,7 @@ var Link = require('next/link');
|
|
|
12
12
|
var MasterDeck = require('./MasterDeck.js');
|
|
13
13
|
var MediaSeriesCard = require('./MediaSeriesCard.js');
|
|
14
14
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./core.get-iterator-method-5643aa10.js');
|
|
18
18
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -12,7 +12,7 @@ var Link = require('next/link');
|
|
|
12
12
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
13
13
|
var MasterDeckPaginated = require('./MasterDeckPaginated.js');
|
|
14
14
|
var MediaSeriesCard = require('./MediaSeriesCard.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./core.get-iterator-method-5643aa10.js');
|
|
18
18
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -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-a26637a3.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
18
18
|
var checkSisterSite = require('./checkSisterSite-c3a4ac98.js');
|
|
19
19
|
require('./_commonjsHelpers-06173234.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-a26637a3.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
18
18
|
var checkSisterSite = require('./checkSisterSite-c3a4ac98.js');
|
|
19
19
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -8,7 +8,7 @@ var Link = require('next/link');
|
|
|
8
8
|
var MasterDeck = require('./MasterDeck.js');
|
|
9
9
|
var MediaSeriesCard = require('./MediaSeriesCard.js');
|
|
10
10
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
11
|
-
var getSerializers = require('./index-
|
|
11
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
14
14
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var Router = require('next/router');
|
|
8
8
|
var Head = require('next/head');
|
|
9
9
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
11
11
|
require('./_commonjsHelpers-06173234.js');
|
|
12
12
|
require('./core.get-iterator-method-5643aa10.js');
|
|
13
13
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-96b44364.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-a26637a3.js');
|
|
11
11
|
var VideoSeriesListing = require('./VideoSeriesListing.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
package/dist/cjs/View.js
CHANGED
|
@@ -17,10 +17,10 @@ var FormControl = require('react-bootstrap/FormControl');
|
|
|
17
17
|
var Button = require('react-bootstrap/Button');
|
|
18
18
|
var visibilitySensor = require('./visibility-sensor-56020df6.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-086a8319.js');
|
|
23
|
-
var getTargeting = require('./getTargeting-
|
|
23
|
+
var getTargeting = require('./getTargeting-7ce7037b.js');
|
|
24
24
|
var getKeywords = require('./getKeywords.js');
|
|
25
25
|
var urlFor = require('./urlFor.js');
|
|
26
26
|
var urlForFile = require('./urlForFile-5084fc48.js');
|
|
@@ -880,6 +880,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
882
|
if (content_placement && content_placement.length > 0) {
|
|
883
|
+
console.log("content_placement: ", content_placement);
|
|
883
884
|
content_placement.filter(function (item) {
|
|
884
885
|
return item.path !== 'news';
|
|
885
886
|
}).forEach(function (cp) {
|
|
@@ -887,6 +888,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
887
888
|
return null;
|
|
888
889
|
}
|
|
889
890
|
var cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.path;
|
|
891
|
+
console.log("cp_url: ", cp_url);
|
|
890
892
|
var href = '/' + cp_url;
|
|
891
893
|
relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
892
894
|
});
|
|
@@ -897,6 +899,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
897
899
|
|
|
898
900
|
relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
899
901
|
}
|
|
902
|
+
console.log("RELATED LINKS: ", relatedLinks);
|
|
900
903
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
901
904
|
return React__default["default"].createElement(
|
|
902
905
|
'div',
|
|
@@ -905,7 +908,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
905
908
|
if (relatedLink && relatedLink.href && relatedLink.label) {
|
|
906
909
|
return React__default["default"].createElement(
|
|
907
910
|
'span',
|
|
908
|
-
{ key: relatedLink.label, className: 'related-link' },
|
|
911
|
+
{ key: relatedLink.label, className: 'related-link me-too' },
|
|
909
912
|
React__default["default"].createElement(
|
|
910
913
|
'a',
|
|
911
914
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
@@ -1334,7 +1337,10 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1334
1337
|
// }
|
|
1335
1338
|
});
|
|
1336
1339
|
}
|
|
1340
|
+
console.log("HELLO");
|
|
1337
1341
|
if (content_placement && content_placement.length > 0) {
|
|
1342
|
+
console.log("content_placement 1", content_placement);
|
|
1343
|
+
console.log("cpmodificationrequired", cpModificationRequired);
|
|
1338
1344
|
content_placement.filter(function (item) {
|
|
1339
1345
|
return item.path !== 'news';
|
|
1340
1346
|
}).forEach(function (cp) {
|
|
@@ -1351,7 +1357,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1351
1357
|
relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
1352
1358
|
});
|
|
1353
1359
|
}
|
|
1354
|
-
|
|
1360
|
+
console.log("relatedLinks 2", relatedLinks);
|
|
1355
1361
|
if (issueGroup && issueGroup.name && issueGroup.identifier && issueGroup.identifier.current && issueGroup.parent && issueGroup.parent.identifier && issueGroup.parent.identifier.current) {
|
|
1356
1362
|
var _props$Settings$issue = props.Settings.issueMapping,
|
|
1357
1363
|
issueMapping = _props$Settings$issue === undefined ? '/publications' : _props$Settings$issue;
|
|
@@ -1364,9 +1370,10 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1364
1370
|
null,
|
|
1365
1371
|
relatedLinks.map(function (relatedLink, index) {
|
|
1366
1372
|
if (relatedLink && relatedLink.href && relatedLink.label) {
|
|
1373
|
+
if (relatedLink.href === 'null') return;
|
|
1367
1374
|
return React__default["default"].createElement(
|
|
1368
1375
|
'span',
|
|
1369
|
-
{ key: index, className: 'related-link' },
|
|
1376
|
+
{ key: index, className: 'related-link yes-me' },
|
|
1370
1377
|
React__default["default"].createElement(
|
|
1371
1378
|
'a',
|
|
1372
1379
|
{ className: 'related-links article', style: { color: 'blue' }, href: relatedLink.href },
|
|
@@ -4,6 +4,7 @@ var _extends = require('./extends-be0d85bc.js');
|
|
|
4
4
|
var toConsumableArray = require('./toConsumableArray-d7797c2b.js');
|
|
5
5
|
|
|
6
6
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
7
|
+
console.log("cp: ", cp);
|
|
7
8
|
var cp_url = '';
|
|
8
9
|
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
9
10
|
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
@@ -12,8 +13,9 @@ var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
|
12
13
|
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
13
14
|
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
console.log("cp_url: ", cp_url);
|
|
16
17
|
cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
|
|
18
|
+
console.log("cp_url: 1", cp_url);
|
|
17
19
|
|
|
18
20
|
return cp_url;
|
|
19
21
|
};
|
package/dist/cjs/getTargeting.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./extends-be0d85bc.js');
|
|
4
4
|
require('./toConsumableArray-d7797c2b.js');
|
|
5
|
-
var getTargeting = require('./getTargeting-
|
|
5
|
+
var getTargeting = require('./getTargeting-7ce7037b.js');
|
|
6
6
|
require('./_commonjsHelpers-06173234.js');
|
|
7
7
|
require('./core.get-iterator-method-5643aa10.js');
|
|
8
8
|
require('./_iter-detect-b1df62f0.js');
|
|
@@ -11215,7 +11215,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11215
11215
|
exports.default = _ScriptTag2.default;
|
|
11216
11216
|
});
|
|
11217
11217
|
|
|
11218
|
-
|
|
11218
|
+
_commonjsHelpers.unwrapExports(lib);
|
|
11219
11219
|
|
|
11220
11220
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
11221
11221
|
|
|
@@ -11224,7 +11224,9 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
11224
11224
|
FormID = _props$node.FormID,
|
|
11225
11225
|
Promocode = _props$node.Promocode,
|
|
11226
11226
|
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
11227
|
-
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme
|
|
11227
|
+
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme,
|
|
11228
|
+
frameHeight = _props$node.frameHeight,
|
|
11229
|
+
tfaParams = _props$node.tfaParams;
|
|
11228
11230
|
|
|
11229
11231
|
var router = Router.useRouter();
|
|
11230
11232
|
|
|
@@ -11246,26 +11248,38 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
11246
11248
|
React.useEffect(function () {
|
|
11247
11249
|
var tfa_2 = router.query.tfa_2;
|
|
11248
11250
|
|
|
11251
|
+
var pattern = /\?.+=.*/g;
|
|
11249
11252
|
if (FormID) {
|
|
11250
11253
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
11251
11254
|
if (anonymousID && needSegmentSupport) {
|
|
11252
11255
|
src = src + '?tfa_1=' + anonymousID;
|
|
11253
11256
|
}
|
|
11254
11257
|
if (tfa_2 || Promocode) {
|
|
11255
|
-
var pattern = /\?.+=.*/g;
|
|
11256
11258
|
var hasQueryString = pattern.test(src);
|
|
11257
11259
|
src = hasQueryString ? src + '&tfa_2=' + (tfa_2 ? tfa_2 : Promocode) : src + '?tfa_2=' + (tfa_2 ? tfa_2 : Promocode);
|
|
11258
11260
|
}
|
|
11261
|
+
if (tfaParams && tfaParams.length > 0) {
|
|
11262
|
+
tfaParams.forEach(function (param) {
|
|
11263
|
+
if (param.includes(';')) {
|
|
11264
|
+
var paramArr = param.split(';');
|
|
11265
|
+
var paramName = paramArr[0];
|
|
11266
|
+
var paramVal = paramArr[1];
|
|
11267
|
+
var _hasQueryString = pattern.test(src);
|
|
11268
|
+
src = '' + src + (_hasQueryString ? '&' : '?') + paramName + '=' + paramVal;
|
|
11269
|
+
}
|
|
11270
|
+
});
|
|
11271
|
+
}
|
|
11259
11272
|
setIframeSrc(encodeURI(src));
|
|
11260
11273
|
}
|
|
11261
11274
|
}, [anonymousID]);
|
|
11262
11275
|
|
|
11276
|
+
var iframeHeight = frameHeight || '1650px';
|
|
11277
|
+
|
|
11263
11278
|
if (iframeSrc) {
|
|
11264
11279
|
return React__default["default"].createElement(
|
|
11265
11280
|
'section',
|
|
11266
11281
|
{ className: 'form-assembly' },
|
|
11267
|
-
iframeSrc && React__default["default"].createElement('iframe', { src: iframeSrc, height:
|
|
11268
|
-
React__default["default"].createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
11282
|
+
iframeSrc && React__default["default"].createElement('iframe', { src: iframeSrc, height: iframeHeight, width: '100%', frameBorder: '0' })
|
|
11269
11283
|
);
|
|
11270
11284
|
}
|
|
11271
11285
|
|
|
@@ -11383,11 +11397,28 @@ var ScrollToElement = function ScrollToElement(elementId) {
|
|
|
11383
11397
|
var ExternalLink = function ExternalLink(props) {
|
|
11384
11398
|
var children = props.children,
|
|
11385
11399
|
_props$mark = props.mark,
|
|
11386
|
-
href = _props$mark.href,
|
|
11387
11400
|
blank = _props$mark.blank,
|
|
11388
11401
|
color = _props$mark.color,
|
|
11389
11402
|
nofollow = _props$mark.nofollow,
|
|
11390
|
-
articleId = props.articleId
|
|
11403
|
+
articleId = props.articleId,
|
|
11404
|
+
type = props.type;
|
|
11405
|
+
var href = props.mark.href;
|
|
11406
|
+
|
|
11407
|
+
|
|
11408
|
+
if (type && type === 'emailAddress') {
|
|
11409
|
+
return React__default["default"].createElement(
|
|
11410
|
+
'a',
|
|
11411
|
+
_extends._extends({ href: 'mailto:' + href }, color && color.hex && { style: { color: color.hex } }),
|
|
11412
|
+
children
|
|
11413
|
+
);
|
|
11414
|
+
}
|
|
11415
|
+
if (type && type === 'phoneNumber') {
|
|
11416
|
+
return React__default["default"].createElement(
|
|
11417
|
+
'a',
|
|
11418
|
+
_extends._extends({ href: '' + href.trim().replace(/-/g, '') }, color && color.hex && { style: { color: color.hex } }),
|
|
11419
|
+
children
|
|
11420
|
+
);
|
|
11421
|
+
}
|
|
11391
11422
|
|
|
11392
11423
|
var _useState = React.useState(null),
|
|
11393
11424
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -11399,19 +11430,6 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11399
11430
|
!ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
|
|
11400
11431
|
}
|
|
11401
11432
|
}, []);
|
|
11402
|
-
var isExernalUrl = checkUrlIsExternal(href);
|
|
11403
|
-
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
11404
|
-
if (url && !isExernalUrl || url && checkSisterSite.checkSisterSite(url)) {
|
|
11405
|
-
//if not external url, nofollow is disabled
|
|
11406
|
-
return '';
|
|
11407
|
-
} else if (url && (nofollow || nofollow == undefined)) {
|
|
11408
|
-
//if not external url and nofollow is enabled, nofollow
|
|
11409
|
-
return 'nofollow';
|
|
11410
|
-
} else {
|
|
11411
|
-
//if not external url and nofollow is disabled, no nofollow
|
|
11412
|
-
return '';
|
|
11413
|
-
}
|
|
11414
|
-
};
|
|
11415
11433
|
|
|
11416
11434
|
if (href && href.charAt(0) === '#') {
|
|
11417
11435
|
var elementId = href.slice(1);
|
|
@@ -11425,6 +11443,24 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11425
11443
|
);
|
|
11426
11444
|
}
|
|
11427
11445
|
|
|
11446
|
+
if (href.includes('@') && !href.includes('mailto:') && href.length >= 5 && href.includes('.')) {
|
|
11447
|
+
href = decodeURIComponent(href);
|
|
11448
|
+
href = 'mailto:' + href;
|
|
11449
|
+
}
|
|
11450
|
+
console.log('href: ', href);
|
|
11451
|
+
var isExernalUrl = checkUrlIsExternal(href);
|
|
11452
|
+
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
11453
|
+
if (url && !isExernalUrl || url && checkSisterSite.checkSisterSite(url)) {
|
|
11454
|
+
//if not external url, nofollow is disabled
|
|
11455
|
+
return '';
|
|
11456
|
+
} else if (url && (nofollow || nofollow == undefined)) {
|
|
11457
|
+
//if not external url and nofollow is enabled, nofollow
|
|
11458
|
+
return 'nofollow';
|
|
11459
|
+
} else {
|
|
11460
|
+
//if not external url and nofollow is disabled, no nofollow
|
|
11461
|
+
return '';
|
|
11462
|
+
}
|
|
11463
|
+
};
|
|
11428
11464
|
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkSisterSite.checkSisterSite(href) ? 'noreferrer noopener' : '');
|
|
11429
11465
|
return href ? linkRel.trim().length > 0 ? React__default["default"].createElement(
|
|
11430
11466
|
'a',
|
|
@@ -11666,32 +11702,44 @@ var getSerializers = function getSerializers() {
|
|
|
11666
11702
|
|
|
11667
11703
|
return React__default["default"].createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
|
|
11668
11704
|
},
|
|
11669
|
-
|
|
11670
|
-
var children = _ref23.children
|
|
11705
|
+
emailAddress: function emailAddress(_ref23) {
|
|
11706
|
+
var children = _ref23.children,
|
|
11707
|
+
mark = _ref23.mark;
|
|
11708
|
+
|
|
11709
|
+
return React__default["default"].createElement(ExternalLink, { children: children, mark: mark, articleId: articleId, type: 'emailAddress' });
|
|
11710
|
+
},
|
|
11711
|
+
phoneNumber: function phoneNumber(_ref24) {
|
|
11712
|
+
var children = _ref24.children,
|
|
11713
|
+
mark = _ref24.mark;
|
|
11714
|
+
|
|
11715
|
+
return React__default["default"].createElement(ExternalLink, { children: children, mark: mark, articleId: articleId, type: 'phoneNumber' });
|
|
11716
|
+
},
|
|
11717
|
+
alignleft: function alignleft(_ref25) {
|
|
11718
|
+
var children = _ref25.children;
|
|
11671
11719
|
return React__default["default"].createElement(
|
|
11672
11720
|
'div',
|
|
11673
11721
|
{ style: { textAlign: 'left' } },
|
|
11674
11722
|
children
|
|
11675
11723
|
);
|
|
11676
11724
|
},
|
|
11677
|
-
alignright: function alignright(
|
|
11678
|
-
var children =
|
|
11725
|
+
alignright: function alignright(_ref26) {
|
|
11726
|
+
var children = _ref26.children;
|
|
11679
11727
|
return React__default["default"].createElement(
|
|
11680
11728
|
'div',
|
|
11681
11729
|
{ style: { textAlign: 'right' } },
|
|
11682
11730
|
children
|
|
11683
11731
|
);
|
|
11684
11732
|
},
|
|
11685
|
-
aligncenter: function aligncenter(
|
|
11686
|
-
var children =
|
|
11733
|
+
aligncenter: function aligncenter(_ref27) {
|
|
11734
|
+
var children = _ref27.children;
|
|
11687
11735
|
return React__default["default"].createElement(
|
|
11688
11736
|
'div',
|
|
11689
11737
|
{ style: { textAlign: 'center' } },
|
|
11690
11738
|
children
|
|
11691
11739
|
);
|
|
11692
11740
|
},
|
|
11693
|
-
alignjustify: function alignjustify(
|
|
11694
|
-
var children =
|
|
11741
|
+
alignjustify: function alignjustify(_ref28) {
|
|
11742
|
+
var children = _ref28.children;
|
|
11695
11743
|
return React__default["default"].createElement(
|
|
11696
11744
|
'div',
|
|
11697
11745
|
{ style: { textAlign: 'justify' } },
|
package/dist/cjs/index.js
CHANGED
|
@@ -91,7 +91,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
91
91
|
var YahooHero = require('./YahooHero.js');
|
|
92
92
|
var GridHero = require('./GridHero.js');
|
|
93
93
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
94
|
-
var getSerializers = require('./index-
|
|
94
|
+
var getSerializers = require('./index-a26637a3.js');
|
|
95
95
|
var Beam = require('./Beam.js');
|
|
96
96
|
var Segment = require('./Segment.js');
|
|
97
97
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -105,7 +105,7 @@ var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
|
|
|
105
105
|
var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
|
|
106
106
|
var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
|
|
107
107
|
var Schema = require('./Schema.js');
|
|
108
|
-
var getTargeting = require('./getTargeting-
|
|
108
|
+
var getTargeting = require('./getTargeting-7ce7037b.js');
|
|
109
109
|
var getKeywords = require('./getKeywords.js');
|
|
110
110
|
var getQuery = require('./getQuery.js');
|
|
111
111
|
require('./typeof-220bbf73.js');
|
package/dist/esm/AD300x250.js
CHANGED
|
@@ -41,7 +41,6 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
41
41
|
_useState2[0];
|
|
42
42
|
var setPreviewAd = _useState2[1];
|
|
43
43
|
|
|
44
|
-
console.log("targeting in fm ", targeting);
|
|
45
44
|
useEffect(function () {
|
|
46
45
|
var path = window && window.location && window.location.search;
|
|
47
46
|
// Setting flag for Ad-preview URLs
|
|
@@ -61,7 +60,6 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
61
60
|
issue_url: targeting.issue_url,
|
|
62
61
|
publication_url: targeting.publication_url
|
|
63
62
|
};
|
|
64
|
-
console.log("ad targeting in fm ", adTargeting);
|
|
65
63
|
|
|
66
64
|
var browserSizes = [[300, 600], [300, 250], [300, 100]];
|
|
67
65
|
var mobileSizes = [[300, 250], [300, 100]];
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-2f4448b8.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-a68bfe70.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-95db387d.js';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-2f4448b8.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-72ed566b.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-a68bfe70.js';
|
|
6
6
|
import { m as momentTimezone } from './index-4550ef23.js';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
|
@@ -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-a68bfe70.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-95db387d.js';
|
|
9
9
|
import './YoutubeGroup.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-a68bfe70.js';
|
|
7
7
|
import { PixelTrackingLandingPages } from './PixelTracking.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-95db387d.js';
|
|
@@ -5,7 +5,7 @@ import urlFor from './urlFor.js';
|
|
|
5
5
|
import { m as moment } from './moment-48faeb9c.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-a68bfe70.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-95db387d.js';
|
|
11
11
|
import './web.dom.iterable-3fffc027.js';
|
|
@@ -10,7 +10,7 @@ import Link from 'next/link';
|
|
|
10
10
|
import MasterDeck from './MasterDeck.js';
|
|
11
11
|
import MediaSeriesCard from './MediaSeriesCard.js';
|
|
12
12
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-a68bfe70.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './core.get-iterator-method-95db387d.js';
|
|
16
16
|
import './web.dom.iterable-3fffc027.js';
|
|
@@ -10,7 +10,7 @@ import Link from 'next/link';
|
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
11
|
import MasterDeck from './MasterDeckPaginated.js';
|
|
12
12
|
import MediaSeriesCard from './MediaSeriesCard.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-a68bfe70.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './core.get-iterator-method-95db387d.js';
|
|
16
16
|
import './web.dom.iterable-3fffc027.js';
|
|
@@ -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-a68bfe70.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
|
|
17
17
|
import './_commonjsHelpers-0c4b6f40.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-a68bfe70.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
|
|
17
17
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -6,7 +6,7 @@ import Link from 'next/link';
|
|
|
6
6
|
import MasterDeck from './MasterDeck.js';
|
|
7
7
|
import MediaSeriesCard from './MediaSeriesCard.js';
|
|
8
8
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
9
|
-
import { g as getSerializers } from './index-
|
|
9
|
+
import { g as getSerializers } from './index-a68bfe70.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-95db387d.js';
|
|
12
12
|
import './web.dom.iterable-3fffc027.js';
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import Head from 'next/head';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-a68bfe70.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-95db387d.js';
|
|
11
11
|
import './web.dom.iterable-3fffc027.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-a68bfe70.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-95db387d.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -15,10 +15,10 @@ 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-a68bfe70.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-acbdf4c9.js';
|
|
21
|
-
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-
|
|
21
|
+
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-301942ae.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { u as urlForFile } from './urlForFile-2e523b67.js';
|
|
@@ -870,6 +870,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
if (content_placement && content_placement.length > 0) {
|
|
873
|
+
console.log("content_placement: ", content_placement);
|
|
873
874
|
content_placement.filter(function (item) {
|
|
874
875
|
return item.path !== 'news';
|
|
875
876
|
}).forEach(function (cp) {
|
|
@@ -877,6 +878,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
877
878
|
return null;
|
|
878
879
|
}
|
|
879
880
|
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
881
|
+
console.log("cp_url: ", cp_url);
|
|
880
882
|
var href = '/' + cp_url;
|
|
881
883
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
882
884
|
});
|
|
@@ -887,6 +889,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
887
889
|
|
|
888
890
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
|
|
889
891
|
}
|
|
892
|
+
console.log("RELATED LINKS: ", relatedLinks);
|
|
890
893
|
if (relatedLinks && relatedLinks.length > 0) {
|
|
891
894
|
return React__default.createElement(
|
|
892
895
|
'div',
|
|
@@ -895,7 +898,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
895
898
|
if (relatedLink && relatedLink.href && relatedLink.label) {
|
|
896
899
|
return React__default.createElement(
|
|
897
900
|
'span',
|
|
898
|
-
{ key: relatedLink.label, className: 'related-link' },
|
|
901
|
+
{ key: relatedLink.label, className: 'related-link me-too' },
|
|
899
902
|
React__default.createElement(
|
|
900
903
|
'a',
|
|
901
904
|
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
@@ -1324,7 +1327,10 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1324
1327
|
// }
|
|
1325
1328
|
});
|
|
1326
1329
|
}
|
|
1330
|
+
console.log("HELLO");
|
|
1327
1331
|
if (content_placement && content_placement.length > 0) {
|
|
1332
|
+
console.log("content_placement 1", content_placement);
|
|
1333
|
+
console.log("cpmodificationrequired", cpModificationRequired);
|
|
1328
1334
|
content_placement.filter(function (item) {
|
|
1329
1335
|
return item.path !== 'news';
|
|
1330
1336
|
}).forEach(function (cp) {
|
|
@@ -1341,7 +1347,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1341
1347
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
1342
1348
|
});
|
|
1343
1349
|
}
|
|
1344
|
-
|
|
1350
|
+
console.log("relatedLinks 2", relatedLinks);
|
|
1345
1351
|
if (issueGroup && issueGroup.name && issueGroup.identifier && issueGroup.identifier.current && issueGroup.parent && issueGroup.parent.identifier && issueGroup.parent.identifier.current) {
|
|
1346
1352
|
var _props$Settings$issue = props.Settings.issueMapping,
|
|
1347
1353
|
issueMapping = _props$Settings$issue === undefined ? '/publications' : _props$Settings$issue;
|
|
@@ -1354,9 +1360,10 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1354
1360
|
null,
|
|
1355
1361
|
relatedLinks.map(function (relatedLink, index) {
|
|
1356
1362
|
if (relatedLink && relatedLink.href && relatedLink.label) {
|
|
1363
|
+
if (relatedLink.href === 'null') return;
|
|
1357
1364
|
return React__default.createElement(
|
|
1358
1365
|
'span',
|
|
1359
|
-
{ key: index, className: 'related-link' },
|
|
1366
|
+
{ key: index, className: 'related-link yes-me' },
|
|
1360
1367
|
React__default.createElement(
|
|
1361
1368
|
'a',
|
|
1362
1369
|
{ className: 'related-links article', style: { color: 'blue' }, href: relatedLink.href },
|
|
@@ -2,6 +2,7 @@ import { _ as _extends } from './extends-2f4448b8.js';
|
|
|
2
2
|
import { _ as _toConsumableArray } from './toConsumableArray-e6f28e5c.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
|
+
console.log("cp: ", cp);
|
|
5
6
|
var cp_url = '';
|
|
6
7
|
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
7
8
|
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
@@ -10,8 +11,9 @@ var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
|
10
11
|
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
11
12
|
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
console.log("cp_url: ", cp_url);
|
|
14
15
|
cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
|
|
16
|
+
console.log("cp_url: 1", cp_url);
|
|
15
17
|
|
|
16
18
|
return cp_url;
|
|
17
19
|
};
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-2f4448b8.js';
|
|
2
2
|
import './toConsumableArray-e6f28e5c.js';
|
|
3
|
-
export { g as default } from './getTargeting-
|
|
3
|
+
export { g as default } from './getTargeting-301942ae.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './core.get-iterator-method-95db387d.js';
|
|
6
6
|
import './_iter-detect-2f89237f.js';
|
|
@@ -11195,7 +11195,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11195
11195
|
exports.default = _ScriptTag2.default;
|
|
11196
11196
|
});
|
|
11197
11197
|
|
|
11198
|
-
|
|
11198
|
+
unwrapExports(lib);
|
|
11199
11199
|
|
|
11200
11200
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
11201
11201
|
|
|
@@ -11204,7 +11204,9 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
11204
11204
|
FormID = _props$node.FormID,
|
|
11205
11205
|
Promocode = _props$node.Promocode,
|
|
11206
11206
|
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
11207
|
-
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme
|
|
11207
|
+
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme,
|
|
11208
|
+
frameHeight = _props$node.frameHeight,
|
|
11209
|
+
tfaParams = _props$node.tfaParams;
|
|
11208
11210
|
|
|
11209
11211
|
var router = useRouter();
|
|
11210
11212
|
|
|
@@ -11226,26 +11228,38 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
11226
11228
|
useEffect(function () {
|
|
11227
11229
|
var tfa_2 = router.query.tfa_2;
|
|
11228
11230
|
|
|
11231
|
+
var pattern = /\?.+=.*/g;
|
|
11229
11232
|
if (FormID) {
|
|
11230
11233
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
11231
11234
|
if (anonymousID && needSegmentSupport) {
|
|
11232
11235
|
src = src + '?tfa_1=' + anonymousID;
|
|
11233
11236
|
}
|
|
11234
11237
|
if (tfa_2 || Promocode) {
|
|
11235
|
-
var pattern = /\?.+=.*/g;
|
|
11236
11238
|
var hasQueryString = pattern.test(src);
|
|
11237
11239
|
src = hasQueryString ? src + '&tfa_2=' + (tfa_2 ? tfa_2 : Promocode) : src + '?tfa_2=' + (tfa_2 ? tfa_2 : Promocode);
|
|
11238
11240
|
}
|
|
11241
|
+
if (tfaParams && tfaParams.length > 0) {
|
|
11242
|
+
tfaParams.forEach(function (param) {
|
|
11243
|
+
if (param.includes(';')) {
|
|
11244
|
+
var paramArr = param.split(';');
|
|
11245
|
+
var paramName = paramArr[0];
|
|
11246
|
+
var paramVal = paramArr[1];
|
|
11247
|
+
var _hasQueryString = pattern.test(src);
|
|
11248
|
+
src = '' + src + (_hasQueryString ? '&' : '?') + paramName + '=' + paramVal;
|
|
11249
|
+
}
|
|
11250
|
+
});
|
|
11251
|
+
}
|
|
11239
11252
|
setIframeSrc(encodeURI(src));
|
|
11240
11253
|
}
|
|
11241
11254
|
}, [anonymousID]);
|
|
11242
11255
|
|
|
11256
|
+
var iframeHeight = frameHeight || '1650px';
|
|
11257
|
+
|
|
11243
11258
|
if (iframeSrc) {
|
|
11244
11259
|
return React__default.createElement(
|
|
11245
11260
|
'section',
|
|
11246
11261
|
{ className: 'form-assembly' },
|
|
11247
|
-
iframeSrc && React__default.createElement('iframe', { src: iframeSrc, height:
|
|
11248
|
-
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
11262
|
+
iframeSrc && React__default.createElement('iframe', { src: iframeSrc, height: iframeHeight, width: '100%', frameBorder: '0' })
|
|
11249
11263
|
);
|
|
11250
11264
|
}
|
|
11251
11265
|
|
|
@@ -11363,11 +11377,28 @@ var ScrollToElement = function ScrollToElement(elementId) {
|
|
|
11363
11377
|
var ExternalLink = function ExternalLink(props) {
|
|
11364
11378
|
var children = props.children,
|
|
11365
11379
|
_props$mark = props.mark,
|
|
11366
|
-
href = _props$mark.href,
|
|
11367
11380
|
blank = _props$mark.blank,
|
|
11368
11381
|
color = _props$mark.color,
|
|
11369
11382
|
nofollow = _props$mark.nofollow,
|
|
11370
|
-
articleId = props.articleId
|
|
11383
|
+
articleId = props.articleId,
|
|
11384
|
+
type = props.type;
|
|
11385
|
+
var href = props.mark.href;
|
|
11386
|
+
|
|
11387
|
+
|
|
11388
|
+
if (type && type === 'emailAddress') {
|
|
11389
|
+
return React__default.createElement(
|
|
11390
|
+
'a',
|
|
11391
|
+
_extends({ href: 'mailto:' + href }, color && color.hex && { style: { color: color.hex } }),
|
|
11392
|
+
children
|
|
11393
|
+
);
|
|
11394
|
+
}
|
|
11395
|
+
if (type && type === 'phoneNumber') {
|
|
11396
|
+
return React__default.createElement(
|
|
11397
|
+
'a',
|
|
11398
|
+
_extends({ href: '' + href.trim().replace(/-/g, '') }, color && color.hex && { style: { color: color.hex } }),
|
|
11399
|
+
children
|
|
11400
|
+
);
|
|
11401
|
+
}
|
|
11371
11402
|
|
|
11372
11403
|
var _useState = useState(null),
|
|
11373
11404
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11379,19 +11410,6 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11379
11410
|
!ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
|
|
11380
11411
|
}
|
|
11381
11412
|
}, []);
|
|
11382
|
-
var isExernalUrl = checkUrlIsExternal(href);
|
|
11383
|
-
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
11384
|
-
if (url && !isExernalUrl || url && checkSisterSite(url)) {
|
|
11385
|
-
//if not external url, nofollow is disabled
|
|
11386
|
-
return '';
|
|
11387
|
-
} else if (url && (nofollow || nofollow == undefined)) {
|
|
11388
|
-
//if not external url and nofollow is enabled, nofollow
|
|
11389
|
-
return 'nofollow';
|
|
11390
|
-
} else {
|
|
11391
|
-
//if not external url and nofollow is disabled, no nofollow
|
|
11392
|
-
return '';
|
|
11393
|
-
}
|
|
11394
|
-
};
|
|
11395
11413
|
|
|
11396
11414
|
if (href && href.charAt(0) === '#') {
|
|
11397
11415
|
var elementId = href.slice(1);
|
|
@@ -11405,6 +11423,24 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11405
11423
|
);
|
|
11406
11424
|
}
|
|
11407
11425
|
|
|
11426
|
+
if (href.includes('@') && !href.includes('mailto:') && href.length >= 5 && href.includes('.')) {
|
|
11427
|
+
href = decodeURIComponent(href);
|
|
11428
|
+
href = 'mailto:' + href;
|
|
11429
|
+
}
|
|
11430
|
+
console.log('href: ', href);
|
|
11431
|
+
var isExernalUrl = checkUrlIsExternal(href);
|
|
11432
|
+
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
11433
|
+
if (url && !isExernalUrl || url && checkSisterSite(url)) {
|
|
11434
|
+
//if not external url, nofollow is disabled
|
|
11435
|
+
return '';
|
|
11436
|
+
} else if (url && (nofollow || nofollow == undefined)) {
|
|
11437
|
+
//if not external url and nofollow is enabled, nofollow
|
|
11438
|
+
return 'nofollow';
|
|
11439
|
+
} else {
|
|
11440
|
+
//if not external url and nofollow is disabled, no nofollow
|
|
11441
|
+
return '';
|
|
11442
|
+
}
|
|
11443
|
+
};
|
|
11408
11444
|
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkSisterSite(href) ? 'noreferrer noopener' : '');
|
|
11409
11445
|
return href ? linkRel.trim().length > 0 ? React__default.createElement(
|
|
11410
11446
|
'a',
|
|
@@ -11646,32 +11682,44 @@ var getSerializers = function getSerializers() {
|
|
|
11646
11682
|
|
|
11647
11683
|
return React__default.createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
|
|
11648
11684
|
},
|
|
11649
|
-
|
|
11650
|
-
var children = _ref23.children
|
|
11685
|
+
emailAddress: function emailAddress(_ref23) {
|
|
11686
|
+
var children = _ref23.children,
|
|
11687
|
+
mark = _ref23.mark;
|
|
11688
|
+
|
|
11689
|
+
return React__default.createElement(ExternalLink, { children: children, mark: mark, articleId: articleId, type: 'emailAddress' });
|
|
11690
|
+
},
|
|
11691
|
+
phoneNumber: function phoneNumber(_ref24) {
|
|
11692
|
+
var children = _ref24.children,
|
|
11693
|
+
mark = _ref24.mark;
|
|
11694
|
+
|
|
11695
|
+
return React__default.createElement(ExternalLink, { children: children, mark: mark, articleId: articleId, type: 'phoneNumber' });
|
|
11696
|
+
},
|
|
11697
|
+
alignleft: function alignleft(_ref25) {
|
|
11698
|
+
var children = _ref25.children;
|
|
11651
11699
|
return React__default.createElement(
|
|
11652
11700
|
'div',
|
|
11653
11701
|
{ style: { textAlign: 'left' } },
|
|
11654
11702
|
children
|
|
11655
11703
|
);
|
|
11656
11704
|
},
|
|
11657
|
-
alignright: function alignright(
|
|
11658
|
-
var children =
|
|
11705
|
+
alignright: function alignright(_ref26) {
|
|
11706
|
+
var children = _ref26.children;
|
|
11659
11707
|
return React__default.createElement(
|
|
11660
11708
|
'div',
|
|
11661
11709
|
{ style: { textAlign: 'right' } },
|
|
11662
11710
|
children
|
|
11663
11711
|
);
|
|
11664
11712
|
},
|
|
11665
|
-
aligncenter: function aligncenter(
|
|
11666
|
-
var children =
|
|
11713
|
+
aligncenter: function aligncenter(_ref27) {
|
|
11714
|
+
var children = _ref27.children;
|
|
11667
11715
|
return React__default.createElement(
|
|
11668
11716
|
'div',
|
|
11669
11717
|
{ style: { textAlign: 'center' } },
|
|
11670
11718
|
children
|
|
11671
11719
|
);
|
|
11672
11720
|
},
|
|
11673
|
-
alignjustify: function alignjustify(
|
|
11674
|
-
var children =
|
|
11721
|
+
alignjustify: function alignjustify(_ref28) {
|
|
11722
|
+
var children = _ref28.children;
|
|
11675
11723
|
return React__default.createElement(
|
|
11676
11724
|
'div',
|
|
11677
11725
|
{ style: { textAlign: 'justify' } },
|
package/dist/esm/index.js
CHANGED
|
@@ -88,7 +88,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
88
88
|
export { default as YahooHero } from './YahooHero.js';
|
|
89
89
|
export { default as GridHero } from './GridHero.js';
|
|
90
90
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
91
|
-
export { g as getSerializers } from './index-
|
|
91
|
+
export { g as getSerializers } from './index-a68bfe70.js';
|
|
92
92
|
export { default as Beam } from './Beam.js';
|
|
93
93
|
export { default as Segment } from './Segment.js';
|
|
94
94
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -102,7 +102,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
|
102
102
|
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
103
103
|
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
104
104
|
export { default as Schema } from './Schema.js';
|
|
105
|
-
export { g as getTargeting } from './getTargeting-
|
|
105
|
+
export { g as getTargeting } from './getTargeting-301942ae.js';
|
|
106
106
|
export { default as getKeywords } from './getKeywords.js';
|
|
107
107
|
export { default as getQuery } from './getQuery.js';
|
|
108
108
|
import './typeof-3ab7d3b6.js';
|