@mjhls/mjh-framework 1.0.1017-blanktagremoval-v2 → 1.0.1017-cls

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 (167) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AD300x250.js +3 -2
  3. package/dist/cjs/AD300x250x600.js +3 -2
  4. package/dist/cjs/AD728x90.js +3 -2
  5. package/dist/cjs/ADFloatingFooter.js +3 -2
  6. package/dist/cjs/ADGutter.js +3 -2
  7. package/dist/cjs/ADSkyscraper.js +3 -2
  8. package/dist/cjs/ADSponsoredResources.js +3 -2
  9. package/dist/cjs/ADWebcast.js +3 -2
  10. package/dist/cjs/ADWelcome.js +3 -2
  11. package/dist/cjs/AdSlot.js +3 -2
  12. package/dist/cjs/AdSlotsProvider.js +3 -2
  13. package/dist/cjs/AlgoliaSearch.js +512 -1023
  14. package/dist/cjs/ArticleCarousel.js +1 -1
  15. package/dist/cjs/ArticleProgramLandingPage.js +4 -3
  16. package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
  17. package/dist/cjs/ArticleSeriesListing.js +3 -2
  18. package/dist/cjs/Auth.js +12 -41
  19. package/dist/cjs/AuthWrapper.js +17 -25
  20. package/dist/cjs/CEDeckSupabase.js +3 -2
  21. package/dist/cjs/CMEDeck.js +3 -2
  22. package/dist/cjs/Column2.js +2 -4
  23. package/dist/cjs/Column3.js +3 -2
  24. package/dist/cjs/ContentCardPaginated.js +5 -4
  25. package/dist/cjs/DeckContent.js +39 -34
  26. package/dist/cjs/DeckQueue.js +3 -2
  27. package/dist/cjs/DeckQueuePaginated.js +4 -3
  28. package/dist/cjs/{Dfp-67646058.js → Dfp-c313a700.js} +2 -1
  29. package/dist/cjs/EventsDeck.js +2 -2
  30. package/dist/cjs/ExternalResources.js +8 -7
  31. package/dist/cjs/Feature.js +2 -2
  32. package/dist/cjs/GridContent.js +5 -4
  33. package/dist/cjs/GridContentPaginated.js +6 -5
  34. package/dist/cjs/HamMagazine.js +219 -215
  35. package/dist/cjs/HorizontalArticleListing.js +4 -3
  36. package/dist/cjs/{ImageSlider-50807a77.js → ImageSlider-17fdaf3b.js} +10 -5
  37. package/dist/cjs/IssueLanding.js +6 -5
  38. package/dist/cjs/LeftNav.js +17 -15
  39. package/dist/cjs/MasterDeck.js +5 -4
  40. package/dist/cjs/MasterDeckPaginated.js +6 -5
  41. package/dist/cjs/{MediaSeriesCard-02a04189.js → MediaSeriesCard-42536e1e.js} +1 -1
  42. package/dist/cjs/MediaSeriesLanding.js +8 -7
  43. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -8
  44. package/dist/cjs/NavDvm.js +28 -30
  45. package/dist/cjs/{NavFooter-b37e3eed.js → NavFooter-257b5318.js} +3 -4
  46. package/dist/cjs/NavMagazine.js +39 -41
  47. package/dist/cjs/NavNative.js +46 -46
  48. package/dist/cjs/{Pagination-6359861a.js → Pagination-842c556f.js} +1 -1
  49. package/dist/cjs/PartnerDetailListing.js +30 -29
  50. package/dist/cjs/PartnerDetailListingPaginated.js +34 -33
  51. package/dist/cjs/PodcastsLanding.js +7 -6
  52. package/dist/cjs/PubSection.js +5 -4
  53. package/dist/cjs/QueueDeckExpanded.js +5 -4
  54. package/dist/cjs/QueueDeckExpandedPaginated.js +6 -5
  55. package/dist/cjs/SeriesListingDeck.js +4 -3
  56. package/dist/cjs/{SeriesSlider-18fc6e71.js → SeriesSlider-3d57985d.js} +1 -1
  57. package/dist/cjs/SideFooter.js +7 -9
  58. package/dist/cjs/{SocialSearchComponent-e30b4dea.js → SocialSearchComponent-e2a5511a.js} +2 -2
  59. package/dist/cjs/TaxonomyCard.js +8 -9
  60. package/dist/cjs/TaxonomyDescription.js +4 -3
  61. package/dist/cjs/TemplateNormal.js +8 -5
  62. package/dist/cjs/{Tooltip-8011d690.js → Tooltip-4cb8849a.js} +74 -134
  63. package/dist/cjs/Ustream.js +1 -1
  64. package/dist/cjs/VideoProgramLandingPage.js +4 -3
  65. package/dist/cjs/VideoSeriesLandingPage.js +5 -4
  66. package/dist/cjs/VideoSeriesListing.js +3 -2
  67. package/dist/cjs/View.js +6 -5
  68. package/dist/cjs/YahooHero.js +29 -21
  69. package/dist/cjs/YoutubeGroup.js +1 -1
  70. package/dist/cjs/{defineProperty-19580e93.js → defineProperty-e0fb52c5.js} +4 -2
  71. package/dist/cjs/events-1b438fe7.js +469 -0
  72. package/dist/cjs/getRelatedArticle.js +1 -1
  73. package/dist/cjs/getSerializers.js +4 -3
  74. package/dist/cjs/{index-88b1d875.js → index-67617e6f.js} +43 -546
  75. package/dist/cjs/{index-3cd60d26.js → index-bd6c9f56.js} +11 -11
  76. package/dist/cjs/{index-7435b964.js → index-d2a6ef75.js} +2 -467
  77. package/dist/cjs/{index-96c331fd.js → index-f86bb269.js} +52 -53
  78. package/dist/cjs/{index.esm-bb54403e.js → index.esm-91e651b0.js} +7 -8
  79. package/dist/cjs/index.js +15 -13
  80. package/dist/cjs/{main-6054981e.js → main-3643d499.js} +9 -4
  81. package/dist/cjs/typeof-1358762e.js +33 -0
  82. package/dist/esm/AD.js +1 -1
  83. package/dist/esm/AD300x250.js +3 -2
  84. package/dist/esm/AD300x250x600.js +3 -2
  85. package/dist/esm/AD728x90.js +3 -2
  86. package/dist/esm/ADFloatingFooter.js +3 -2
  87. package/dist/esm/ADGutter.js +3 -2
  88. package/dist/esm/ADSkyscraper.js +3 -2
  89. package/dist/esm/ADSponsoredResources.js +3 -2
  90. package/dist/esm/ADWebcast.js +3 -2
  91. package/dist/esm/ADWelcome.js +3 -2
  92. package/dist/esm/AdSlot.js +3 -2
  93. package/dist/esm/AdSlotsProvider.js +3 -2
  94. package/dist/esm/AlgoliaSearch.js +512 -1023
  95. package/dist/esm/ArticleCarousel.js +1 -1
  96. package/dist/esm/ArticleProgramLandingPage.js +4 -3
  97. package/dist/esm/ArticleSeriesLandingPage.js +5 -4
  98. package/dist/esm/ArticleSeriesListing.js +3 -2
  99. package/dist/esm/Auth.js +12 -41
  100. package/dist/esm/AuthWrapper.js +16 -24
  101. package/dist/esm/CEDeckSupabase.js +3 -2
  102. package/dist/esm/CMEDeck.js +3 -2
  103. package/dist/esm/Column2.js +2 -4
  104. package/dist/esm/Column3.js +3 -2
  105. package/dist/esm/ContentCardPaginated.js +5 -4
  106. package/dist/esm/DeckContent.js +39 -34
  107. package/dist/esm/DeckQueue.js +3 -2
  108. package/dist/esm/DeckQueuePaginated.js +4 -3
  109. package/dist/esm/{Dfp-cf85d203.js → Dfp-102f0beb.js} +2 -1
  110. package/dist/esm/EventsDeck.js +2 -2
  111. package/dist/esm/ExternalResources.js +8 -7
  112. package/dist/esm/Feature.js +2 -2
  113. package/dist/esm/GridContent.js +5 -4
  114. package/dist/esm/GridContentPaginated.js +6 -5
  115. package/dist/esm/HamMagazine.js +219 -215
  116. package/dist/esm/HorizontalArticleListing.js +4 -3
  117. package/dist/esm/{ImageSlider-cdb57d30.js → ImageSlider-f84174cb.js} +10 -5
  118. package/dist/esm/IssueLanding.js +6 -5
  119. package/dist/esm/LeftNav.js +17 -15
  120. package/dist/esm/MasterDeck.js +5 -4
  121. package/dist/esm/MasterDeckPaginated.js +6 -5
  122. package/dist/esm/{MediaSeriesCard-5a7491a4.js → MediaSeriesCard-8d171570.js} +1 -1
  123. package/dist/esm/MediaSeriesLanding.js +8 -7
  124. package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
  125. package/dist/esm/NavDvm.js +28 -30
  126. package/dist/esm/{NavFooter-37c5eea2.js → NavFooter-27a16f65.js} +3 -4
  127. package/dist/esm/NavMagazine.js +39 -41
  128. package/dist/esm/NavNative.js +46 -46
  129. package/dist/esm/{Pagination-9fe9f61d.js → Pagination-dc30727b.js} +1 -1
  130. package/dist/esm/PartnerDetailListing.js +30 -29
  131. package/dist/esm/PartnerDetailListingPaginated.js +34 -33
  132. package/dist/esm/PodcastsLanding.js +7 -6
  133. package/dist/esm/PubSection.js +5 -4
  134. package/dist/esm/QueueDeckExpanded.js +5 -4
  135. package/dist/esm/QueueDeckExpandedPaginated.js +6 -5
  136. package/dist/esm/SeriesListingDeck.js +4 -3
  137. package/dist/esm/{SeriesSlider-5728e349.js → SeriesSlider-f771e20d.js} +1 -1
  138. package/dist/esm/SideFooter.js +7 -9
  139. package/dist/esm/{SocialSearchComponent-7591859b.js → SocialSearchComponent-a7714c5e.js} +2 -2
  140. package/dist/esm/TaxonomyCard.js +8 -9
  141. package/dist/esm/TaxonomyDescription.js +4 -3
  142. package/dist/esm/TemplateNormal.js +8 -5
  143. package/dist/esm/{Tooltip-2cdd0895.js → Tooltip-95655b44.js} +74 -134
  144. package/dist/esm/Ustream.js +1 -1
  145. package/dist/esm/VideoProgramLandingPage.js +4 -3
  146. package/dist/esm/VideoSeriesLandingPage.js +5 -4
  147. package/dist/esm/VideoSeriesListing.js +3 -2
  148. package/dist/esm/View.js +6 -5
  149. package/dist/esm/YahooHero.js +29 -21
  150. package/dist/esm/YoutubeGroup.js +1 -1
  151. package/dist/esm/{defineProperty-e8022d1e.js → defineProperty-23a8f8cd.js} +4 -2
  152. package/dist/esm/events-6c3a7a63.js +467 -0
  153. package/dist/esm/getRelatedArticle.js +1 -1
  154. package/dist/esm/getSerializers.js +4 -3
  155. package/dist/esm/{index-0110e48e.js → index-188f561f.js} +43 -546
  156. package/dist/esm/{index-30a6257d.js → index-79cfd25c.js} +52 -53
  157. package/dist/esm/{index-0a63f9a3.js → index-db3bb315.js} +11 -11
  158. package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
  159. package/dist/esm/{index.esm-8639823a.js → index.esm-06bf63a3.js} +7 -8
  160. package/dist/esm/index.js +15 -13
  161. package/dist/esm/{main-9f6806ea.js → main-1894c974.js} +9 -4
  162. package/dist/esm/typeof-2f07d0e8.js +30 -0
  163. package/package.json +1 -2
  164. /package/dist/cjs/{ADInfeed-ef933a08.js → ADInfeed-0394f391.js} +0 -0
  165. /package/dist/cjs/{ADlgInfeed-0e931f24.js → ADlgInfeed-759969d6.js} +0 -0
  166. /package/dist/esm/{ADInfeed-f946441a.js → ADInfeed-5765a73a.js} +0 -0
  167. /package/dist/esm/{ADlgInfeed-012e6f16.js → ADlgInfeed-5e36f317.js} +0 -0
@@ -2,7 +2,7 @@ import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallba
2
2
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
3
3
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
4
4
  import urlFor from './urlFor.js';
5
- import { l as lib_3 } from './index-5cc7b406.js';
5
+ import { l as lib_3 } from './index-f0fc23eb.js';
6
6
  import Router, { useRouter } from 'next/router';
7
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
8
8
  import PropTypes from 'prop-types';
@@ -10,7 +10,7 @@ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelper
10
10
  import { u as util } from './util-8ed16d48.js';
11
11
  import './Beam.js';
12
12
  import Segment from './Segment.js';
13
- import { e as main_18, b as main_42, m as main_43 } from './main-9f6806ea.js';
13
+ import { e as main_18, b as main_42, m as main_43 } from './main-1894c974.js';
14
14
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
15
  import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
16
16
  import { u as urlForFile } from './urlForFile-b69adffc.js';
@@ -10422,504 +10422,6 @@ var BlockTable = function BlockTable(props) {
10422
10422
  );
10423
10423
  };
10424
10424
 
10425
- var bibtexParse = createCommonjsModule(function (module, exports) {
10426
- /* start bibtexParse 0.0.24 */
10427
-
10428
- //Original work by Henrik Muehe (c) 2010
10429
- //
10430
- //CommonJS port by Mikola Lysenko 2013
10431
- //
10432
- //Port to Browser lib by ORCID / RCPETERS
10433
- //
10434
- //Issues:
10435
- //no comment handling within strings
10436
- //no string concatenation
10437
- //no variable values yet
10438
- //Grammar implemented here:
10439
- //bibtex -> (string | preamble | comment | entry)*;
10440
- //string -> '@STRING' '{' key_equals_value '}';
10441
- //preamble -> '@PREAMBLE' '{' value '}';
10442
- //comment -> '@COMMENT' '{' value '}';
10443
- //entry -> '@' key '{' key ',' key_value_list '}';
10444
- //key_value_list -> key_equals_value (',' key_equals_value)*;
10445
- //key_equals_value -> key '=' value;
10446
- //value -> value_quotes | value_braces | key;
10447
- //value_quotes -> '"' .*? '"'; // not quite
10448
- //value_braces -> '{' .*? '"'; // not quite
10449
- (function(exports) {
10450
-
10451
- function BibtexParser() {
10452
-
10453
- this.months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
10454
- this.notKey = [',','{','}',' ','='];
10455
- this.pos = 0;
10456
- this.input = "";
10457
- this.entries = new Array();
10458
-
10459
- this.currentEntry = "";
10460
-
10461
- this.setInput = function(t) {
10462
- this.input = t;
10463
- };
10464
-
10465
- this.getEntries = function() {
10466
- return this.entries;
10467
- };
10468
-
10469
- this.isWhitespace = function(s) {
10470
- return (s == ' ' || s == '\r' || s == '\t' || s == '\n');
10471
- };
10472
-
10473
- this.match = function(s, canCommentOut) {
10474
- if (canCommentOut == undefined || canCommentOut == null)
10475
- canCommentOut = true;
10476
- this.skipWhitespace(canCommentOut);
10477
- if (this.input.substring(this.pos, this.pos + s.length) == s) {
10478
- this.pos += s.length;
10479
- } else {
10480
- throw "Token mismatch, expected " + s + ", found "
10481
- + this.input.substring(this.pos);
10482
- } this.skipWhitespace(canCommentOut);
10483
- };
10484
-
10485
- this.tryMatch = function(s, canCommentOut) {
10486
- if (canCommentOut == undefined || canCommentOut == null)
10487
- canCommentOut = true;
10488
- this.skipWhitespace(canCommentOut);
10489
- if (this.input.substring(this.pos, this.pos + s.length) == s) {
10490
- return true;
10491
- } else {
10492
- return false;
10493
- } };
10494
-
10495
- /* when search for a match all text can be ignored, not just white space */
10496
- this.matchAt = function() {
10497
- while (this.input.length > this.pos && this.input[this.pos] != '@') {
10498
- this.pos++;
10499
- }
10500
- if (this.input[this.pos] == '@') {
10501
- return true;
10502
- } return false;
10503
- };
10504
-
10505
- this.skipWhitespace = function(canCommentOut) {
10506
- while (this.isWhitespace(this.input[this.pos])) {
10507
- this.pos++;
10508
- } if (this.input[this.pos] == "%" && canCommentOut == true) {
10509
- while (this.input[this.pos] != "\n") {
10510
- this.pos++;
10511
- } this.skipWhitespace(canCommentOut);
10512
- } };
10513
-
10514
- this.value_braces = function() {
10515
- var bracecount = 0;
10516
- this.match("{", false);
10517
- var start = this.pos;
10518
- var escaped = false;
10519
- while (true) {
10520
- if (!escaped) {
10521
- if (this.input[this.pos] == '}') {
10522
- if (bracecount > 0) {
10523
- bracecount--;
10524
- } else {
10525
- var end = this.pos;
10526
- this.match("}", false);
10527
- return this.input.substring(start, end);
10528
- } } else if (this.input[this.pos] == '{') {
10529
- bracecount++;
10530
- } else if (this.pos >= this.input.length - 1) {
10531
- throw "Unterminated value";
10532
- } } if (this.input[this.pos] == '\\' && escaped == false)
10533
- escaped = true;
10534
- else
10535
- escaped = false;
10536
- this.pos++;
10537
- } };
10538
-
10539
- this.value_comment = function() {
10540
- var str = '';
10541
- var brcktCnt = 0;
10542
- while (!(this.tryMatch("}", false) && brcktCnt == 0)) {
10543
- str = str + this.input[this.pos];
10544
- if (this.input[this.pos] == '{')
10545
- brcktCnt++;
10546
- if (this.input[this.pos] == '}')
10547
- brcktCnt--;
10548
- if (this.pos >= this.input.length - 1) {
10549
- throw "Unterminated value:" + this.input.substring(start);
10550
- } this.pos++;
10551
- } return str;
10552
- };
10553
-
10554
- this.value_quotes = function() {
10555
- this.match('"', false);
10556
- var start = this.pos;
10557
- var escaped = false;
10558
- while (true) {
10559
- if (!escaped) {
10560
- if (this.input[this.pos] == '"') {
10561
- var end = this.pos;
10562
- this.match('"', false);
10563
- return this.input.substring(start, end);
10564
- } else if (this.pos >= this.input.length - 1) {
10565
- throw "Unterminated value:" + this.input.substring(start);
10566
- } }
10567
- if (this.input[this.pos] == '\\' && escaped == false)
10568
- escaped = true;
10569
- else
10570
- escaped = false;
10571
- this.pos++;
10572
- } };
10573
-
10574
- this.single_value = function() {
10575
- var start = this.pos;
10576
- if (this.tryMatch("{")) {
10577
- return this.value_braces();
10578
- } else if (this.tryMatch('"')) {
10579
- return this.value_quotes();
10580
- } else {
10581
- var k = this.key();
10582
- if (k.match("^[0-9]+$"))
10583
- return k;
10584
- else if (this.months.indexOf(k.toLowerCase()) >= 0)
10585
- return k.toLowerCase();
10586
- else
10587
- throw "Value expected:" + this.input.substring(start) + ' for key: ' + k;
10588
-
10589
- } };
10590
-
10591
- this.value = function() {
10592
- var values = [];
10593
- values.push(this.single_value());
10594
- while (this.tryMatch("#")) {
10595
- this.match("#");
10596
- values.push(this.single_value());
10597
- } return values.join("");
10598
- };
10599
-
10600
- this.key = function(optional) {
10601
- var start = this.pos;
10602
- while (true) {
10603
- if (this.pos >= this.input.length) {
10604
- throw "Runaway key";
10605
- } // а-яА-Я is Cyrillic
10606
- //console.log(this.input[this.pos]);
10607
- if (this.notKey.indexOf(this.input[this.pos]) >= 0) {
10608
- if (optional && this.input[this.pos] != ',') {
10609
- this.pos = start;
10610
- return null;
10611
- } return this.input.substring(start, this.pos);
10612
- } else {
10613
- this.pos++;
10614
-
10615
- } } };
10616
-
10617
- this.key_equals_value = function() {
10618
- var key = this.key();
10619
- if (this.tryMatch("=")) {
10620
- this.match("=");
10621
- var val = this.value();
10622
- key = key.trim();
10623
- return [ key, val ];
10624
- } else {
10625
- throw "... = value expected, equals sign missing:"
10626
- + this.input.substring(this.pos);
10627
- } };
10628
-
10629
- this.key_value_list = function() {
10630
- var kv = this.key_equals_value();
10631
- this.currentEntry['entryTags'] = {};
10632
- this.currentEntry['entryTags'][kv[0]] = kv[1];
10633
- while (this.tryMatch(",")) {
10634
- this.match(",");
10635
- // fixes problems with commas at the end of a list
10636
- if (this.tryMatch("}")) {
10637
- break;
10638
- }
10639
- kv = this.key_equals_value();
10640
- this.currentEntry['entryTags'][kv[0]] = kv[1];
10641
- } };
10642
-
10643
- this.entry_body = function(d) {
10644
- this.currentEntry = {};
10645
- this.currentEntry['citationKey'] = this.key(true);
10646
- this.currentEntry['entryType'] = d.substring(1);
10647
- if (this.currentEntry['citationKey'] != null) {
10648
- this.match(",");
10649
- }
10650
- this.key_value_list();
10651
- this.entries.push(this.currentEntry);
10652
- };
10653
-
10654
- this.directive = function() {
10655
- this.match("@");
10656
- return "@" + this.key();
10657
- };
10658
-
10659
- this.preamble = function() {
10660
- this.currentEntry = {};
10661
- this.currentEntry['entryType'] = 'PREAMBLE';
10662
- this.currentEntry['entry'] = this.value_comment();
10663
- this.entries.push(this.currentEntry);
10664
- };
10665
-
10666
- this.comment = function() {
10667
- this.currentEntry = {};
10668
- this.currentEntry['entryType'] = 'COMMENT';
10669
- this.currentEntry['entry'] = this.value_comment();
10670
- this.entries.push(this.currentEntry);
10671
- };
10672
-
10673
- this.entry = function(d) {
10674
- this.entry_body(d);
10675
- };
10676
-
10677
- this.alernativeCitationKey = function () {
10678
- this.entries.forEach(function (entry) {
10679
- if (!entry.citationKey && entry.entryTags) {
10680
- entry.citationKey = '';
10681
- if (entry.entryTags.author) {
10682
- entry.citationKey += entry.entryTags.author.split(',')[0] += ', ';
10683
- }
10684
- entry.citationKey += entry.entryTags.year;
10685
- }
10686
- });
10687
- };
10688
-
10689
- this.bibtex = function() {
10690
- while (this.matchAt()) {
10691
- var d = this.directive();
10692
- this.match("{");
10693
- if (d.toUpperCase() == "@STRING") {
10694
- this.string();
10695
- } else if (d.toUpperCase() == "@PREAMBLE") {
10696
- this.preamble();
10697
- } else if (d.toUpperCase() == "@COMMENT") {
10698
- this.comment();
10699
- } else {
10700
- this.entry(d);
10701
- }
10702
- this.match("}");
10703
- }
10704
- this.alernativeCitationKey();
10705
- };
10706
- }
10707
- exports.toJSON = function(bibtex) {
10708
- var b = new BibtexParser();
10709
- b.setInput(bibtex);
10710
- b.bibtex();
10711
- return b.entries;
10712
- };
10713
-
10714
- /* added during hackathon don't hate on me */
10715
- exports.toBibtex = function(json) {
10716
- var out = '';
10717
- for ( var i in json) {
10718
- out += "@" + json[i].entryType;
10719
- out += '{';
10720
- if (json[i].citationKey)
10721
- out += json[i].citationKey + ', ';
10722
- if (json[i].entry)
10723
- out += json[i].entry ;
10724
- if (json[i].entryTags) {
10725
- var tags = '';
10726
- for (var jdx in json[i].entryTags) {
10727
- if (tags.length != 0)
10728
- tags += ', ';
10729
- tags += jdx + '= {' + json[i].entryTags[jdx] + '}';
10730
- }
10731
- out += tags;
10732
- }
10733
- out += '}\n\n';
10734
- }
10735
- return out;
10736
-
10737
- };
10738
-
10739
- })(exports);
10740
-
10741
- /* end bibtexParse */
10742
- });
10743
-
10744
- var References = function References(_ref) {
10745
- var node = _ref.node,
10746
- getSerializers = _ref.getSerializers;
10747
- var referenceslist = node.referenceslist;
10748
-
10749
- var getGoogleScholarUrl = function getGoogleScholarUrl(citationText, citationReferenceFormat) {
10750
- if (citationReferenceFormat == 'Bibtex' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10751
- var url = 'https://scholar.google.com/scholar_lookup?';
10752
- var bibtexJson = bibtexParse.toJSON(citationText[0].children[0].text)[0];
10753
- if (bibtexJson.entryTags) {
10754
- if (bibtexJson.entryTags.title) url += 'title=' + bibtexJson.entryTags.title;
10755
- if (bibtexJson.entryTags.author) {
10756
- bibtexJson.entryTags.author.split(',').map(function (authorName) {
10757
- return url += '&author=' + authorName;
10758
- });
10759
- }
10760
- if (bibtexJson.entryTags.year) {
10761
- url += '&publication_year=' + bibtexJson.entryTags.year;
10762
- }
10763
- if (bibtexJson.entryTags.journal) {
10764
- url += '&journal=' + bibtexJson.entryTags.journal;
10765
- }
10766
- if (bibtexJson.entryTags.volume) {
10767
- url += '&volume=' + bibtexJson.entryTags.volume;
10768
- }
10769
- if (bibtexJson.entryTags.pages) {
10770
- url += '&pages=' + bibtexJson.entryTags.pages.replace('--', '-');
10771
- }
10772
- }
10773
- return url;
10774
- }
10775
- };
10776
- var getPubmedUrl = function getPubmedUrl(citationText, citationReferenceFormat) {
10777
- if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10778
- return citationText[0].children[0].text;
10779
- }
10780
- };
10781
- var getCrossrefUrl = function getCrossrefUrl(citationText, citationReferenceFormat) {
10782
- if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10783
- if (citationText[0].children[0].text.includes('dx.doi.org')) {
10784
- return citationText[0].children[0].text;
10785
- } else {
10786
- return 'http://dx.doi.org/' + citationText[0].children[0].text;
10787
- }
10788
- }
10789
- };
10790
- return React__default.createElement(
10791
- 'div',
10792
- { className: 'references-list' },
10793
- React__default.createElement(
10794
- Head,
10795
- null,
10796
- React__default.createElement('script', { src: 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js' }),
10797
- React__default.createElement('script', { src: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js' })
10798
- ),
10799
- React__default.createElement(
10800
- 'p',
10801
- { className: 'reference-title' },
10802
- React__default.createElement(
10803
- 'strong',
10804
- null,
10805
- 'REFERENCES'
10806
- )
10807
- ),
10808
- referenceslist && referenceslist.map(function (reference, ref_index) {
10809
- return React__default.createElement(
10810
- 'div',
10811
- { key: reference._key, id: reference.referenceID.replace('#', '') + '__container', className: 'reference-container' },
10812
- React__default.createElement(
10813
- 'div',
10814
- { className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
10815
- React__default.createElement(
10816
- 'span',
10817
- null,
10818
- ref_index + 1,
10819
- '.\xA0'
10820
- ),
10821
- React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
10822
- ),
10823
- reference.citations && reference.citations.length > 0 && React__default.createElement(
10824
- 'div',
10825
- { className: 'row citations-container ml-3 mr-3 mb-2' },
10826
- reference.citations.map(function (citation, cit_index) {
10827
- return React__default.createElement(
10828
- 'div',
10829
- { key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
10830
- citation.citationName === 'googleScholar' ? React__default.createElement(
10831
- 'a',
10832
- { target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
10833
- 'Google Scholar'
10834
- ) : citation.citationName === 'pubMed' ? React__default.createElement(
10835
- 'a',
10836
- { target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
10837
- 'PubMed'
10838
- ) : React__default.createElement(
10839
- 'a',
10840
- { target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
10841
- 'Crossref'
10842
- )
10843
- );
10844
- })
10845
- ),
10846
- React__default.createElement(
10847
- 'div',
10848
- {
10849
- className: 'modal fade',
10850
- id: '' + reference.referenceID.replace('#', ''),
10851
- tabindex: '-1',
10852
- role: 'dialog',
10853
- 'aria-labelledby': 'reference-modal-' + reference.referenceID.replace('#', ''),
10854
- 'aria-hidden': 'true' },
10855
- React__default.createElement(
10856
- 'div',
10857
- { className: 'modal-dialog modal-dialog-centered', role: 'document' },
10858
- React__default.createElement(
10859
- 'div',
10860
- { className: 'modal-content' },
10861
- React__default.createElement(
10862
- 'div',
10863
- { className: 'modal-body' },
10864
- React__default.createElement(
10865
- 'button',
10866
- { type: 'button', className: 'close', 'data-dismiss': 'modal', 'aria-label': 'Close' },
10867
- React__default.createElement(
10868
- 'span',
10869
- { 'aria-hidden': 'true' },
10870
- '\xD7'
10871
- )
10872
- ),
10873
- React__default.createElement(
10874
- 'div',
10875
- { className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
10876
- React__default.createElement(
10877
- 'span',
10878
- null,
10879
- ref_index + 1,
10880
- '.\xA0'
10881
- ),
10882
- React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
10883
- ),
10884
- reference.citations && reference.citations.length > 0 && React__default.createElement(
10885
- 'div',
10886
- { className: 'row citations-container ml-3 mr-3 mb-2' },
10887
- reference.citations.map(function (citation, cit_index) {
10888
- return React__default.createElement(
10889
- 'div',
10890
- { key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
10891
- citation.citationName === 'googleScholar' ? React__default.createElement(
10892
- 'a',
10893
- { target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
10894
- 'Google Scholar'
10895
- ) : citation.citationName === 'pubMed' ? React__default.createElement(
10896
- 'a',
10897
- { target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
10898
- 'PubMed'
10899
- ) : React__default.createElement(
10900
- 'a',
10901
- { target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
10902
- 'Crossref'
10903
- )
10904
- );
10905
- })
10906
- )
10907
- )
10908
- )
10909
- )
10910
- )
10911
- );
10912
- }),
10913
- React__default.createElement(
10914
- 'style',
10915
- { jsx: 'true' },
10916
- '\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 '
10917
- )
10918
- );
10919
- };
10920
-
10921
- var References$1 = React__default.memo(References);
10922
-
10923
10425
  var DigiohSmartTag = function DigiohSmartTag(props) {
10924
10426
  var _props$node = props.node,
10925
10427
  FormID = _props$node.FormID;
@@ -11104,57 +10606,52 @@ var getSerializers = function getSerializers() {
11104
10606
 
11105
10607
  return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11106
10608
  },
11107
- referencesList: function referencesList(_ref6) {
10609
+ slideshow: function slideshow(_ref6) {
11108
10610
  var node = _ref6.node;
11109
-
11110
- return React__default.createElement(References$1, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11111
- },
11112
- slideshow: function slideshow(_ref7) {
11113
- var node = _ref7.node;
11114
10611
  var slides = node.slides;
11115
10612
 
11116
10613
  return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
11117
10614
  },
11118
- sidebar: function sidebar(_ref8) {
11119
- var node = _ref8.node;
10615
+ sidebar: function sidebar(_ref7) {
10616
+ var node = _ref7.node;
11120
10617
  var caption = node.caption,
11121
10618
  content = node.content;
11122
10619
 
11123
10620
  return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
11124
10621
  },
11125
- datatable: function datatable(_ref9) {
11126
- var node = _ref9.node;
10622
+ datatable: function datatable(_ref8) {
10623
+ var node = _ref8.node;
11127
10624
  var table = node.table;
11128
10625
 
11129
10626
  return React__default.createElement(TableShow, { rows: table.rows });
11130
10627
  },
11131
- media: function media(_ref10) {
11132
- var node = _ref10.node;
10628
+ media: function media(_ref9) {
10629
+ var node = _ref9.node;
11133
10630
 
11134
10631
  return React__default.createElement(Media, { node: node, client: client });
11135
10632
  },
11136
- iframe: function iframe(_ref11) {
11137
- var node = _ref11.node;
10633
+ iframe: function iframe(_ref10) {
10634
+ var node = _ref10.node;
11138
10635
 
11139
10636
  return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
11140
10637
  },
11141
- video: function video(_ref12) {
11142
- var node = _ref12.node;
10638
+ video: function video(_ref11) {
10639
+ var node = _ref11.node;
11143
10640
 
11144
10641
  return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
11145
10642
  },
11146
- audio: function audio(_ref13) {
11147
- var node = _ref13.node;
10643
+ audio: function audio(_ref12) {
10644
+ var node = _ref12.node;
11148
10645
 
11149
10646
  return React__default.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
11150
10647
  },
11151
- poll: function poll(_ref14) {
11152
- var node = _ref14.node;
10648
+ poll: function poll(_ref13) {
10649
+ var node = _ref13.node;
11153
10650
 
11154
10651
  return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
11155
10652
  },
11156
- pollMultiChoice: function pollMultiChoice(_ref15) {
11157
- var node = _ref15.node;
10653
+ pollMultiChoice: function pollMultiChoice(_ref14) {
10654
+ var node = _ref14.node;
11158
10655
 
11159
10656
  return React__default.createElement(Poll, {
11160
10657
  node: node,
@@ -11166,31 +10663,31 @@ var getSerializers = function getSerializers() {
11166
10663
  getSerializers: getSerializers.apply(undefined, props)
11167
10664
  });
11168
10665
  },
11169
- quiz: function quiz(_ref16) {
11170
- var node = _ref16.node;
10666
+ quiz: function quiz(_ref15) {
10667
+ var node = _ref15.node;
11171
10668
  var quizzes = node.quizzes;
11172
10669
 
11173
10670
  return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
11174
10671
  },
11175
- leads: function leads(_ref17) {
11176
- var node = _ref17.node;
10672
+ leads: function leads(_ref16) {
10673
+ var node = _ref16.node;
11177
10674
  var leadID = node.leadID;
11178
10675
 
11179
10676
  var url = '' + drupalLeadSettings.baseUrl + leadID;
11180
10677
  return React__default.createElement(Leads, { url: url });
11181
10678
  },
11182
- slideshows: function slideshows(_ref18) {
11183
- var node = _ref18.node;
10679
+ slideshows: function slideshows(_ref17) {
10680
+ var node = _ref17.node;
11184
10681
 
11185
10682
  return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
11186
10683
  },
11187
- nativeAd: function nativeAd(_ref19) {
11188
- var node = _ref19.node;
10684
+ nativeAd: function nativeAd(_ref18) {
10685
+ var node = _ref18.node;
11189
10686
 
11190
10687
  return React__default.createElement(NativeAd, { node: node });
11191
10688
  },
11192
- html_anchor_links: function html_anchor_links(_ref20) {
11193
- var node = _ref20.node;
10689
+ html_anchor_links: function html_anchor_links(_ref19) {
10690
+ var node = _ref19.node;
11194
10691
 
11195
10692
  return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
11196
10693
  },
@@ -11200,8 +10697,8 @@ var getSerializers = function getSerializers() {
11200
10697
  brtag: function brtag() {
11201
10698
  return React__default.createElement('br', { className: 'line-break' });
11202
10699
  },
11203
- formstack: function formstack(_ref21) {
11204
- var node = _ref21.node;
10700
+ formstack: function formstack(_ref20) {
10701
+ var node = _ref20.node;
11205
10702
  var FormID = node.FormID,
11206
10703
  Caption = node.Caption,
11207
10704
  needSegmentSupport = node.needSegmentSupport;
@@ -11210,13 +10707,13 @@ var getSerializers = function getSerializers() {
11210
10707
  },
11211
10708
  formassembly: FormAssembly,
11212
10709
  digiohSmartTag: DigiohSmartTag,
11213
- multimedia: function multimedia(_ref22) {
11214
- var node = _ref22.node;
10710
+ multimedia: function multimedia(_ref21) {
10711
+ var node = _ref21.node;
11215
10712
 
11216
10713
  return React__default.createElement(MultiMedia, { node: node, client: client });
11217
10714
  },
11218
- blockTable: function blockTable(_ref23) {
11219
- var node = _ref23.node;
10715
+ blockTable: function blockTable(_ref22) {
10716
+ var node = _ref22.node;
11220
10717
  return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
11221
10718
  }
11222
10719
  },
@@ -11241,32 +10738,32 @@ var getSerializers = function getSerializers() {
11241
10738
 
11242
10739
  return React__default.createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
11243
10740
  },
11244
- alignleft: function alignleft(_ref24) {
11245
- var children = _ref24.children;
10741
+ alignleft: function alignleft(_ref23) {
10742
+ var children = _ref23.children;
11246
10743
  return React__default.createElement(
11247
10744
  'div',
11248
10745
  { style: { textAlign: 'left' } },
11249
10746
  children
11250
10747
  );
11251
10748
  },
11252
- alignright: function alignright(_ref25) {
11253
- var children = _ref25.children;
10749
+ alignright: function alignright(_ref24) {
10750
+ var children = _ref24.children;
11254
10751
  return React__default.createElement(
11255
10752
  'div',
11256
10753
  { style: { textAlign: 'right' } },
11257
10754
  children
11258
10755
  );
11259
10756
  },
11260
- aligncenter: function aligncenter(_ref26) {
11261
- var children = _ref26.children;
10757
+ aligncenter: function aligncenter(_ref25) {
10758
+ var children = _ref25.children;
11262
10759
  return React__default.createElement(
11263
10760
  'div',
11264
10761
  { style: { textAlign: 'center' } },
11265
10762
  children
11266
10763
  );
11267
10764
  },
11268
- alignjustify: function alignjustify(_ref27) {
11269
- var children = _ref27.children;
10765
+ alignjustify: function alignjustify(_ref26) {
10766
+ var children = _ref26.children;
11270
10767
  return React__default.createElement(
11271
10768
  'div',
11272
10769
  { style: { textAlign: 'justify' } },