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