@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
@@ -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;
@@ -10987,57 +10489,52 @@ var getSerializers = function getSerializers() {
10987
10489
 
10988
10490
  return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
10989
10491
  },
10990
- referencesList: function referencesList(_ref6) {
10492
+ slideshow: function slideshow(_ref6) {
10991
10493
  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
10494
  var slides = node.slides;
10998
10495
 
10999
10496
  return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
11000
10497
  },
11001
- sidebar: function sidebar(_ref8) {
11002
- var node = _ref8.node;
10498
+ sidebar: function sidebar(_ref7) {
10499
+ var node = _ref7.node;
11003
10500
  var caption = node.caption,
11004
10501
  content = node.content;
11005
10502
 
11006
10503
  return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
11007
10504
  },
11008
- datatable: function datatable(_ref9) {
11009
- var node = _ref9.node;
10505
+ datatable: function datatable(_ref8) {
10506
+ var node = _ref8.node;
11010
10507
  var table = node.table;
11011
10508
 
11012
10509
  return React__default.createElement(TableShow, { rows: table.rows });
11013
10510
  },
11014
- media: function media(_ref10) {
11015
- var node = _ref10.node;
10511
+ media: function media(_ref9) {
10512
+ var node = _ref9.node;
11016
10513
 
11017
10514
  return React__default.createElement(Media, { node: node, client: client });
11018
10515
  },
11019
- iframe: function iframe(_ref11) {
11020
- var node = _ref11.node;
10516
+ iframe: function iframe(_ref10) {
10517
+ var node = _ref10.node;
11021
10518
 
11022
10519
  return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
11023
10520
  },
11024
- video: function video(_ref12) {
11025
- var node = _ref12.node;
10521
+ video: function video(_ref11) {
10522
+ var node = _ref11.node;
11026
10523
 
11027
10524
  return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
11028
10525
  },
11029
- audio: function audio(_ref13) {
11030
- var node = _ref13.node;
10526
+ audio: function audio(_ref12) {
10527
+ var node = _ref12.node;
11031
10528
 
11032
10529
  return React__default.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
11033
10530
  },
11034
- poll: function poll(_ref14) {
11035
- var node = _ref14.node;
10531
+ poll: function poll(_ref13) {
10532
+ var node = _ref13.node;
11036
10533
 
11037
10534
  return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
11038
10535
  },
11039
- pollMultiChoice: function pollMultiChoice(_ref15) {
11040
- var node = _ref15.node;
10536
+ pollMultiChoice: function pollMultiChoice(_ref14) {
10537
+ var node = _ref14.node;
11041
10538
 
11042
10539
  return React__default.createElement(Poll, {
11043
10540
  node: node,
@@ -11049,31 +10546,31 @@ var getSerializers = function getSerializers() {
11049
10546
  getSerializers: getSerializers.apply(undefined, props)
11050
10547
  });
11051
10548
  },
11052
- quiz: function quiz(_ref16) {
11053
- var node = _ref16.node;
10549
+ quiz: function quiz(_ref15) {
10550
+ var node = _ref15.node;
11054
10551
  var quizzes = node.quizzes;
11055
10552
 
11056
10553
  return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
11057
10554
  },
11058
- leads: function leads(_ref17) {
11059
- var node = _ref17.node;
10555
+ leads: function leads(_ref16) {
10556
+ var node = _ref16.node;
11060
10557
  var leadID = node.leadID;
11061
10558
 
11062
10559
  var url = '' + drupalLeadSettings.baseUrl + leadID;
11063
10560
  return React__default.createElement(Leads, { url: url });
11064
10561
  },
11065
- slideshows: function slideshows(_ref18) {
11066
- var node = _ref18.node;
10562
+ slideshows: function slideshows(_ref17) {
10563
+ var node = _ref17.node;
11067
10564
 
11068
10565
  return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
11069
10566
  },
11070
- nativeAd: function nativeAd(_ref19) {
11071
- var node = _ref19.node;
10567
+ nativeAd: function nativeAd(_ref18) {
10568
+ var node = _ref18.node;
11072
10569
 
11073
10570
  return React__default.createElement(NativeAd, { node: node });
11074
10571
  },
11075
- html_anchor_links: function html_anchor_links(_ref20) {
11076
- var node = _ref20.node;
10572
+ html_anchor_links: function html_anchor_links(_ref19) {
10573
+ var node = _ref19.node;
11077
10574
 
11078
10575
  return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
11079
10576
  },
@@ -11083,8 +10580,8 @@ var getSerializers = function getSerializers() {
11083
10580
  brtag: function brtag() {
11084
10581
  return React__default.createElement('br', { className: 'line-break' });
11085
10582
  },
11086
- formstack: function formstack(_ref21) {
11087
- var node = _ref21.node;
10583
+ formstack: function formstack(_ref20) {
10584
+ var node = _ref20.node;
11088
10585
  var FormID = node.FormID,
11089
10586
  Caption = node.Caption,
11090
10587
  needSegmentSupport = node.needSegmentSupport;
@@ -11093,13 +10590,13 @@ var getSerializers = function getSerializers() {
11093
10590
  },
11094
10591
  formassembly: FormAssembly,
11095
10592
  digiohSmartTag: DigiohSmartTag,
11096
- multimedia: function multimedia(_ref22) {
11097
- var node = _ref22.node;
10593
+ multimedia: function multimedia(_ref21) {
10594
+ var node = _ref21.node;
11098
10595
 
11099
10596
  return React__default.createElement(MultiMedia, { node: node, client: client });
11100
10597
  },
11101
- blockTable: function blockTable(_ref23) {
11102
- var node = _ref23.node;
10598
+ blockTable: function blockTable(_ref22) {
10599
+ var node = _ref22.node;
11103
10600
  return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11104
10601
  }
11105
10602
  },
@@ -11125,13 +10622,7 @@ var getSerializers = function getSerializers() {
11125
10622
  blank = _props$mark.blank,
11126
10623
  color = _props$mark.color;
11127
10624
 
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
- }
10625
+
11135
10626
  if (href && href.charAt(0) === '#') {
11136
10627
  var elementId = href.slice(1);
11137
10628
  if (articleId) elementId = elementId + '-' + articleId;
@@ -11151,32 +10642,32 @@ var getSerializers = function getSerializers() {
11151
10642
  children
11152
10643
  ) : children;
11153
10644
  },
11154
- alignleft: function alignleft(_ref24) {
11155
- var children = _ref24.children;
10645
+ alignleft: function alignleft(_ref23) {
10646
+ var children = _ref23.children;
11156
10647
  return React__default.createElement(
11157
10648
  'div',
11158
10649
  { style: { textAlign: 'left' } },
11159
10650
  children
11160
10651
  );
11161
10652
  },
11162
- alignright: function alignright(_ref25) {
11163
- var children = _ref25.children;
10653
+ alignright: function alignright(_ref24) {
10654
+ var children = _ref24.children;
11164
10655
  return React__default.createElement(
11165
10656
  'div',
11166
10657
  { style: { textAlign: 'right' } },
11167
10658
  children
11168
10659
  );
11169
10660
  },
11170
- aligncenter: function aligncenter(_ref26) {
11171
- var children = _ref26.children;
10661
+ aligncenter: function aligncenter(_ref25) {
10662
+ var children = _ref25.children;
11172
10663
  return React__default.createElement(
11173
10664
  'div',
11174
10665
  { style: { textAlign: 'center' } },
11175
10666
  children
11176
10667
  );
11177
10668
  },
11178
- alignjustify: function alignjustify(_ref27) {
11179
- var children = _ref27.children;
10669
+ alignjustify: function alignjustify(_ref26) {
10670
+ var children = _ref26.children;
11180
10671
  return React__default.createElement(
11181
10672
  'div',
11182
10673
  { style: { textAlign: 'justify' } },