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