@mjhls/mjh-framework 1.0.972-reference-serializer-v1 → 1.0.973-partner-listing-nojs-v1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +1 -2
  4. package/dist/cjs/AD300x250x600.js +1 -2
  5. package/dist/cjs/AD728x90.js +1 -2
  6. package/dist/cjs/ADFloatingFooter.js +1 -2
  7. package/dist/cjs/ADGutter.js +1 -2
  8. package/dist/cjs/ADSkyscraper.js +1 -2
  9. package/dist/cjs/ADSponsoredResources.js +1 -2
  10. package/dist/cjs/ADWebcast.js +1 -2
  11. package/dist/cjs/ADWelcome.js +1 -2
  12. package/dist/cjs/AdSlot.js +1 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -2
  14. package/dist/cjs/AlgoliaSearch.js +17 -14280
  15. package/dist/cjs/ArticleProgramLandingPage.js +2 -3
  16. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/AuthWrapper.js +28 -2
  19. package/dist/cjs/CMEDeck.js +1 -2
  20. package/dist/cjs/Column3.js +1 -2
  21. package/dist/cjs/ContentCardPaginated.js +3 -4
  22. package/dist/cjs/DeckContent.js +2 -3
  23. package/dist/cjs/DeckQueue.js +1 -2
  24. package/dist/cjs/DeckQueuePaginated.js +2 -3
  25. package/dist/cjs/{Dfp-9be904d5.js → Dfp-94f8ccdf.js} +1 -2
  26. package/dist/cjs/ExternalResources.js +2 -3
  27. package/dist/cjs/GridContent.js +3 -4
  28. package/dist/cjs/GridContentPaginated.js +4 -5
  29. package/dist/cjs/HorizontalArticleListing.js +2 -3
  30. package/dist/cjs/IssueLanding.js +4 -5
  31. package/dist/cjs/LeftNav.js +1 -2
  32. package/dist/cjs/MasterDeck.js +3 -4
  33. package/dist/cjs/MasterDeckPaginated.js +4 -5
  34. package/dist/cjs/{MediaSeriesCard-478ba4e4.js → MediaSeriesCard-1a62916a.js} +383 -287
  35. package/dist/cjs/MediaSeriesLanding.js +5 -7
  36. package/dist/cjs/MediaSeriesLandingPaginated.js +6 -8
  37. package/dist/cjs/{Pagination-30bb1ca1.js → Pagination-2a3d0103.js} +1 -1
  38. package/dist/cjs/PartnerDetailListing.js +31 -30
  39. package/dist/cjs/PartnerDetailListingPaginated.js +5 -6
  40. package/dist/cjs/PubSection.js +3 -4
  41. package/dist/cjs/QueueDeckExpanded.js +3 -4
  42. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -5
  43. package/dist/cjs/SeriesListingDeck.js +1 -2
  44. package/dist/cjs/TaxonomyDescription.js +2 -3
  45. package/dist/cjs/TemplateNormal.js +1 -2
  46. package/dist/cjs/VideoProgramLandingPage.js +2 -3
  47. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  48. package/dist/cjs/VideoSeriesListing.js +1 -2
  49. package/dist/cjs/View.js +2 -4
  50. package/dist/cjs/getSerializers.js +6 -7
  51. package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
  52. package/dist/cjs/{index-ec29c3b7.js → index-bb00ade7.js} +114 -580
  53. package/dist/cjs/index.js +5 -7
  54. package/dist/esm/AD.js +1 -1
  55. package/dist/esm/AD300x250.js +1 -2
  56. package/dist/esm/AD300x250x600.js +1 -2
  57. package/dist/esm/AD728x90.js +1 -2
  58. package/dist/esm/ADFloatingFooter.js +1 -2
  59. package/dist/esm/ADGutter.js +1 -2
  60. package/dist/esm/ADSkyscraper.js +1 -2
  61. package/dist/esm/ADSponsoredResources.js +1 -2
  62. package/dist/esm/ADWebcast.js +1 -2
  63. package/dist/esm/ADWelcome.js +1 -2
  64. package/dist/esm/AdSlot.js +1 -2
  65. package/dist/esm/AdSlotsProvider.js +1 -2
  66. package/dist/esm/AlgoliaSearch.js +11 -14274
  67. package/dist/esm/ArticleProgramLandingPage.js +2 -3
  68. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  69. package/dist/esm/ArticleSeriesListing.js +1 -2
  70. package/dist/esm/AuthWrapper.js +27 -1
  71. package/dist/esm/CMEDeck.js +1 -2
  72. package/dist/esm/Column3.js +1 -2
  73. package/dist/esm/ContentCardPaginated.js +3 -4
  74. package/dist/esm/DeckContent.js +2 -3
  75. package/dist/esm/DeckQueue.js +1 -2
  76. package/dist/esm/DeckQueuePaginated.js +2 -3
  77. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  78. package/dist/esm/ExternalResources.js +2 -3
  79. package/dist/esm/GridContent.js +3 -4
  80. package/dist/esm/GridContentPaginated.js +4 -5
  81. package/dist/esm/HorizontalArticleListing.js +2 -3
  82. package/dist/esm/IssueLanding.js +4 -5
  83. package/dist/esm/LeftNav.js +1 -2
  84. package/dist/esm/MasterDeck.js +3 -4
  85. package/dist/esm/MasterDeckPaginated.js +4 -5
  86. package/dist/esm/{MediaSeriesCard-6aab33f7.js → MediaSeriesCard-146e08c8.js} +98 -2
  87. package/dist/esm/MediaSeriesLanding.js +5 -7
  88. package/dist/esm/MediaSeriesLandingPaginated.js +6 -8
  89. package/dist/esm/{Pagination-194dd03f.js → Pagination-dc30727b.js} +1 -1
  90. package/dist/esm/PartnerDetailListing.js +31 -30
  91. package/dist/esm/PartnerDetailListingPaginated.js +5 -6
  92. package/dist/esm/PubSection.js +3 -4
  93. package/dist/esm/QueueDeckExpanded.js +3 -4
  94. package/dist/esm/QueueDeckExpandedPaginated.js +4 -5
  95. package/dist/esm/SeriesListingDeck.js +1 -2
  96. package/dist/esm/TaxonomyDescription.js +2 -3
  97. package/dist/esm/TemplateNormal.js +1 -2
  98. package/dist/esm/VideoProgramLandingPage.js +2 -3
  99. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  100. package/dist/esm/VideoSeriesListing.js +1 -2
  101. package/dist/esm/View.js +2 -4
  102. package/dist/esm/getSerializers.js +6 -7
  103. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  104. package/dist/esm/{index-e3e16b8b.js → index-e89d33c8.js} +114 -580
  105. package/dist/esm/index.js +5 -7
  106. package/package.json +1 -2
  107. package/dist/cjs/events-1b438fe7.js +0 -469
  108. package/dist/cjs/index-50be6759.js +0 -105
  109. package/dist/cjs/typeof-1358762e.js +0 -33
  110. package/dist/esm/events-6c3a7a63.js +0 -467
  111. package/dist/esm/index-98ca9cec.js +0 -100
  112. package/dist/esm/typeof-2f07d0e8.js +0 -30
  113. /package/dist/cjs/{ADInfeed-81006615.js → ADInfeed-cf54cb8a.js} +0 -0
  114. /package/dist/cjs/{ADlgInfeed-0db07099.js → ADlgInfeed-d06624d8.js} +0 -0
  115. /package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-0852ff35.js} +0 -0
  116. /package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-5fb3b724.js} +0 -0
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var _extends = require('./extends-7c86182f.js');
4
3
  var React = require('react');
5
4
  var slicedToArray = require('./slicedToArray-067dd3bc.js');
6
5
  var reactBootstrap = require('react-bootstrap');
7
6
  var urlFor = require('./urlFor.js');
8
- var index = require('./index-fc2f1ca2.js');
7
+ var index = require('./index-0e4427c8.js');
9
8
  var Router = require('next/router');
10
9
  var index$1 = require('./index-187c967e.js');
11
10
  var PropTypes = require('prop-types');
@@ -15,6 +14,7 @@ require('./Beam.js');
15
14
  var Segment = require('./Segment.js');
16
15
  var main = require('./main-f1c77adb.js');
17
16
  var BlockContent = require('./BlockContent-9ebd251f.js');
17
+ var _extends = require('./extends-7c86182f.js');
18
18
  var urlForFile = require('./urlForFile-29d3815a.js');
19
19
  var index$2 = require('./index-eadd5035.js');
20
20
  var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
@@ -10382,504 +10382,6 @@ var BlockTable = function BlockTable(props) {
10382
10382
  );
10383
10383
  };
10384
10384
 
10385
- var bibtexParse = _commonjsHelpers.createCommonjsModule(function (module, exports) {
10386
- /* start bibtexParse 0.0.24 */
10387
-
10388
- //Original work by Henrik Muehe (c) 2010
10389
- //
10390
- //CommonJS port by Mikola Lysenko 2013
10391
- //
10392
- //Port to Browser lib by ORCID / RCPETERS
10393
- //
10394
- //Issues:
10395
- //no comment handling within strings
10396
- //no string concatenation
10397
- //no variable values yet
10398
- //Grammar implemented here:
10399
- //bibtex -> (string | preamble | comment | entry)*;
10400
- //string -> '@STRING' '{' key_equals_value '}';
10401
- //preamble -> '@PREAMBLE' '{' value '}';
10402
- //comment -> '@COMMENT' '{' value '}';
10403
- //entry -> '@' key '{' key ',' key_value_list '}';
10404
- //key_value_list -> key_equals_value (',' key_equals_value)*;
10405
- //key_equals_value -> key '=' value;
10406
- //value -> value_quotes | value_braces | key;
10407
- //value_quotes -> '"' .*? '"'; // not quite
10408
- //value_braces -> '{' .*? '"'; // not quite
10409
- (function(exports) {
10410
-
10411
- function BibtexParser() {
10412
-
10413
- this.months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
10414
- this.notKey = [',','{','}',' ','='];
10415
- this.pos = 0;
10416
- this.input = "";
10417
- this.entries = new Array();
10418
-
10419
- this.currentEntry = "";
10420
-
10421
- this.setInput = function(t) {
10422
- this.input = t;
10423
- };
10424
-
10425
- this.getEntries = function() {
10426
- return this.entries;
10427
- };
10428
-
10429
- this.isWhitespace = function(s) {
10430
- return (s == ' ' || s == '\r' || s == '\t' || s == '\n');
10431
- };
10432
-
10433
- this.match = function(s, canCommentOut) {
10434
- if (canCommentOut == undefined || canCommentOut == null)
10435
- canCommentOut = true;
10436
- this.skipWhitespace(canCommentOut);
10437
- if (this.input.substring(this.pos, this.pos + s.length) == s) {
10438
- this.pos += s.length;
10439
- } else {
10440
- throw "Token mismatch, expected " + s + ", found "
10441
- + this.input.substring(this.pos);
10442
- } this.skipWhitespace(canCommentOut);
10443
- };
10444
-
10445
- this.tryMatch = function(s, canCommentOut) {
10446
- if (canCommentOut == undefined || canCommentOut == null)
10447
- canCommentOut = true;
10448
- this.skipWhitespace(canCommentOut);
10449
- if (this.input.substring(this.pos, this.pos + s.length) == s) {
10450
- return true;
10451
- } else {
10452
- return false;
10453
- } };
10454
-
10455
- /* when search for a match all text can be ignored, not just white space */
10456
- this.matchAt = function() {
10457
- while (this.input.length > this.pos && this.input[this.pos] != '@') {
10458
- this.pos++;
10459
- }
10460
- if (this.input[this.pos] == '@') {
10461
- return true;
10462
- } return false;
10463
- };
10464
-
10465
- this.skipWhitespace = function(canCommentOut) {
10466
- while (this.isWhitespace(this.input[this.pos])) {
10467
- this.pos++;
10468
- } if (this.input[this.pos] == "%" && canCommentOut == true) {
10469
- while (this.input[this.pos] != "\n") {
10470
- this.pos++;
10471
- } this.skipWhitespace(canCommentOut);
10472
- } };
10473
-
10474
- this.value_braces = function() {
10475
- var bracecount = 0;
10476
- this.match("{", false);
10477
- var start = this.pos;
10478
- var escaped = false;
10479
- while (true) {
10480
- if (!escaped) {
10481
- if (this.input[this.pos] == '}') {
10482
- if (bracecount > 0) {
10483
- bracecount--;
10484
- } else {
10485
- var end = this.pos;
10486
- this.match("}", false);
10487
- return this.input.substring(start, end);
10488
- } } else if (this.input[this.pos] == '{') {
10489
- bracecount++;
10490
- } else if (this.pos >= this.input.length - 1) {
10491
- throw "Unterminated value";
10492
- } } if (this.input[this.pos] == '\\' && escaped == false)
10493
- escaped = true;
10494
- else
10495
- escaped = false;
10496
- this.pos++;
10497
- } };
10498
-
10499
- this.value_comment = function() {
10500
- var str = '';
10501
- var brcktCnt = 0;
10502
- while (!(this.tryMatch("}", false) && brcktCnt == 0)) {
10503
- str = str + this.input[this.pos];
10504
- if (this.input[this.pos] == '{')
10505
- brcktCnt++;
10506
- if (this.input[this.pos] == '}')
10507
- brcktCnt--;
10508
- if (this.pos >= this.input.length - 1) {
10509
- throw "Unterminated value:" + this.input.substring(start);
10510
- } this.pos++;
10511
- } return str;
10512
- };
10513
-
10514
- this.value_quotes = function() {
10515
- this.match('"', false);
10516
- var start = this.pos;
10517
- var escaped = false;
10518
- while (true) {
10519
- if (!escaped) {
10520
- if (this.input[this.pos] == '"') {
10521
- var end = this.pos;
10522
- this.match('"', false);
10523
- return this.input.substring(start, end);
10524
- } else if (this.pos >= this.input.length - 1) {
10525
- throw "Unterminated value:" + this.input.substring(start);
10526
- } }
10527
- if (this.input[this.pos] == '\\' && escaped == false)
10528
- escaped = true;
10529
- else
10530
- escaped = false;
10531
- this.pos++;
10532
- } };
10533
-
10534
- this.single_value = function() {
10535
- var start = this.pos;
10536
- if (this.tryMatch("{")) {
10537
- return this.value_braces();
10538
- } else if (this.tryMatch('"')) {
10539
- return this.value_quotes();
10540
- } else {
10541
- var k = this.key();
10542
- if (k.match("^[0-9]+$"))
10543
- return k;
10544
- else if (this.months.indexOf(k.toLowerCase()) >= 0)
10545
- return k.toLowerCase();
10546
- else
10547
- throw "Value expected:" + this.input.substring(start) + ' for key: ' + k;
10548
-
10549
- } };
10550
-
10551
- this.value = function() {
10552
- var values = [];
10553
- values.push(this.single_value());
10554
- while (this.tryMatch("#")) {
10555
- this.match("#");
10556
- values.push(this.single_value());
10557
- } return values.join("");
10558
- };
10559
-
10560
- this.key = function(optional) {
10561
- var start = this.pos;
10562
- while (true) {
10563
- if (this.pos >= this.input.length) {
10564
- throw "Runaway key";
10565
- } // а-яА-Я is Cyrillic
10566
- //console.log(this.input[this.pos]);
10567
- if (this.notKey.indexOf(this.input[this.pos]) >= 0) {
10568
- if (optional && this.input[this.pos] != ',') {
10569
- this.pos = start;
10570
- return null;
10571
- } return this.input.substring(start, this.pos);
10572
- } else {
10573
- this.pos++;
10574
-
10575
- } } };
10576
-
10577
- this.key_equals_value = function() {
10578
- var key = this.key();
10579
- if (this.tryMatch("=")) {
10580
- this.match("=");
10581
- var val = this.value();
10582
- key = key.trim();
10583
- return [ key, val ];
10584
- } else {
10585
- throw "... = value expected, equals sign missing:"
10586
- + this.input.substring(this.pos);
10587
- } };
10588
-
10589
- this.key_value_list = function() {
10590
- var kv = this.key_equals_value();
10591
- this.currentEntry['entryTags'] = {};
10592
- this.currentEntry['entryTags'][kv[0]] = kv[1];
10593
- while (this.tryMatch(",")) {
10594
- this.match(",");
10595
- // fixes problems with commas at the end of a list
10596
- if (this.tryMatch("}")) {
10597
- break;
10598
- }
10599
- kv = this.key_equals_value();
10600
- this.currentEntry['entryTags'][kv[0]] = kv[1];
10601
- } };
10602
-
10603
- this.entry_body = function(d) {
10604
- this.currentEntry = {};
10605
- this.currentEntry['citationKey'] = this.key(true);
10606
- this.currentEntry['entryType'] = d.substring(1);
10607
- if (this.currentEntry['citationKey'] != null) {
10608
- this.match(",");
10609
- }
10610
- this.key_value_list();
10611
- this.entries.push(this.currentEntry);
10612
- };
10613
-
10614
- this.directive = function() {
10615
- this.match("@");
10616
- return "@" + this.key();
10617
- };
10618
-
10619
- this.preamble = function() {
10620
- this.currentEntry = {};
10621
- this.currentEntry['entryType'] = 'PREAMBLE';
10622
- this.currentEntry['entry'] = this.value_comment();
10623
- this.entries.push(this.currentEntry);
10624
- };
10625
-
10626
- this.comment = function() {
10627
- this.currentEntry = {};
10628
- this.currentEntry['entryType'] = 'COMMENT';
10629
- this.currentEntry['entry'] = this.value_comment();
10630
- this.entries.push(this.currentEntry);
10631
- };
10632
-
10633
- this.entry = function(d) {
10634
- this.entry_body(d);
10635
- };
10636
-
10637
- this.alernativeCitationKey = function () {
10638
- this.entries.forEach(function (entry) {
10639
- if (!entry.citationKey && entry.entryTags) {
10640
- entry.citationKey = '';
10641
- if (entry.entryTags.author) {
10642
- entry.citationKey += entry.entryTags.author.split(',')[0] += ', ';
10643
- }
10644
- entry.citationKey += entry.entryTags.year;
10645
- }
10646
- });
10647
- };
10648
-
10649
- this.bibtex = function() {
10650
- while (this.matchAt()) {
10651
- var d = this.directive();
10652
- this.match("{");
10653
- if (d.toUpperCase() == "@STRING") {
10654
- this.string();
10655
- } else if (d.toUpperCase() == "@PREAMBLE") {
10656
- this.preamble();
10657
- } else if (d.toUpperCase() == "@COMMENT") {
10658
- this.comment();
10659
- } else {
10660
- this.entry(d);
10661
- }
10662
- this.match("}");
10663
- }
10664
- this.alernativeCitationKey();
10665
- };
10666
- }
10667
- exports.toJSON = function(bibtex) {
10668
- var b = new BibtexParser();
10669
- b.setInput(bibtex);
10670
- b.bibtex();
10671
- return b.entries;
10672
- };
10673
-
10674
- /* added during hackathon don't hate on me */
10675
- exports.toBibtex = function(json) {
10676
- var out = '';
10677
- for ( var i in json) {
10678
- out += "@" + json[i].entryType;
10679
- out += '{';
10680
- if (json[i].citationKey)
10681
- out += json[i].citationKey + ', ';
10682
- if (json[i].entry)
10683
- out += json[i].entry ;
10684
- if (json[i].entryTags) {
10685
- var tags = '';
10686
- for (var jdx in json[i].entryTags) {
10687
- if (tags.length != 0)
10688
- tags += ', ';
10689
- tags += jdx + '= {' + json[i].entryTags[jdx] + '}';
10690
- }
10691
- out += tags;
10692
- }
10693
- out += '}\n\n';
10694
- }
10695
- return out;
10696
-
10697
- };
10698
-
10699
- })(exports);
10700
-
10701
- /* end bibtexParse */
10702
- });
10703
-
10704
- var References = function References(_ref) {
10705
- var node = _ref.node,
10706
- getSerializers = _ref.getSerializers;
10707
- var referenceslist = node.referenceslist;
10708
-
10709
- var getGoogleScholarUrl = function getGoogleScholarUrl(citationText, citationReferenceFormat) {
10710
- if (citationReferenceFormat == 'Bibtex' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10711
- var url = 'https://scholar.google.com/scholar_lookup?';
10712
- var bibtexJson = bibtexParse.toJSON(citationText[0].children[0].text)[0];
10713
- if (bibtexJson.entryTags) {
10714
- if (bibtexJson.entryTags.title) url += 'title=' + bibtexJson.entryTags.title;
10715
- if (bibtexJson.entryTags.author) {
10716
- bibtexJson.entryTags.author.split(',').map(function (authorName) {
10717
- return url += '&author=' + authorName;
10718
- });
10719
- }
10720
- if (bibtexJson.entryTags.year) {
10721
- url += '&publication_year=' + bibtexJson.entryTags.year;
10722
- }
10723
- if (bibtexJson.entryTags.journal) {
10724
- url += '&journal=' + bibtexJson.entryTags.journal;
10725
- }
10726
- if (bibtexJson.entryTags.volume) {
10727
- url += '&volume=' + bibtexJson.entryTags.volume;
10728
- }
10729
- if (bibtexJson.entryTags.pages) {
10730
- url += '&pages=' + bibtexJson.entryTags.pages.replace('--', '-');
10731
- }
10732
- }
10733
- return url;
10734
- }
10735
- };
10736
- var getPubmedUrl = function getPubmedUrl(citationText, citationReferenceFormat) {
10737
- if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10738
- return citationText[0].children[0].text;
10739
- }
10740
- };
10741
- var getCrossrefUrl = function getCrossrefUrl(citationText, citationReferenceFormat) {
10742
- if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10743
- if (citationText[0].children[0].text.includes('dx.doi.org')) {
10744
- return citationText[0].children[0].text;
10745
- } else {
10746
- return 'http://dx.doi.org/' + citationText[0].children[0].text;
10747
- }
10748
- }
10749
- };
10750
- return React__default['default'].createElement(
10751
- 'div',
10752
- { className: 'references-list' },
10753
- React__default['default'].createElement(
10754
- Head__default['default'],
10755
- null,
10756
- React__default['default'].createElement('script', { src: 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js' }),
10757
- React__default['default'].createElement('script', { src: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js' })
10758
- ),
10759
- React__default['default'].createElement(
10760
- 'p',
10761
- { className: 'reference-title' },
10762
- React__default['default'].createElement(
10763
- 'strong',
10764
- null,
10765
- 'REFERENCES'
10766
- )
10767
- ),
10768
- referenceslist && referenceslist.map(function (reference, ref_index) {
10769
- return React__default['default'].createElement(
10770
- 'div',
10771
- { key: reference._key, id: reference.referenceID.replace('#', '') + '__container', className: 'reference-container' },
10772
- React__default['default'].createElement(
10773
- 'div',
10774
- { className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
10775
- React__default['default'].createElement(
10776
- 'span',
10777
- null,
10778
- ref_index + 1,
10779
- '.\xA0'
10780
- ),
10781
- React__default['default'].createElement(BlockContent.BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
10782
- ),
10783
- reference.citations && reference.citations.length > 0 && React__default['default'].createElement(
10784
- 'div',
10785
- { className: 'row citations-container ml-3 mr-3 mb-2' },
10786
- reference.citations.map(function (citation, cit_index) {
10787
- return React__default['default'].createElement(
10788
- 'div',
10789
- { key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
10790
- citation.citationName === 'googleScholar' ? React__default['default'].createElement(
10791
- 'a',
10792
- { target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
10793
- 'Google Scholar'
10794
- ) : citation.citationName === 'pubMed' ? React__default['default'].createElement(
10795
- 'a',
10796
- { target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
10797
- 'PubMed'
10798
- ) : React__default['default'].createElement(
10799
- 'a',
10800
- { target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
10801
- 'Crossref'
10802
- )
10803
- );
10804
- })
10805
- ),
10806
- React__default['default'].createElement(
10807
- 'div',
10808
- {
10809
- className: 'modal fade',
10810
- id: '' + reference.referenceID.replace('#', ''),
10811
- tabindex: '-1',
10812
- role: 'dialog',
10813
- 'aria-labelledby': 'reference-modal-' + reference.referenceID.replace('#', ''),
10814
- 'aria-hidden': 'true' },
10815
- React__default['default'].createElement(
10816
- 'div',
10817
- { className: 'modal-dialog modal-dialog-centered', role: 'document' },
10818
- React__default['default'].createElement(
10819
- 'div',
10820
- { className: 'modal-content' },
10821
- React__default['default'].createElement(
10822
- 'div',
10823
- { className: 'modal-body' },
10824
- React__default['default'].createElement(
10825
- 'button',
10826
- { type: 'button', className: 'close', 'data-dismiss': 'modal', 'aria-label': 'Close' },
10827
- React__default['default'].createElement(
10828
- 'span',
10829
- { 'aria-hidden': 'true' },
10830
- '\xD7'
10831
- )
10832
- ),
10833
- React__default['default'].createElement(
10834
- 'div',
10835
- { className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
10836
- React__default['default'].createElement(
10837
- 'span',
10838
- null,
10839
- ref_index + 1,
10840
- '.\xA0'
10841
- ),
10842
- React__default['default'].createElement(BlockContent.BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
10843
- ),
10844
- reference.citations && reference.citations.length > 0 && React__default['default'].createElement(
10845
- 'div',
10846
- { className: 'row citations-container ml-3 mr-3 mb-2' },
10847
- reference.citations.map(function (citation, cit_index) {
10848
- return React__default['default'].createElement(
10849
- 'div',
10850
- { key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
10851
- citation.citationName === 'googleScholar' ? React__default['default'].createElement(
10852
- 'a',
10853
- { target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
10854
- 'Google Scholar'
10855
- ) : citation.citationName === 'pubMed' ? React__default['default'].createElement(
10856
- 'a',
10857
- { target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
10858
- 'PubMed'
10859
- ) : React__default['default'].createElement(
10860
- 'a',
10861
- { target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
10862
- 'Crossref'
10863
- )
10864
- );
10865
- })
10866
- )
10867
- )
10868
- )
10869
- )
10870
- )
10871
- );
10872
- }),
10873
- React__default['default'].createElement(
10874
- 'style',
10875
- { jsx: 'true' },
10876
- '\n .reference-details p {\n margin-bottom: 0.5rem;\n }\n .citation-link a {\n text-decoration: none;\n color: var(--primary);\n padding: 0.25rem 0.5rem;\n }\n .citation-link a:hover {\n color: #ffffff;\n background-color: var(--primary);\n border-radius: 15px;\n }\n '
10877
- )
10878
- );
10879
- };
10880
-
10881
- var References$1 = React__default['default'].memo(References);
10882
-
10883
10385
  var DigiohSmartTag = function DigiohSmartTag(props) {
10884
10386
  var _props$node = props.node,
10885
10387
  FormID = _props$node.FormID;
@@ -10889,6 +10391,15 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
10889
10391
  return React__default['default'].createElement('div', { id: FormID });
10890
10392
  };
10891
10393
 
10394
+ var siteArray = ['aestheticsauthority.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
10395
+
10396
+ var checkUrlIsExternal = function checkUrlIsExternal(url) {
10397
+ if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
10398
+ return true;
10399
+ }
10400
+ return false;
10401
+ };
10402
+
10892
10403
  var ScrollToElement = function ScrollToElement(elementId) {
10893
10404
  var element = document.getElementById(elementId);
10894
10405
  if (element) {
@@ -10903,11 +10414,66 @@ var ScrollToElement = function ScrollToElement(elementId) {
10903
10414
  }
10904
10415
  };
10905
10416
 
10906
- var checkUrlIsExternal = function checkUrlIsExternal(url) {
10907
- if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
10908
- return true;
10417
+ var ExternalLink = function ExternalLink(props) {
10418
+ var children = props.children,
10419
+ _props$mark = props.mark,
10420
+ href = _props$mark.href,
10421
+ blank = _props$mark.blank,
10422
+ color = _props$mark.color,
10423
+ nofollow = _props$mark.nofollow;
10424
+
10425
+ var _useState = React.useState(null),
10426
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
10427
+ ogUrl = _useState2[0],
10428
+ setOgUrl = _useState2[1];
10429
+
10430
+ React.useEffect(function () {
10431
+ if (window.location.href) {
10432
+ !ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
10433
+ }
10434
+ }, []);
10435
+ var isExernalUrl = checkUrlIsExternal(href);
10436
+ var checkBaseUrl = function checkBaseUrl(url) {
10437
+ if (url.includes('http://') || url.includes('https://')) {
10438
+ //to remove http:// or https:// to check URLs
10439
+ url = url.replace('www.', '').split('/').slice(2, 3).join('/');
10440
+ }
10441
+ return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
10442
+ };
10443
+ var checkNoFollow = function checkNoFollow(url, nofollow) {
10444
+ if (url && !isExernalUrl || url && checkBaseUrl(url)) {
10445
+ //if not external url, nofollow is disabled
10446
+ return '';
10447
+ } else if (url && nofollow) {
10448
+ //if not external url and nofollow is enabled, nofollow
10449
+ return 'nofollow';
10450
+ } else {
10451
+ //if not external url and nofollow is disabled, no nofollow
10452
+ return '';
10453
+ }
10454
+ };
10455
+
10456
+ if (href && href.charAt(0) === '#') {
10457
+ var elementId = href.slice(1);
10458
+ if (articleId) elementId = elementId + '-' + articleId;
10459
+ return React__default['default'].createElement(
10460
+ 'a',
10461
+ { onClick: function onClick() {
10462
+ return ScrollToElement(elementId);
10463
+ } },
10464
+ children
10465
+ );
10909
10466
  }
10910
- return false;
10467
+ var linkRel = checkNoFollow(href, nofollow) + ' ' + (blank && !checkBaseUrl(href) ? 'noreferrer noopener' : '');
10468
+ return href ? linkRel.trim().length > 0 ? React__default['default'].createElement(
10469
+ 'a',
10470
+ _extends._extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10471
+ children
10472
+ ) : React__default['default'].createElement(
10473
+ 'a',
10474
+ _extends._extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10475
+ children
10476
+ ) : children;
10911
10477
  };
10912
10478
 
10913
10479
  var convertEntities = function convertEntities(props) {
@@ -10950,8 +10516,8 @@ var getSerializers = function getSerializers() {
10950
10516
  authorImgHeight = props[15],
10951
10517
  audioAutoplay = props[16];
10952
10518
 
10953
-
10954
10519
  var nextVideo = article && article.nextVideo ? article.nextVideo : null;
10520
+
10955
10521
  return {
10956
10522
  types: {
10957
10523
  undefined: function undefined$1() {
@@ -11007,57 +10573,52 @@ var getSerializers = function getSerializers() {
11007
10573
 
11008
10574
  return React__default['default'].createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11009
10575
  },
11010
- referencesList: function referencesList(_ref6) {
10576
+ slideshow: function slideshow(_ref6) {
11011
10577
  var node = _ref6.node;
11012
-
11013
- return React__default['default'].createElement(References$1, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11014
- },
11015
- slideshow: function slideshow(_ref7) {
11016
- var node = _ref7.node;
11017
10578
  var slides = node.slides;
11018
10579
 
11019
10580
  return React__default['default'].createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
11020
10581
  },
11021
- sidebar: function sidebar(_ref8) {
11022
- var node = _ref8.node;
10582
+ sidebar: function sidebar(_ref7) {
10583
+ var node = _ref7.node;
11023
10584
  var caption = node.caption,
11024
10585
  content = node.content;
11025
10586
 
11026
10587
  return React__default['default'].createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
11027
10588
  },
11028
- datatable: function datatable(_ref9) {
11029
- var node = _ref9.node;
10589
+ datatable: function datatable(_ref8) {
10590
+ var node = _ref8.node;
11030
10591
  var table = node.table;
11031
10592
 
11032
10593
  return React__default['default'].createElement(TableShow, { rows: table.rows });
11033
10594
  },
11034
- media: function media(_ref10) {
11035
- var node = _ref10.node;
10595
+ media: function media(_ref9) {
10596
+ var node = _ref9.node;
11036
10597
 
11037
10598
  return React__default['default'].createElement(Media, { node: node, client: client });
11038
10599
  },
11039
- iframe: function iframe(_ref11) {
11040
- var node = _ref11.node;
10600
+ iframe: function iframe(_ref10) {
10601
+ var node = _ref10.node;
11041
10602
 
11042
10603
  return React__default['default'].createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
11043
10604
  },
11044
- video: function video(_ref12) {
11045
- var node = _ref12.node;
10605
+ video: function video(_ref11) {
10606
+ var node = _ref11.node;
11046
10607
 
11047
10608
  return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
11048
10609
  },
11049
- audio: function audio(_ref13) {
11050
- var node = _ref13.node;
10610
+ audio: function audio(_ref12) {
10611
+ var node = _ref12.node;
11051
10612
 
11052
10613
  return React__default['default'].createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
11053
10614
  },
11054
- poll: function poll(_ref14) {
11055
- var node = _ref14.node;
10615
+ poll: function poll(_ref13) {
10616
+ var node = _ref13.node;
11056
10617
 
11057
10618
  return React__default['default'].createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
11058
10619
  },
11059
- pollMultiChoice: function pollMultiChoice(_ref15) {
11060
- var node = _ref15.node;
10620
+ pollMultiChoice: function pollMultiChoice(_ref14) {
10621
+ var node = _ref14.node;
11061
10622
 
11062
10623
  return React__default['default'].createElement(Poll, {
11063
10624
  node: node,
@@ -11069,31 +10630,31 @@ var getSerializers = function getSerializers() {
11069
10630
  getSerializers: getSerializers.apply(undefined, props)
11070
10631
  });
11071
10632
  },
11072
- quiz: function quiz(_ref16) {
11073
- var node = _ref16.node;
10633
+ quiz: function quiz(_ref15) {
10634
+ var node = _ref15.node;
11074
10635
  var quizzes = node.quizzes;
11075
10636
 
11076
10637
  return React__default['default'].createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
11077
10638
  },
11078
- leads: function leads(_ref17) {
11079
- var node = _ref17.node;
10639
+ leads: function leads(_ref16) {
10640
+ var node = _ref16.node;
11080
10641
  var leadID = node.leadID;
11081
10642
 
11082
10643
  var url = '' + drupalLeadSettings.baseUrl + leadID;
11083
10644
  return React__default['default'].createElement(Leads, { url: url });
11084
10645
  },
11085
- slideshows: function slideshows(_ref18) {
11086
- var node = _ref18.node;
10646
+ slideshows: function slideshows(_ref17) {
10647
+ var node = _ref17.node;
11087
10648
 
11088
10649
  return React__default['default'].createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
11089
10650
  },
11090
- nativeAd: function nativeAd(_ref19) {
11091
- var node = _ref19.node;
10651
+ nativeAd: function nativeAd(_ref18) {
10652
+ var node = _ref18.node;
11092
10653
 
11093
10654
  return React__default['default'].createElement(NativeAd, { node: node });
11094
10655
  },
11095
- html_anchor_links: function html_anchor_links(_ref20) {
11096
- var node = _ref20.node;
10656
+ html_anchor_links: function html_anchor_links(_ref19) {
10657
+ var node = _ref19.node;
11097
10658
 
11098
10659
  return React__default['default'].createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
11099
10660
  },
@@ -11103,8 +10664,8 @@ var getSerializers = function getSerializers() {
11103
10664
  brtag: function brtag() {
11104
10665
  return React__default['default'].createElement('br', { className: 'line-break' });
11105
10666
  },
11106
- formstack: function formstack(_ref21) {
11107
- var node = _ref21.node;
10667
+ formstack: function formstack(_ref20) {
10668
+ var node = _ref20.node;
11108
10669
  var FormID = node.FormID,
11109
10670
  Caption = node.Caption,
11110
10671
  needSegmentSupport = node.needSegmentSupport;
@@ -11113,13 +10674,13 @@ var getSerializers = function getSerializers() {
11113
10674
  },
11114
10675
  formassembly: FormAssembly,
11115
10676
  digiohSmartTag: DigiohSmartTag,
11116
- multimedia: function multimedia(_ref22) {
11117
- var node = _ref22.node;
10677
+ multimedia: function multimedia(_ref21) {
10678
+ var node = _ref21.node;
11118
10679
 
11119
10680
  return React__default['default'].createElement(MultiMedia, { node: node, client: client });
11120
10681
  },
11121
- blockTable: function blockTable(_ref23) {
11122
- var node = _ref23.node;
10682
+ blockTable: function blockTable(_ref22) {
10683
+ var node = _ref22.node;
11123
10684
  return React__default['default'].createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11124
10685
  }
11125
10686
  },
@@ -11140,63 +10701,36 @@ var getSerializers = function getSerializers() {
11140
10701
  },
11141
10702
  link: function link(props) {
11142
10703
  var children = props.children,
11143
- _props$mark = props.mark,
11144
- href = _props$mark.href,
11145
- blank = _props$mark.blank,
11146
- color = _props$mark.color;
10704
+ mark = props.mark;
11147
10705
 
11148
- if (href && href.charAt(0) === '#' && href.includes('#reference__')) {
11149
- return React__default['default'].createElement(
11150
- 'a',
11151
- { 'data-toggle': 'modal', 'data-target': href },
11152
- children
11153
- );
11154
- }
11155
- if (href && href.charAt(0) === '#') {
11156
- var elementId = href.slice(1);
11157
- if (articleId) elementId = elementId + '-' + articleId;
11158
- return React__default['default'].createElement(
11159
- 'a',
11160
- { onClick: function onClick() {
11161
- return ScrollToElement(elementId);
11162
- } },
11163
- children
11164
- );
11165
- }
11166
-
11167
- var isExernalUrl = checkUrlIsExternal(href);
11168
- return href ? React__default['default'].createElement(
11169
- 'a',
11170
- _extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
11171
- children
11172
- ) : children;
10706
+ return React__default['default'].createElement(ExternalLink, { children: children, mark: mark });
11173
10707
  },
11174
- alignleft: function alignleft(_ref24) {
11175
- var children = _ref24.children;
10708
+ alignleft: function alignleft(_ref23) {
10709
+ var children = _ref23.children;
11176
10710
  return React__default['default'].createElement(
11177
10711
  'div',
11178
10712
  { style: { textAlign: 'left' } },
11179
10713
  children
11180
10714
  );
11181
10715
  },
11182
- alignright: function alignright(_ref25) {
11183
- var children = _ref25.children;
10716
+ alignright: function alignright(_ref24) {
10717
+ var children = _ref24.children;
11184
10718
  return React__default['default'].createElement(
11185
10719
  'div',
11186
10720
  { style: { textAlign: 'right' } },
11187
10721
  children
11188
10722
  );
11189
10723
  },
11190
- aligncenter: function aligncenter(_ref26) {
11191
- var children = _ref26.children;
10724
+ aligncenter: function aligncenter(_ref25) {
10725
+ var children = _ref25.children;
11192
10726
  return React__default['default'].createElement(
11193
10727
  'div',
11194
10728
  { style: { textAlign: 'center' } },
11195
10729
  children
11196
10730
  );
11197
10731
  },
11198
- alignjustify: function alignjustify(_ref27) {
11199
- var children = _ref27.children;
10732
+ alignjustify: function alignjustify(_ref26) {
10733
+ var children = _ref26.children;
11200
10734
  return React__default['default'].createElement(
11201
10735
  'div',
11202
10736
  { style: { textAlign: 'justify' } },