@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,9 +1,8 @@
1
- import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
2
1
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
3
2
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
4
3
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
5
4
  import urlFor from './urlFor.js';
6
- import { l as lib_3 } from './index-f0fc23eb.js';
5
+ import { l as lib_3 } from './index-5cc7b406.js';
7
6
  import Router, { useRouter } from 'next/router';
8
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
9
8
  import PropTypes from 'prop-types';
@@ -13,6 +12,7 @@ import './Beam.js';
13
12
  import Segment from './Segment.js';
14
13
  import { e as main_18, b as main_42, m as main_43 } from './main-1894c974.js';
15
14
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
+ import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
16
16
  import { u as urlForFile } from './urlForFile-b69adffc.js';
17
17
  import { L as LazyLoad } from './index-755f2cc2.js';
18
18
  import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
@@ -10362,504 +10362,6 @@ var BlockTable = function BlockTable(props) {
10362
10362
  );
10363
10363
  };
10364
10364
 
10365
- var bibtexParse = createCommonjsModule(function (module, exports) {
10366
- /* start bibtexParse 0.0.24 */
10367
-
10368
- //Original work by Henrik Muehe (c) 2010
10369
- //
10370
- //CommonJS port by Mikola Lysenko 2013
10371
- //
10372
- //Port to Browser lib by ORCID / RCPETERS
10373
- //
10374
- //Issues:
10375
- //no comment handling within strings
10376
- //no string concatenation
10377
- //no variable values yet
10378
- //Grammar implemented here:
10379
- //bibtex -> (string | preamble | comment | entry)*;
10380
- //string -> '@STRING' '{' key_equals_value '}';
10381
- //preamble -> '@PREAMBLE' '{' value '}';
10382
- //comment -> '@COMMENT' '{' value '}';
10383
- //entry -> '@' key '{' key ',' key_value_list '}';
10384
- //key_value_list -> key_equals_value (',' key_equals_value)*;
10385
- //key_equals_value -> key '=' value;
10386
- //value -> value_quotes | value_braces | key;
10387
- //value_quotes -> '"' .*? '"'; // not quite
10388
- //value_braces -> '{' .*? '"'; // not quite
10389
- (function(exports) {
10390
-
10391
- function BibtexParser() {
10392
-
10393
- this.months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
10394
- this.notKey = [',','{','}',' ','='];
10395
- this.pos = 0;
10396
- this.input = "";
10397
- this.entries = new Array();
10398
-
10399
- this.currentEntry = "";
10400
-
10401
- this.setInput = function(t) {
10402
- this.input = t;
10403
- };
10404
-
10405
- this.getEntries = function() {
10406
- return this.entries;
10407
- };
10408
-
10409
- this.isWhitespace = function(s) {
10410
- return (s == ' ' || s == '\r' || s == '\t' || s == '\n');
10411
- };
10412
-
10413
- this.match = function(s, canCommentOut) {
10414
- if (canCommentOut == undefined || canCommentOut == null)
10415
- canCommentOut = true;
10416
- this.skipWhitespace(canCommentOut);
10417
- if (this.input.substring(this.pos, this.pos + s.length) == s) {
10418
- this.pos += s.length;
10419
- } else {
10420
- throw "Token mismatch, expected " + s + ", found "
10421
- + this.input.substring(this.pos);
10422
- } this.skipWhitespace(canCommentOut);
10423
- };
10424
-
10425
- this.tryMatch = function(s, canCommentOut) {
10426
- if (canCommentOut == undefined || canCommentOut == null)
10427
- canCommentOut = true;
10428
- this.skipWhitespace(canCommentOut);
10429
- if (this.input.substring(this.pos, this.pos + s.length) == s) {
10430
- return true;
10431
- } else {
10432
- return false;
10433
- } };
10434
-
10435
- /* when search for a match all text can be ignored, not just white space */
10436
- this.matchAt = function() {
10437
- while (this.input.length > this.pos && this.input[this.pos] != '@') {
10438
- this.pos++;
10439
- }
10440
- if (this.input[this.pos] == '@') {
10441
- return true;
10442
- } return false;
10443
- };
10444
-
10445
- this.skipWhitespace = function(canCommentOut) {
10446
- while (this.isWhitespace(this.input[this.pos])) {
10447
- this.pos++;
10448
- } if (this.input[this.pos] == "%" && canCommentOut == true) {
10449
- while (this.input[this.pos] != "\n") {
10450
- this.pos++;
10451
- } this.skipWhitespace(canCommentOut);
10452
- } };
10453
-
10454
- this.value_braces = function() {
10455
- var bracecount = 0;
10456
- this.match("{", false);
10457
- var start = this.pos;
10458
- var escaped = false;
10459
- while (true) {
10460
- if (!escaped) {
10461
- if (this.input[this.pos] == '}') {
10462
- if (bracecount > 0) {
10463
- bracecount--;
10464
- } else {
10465
- var end = this.pos;
10466
- this.match("}", false);
10467
- return this.input.substring(start, end);
10468
- } } else if (this.input[this.pos] == '{') {
10469
- bracecount++;
10470
- } else if (this.pos >= this.input.length - 1) {
10471
- throw "Unterminated value";
10472
- } } if (this.input[this.pos] == '\\' && escaped == false)
10473
- escaped = true;
10474
- else
10475
- escaped = false;
10476
- this.pos++;
10477
- } };
10478
-
10479
- this.value_comment = function() {
10480
- var str = '';
10481
- var brcktCnt = 0;
10482
- while (!(this.tryMatch("}", false) && brcktCnt == 0)) {
10483
- str = str + this.input[this.pos];
10484
- if (this.input[this.pos] == '{')
10485
- brcktCnt++;
10486
- if (this.input[this.pos] == '}')
10487
- brcktCnt--;
10488
- if (this.pos >= this.input.length - 1) {
10489
- throw "Unterminated value:" + this.input.substring(start);
10490
- } this.pos++;
10491
- } return str;
10492
- };
10493
-
10494
- this.value_quotes = function() {
10495
- this.match('"', false);
10496
- var start = this.pos;
10497
- var escaped = false;
10498
- while (true) {
10499
- if (!escaped) {
10500
- if (this.input[this.pos] == '"') {
10501
- var end = this.pos;
10502
- this.match('"', false);
10503
- return this.input.substring(start, end);
10504
- } else if (this.pos >= this.input.length - 1) {
10505
- throw "Unterminated value:" + this.input.substring(start);
10506
- } }
10507
- if (this.input[this.pos] == '\\' && escaped == false)
10508
- escaped = true;
10509
- else
10510
- escaped = false;
10511
- this.pos++;
10512
- } };
10513
-
10514
- this.single_value = function() {
10515
- var start = this.pos;
10516
- if (this.tryMatch("{")) {
10517
- return this.value_braces();
10518
- } else if (this.tryMatch('"')) {
10519
- return this.value_quotes();
10520
- } else {
10521
- var k = this.key();
10522
- if (k.match("^[0-9]+$"))
10523
- return k;
10524
- else if (this.months.indexOf(k.toLowerCase()) >= 0)
10525
- return k.toLowerCase();
10526
- else
10527
- throw "Value expected:" + this.input.substring(start) + ' for key: ' + k;
10528
-
10529
- } };
10530
-
10531
- this.value = function() {
10532
- var values = [];
10533
- values.push(this.single_value());
10534
- while (this.tryMatch("#")) {
10535
- this.match("#");
10536
- values.push(this.single_value());
10537
- } return values.join("");
10538
- };
10539
-
10540
- this.key = function(optional) {
10541
- var start = this.pos;
10542
- while (true) {
10543
- if (this.pos >= this.input.length) {
10544
- throw "Runaway key";
10545
- } // а-яА-Я is Cyrillic
10546
- //console.log(this.input[this.pos]);
10547
- if (this.notKey.indexOf(this.input[this.pos]) >= 0) {
10548
- if (optional && this.input[this.pos] != ',') {
10549
- this.pos = start;
10550
- return null;
10551
- } return this.input.substring(start, this.pos);
10552
- } else {
10553
- this.pos++;
10554
-
10555
- } } };
10556
-
10557
- this.key_equals_value = function() {
10558
- var key = this.key();
10559
- if (this.tryMatch("=")) {
10560
- this.match("=");
10561
- var val = this.value();
10562
- key = key.trim();
10563
- return [ key, val ];
10564
- } else {
10565
- throw "... = value expected, equals sign missing:"
10566
- + this.input.substring(this.pos);
10567
- } };
10568
-
10569
- this.key_value_list = function() {
10570
- var kv = this.key_equals_value();
10571
- this.currentEntry['entryTags'] = {};
10572
- this.currentEntry['entryTags'][kv[0]] = kv[1];
10573
- while (this.tryMatch(",")) {
10574
- this.match(",");
10575
- // fixes problems with commas at the end of a list
10576
- if (this.tryMatch("}")) {
10577
- break;
10578
- }
10579
- kv = this.key_equals_value();
10580
- this.currentEntry['entryTags'][kv[0]] = kv[1];
10581
- } };
10582
-
10583
- this.entry_body = function(d) {
10584
- this.currentEntry = {};
10585
- this.currentEntry['citationKey'] = this.key(true);
10586
- this.currentEntry['entryType'] = d.substring(1);
10587
- if (this.currentEntry['citationKey'] != null) {
10588
- this.match(",");
10589
- }
10590
- this.key_value_list();
10591
- this.entries.push(this.currentEntry);
10592
- };
10593
-
10594
- this.directive = function() {
10595
- this.match("@");
10596
- return "@" + this.key();
10597
- };
10598
-
10599
- this.preamble = function() {
10600
- this.currentEntry = {};
10601
- this.currentEntry['entryType'] = 'PREAMBLE';
10602
- this.currentEntry['entry'] = this.value_comment();
10603
- this.entries.push(this.currentEntry);
10604
- };
10605
-
10606
- this.comment = function() {
10607
- this.currentEntry = {};
10608
- this.currentEntry['entryType'] = 'COMMENT';
10609
- this.currentEntry['entry'] = this.value_comment();
10610
- this.entries.push(this.currentEntry);
10611
- };
10612
-
10613
- this.entry = function(d) {
10614
- this.entry_body(d);
10615
- };
10616
-
10617
- this.alernativeCitationKey = function () {
10618
- this.entries.forEach(function (entry) {
10619
- if (!entry.citationKey && entry.entryTags) {
10620
- entry.citationKey = '';
10621
- if (entry.entryTags.author) {
10622
- entry.citationKey += entry.entryTags.author.split(',')[0] += ', ';
10623
- }
10624
- entry.citationKey += entry.entryTags.year;
10625
- }
10626
- });
10627
- };
10628
-
10629
- this.bibtex = function() {
10630
- while (this.matchAt()) {
10631
- var d = this.directive();
10632
- this.match("{");
10633
- if (d.toUpperCase() == "@STRING") {
10634
- this.string();
10635
- } else if (d.toUpperCase() == "@PREAMBLE") {
10636
- this.preamble();
10637
- } else if (d.toUpperCase() == "@COMMENT") {
10638
- this.comment();
10639
- } else {
10640
- this.entry(d);
10641
- }
10642
- this.match("}");
10643
- }
10644
- this.alernativeCitationKey();
10645
- };
10646
- }
10647
- exports.toJSON = function(bibtex) {
10648
- var b = new BibtexParser();
10649
- b.setInput(bibtex);
10650
- b.bibtex();
10651
- return b.entries;
10652
- };
10653
-
10654
- /* added during hackathon don't hate on me */
10655
- exports.toBibtex = function(json) {
10656
- var out = '';
10657
- for ( var i in json) {
10658
- out += "@" + json[i].entryType;
10659
- out += '{';
10660
- if (json[i].citationKey)
10661
- out += json[i].citationKey + ', ';
10662
- if (json[i].entry)
10663
- out += json[i].entry ;
10664
- if (json[i].entryTags) {
10665
- var tags = '';
10666
- for (var jdx in json[i].entryTags) {
10667
- if (tags.length != 0)
10668
- tags += ', ';
10669
- tags += jdx + '= {' + json[i].entryTags[jdx] + '}';
10670
- }
10671
- out += tags;
10672
- }
10673
- out += '}\n\n';
10674
- }
10675
- return out;
10676
-
10677
- };
10678
-
10679
- })(exports);
10680
-
10681
- /* end bibtexParse */
10682
- });
10683
-
10684
- var References = function References(_ref) {
10685
- var node = _ref.node,
10686
- getSerializers = _ref.getSerializers;
10687
- var referenceslist = node.referenceslist;
10688
-
10689
- var getGoogleScholarUrl = function getGoogleScholarUrl(citationText, citationReferenceFormat) {
10690
- if (citationReferenceFormat == 'Bibtex' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10691
- var url = 'https://scholar.google.com/scholar_lookup?';
10692
- var bibtexJson = bibtexParse.toJSON(citationText[0].children[0].text)[0];
10693
- if (bibtexJson.entryTags) {
10694
- if (bibtexJson.entryTags.title) url += 'title=' + bibtexJson.entryTags.title;
10695
- if (bibtexJson.entryTags.author) {
10696
- bibtexJson.entryTags.author.split(',').map(function (authorName) {
10697
- return url += '&author=' + authorName;
10698
- });
10699
- }
10700
- if (bibtexJson.entryTags.year) {
10701
- url += '&publication_year=' + bibtexJson.entryTags.year;
10702
- }
10703
- if (bibtexJson.entryTags.journal) {
10704
- url += '&journal=' + bibtexJson.entryTags.journal;
10705
- }
10706
- if (bibtexJson.entryTags.volume) {
10707
- url += '&volume=' + bibtexJson.entryTags.volume;
10708
- }
10709
- if (bibtexJson.entryTags.pages) {
10710
- url += '&pages=' + bibtexJson.entryTags.pages.replace('--', '-');
10711
- }
10712
- }
10713
- return url;
10714
- }
10715
- };
10716
- var getPubmedUrl = function getPubmedUrl(citationText, citationReferenceFormat) {
10717
- if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10718
- return citationText[0].children[0].text;
10719
- }
10720
- };
10721
- var getCrossrefUrl = function getCrossrefUrl(citationText, citationReferenceFormat) {
10722
- if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10723
- if (citationText[0].children[0].text.includes('dx.doi.org')) {
10724
- return citationText[0].children[0].text;
10725
- } else {
10726
- return 'http://dx.doi.org/' + citationText[0].children[0].text;
10727
- }
10728
- }
10729
- };
10730
- return React__default.createElement(
10731
- 'div',
10732
- { className: 'references-list' },
10733
- React__default.createElement(
10734
- Head,
10735
- null,
10736
- React__default.createElement('script', { src: 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js' }),
10737
- React__default.createElement('script', { src: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js' })
10738
- ),
10739
- React__default.createElement(
10740
- 'p',
10741
- { className: 'reference-title' },
10742
- React__default.createElement(
10743
- 'strong',
10744
- null,
10745
- 'REFERENCES'
10746
- )
10747
- ),
10748
- referenceslist && referenceslist.map(function (reference, ref_index) {
10749
- return React__default.createElement(
10750
- 'div',
10751
- { key: reference._key, id: reference.referenceID.replace('#', '') + '__container', className: 'reference-container' },
10752
- React__default.createElement(
10753
- 'div',
10754
- { className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
10755
- React__default.createElement(
10756
- 'span',
10757
- null,
10758
- ref_index + 1,
10759
- '.\xA0'
10760
- ),
10761
- React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
10762
- ),
10763
- reference.citations && reference.citations.length > 0 && React__default.createElement(
10764
- 'div',
10765
- { className: 'row citations-container ml-3 mr-3 mb-2' },
10766
- reference.citations.map(function (citation, cit_index) {
10767
- return React__default.createElement(
10768
- 'div',
10769
- { key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
10770
- citation.citationName === 'googleScholar' ? React__default.createElement(
10771
- 'a',
10772
- { target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
10773
- 'Google Scholar'
10774
- ) : citation.citationName === 'pubMed' ? React__default.createElement(
10775
- 'a',
10776
- { target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
10777
- 'PubMed'
10778
- ) : React__default.createElement(
10779
- 'a',
10780
- { target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
10781
- 'Crossref'
10782
- )
10783
- );
10784
- })
10785
- ),
10786
- React__default.createElement(
10787
- 'div',
10788
- {
10789
- className: 'modal fade',
10790
- id: '' + reference.referenceID.replace('#', ''),
10791
- tabindex: '-1',
10792
- role: 'dialog',
10793
- 'aria-labelledby': 'reference-modal-' + reference.referenceID.replace('#', ''),
10794
- 'aria-hidden': 'true' },
10795
- React__default.createElement(
10796
- 'div',
10797
- { className: 'modal-dialog modal-dialog-centered', role: 'document' },
10798
- React__default.createElement(
10799
- 'div',
10800
- { className: 'modal-content' },
10801
- React__default.createElement(
10802
- 'div',
10803
- { className: 'modal-body' },
10804
- React__default.createElement(
10805
- 'button',
10806
- { type: 'button', className: 'close', 'data-dismiss': 'modal', 'aria-label': 'Close' },
10807
- React__default.createElement(
10808
- 'span',
10809
- { 'aria-hidden': 'true' },
10810
- '\xD7'
10811
- )
10812
- ),
10813
- React__default.createElement(
10814
- 'div',
10815
- { className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
10816
- React__default.createElement(
10817
- 'span',
10818
- null,
10819
- ref_index + 1,
10820
- '.\xA0'
10821
- ),
10822
- React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
10823
- ),
10824
- reference.citations && reference.citations.length > 0 && React__default.createElement(
10825
- 'div',
10826
- { className: 'row citations-container ml-3 mr-3 mb-2' },
10827
- reference.citations.map(function (citation, cit_index) {
10828
- return React__default.createElement(
10829
- 'div',
10830
- { key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
10831
- citation.citationName === 'googleScholar' ? React__default.createElement(
10832
- 'a',
10833
- { target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
10834
- 'Google Scholar'
10835
- ) : citation.citationName === 'pubMed' ? React__default.createElement(
10836
- 'a',
10837
- { target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
10838
- 'PubMed'
10839
- ) : React__default.createElement(
10840
- 'a',
10841
- { target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
10842
- 'Crossref'
10843
- )
10844
- );
10845
- })
10846
- )
10847
- )
10848
- )
10849
- )
10850
- )
10851
- );
10852
- }),
10853
- React__default.createElement(
10854
- 'style',
10855
- { jsx: 'true' },
10856
- '\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 '
10857
- )
10858
- );
10859
- };
10860
-
10861
- var References$1 = React__default.memo(References);
10862
-
10863
10365
  var DigiohSmartTag = function DigiohSmartTag(props) {
10864
10366
  var _props$node = props.node,
10865
10367
  FormID = _props$node.FormID;
@@ -10869,6 +10371,15 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
10869
10371
  return React__default.createElement('div', { id: FormID });
10870
10372
  };
10871
10373
 
10374
+ 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'];
10375
+
10376
+ var checkUrlIsExternal = function checkUrlIsExternal(url) {
10377
+ if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
10378
+ return true;
10379
+ }
10380
+ return false;
10381
+ };
10382
+
10872
10383
  var ScrollToElement = function ScrollToElement(elementId) {
10873
10384
  var element = document.getElementById(elementId);
10874
10385
  if (element) {
@@ -10883,11 +10394,66 @@ var ScrollToElement = function ScrollToElement(elementId) {
10883
10394
  }
10884
10395
  };
10885
10396
 
10886
- var checkUrlIsExternal = function checkUrlIsExternal(url) {
10887
- if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
10888
- return true;
10397
+ var ExternalLink = function ExternalLink(props) {
10398
+ var children = props.children,
10399
+ _props$mark = props.mark,
10400
+ href = _props$mark.href,
10401
+ blank = _props$mark.blank,
10402
+ color = _props$mark.color,
10403
+ nofollow = _props$mark.nofollow;
10404
+
10405
+ var _useState = useState(null),
10406
+ _useState2 = _slicedToArray(_useState, 2),
10407
+ ogUrl = _useState2[0],
10408
+ setOgUrl = _useState2[1];
10409
+
10410
+ useEffect(function () {
10411
+ if (window.location.href) {
10412
+ !ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
10413
+ }
10414
+ }, []);
10415
+ var isExernalUrl = checkUrlIsExternal(href);
10416
+ var checkBaseUrl = function checkBaseUrl(url) {
10417
+ if (url.includes('http://') || url.includes('https://')) {
10418
+ //to remove http:// or https:// to check URLs
10419
+ url = url.replace('www.', '').split('/').slice(2, 3).join('/');
10420
+ }
10421
+ return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
10422
+ };
10423
+ var checkNoFollow = function checkNoFollow(url, nofollow) {
10424
+ if (url && !isExernalUrl || url && checkBaseUrl(url)) {
10425
+ //if not external url, nofollow is disabled
10426
+ return '';
10427
+ } else if (url && nofollow) {
10428
+ //if not external url and nofollow is enabled, nofollow
10429
+ return 'nofollow';
10430
+ } else {
10431
+ //if not external url and nofollow is disabled, no nofollow
10432
+ return '';
10433
+ }
10434
+ };
10435
+
10436
+ if (href && href.charAt(0) === '#') {
10437
+ var elementId = href.slice(1);
10438
+ if (articleId) elementId = elementId + '-' + articleId;
10439
+ return React__default.createElement(
10440
+ 'a',
10441
+ { onClick: function onClick() {
10442
+ return ScrollToElement(elementId);
10443
+ } },
10444
+ children
10445
+ );
10889
10446
  }
10890
- return false;
10447
+ var linkRel = checkNoFollow(href, nofollow) + ' ' + (blank && !checkBaseUrl(href) ? 'noreferrer noopener' : '');
10448
+ return href ? linkRel.trim().length > 0 ? React__default.createElement(
10449
+ 'a',
10450
+ _extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10451
+ children
10452
+ ) : React__default.createElement(
10453
+ 'a',
10454
+ _extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10455
+ children
10456
+ ) : children;
10891
10457
  };
10892
10458
 
10893
10459
  var convertEntities = function convertEntities(props) {
@@ -10930,8 +10496,8 @@ var getSerializers = function getSerializers() {
10930
10496
  authorImgHeight = props[15],
10931
10497
  audioAutoplay = props[16];
10932
10498
 
10933
-
10934
10499
  var nextVideo = article && article.nextVideo ? article.nextVideo : null;
10500
+
10935
10501
  return {
10936
10502
  types: {
10937
10503
  undefined: function undefined$1() {
@@ -10987,57 +10553,52 @@ var getSerializers = function getSerializers() {
10987
10553
 
10988
10554
  return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
10989
10555
  },
10990
- referencesList: function referencesList(_ref6) {
10556
+ slideshow: function slideshow(_ref6) {
10991
10557
  var node = _ref6.node;
10992
-
10993
- return React__default.createElement(References$1, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
10994
- },
10995
- slideshow: function slideshow(_ref7) {
10996
- var node = _ref7.node;
10997
10558
  var slides = node.slides;
10998
10559
 
10999
10560
  return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
11000
10561
  },
11001
- sidebar: function sidebar(_ref8) {
11002
- var node = _ref8.node;
10562
+ sidebar: function sidebar(_ref7) {
10563
+ var node = _ref7.node;
11003
10564
  var caption = node.caption,
11004
10565
  content = node.content;
11005
10566
 
11006
10567
  return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
11007
10568
  },
11008
- datatable: function datatable(_ref9) {
11009
- var node = _ref9.node;
10569
+ datatable: function datatable(_ref8) {
10570
+ var node = _ref8.node;
11010
10571
  var table = node.table;
11011
10572
 
11012
10573
  return React__default.createElement(TableShow, { rows: table.rows });
11013
10574
  },
11014
- media: function media(_ref10) {
11015
- var node = _ref10.node;
10575
+ media: function media(_ref9) {
10576
+ var node = _ref9.node;
11016
10577
 
11017
10578
  return React__default.createElement(Media, { node: node, client: client });
11018
10579
  },
11019
- iframe: function iframe(_ref11) {
11020
- var node = _ref11.node;
10580
+ iframe: function iframe(_ref10) {
10581
+ var node = _ref10.node;
11021
10582
 
11022
10583
  return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
11023
10584
  },
11024
- video: function video(_ref12) {
11025
- var node = _ref12.node;
10585
+ video: function video(_ref11) {
10586
+ var node = _ref11.node;
11026
10587
 
11027
10588
  return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
11028
10589
  },
11029
- audio: function audio(_ref13) {
11030
- var node = _ref13.node;
10590
+ audio: function audio(_ref12) {
10591
+ var node = _ref12.node;
11031
10592
 
11032
10593
  return React__default.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
11033
10594
  },
11034
- poll: function poll(_ref14) {
11035
- var node = _ref14.node;
10595
+ poll: function poll(_ref13) {
10596
+ var node = _ref13.node;
11036
10597
 
11037
10598
  return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
11038
10599
  },
11039
- pollMultiChoice: function pollMultiChoice(_ref15) {
11040
- var node = _ref15.node;
10600
+ pollMultiChoice: function pollMultiChoice(_ref14) {
10601
+ var node = _ref14.node;
11041
10602
 
11042
10603
  return React__default.createElement(Poll, {
11043
10604
  node: node,
@@ -11049,31 +10610,31 @@ var getSerializers = function getSerializers() {
11049
10610
  getSerializers: getSerializers.apply(undefined, props)
11050
10611
  });
11051
10612
  },
11052
- quiz: function quiz(_ref16) {
11053
- var node = _ref16.node;
10613
+ quiz: function quiz(_ref15) {
10614
+ var node = _ref15.node;
11054
10615
  var quizzes = node.quizzes;
11055
10616
 
11056
10617
  return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
11057
10618
  },
11058
- leads: function leads(_ref17) {
11059
- var node = _ref17.node;
10619
+ leads: function leads(_ref16) {
10620
+ var node = _ref16.node;
11060
10621
  var leadID = node.leadID;
11061
10622
 
11062
10623
  var url = '' + drupalLeadSettings.baseUrl + leadID;
11063
10624
  return React__default.createElement(Leads, { url: url });
11064
10625
  },
11065
- slideshows: function slideshows(_ref18) {
11066
- var node = _ref18.node;
10626
+ slideshows: function slideshows(_ref17) {
10627
+ var node = _ref17.node;
11067
10628
 
11068
10629
  return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
11069
10630
  },
11070
- nativeAd: function nativeAd(_ref19) {
11071
- var node = _ref19.node;
10631
+ nativeAd: function nativeAd(_ref18) {
10632
+ var node = _ref18.node;
11072
10633
 
11073
10634
  return React__default.createElement(NativeAd, { node: node });
11074
10635
  },
11075
- html_anchor_links: function html_anchor_links(_ref20) {
11076
- var node = _ref20.node;
10636
+ html_anchor_links: function html_anchor_links(_ref19) {
10637
+ var node = _ref19.node;
11077
10638
 
11078
10639
  return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
11079
10640
  },
@@ -11083,8 +10644,8 @@ var getSerializers = function getSerializers() {
11083
10644
  brtag: function brtag() {
11084
10645
  return React__default.createElement('br', { className: 'line-break' });
11085
10646
  },
11086
- formstack: function formstack(_ref21) {
11087
- var node = _ref21.node;
10647
+ formstack: function formstack(_ref20) {
10648
+ var node = _ref20.node;
11088
10649
  var FormID = node.FormID,
11089
10650
  Caption = node.Caption,
11090
10651
  needSegmentSupport = node.needSegmentSupport;
@@ -11093,13 +10654,13 @@ var getSerializers = function getSerializers() {
11093
10654
  },
11094
10655
  formassembly: FormAssembly,
11095
10656
  digiohSmartTag: DigiohSmartTag,
11096
- multimedia: function multimedia(_ref22) {
11097
- var node = _ref22.node;
10657
+ multimedia: function multimedia(_ref21) {
10658
+ var node = _ref21.node;
11098
10659
 
11099
10660
  return React__default.createElement(MultiMedia, { node: node, client: client });
11100
10661
  },
11101
- blockTable: function blockTable(_ref23) {
11102
- var node = _ref23.node;
10662
+ blockTable: function blockTable(_ref22) {
10663
+ var node = _ref22.node;
11103
10664
  return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11104
10665
  }
11105
10666
  },
@@ -11120,63 +10681,36 @@ var getSerializers = function getSerializers() {
11120
10681
  },
11121
10682
  link: function link(props) {
11122
10683
  var children = props.children,
11123
- _props$mark = props.mark,
11124
- href = _props$mark.href,
11125
- blank = _props$mark.blank,
11126
- color = _props$mark.color;
10684
+ mark = props.mark;
11127
10685
 
11128
- if (href && href.charAt(0) === '#' && href.includes('#reference__')) {
11129
- return React__default.createElement(
11130
- 'a',
11131
- { 'data-toggle': 'modal', 'data-target': href },
11132
- children
11133
- );
11134
- }
11135
- if (href && href.charAt(0) === '#') {
11136
- var elementId = href.slice(1);
11137
- if (articleId) elementId = elementId + '-' + articleId;
11138
- return React__default.createElement(
11139
- 'a',
11140
- { onClick: function onClick() {
11141
- return ScrollToElement(elementId);
11142
- } },
11143
- children
11144
- );
11145
- }
11146
-
11147
- var isExernalUrl = checkUrlIsExternal(href);
11148
- return href ? React__default.createElement(
11149
- 'a',
11150
- _extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
11151
- children
11152
- ) : children;
10686
+ return React__default.createElement(ExternalLink, { children: children, mark: mark });
11153
10687
  },
11154
- alignleft: function alignleft(_ref24) {
11155
- var children = _ref24.children;
10688
+ alignleft: function alignleft(_ref23) {
10689
+ var children = _ref23.children;
11156
10690
  return React__default.createElement(
11157
10691
  'div',
11158
10692
  { style: { textAlign: 'left' } },
11159
10693
  children
11160
10694
  );
11161
10695
  },
11162
- alignright: function alignright(_ref25) {
11163
- var children = _ref25.children;
10696
+ alignright: function alignright(_ref24) {
10697
+ var children = _ref24.children;
11164
10698
  return React__default.createElement(
11165
10699
  'div',
11166
10700
  { style: { textAlign: 'right' } },
11167
10701
  children
11168
10702
  );
11169
10703
  },
11170
- aligncenter: function aligncenter(_ref26) {
11171
- var children = _ref26.children;
10704
+ aligncenter: function aligncenter(_ref25) {
10705
+ var children = _ref25.children;
11172
10706
  return React__default.createElement(
11173
10707
  'div',
11174
10708
  { style: { textAlign: 'center' } },
11175
10709
  children
11176
10710
  );
11177
10711
  },
11178
- alignjustify: function alignjustify(_ref27) {
11179
- var children = _ref27.children;
10712
+ alignjustify: function alignjustify(_ref26) {
10713
+ var children = _ref26.children;
11180
10714
  return React__default.createElement(
11181
10715
  'div',
11182
10716
  { style: { textAlign: 'justify' } },