@mjhls/mjh-framework 1.0.972-reference-serializer-v1 → 1.0.972

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 (88) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AlgoliaSearch.js +15 -131
  3. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  4. package/dist/cjs/AuthWrapper.js +1 -1
  5. package/dist/cjs/ConferenceArticleCard.js +15 -15
  6. package/dist/cjs/ContentCardPaginated.js +2 -1
  7. package/dist/cjs/DeckContent.js +8 -8
  8. package/dist/cjs/DeckQueuePaginated.js +2 -1
  9. package/dist/cjs/EventsDeck.js +17 -17
  10. package/dist/cjs/ExternalResources.js +1 -1
  11. package/dist/cjs/GridContentPaginated.js +2 -1
  12. package/dist/cjs/HamMagazine.js +9 -9
  13. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  14. package/dist/cjs/HorizontalArticleListing.js +1 -1
  15. package/dist/cjs/IssueLanding.js +30 -30
  16. package/dist/cjs/KMTracker.js +15 -15
  17. package/dist/cjs/MasterDeck.js +8 -8
  18. package/dist/cjs/MasterDeckPaginated.js +10 -9
  19. package/dist/cjs/{MediaSeriesCard-478ba4e4.js → MediaSeriesCard-5bf9813e.js} +2 -2
  20. package/dist/cjs/MediaSeriesLanding.js +7 -7
  21. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -8
  22. package/dist/cjs/NavMagazine.js +10 -10
  23. package/dist/cjs/NavNative.js +9 -9
  24. package/dist/cjs/Pagination-c63770a3.js +90 -0
  25. package/dist/cjs/PartnerDetailListing.js +1 -1
  26. package/dist/cjs/PartnerDetailListingPaginated.js +3 -2
  27. package/dist/cjs/PublicationLanding.js +26 -26
  28. package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
  29. package/dist/cjs/RelatedContent.js +28 -28
  30. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  31. package/dist/cjs/SeriesListingDeck.js +1 -1
  32. package/dist/cjs/{SeriesSlider-74546d19.js → SeriesSlider-594b19eb.js} +4 -4
  33. package/dist/cjs/SideFooter.js +2 -2
  34. package/dist/cjs/TaxonomyDescription.js +1 -1
  35. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  36. package/dist/cjs/VideoSeriesCard.js +1 -1
  37. package/dist/cjs/View.js +9 -13
  38. package/dist/cjs/YoutubeGroup.js +4 -4
  39. package/dist/cjs/getSerializers.js +1 -1
  40. package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
  41. package/dist/cjs/getTargeting.js +1 -1
  42. package/dist/cjs/{index-ec29c3b7.js → index-eb1c583d.js} +42 -551
  43. package/dist/cjs/index.js +4 -3
  44. package/dist/esm/AlgoliaSearch.js +16 -132
  45. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  46. package/dist/esm/AuthWrapper.js +1 -1
  47. package/dist/esm/ConferenceArticleCard.js +15 -15
  48. package/dist/esm/ContentCardPaginated.js +2 -1
  49. package/dist/esm/DeckContent.js +8 -8
  50. package/dist/esm/DeckQueuePaginated.js +2 -1
  51. package/dist/esm/EventsDeck.js +17 -17
  52. package/dist/esm/ExternalResources.js +1 -1
  53. package/dist/esm/GridContentPaginated.js +2 -1
  54. package/dist/esm/HamMagazine.js +9 -9
  55. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  56. package/dist/esm/HorizontalArticleListing.js +1 -1
  57. package/dist/esm/IssueLanding.js +30 -30
  58. package/dist/esm/KMTracker.js +15 -15
  59. package/dist/esm/MasterDeck.js +8 -8
  60. package/dist/esm/MasterDeckPaginated.js +10 -9
  61. package/dist/esm/{MediaSeriesCard-6aab33f7.js → MediaSeriesCard-305a9cb3.js} +2 -2
  62. package/dist/esm/MediaSeriesLanding.js +7 -7
  63. package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
  64. package/dist/esm/NavMagazine.js +10 -10
  65. package/dist/esm/NavNative.js +9 -9
  66. package/dist/esm/Pagination-6f8d5327.js +82 -0
  67. package/dist/esm/PartnerDetailListing.js +1 -1
  68. package/dist/esm/PartnerDetailListingPaginated.js +3 -2
  69. package/dist/esm/PublicationLanding.js +26 -26
  70. package/dist/esm/QueueDeckExpandedPaginated.js +2 -1
  71. package/dist/esm/RelatedContent.js +28 -28
  72. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  73. package/dist/esm/SeriesListingDeck.js +1 -1
  74. package/dist/esm/{SeriesSlider-e495571f.js → SeriesSlider-f771e20d.js} +4 -4
  75. package/dist/esm/SideFooter.js +2 -2
  76. package/dist/esm/TaxonomyDescription.js +1 -1
  77. package/dist/esm/VideoProgramLandingPage.js +1 -1
  78. package/dist/esm/VideoSeriesCard.js +1 -1
  79. package/dist/esm/View.js +8 -13
  80. package/dist/esm/YoutubeGroup.js +4 -4
  81. package/dist/esm/getSerializers.js +1 -1
  82. package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
  83. package/dist/esm/getTargeting.js +1 -1
  84. package/dist/esm/{index-e3e16b8b.js → index-264bbd3c.js} +42 -551
  85. package/dist/esm/index.js +4 -3
  86. package/package.json +115 -116
  87. package/dist/cjs/Pagination-30bb1ca1.js +0 -97
  88. package/dist/esm/Pagination-194dd03f.js +0 -90
@@ -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;
@@ -11007,57 +10509,52 @@ var getSerializers = function getSerializers() {
11007
10509
 
11008
10510
  return React__default['default'].createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11009
10511
  },
11010
- referencesList: function referencesList(_ref6) {
10512
+ slideshow: function slideshow(_ref6) {
11011
10513
  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
10514
  var slides = node.slides;
11018
10515
 
11019
10516
  return React__default['default'].createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
11020
10517
  },
11021
- sidebar: function sidebar(_ref8) {
11022
- var node = _ref8.node;
10518
+ sidebar: function sidebar(_ref7) {
10519
+ var node = _ref7.node;
11023
10520
  var caption = node.caption,
11024
10521
  content = node.content;
11025
10522
 
11026
10523
  return React__default['default'].createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
11027
10524
  },
11028
- datatable: function datatable(_ref9) {
11029
- var node = _ref9.node;
10525
+ datatable: function datatable(_ref8) {
10526
+ var node = _ref8.node;
11030
10527
  var table = node.table;
11031
10528
 
11032
10529
  return React__default['default'].createElement(TableShow, { rows: table.rows });
11033
10530
  },
11034
- media: function media(_ref10) {
11035
- var node = _ref10.node;
10531
+ media: function media(_ref9) {
10532
+ var node = _ref9.node;
11036
10533
 
11037
10534
  return React__default['default'].createElement(Media, { node: node, client: client });
11038
10535
  },
11039
- iframe: function iframe(_ref11) {
11040
- var node = _ref11.node;
10536
+ iframe: function iframe(_ref10) {
10537
+ var node = _ref10.node;
11041
10538
 
11042
10539
  return React__default['default'].createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
11043
10540
  },
11044
- video: function video(_ref12) {
11045
- var node = _ref12.node;
10541
+ video: function video(_ref11) {
10542
+ var node = _ref11.node;
11046
10543
 
11047
10544
  return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
11048
10545
  },
11049
- audio: function audio(_ref13) {
11050
- var node = _ref13.node;
10546
+ audio: function audio(_ref12) {
10547
+ var node = _ref12.node;
11051
10548
 
11052
10549
  return React__default['default'].createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
11053
10550
  },
11054
- poll: function poll(_ref14) {
11055
- var node = _ref14.node;
10551
+ poll: function poll(_ref13) {
10552
+ var node = _ref13.node;
11056
10553
 
11057
10554
  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
10555
  },
11059
- pollMultiChoice: function pollMultiChoice(_ref15) {
11060
- var node = _ref15.node;
10556
+ pollMultiChoice: function pollMultiChoice(_ref14) {
10557
+ var node = _ref14.node;
11061
10558
 
11062
10559
  return React__default['default'].createElement(Poll, {
11063
10560
  node: node,
@@ -11069,31 +10566,31 @@ var getSerializers = function getSerializers() {
11069
10566
  getSerializers: getSerializers.apply(undefined, props)
11070
10567
  });
11071
10568
  },
11072
- quiz: function quiz(_ref16) {
11073
- var node = _ref16.node;
10569
+ quiz: function quiz(_ref15) {
10570
+ var node = _ref15.node;
11074
10571
  var quizzes = node.quizzes;
11075
10572
 
11076
10573
  return React__default['default'].createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
11077
10574
  },
11078
- leads: function leads(_ref17) {
11079
- var node = _ref17.node;
10575
+ leads: function leads(_ref16) {
10576
+ var node = _ref16.node;
11080
10577
  var leadID = node.leadID;
11081
10578
 
11082
10579
  var url = '' + drupalLeadSettings.baseUrl + leadID;
11083
10580
  return React__default['default'].createElement(Leads, { url: url });
11084
10581
  },
11085
- slideshows: function slideshows(_ref18) {
11086
- var node = _ref18.node;
10582
+ slideshows: function slideshows(_ref17) {
10583
+ var node = _ref17.node;
11087
10584
 
11088
10585
  return React__default['default'].createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
11089
10586
  },
11090
- nativeAd: function nativeAd(_ref19) {
11091
- var node = _ref19.node;
10587
+ nativeAd: function nativeAd(_ref18) {
10588
+ var node = _ref18.node;
11092
10589
 
11093
10590
  return React__default['default'].createElement(NativeAd, { node: node });
11094
10591
  },
11095
- html_anchor_links: function html_anchor_links(_ref20) {
11096
- var node = _ref20.node;
10592
+ html_anchor_links: function html_anchor_links(_ref19) {
10593
+ var node = _ref19.node;
11097
10594
 
11098
10595
  return React__default['default'].createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
11099
10596
  },
@@ -11103,8 +10600,8 @@ var getSerializers = function getSerializers() {
11103
10600
  brtag: function brtag() {
11104
10601
  return React__default['default'].createElement('br', { className: 'line-break' });
11105
10602
  },
11106
- formstack: function formstack(_ref21) {
11107
- var node = _ref21.node;
10603
+ formstack: function formstack(_ref20) {
10604
+ var node = _ref20.node;
11108
10605
  var FormID = node.FormID,
11109
10606
  Caption = node.Caption,
11110
10607
  needSegmentSupport = node.needSegmentSupport;
@@ -11113,13 +10610,13 @@ var getSerializers = function getSerializers() {
11113
10610
  },
11114
10611
  formassembly: FormAssembly,
11115
10612
  digiohSmartTag: DigiohSmartTag,
11116
- multimedia: function multimedia(_ref22) {
11117
- var node = _ref22.node;
10613
+ multimedia: function multimedia(_ref21) {
10614
+ var node = _ref21.node;
11118
10615
 
11119
10616
  return React__default['default'].createElement(MultiMedia, { node: node, client: client });
11120
10617
  },
11121
- blockTable: function blockTable(_ref23) {
11122
- var node = _ref23.node;
10618
+ blockTable: function blockTable(_ref22) {
10619
+ var node = _ref22.node;
11123
10620
  return React__default['default'].createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11124
10621
  }
11125
10622
  },
@@ -11145,13 +10642,7 @@ var getSerializers = function getSerializers() {
11145
10642
  blank = _props$mark.blank,
11146
10643
  color = _props$mark.color;
11147
10644
 
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
- }
10645
+
11155
10646
  if (href && href.charAt(0) === '#') {
11156
10647
  var elementId = href.slice(1);
11157
10648
  if (articleId) elementId = elementId + '-' + articleId;
@@ -11171,32 +10662,32 @@ var getSerializers = function getSerializers() {
11171
10662
  children
11172
10663
  ) : children;
11173
10664
  },
11174
- alignleft: function alignleft(_ref24) {
11175
- var children = _ref24.children;
10665
+ alignleft: function alignleft(_ref23) {
10666
+ var children = _ref23.children;
11176
10667
  return React__default['default'].createElement(
11177
10668
  'div',
11178
10669
  { style: { textAlign: 'left' } },
11179
10670
  children
11180
10671
  );
11181
10672
  },
11182
- alignright: function alignright(_ref25) {
11183
- var children = _ref25.children;
10673
+ alignright: function alignright(_ref24) {
10674
+ var children = _ref24.children;
11184
10675
  return React__default['default'].createElement(
11185
10676
  'div',
11186
10677
  { style: { textAlign: 'right' } },
11187
10678
  children
11188
10679
  );
11189
10680
  },
11190
- aligncenter: function aligncenter(_ref26) {
11191
- var children = _ref26.children;
10681
+ aligncenter: function aligncenter(_ref25) {
10682
+ var children = _ref25.children;
11192
10683
  return React__default['default'].createElement(
11193
10684
  'div',
11194
10685
  { style: { textAlign: 'center' } },
11195
10686
  children
11196
10687
  );
11197
10688
  },
11198
- alignjustify: function alignjustify(_ref27) {
11199
- var children = _ref27.children;
10689
+ alignjustify: function alignjustify(_ref26) {
10690
+ var children = _ref26.children;
11200
10691
  return React__default['default'].createElement(
11201
10692
  'div',
11202
10693
  { style: { textAlign: 'justify' } },