@mjhls/mjh-framework 1.0.986-article-rec-v2 → 1.0.986-nofollow-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 (206) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +6 -6
  3. package/dist/cjs/AD300x250.js +5 -5
  4. package/dist/cjs/AD300x250x600.js +5 -5
  5. package/dist/cjs/AD728x90.js +6 -6
  6. package/dist/cjs/ADFloatingFooter.js +8 -8
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +8 -8
  9. package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-e5192055.js} +5 -5
  10. package/dist/cjs/ADSkyscraper.js +8 -8
  11. package/dist/cjs/ADSponsoredResources.js +8 -8
  12. package/dist/cjs/ADWebcast.js +8 -8
  13. package/dist/cjs/ADWelcome.js +12 -12
  14. package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-442a5d8c.js} +3 -3
  15. package/dist/cjs/AccordionPanel.js +17 -17
  16. package/dist/cjs/AdSlot.js +9 -9
  17. package/dist/cjs/AdSlotsProvider.js +5 -5
  18. package/dist/cjs/AlgoliaSearch.js +1047 -866
  19. package/dist/cjs/AlphabeticList.js +12 -12
  20. package/dist/cjs/ArticleCarousel.js +5 -5
  21. package/dist/cjs/ArticleProgramLandingPage.js +15 -14
  22. package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
  23. package/dist/cjs/ArticleSeriesListing.js +29 -29
  24. package/dist/cjs/Auth.js +114 -85
  25. package/dist/cjs/AuthWrapper.js +24 -24
  26. package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
  27. package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
  28. package/dist/cjs/Breadcrumbs.js +17 -17
  29. package/dist/cjs/CMEDeck.js +61 -61
  30. package/dist/cjs/Column1.js +7 -7
  31. package/dist/cjs/Column2.js +18 -18
  32. package/dist/cjs/Column3.js +29 -29
  33. package/dist/cjs/ConferenceArticleCard.js +12 -12
  34. package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
  35. package/dist/cjs/ContentCardPaginated.js +49 -49
  36. package/dist/cjs/DeckContent.js +58 -58
  37. package/dist/cjs/DeckQueue.js +57 -57
  38. package/dist/cjs/DeckQueuePaginated.js +46 -46
  39. package/dist/cjs/{Dfp-9be904d5.js → Dfp-c313a700.js} +17 -17
  40. package/dist/cjs/EventsDeck.js +120 -93
  41. package/dist/cjs/ExternalResources.js +35 -34
  42. package/dist/cjs/Feature.js +17 -17
  43. package/dist/cjs/ForbesHero.js +25 -25
  44. package/dist/cjs/GridContent.js +134 -134
  45. package/dist/cjs/GridContentPaginated.js +121 -121
  46. package/dist/cjs/GridHero.js +26 -26
  47. package/dist/cjs/GroupDeck.js +33 -33
  48. package/dist/cjs/HamMagazine.js +111 -112
  49. package/dist/cjs/Header.js +9 -9
  50. package/dist/cjs/HealthCareProfessionalModal.js +17 -17
  51. package/dist/cjs/Hero.js +5 -5
  52. package/dist/cjs/HighlightenVideo.js +13 -13
  53. package/dist/cjs/HorizontalArticleListing.js +29 -28
  54. package/dist/cjs/HorizontalHero.js +17 -17
  55. package/dist/cjs/{ImageSlider-6c00b878.js → ImageSlider-17fdaf3b.js} +72 -72
  56. package/dist/cjs/IssueContentDeck.js +49 -49
  57. package/dist/cjs/IssueDeck.js +48 -48
  58. package/dist/cjs/IssueLanding.js +20 -19
  59. package/dist/cjs/LeftNav.js +17 -17
  60. package/dist/cjs/MasterDeck.js +39 -39
  61. package/dist/cjs/MasterDeckPaginated.js +29 -29
  62. package/dist/cjs/{MediaSeriesCard-a9755b4a.js → MediaSeriesCard-ab6023ce.js} +563 -522
  63. package/dist/cjs/MediaSeriesLanding.js +36 -35
  64. package/dist/cjs/MediaSeriesLandingPaginated.js +35 -34
  65. package/dist/cjs/NavDvm.js +94 -62
  66. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-1fda6732.js} +11 -11
  67. package/dist/cjs/NavMagazine.js +127 -108
  68. package/dist/cjs/NavNative.js +119 -99
  69. package/dist/cjs/OncliveHero.js +11 -11
  70. package/dist/cjs/OncliveLargeHero.js +49 -49
  71. package/dist/cjs/PageFilter.js +5 -5
  72. package/dist/cjs/{Pagination-2a3d0103.js → Pagination-6359861a.js} +13 -13
  73. package/dist/cjs/PartnerDetailListing.js +53 -52
  74. package/dist/cjs/PartnerDetailListingPaginated.js +46 -45
  75. package/dist/cjs/PdfDownload.js +4 -4
  76. package/dist/cjs/PixelTracking.js +9 -9
  77. package/dist/cjs/PopUpModal.js +9 -9
  78. package/dist/cjs/PtceDeck.js +13 -13
  79. package/dist/cjs/PubSection.js +13 -13
  80. package/dist/cjs/PubToc.js +4 -4
  81. package/dist/cjs/PublicationDeck.js +44 -44
  82. package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-a989a2b3.js} +29 -29
  83. package/dist/cjs/PublicationLanding.js +73 -73
  84. package/dist/cjs/QueueDeckExpanded.js +245 -245
  85. package/dist/cjs/QueueDeckExpandedPaginated.js +222 -222
  86. package/dist/cjs/RecentNews.js +15 -15
  87. package/dist/cjs/RelatedContent.js +14 -14
  88. package/dist/cjs/RelatedTopicsDropdown.js +14 -14
  89. package/dist/cjs/RolesDeck.js +20 -20
  90. package/dist/cjs/Schema.js +1 -1
  91. package/dist/cjs/Search.js +6 -6
  92. package/dist/cjs/Segment.js +0 -49
  93. package/dist/cjs/SeriesListingDeck.js +18 -18
  94. package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-18fc6e71.js} +22 -22
  95. package/dist/cjs/SideFooter.js +24 -24
  96. package/dist/cjs/SocialIcons.js +6 -6
  97. package/dist/cjs/{SocialSearchComponent-b7faaedc.js → SocialSearchComponent-bac7d6fa.js} +28 -28
  98. package/dist/cjs/SocialShare.js +25 -25
  99. package/dist/cjs/TaxonomyCard.js +44 -44
  100. package/dist/cjs/TaxonomyDescription.js +12 -11
  101. package/dist/cjs/TemplateNormal.js +29 -29
  102. package/dist/cjs/ThumbnailCard.js +10 -10
  103. package/dist/cjs/Ustream.js +9 -9
  104. package/dist/cjs/VerticalHero.js +10 -10
  105. package/dist/cjs/VideoProgramLandingPage.js +29 -28
  106. package/dist/cjs/VideoSeriesCard.js +13 -13
  107. package/dist/cjs/VideoSeriesFilter.js +5 -5
  108. package/dist/cjs/VideoSeriesLandingPage.js +11 -11
  109. package/dist/cjs/VideoSeriesListing.js +46 -46
  110. package/dist/cjs/View.js +288 -342
  111. package/dist/cjs/YahooHero.js +22 -22
  112. package/dist/cjs/YoutubeGroup.js +33 -33
  113. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
  114. package/dist/cjs/checkSisterSite-f63a7225.js +12 -0
  115. package/dist/cjs/getPtceActivities.js +10 -23
  116. package/dist/cjs/getSerializers.js +7 -6
  117. package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-3c5754ac.js} +2 -4
  118. package/dist/cjs/getTargeting.js +1 -1
  119. package/dist/cjs/iconBase-be4097c0.js +2 -4
  120. package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
  121. package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
  122. package/dist/cjs/{index-5e63adb9.js → index-c77065bb.js} +484 -485
  123. package/dist/cjs/{index-fc2f1ca2.js → index-d2a6ef75.js} +4 -4
  124. package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
  125. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-70e78156.js} +14 -14
  126. package/dist/cjs/index.js +104 -103
  127. package/dist/cjs/{main-f1c77adb.js → main-6054981e.js} +17 -22
  128. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
  129. package/dist/cjs/ustream-api-3819e4aa.js +1 -1
  130. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
  131. package/dist/cjs/websiteList-341323e2.js +5 -0
  132. package/dist/esm/AD300x250.js +1 -1
  133. package/dist/esm/AD300x250x600.js +1 -1
  134. package/dist/esm/AD728x90.js +1 -1
  135. package/dist/esm/ADFloatingFooter.js +1 -1
  136. package/dist/esm/ADGutter.js +1 -1
  137. package/dist/esm/ADSkyscraper.js +1 -1
  138. package/dist/esm/ADSponsoredResources.js +1 -1
  139. package/dist/esm/ADWebcast.js +1 -1
  140. package/dist/esm/ADWelcome.js +1 -1
  141. package/dist/esm/AdSlot.js +1 -1
  142. package/dist/esm/AdSlotsProvider.js +1 -1
  143. package/dist/esm/AlgoliaSearch.js +663 -482
  144. package/dist/esm/ArticleCarousel.js +1 -1
  145. package/dist/esm/ArticleProgramLandingPage.js +3 -2
  146. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  147. package/dist/esm/ArticleSeriesListing.js +1 -1
  148. package/dist/esm/Auth.js +40 -11
  149. package/dist/esm/CMEDeck.js +1 -1
  150. package/dist/esm/Column2.js +4 -4
  151. package/dist/esm/Column3.js +3 -3
  152. package/dist/esm/ContentCardPaginated.js +3 -3
  153. package/dist/esm/DeckContent.js +2 -2
  154. package/dist/esm/DeckQueue.js +1 -1
  155. package/dist/esm/DeckQueuePaginated.js +2 -2
  156. package/dist/esm/EventsDeck.js +31 -4
  157. package/dist/esm/ExternalResources.js +4 -3
  158. package/dist/esm/Feature.js +1 -1
  159. package/dist/esm/GridContent.js +3 -3
  160. package/dist/esm/GridContentPaginated.js +4 -4
  161. package/dist/esm/HamMagazine.js +8 -9
  162. package/dist/esm/HorizontalArticleListing.js +3 -2
  163. package/dist/esm/IssueLanding.js +5 -4
  164. package/dist/esm/LeftNav.js +1 -1
  165. package/dist/esm/MasterDeck.js +3 -3
  166. package/dist/esm/MasterDeckPaginated.js +4 -4
  167. package/dist/esm/{MediaSeriesCard-f68f8e63.js → MediaSeriesCard-9ae89079.js} +108 -67
  168. package/dist/esm/MediaSeriesLanding.js +6 -5
  169. package/dist/esm/MediaSeriesLandingPaginated.js +7 -6
  170. package/dist/esm/NavDvm.js +37 -5
  171. package/dist/esm/NavMagazine.js +23 -4
  172. package/dist/esm/NavNative.js +23 -3
  173. package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
  174. package/dist/esm/PartnerDetailListing.js +8 -7
  175. package/dist/esm/PartnerDetailListingPaginated.js +6 -5
  176. package/dist/esm/PubSection.js +3 -3
  177. package/dist/esm/QueueDeckExpanded.js +3 -3
  178. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  179. package/dist/esm/Segment.js +1 -50
  180. package/dist/esm/SeriesListingDeck.js +2 -2
  181. package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-5728e349.js} +1 -1
  182. package/dist/esm/SideFooter.js +6 -6
  183. package/dist/esm/{SocialSearchComponent-4b56cd8c.js → SocialSearchComponent-c249903e.js} +1 -1
  184. package/dist/esm/TaxonomyDescription.js +3 -2
  185. package/dist/esm/TemplateNormal.js +4 -4
  186. package/dist/esm/Ustream.js +1 -1
  187. package/dist/esm/VideoProgramLandingPage.js +3 -2
  188. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  189. package/dist/esm/VideoSeriesListing.js +1 -1
  190. package/dist/esm/View.js +71 -125
  191. package/dist/esm/YoutubeGroup.js +1 -1
  192. package/dist/esm/checkSisterSite-e452ba37.js +10 -0
  193. package/dist/esm/getPtceActivities.js +10 -23
  194. package/dist/esm/getSerializers.js +3 -2
  195. package/dist/esm/{getTargeting-9bd28724.js → getTargeting-42f9b439.js} +2 -4
  196. package/dist/esm/getTargeting.js +1 -1
  197. package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
  198. package/dist/esm/{index-e0aeabc5.js → index-df1f2337.js} +3 -4
  199. package/dist/esm/index.js +10 -9
  200. package/dist/esm/{main-1894c974.js → main-9f6806ea.js} +4 -9
  201. package/dist/esm/websiteList-a533df30.js +3 -0
  202. package/package.json +1 -1
  203. package/dist/cjs/defineProperty-9673846a.js +0 -34
  204. package/dist/esm/defineProperty-8c30428f.js +0 -32
  205. /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-d93886e3.js} +0 -0
  206. /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-93777a49.js} +0 -0
package/dist/esm/View.js CHANGED
@@ -8,17 +8,17 @@ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
8
8
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
9
9
  import { m as moment } from './moment-bc12cb97.js';
10
10
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
11
- import { m as main_43 } from './main-1894c974.js';
11
+ import { m as main_43 } from './main-9f6806ea.js';
12
12
  import 'react-bootstrap/Dropdown';
13
13
  import Form from 'react-bootstrap/Form';
14
14
  import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
17
17
  import SocialShare from './SocialShare.js';
18
- import { r as renderAuthor, g as getSerializers } from './index-e0aeabc5.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-df1f2337.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { S as SeriesSlider } from './SeriesSlider-f771e20d.js';
21
- import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-9bd28724.js';
20
+ import { S as SeriesSlider } from './SeriesSlider-5728e349.js';
21
+ import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-42f9b439.js';
22
22
  import getKeywords from './getKeywords.js';
23
23
  import urlFor from './urlFor.js';
24
24
  import { u as urlForFile } from './urlForFile-b69adffc.js';
@@ -30,7 +30,6 @@ import { DiscussionEmbed } from 'disqus-react';
30
30
  import Schema from './Schema.js';
31
31
  import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
32
32
  import { PixelTrackingArticle } from './PixelTracking.js';
33
- import './Segment.js';
34
33
  import { _ as _Object$keys } from './keys-31dcdb31.js';
35
34
  import { I as InfiniteScroll } from './index.es-a6137319.js';
36
35
  import { l as lib_3 } from './index-f0fc23eb.js';
@@ -50,6 +49,7 @@ import 'react-bootstrap';
50
49
  import './index-c7e2ac95.js';
51
50
  import './util-8ed16d48.js';
52
51
  import './Beam.js';
52
+ import './Segment.js';
53
53
  import './brightcove-react-player-loader.es-57a70a56.js';
54
54
  import 'react-bootstrap/Modal';
55
55
  import 'react-ga';
@@ -70,6 +70,7 @@ import 'react-bootstrap/Figure';
70
70
  import 'react-bootstrap/OverlayTrigger';
71
71
  import 'react-bootstrap/Tooltip';
72
72
  import 'react-bootstrap/Popover';
73
+ import './websiteList-a533df30.js';
73
74
  import './debounce-533d9748.js';
74
75
  import './isSymbol-a7e9aafe.js';
75
76
  import './toNumber-5aeba6e7.js';
@@ -479,9 +480,7 @@ var Recommended = function Recommended(props) {
479
480
  client = props.client,
480
481
  _props$index = props.index,
481
482
  index = _props$index === undefined ? 0 : _props$index,
482
- cpModificationRequired = props.cpModificationRequired,
483
- emailList = props.emailList,
484
- articleRecsQuery = props.articleRecsQuery;
483
+ cpModificationRequired = props.cpModificationRequired;
485
484
 
486
485
  var _useState = useState(false),
487
486
  _useState2 = _slicedToArray(_useState, 2),
@@ -496,17 +495,16 @@ var Recommended = function Recommended(props) {
496
495
  var _useState5 = useState('loading'),
497
496
  _useState6 = _slicedToArray(_useState5, 2),
498
497
  loaded = _useState6[0],
499
- setLoaded = _useState6[1]; // loading, loaded, failed
498
+ setLoaded = _useState6[1]; //loading, loaded, failed
500
499
 
501
500
 
502
501
  var starting = index * 5;
503
- var emailTracked = useRef(false);
504
-
505
502
  var contentMapping = {
506
503
  videos: 'video',
507
504
  articles: 'article',
508
505
  podcasts: 'podcast'
509
506
  };
507
+
510
508
  var mainCategories = article.content_placement.filter(function (cp) {
511
509
  return cp.usedForRecommendations === true;
512
510
  }).map(function (cp) {
@@ -519,69 +517,43 @@ var Recommended = function Recommended(props) {
519
517
  return;
520
518
  }
521
519
  if (mainCategories.length > 0) {
520
+ //console.log(mainCategories)
522
521
  analytics.track('Article Category Viewed', {
523
- 'categories.$': _JSON$stringify(mainCategories)
522
+ categories: _JSON$stringify(mainCategories)
524
523
  });
525
524
  }
525
+
526
+ // get users traits
526
527
  var getSegmentProfile = function () {
527
528
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
528
- var anonymousId, traits, i, response, data, addTaxonomyName, favoriteCategories, articlesCategory, videosCategory, podcastCategory, taxonomyCategories, taxonomies, articlesQuery, videosQuery, podcastQuery, params, _ref2, _ref3, _articles, videos, podcasts, recs;
529
+ var anonymousId, response, data, addTaxonomyName, favoriteCategories, articlesCategory, videosCategory, podcastCategory, taxonomyCategories, taxonomies, articlesQuery, videosQuery, podcastQuery, params, _ref2, _ref3, _articles, videos, podcasts;
529
530
 
530
531
  return regenerator.wrap(function _callee$(_context) {
531
532
  while (1) {
532
533
  switch (_context.prev = _context.next) {
533
534
  case 0:
534
535
  anonymousId = analytics.user().anonymousId();
535
- traits = analytics.user().traits();
536
- // console.log('anonymousId', anonymousId)
537
-
538
- if (!(traits && traits.email)) {
539
- _context.next = 11;
540
- break;
541
- }
542
-
543
- i = 0;
544
-
545
- case 4:
546
- if (!(i < emailList.length)) {
547
- _context.next = 11;
548
- break;
549
- }
550
-
551
- if (!(traits.email === emailList[i].email)) {
552
- _context.next = 8;
553
- break;
554
- }
555
-
556
- emailTracked.current = true;
557
- return _context.abrupt('break', 11);
558
-
559
- case 8:
560
- i++;
561
- _context.next = 4;
562
- break;
563
-
564
- case 11:
565
- _context.next = 13;
536
+ _context.next = 3;
566
537
  return fetch('/api/getSegmentProfile', {
567
538
  method: 'POST',
568
539
  body: _JSON$stringify({ anonymousId: anonymousId })
569
540
  });
570
541
 
571
- case 13:
542
+ case 3:
572
543
  response = _context.sent;
573
- _context.next = 16;
544
+ _context.next = 6;
574
545
  return response.json();
575
546
 
576
- case 16:
547
+ case 6:
577
548
  data = _context.sent;
578
549
 
579
- if (!(emailTracked.current || data && data.traits)) {
580
- _context.next = 54;
550
+ if (!(data && data.traits && data.traits.favorite_article_category)) {
551
+ _context.next = 40;
581
552
  break;
582
553
  }
583
554
 
584
- // console.log('%csegment user profile', 'font-size:1.5rem;color:#000000;padding:1rem;background-color:yellow;', data.traits)
555
+ //console.log('%csegment user profile', 'font-size:1.5rem;color:#000000;padding:1rem;background-color:yellow;', data.traits)
556
+
585
557
  addTaxonomyName = function addTaxonomyName(taxArr) {
586
558
  if (!taxArr) return '';
587
559
  var query = ' && ( ';
@@ -598,29 +570,29 @@ var Recommended = function Recommended(props) {
598
570
  return query;
599
571
  };
600
572
 
601
- favoriteCategories = data.traits.most_frequent_article_category ? JSON.parse(data.traits.most_frequent_article_category) : null;
573
+ favoriteCategories = JSON.parse(data.traits.favorite_article_category);
602
574
 
603
- // grab contentCategory ID
575
+ //grab contentCategory ID
604
576
 
605
- _context.next = 22;
577
+ _context.next = 12;
606
578
  return client.fetch("*[_type == 'contentCategory' && name == 'Articles'][0]{_id}");
607
579
 
608
- case 22:
580
+ case 12:
609
581
  articlesCategory = _context.sent;
610
- _context.next = 25;
582
+ _context.next = 15;
611
583
  return client.fetch("*[_type == 'contentCategory' && name == 'Videos'][0]{_id}");
612
584
 
613
- case 25:
585
+ case 15:
614
586
  videosCategory = _context.sent;
615
- _context.next = 28;
587
+ _context.next = 18;
616
588
  return client.fetch("*[_type == 'contentCategory' && name == 'Podcasts'][0]{_id}");
617
589
 
618
- case 28:
590
+ case 18:
619
591
  podcastCategory = _context.sent;
620
- _context.next = 31;
592
+ _context.next = 21;
621
593
  return client.fetch('*[_type == \'taxonomy\' ' + addTaxonomyName(favoriteCategories) + ']');
622
594
 
623
- case 31:
595
+ case 21:
624
596
  taxonomyCategories = _context.sent;
625
597
  taxonomies = '';
626
598
 
@@ -632,36 +604,26 @@ var Recommended = function Recommended(props) {
632
604
  }
633
605
  });
634
606
  taxonomies = taxonomies + ' )';
607
+
635
608
  // grab 3 articles from sanity different from the one currently being read
636
- articlesQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + articlesCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 5) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
637
- videosQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + videosCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 1) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
638
- podcastQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + podcastCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 2) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
609
+ articlesQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + articlesCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 5) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
610
+ videosQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + videosCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 1) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
611
+ podcastQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + podcastCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 2) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
639
612
  params = {
640
613
  id: article._id
641
614
  };
642
- _context.next = 41;
643
- return _Promise.all([client.fetch(articlesQuery, params), client.fetch(videosQuery, params), client.fetch(podcastQuery, params), client.fetch(articleRecsQuery)]);
615
+ _context.next = 31;
616
+ return _Promise.all([client.fetch(articlesQuery, params), client.fetch(videosQuery, params), client.fetch(podcastQuery, params)]);
644
617
 
645
- case 41:
618
+ case 31:
646
619
  _ref2 = _context.sent;
647
- _ref3 = _slicedToArray(_ref2, 4);
620
+ _ref3 = _slicedToArray(_ref2, 3);
648
621
  _articles = _ref3[0];
649
622
  videos = _ref3[1];
650
623
  podcasts = _ref3[2];
651
- recs = _ref3[3];
652
624
 
653
625
  if (_articles.length === 0) setLoaded('failed');
654
-
655
- if (!(emailTracked.current && recs)) {
656
- _context.next = 51;
657
- break;
658
- }
659
-
660
- setArticles(recs);
661
- return _context.abrupt('return');
662
-
663
- case 51:
664
- if (_articles && !emailTracked.current) {
626
+ if (_articles) {
665
627
  if (videos[0] && _articles[2]) {
666
628
  _articles[2] = videos[0];
667
629
  }
@@ -673,13 +635,13 @@ var Recommended = function Recommended(props) {
673
635
  }
674
636
  setArticles(_articles);
675
637
  }
676
- _context.next = 55;
638
+ _context.next = 41;
677
639
  break;
678
640
 
679
- case 54:
641
+ case 40:
680
642
  setLoaded('failed');
681
643
 
682
- case 55:
644
+ case 41:
683
645
  case 'end':
684
646
  return _context.stop();
685
647
  }
@@ -691,6 +653,7 @@ var Recommended = function Recommended(props) {
691
653
  return _ref.apply(this, arguments);
692
654
  };
693
655
  }();
656
+
694
657
  getSegmentProfile();
695
658
  } catch (err) {
696
659
  console.log(err);
@@ -773,7 +736,7 @@ var Recommended = function Recommended(props) {
773
736
  React__default.createElement(
774
737
  'div',
775
738
  { className: styles.category },
776
- contentMapping && contentMapping[article.contentCategory.name] && contentMapping[article.contentCategory.name.toLowerCase()] ? contentMapping[article.contentCategory.name.toLowerCase()] : article.contentCategory.name
739
+ contentMapping[article.contentCategory.name.toLowerCase()] ? contentMapping[article.contentCategory.name.toLowerCase()] : article.contentCategory.name
777
740
  ),
778
741
  React__default.createElement(
779
742
  'a',
@@ -1016,14 +979,10 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1016
979
  _props$downloadCitati = props.downloadCitation,
1017
980
  downloadCitation = _props$downloadCitati === undefined ? false : _props$downloadCitati,
1018
981
  _props$useSegmentReco = props.useSegmentRecommendedArticles,
1019
- useSegmentRecommendedArticles = _props$useSegmentReco === undefined ? false : _props$useSegmentReco,
1020
- emailList = props.emailList,
1021
- articleRecs = props.articleRecs;
982
+ useSegmentRecommendedArticles = _props$useSegmentReco === undefined ? false : _props$useSegmentReco;
1022
983
  var sliderData = props.sliderData;
1023
984
 
1024
985
  var disableEpisodeNumber = false;
1025
- var articleRecsQuery = '*[_type == \'article\' && url.current in ';
1026
-
1027
986
  if (article && article.documentGroup && article.documentGroup.disableEpisodeNumber === true) {
1028
987
  disableEpisodeNumber = true;
1029
988
  }
@@ -1033,12 +992,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1033
992
  if (article && article.documentGroup && article.documentGroup.hideSeriesSlider === true) {
1034
993
  sliderData = null;
1035
994
  }
1036
- // build query string for article recs, pass down as props
1037
- if (articleRecs) {
1038
- articleRecs.forEach(function (rec, ind) {
1039
- ind === 0 ? articleRecsQuery = articleRecsQuery.concat('[\'' + rec + '\', ') : ind === articleRecs.length - 1 ? articleRecsQuery = articleRecsQuery.concat('\'' + rec + '\']]') : articleRecsQuery = articleRecsQuery.concat('\'' + rec + '\', ');
1040
- });
1041
- }
995
+
1042
996
  //next video url
1043
997
  if (sliderData) {
1044
998
  var nextArticle = void 0;
@@ -1304,9 +1258,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1304
1258
  index: props.index,
1305
1259
  Settings: props.Settings,
1306
1260
  showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage,
1307
- cpModificationRequired: cpModificationRequired,
1308
- emailList: emailList,
1309
- articleRecsQuery: articleRecsQuery
1261
+ cpModificationRequired: cpModificationRequired
1310
1262
  }) : React__default.createElement(
1311
1263
  'section',
1312
1264
  { id: 'related-content-section', className: 'my-1' },
@@ -2003,9 +1955,7 @@ var ArticleQueue = function ArticleQueue(props) {
2003
1955
  _props$authorPrefix = props.authorPrefix,
2004
1956
  authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
2005
1957
  showRelatedArticles = props.showRelatedArticles,
2006
- canonicalTag = props.canonicalTag,
2007
- _props$disablePrevUrl = props.disablePrevUrlCheckContentPlacement,
2008
- disablePrevUrlCheckContentPlacement = _props$disablePrevUrl === undefined ? false : _props$disablePrevUrl;
1958
+ canonicalTag = props.canonicalTag;
2009
1959
 
2010
1960
  var _useState = useState(0),
2011
1961
  _useState2 = _slicedToArray(_useState, 2),
@@ -2055,7 +2005,7 @@ var ArticleQueue = function ArticleQueue(props) {
2055
2005
  var activeArticle = queueData.find(function (item) {
2056
2006
  return item.url.current === path;
2057
2007
  });
2058
- var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl, disablePrevUrlCheckContentPlacement: disablePrevUrlCheckContentPlacement });
2008
+ var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
2059
2009
  if (!main_43) {
2060
2010
  lib_3.getGoogletag().then(function (googletag) {
2061
2011
  if (window.googletag && googletag.pubadsReady) {
@@ -2167,7 +2117,7 @@ var ArticleQueue = function ArticleQueue(props) {
2167
2117
  console.error(_context.t1);
2168
2118
 
2169
2119
  case 24:
2170
- targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl, disablePrevUrlCheckContentPlacement: disablePrevUrlCheckContentPlacement });
2120
+ targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
2171
2121
 
2172
2122
  article.Ads = Ads.getRightItems(targeting);
2173
2123
  setQueueData([].concat(_toConsumableArray(queueData), [article]));
@@ -2303,9 +2253,7 @@ var View = function View(props) {
2303
2253
  _props$canonicalTag = props.canonicalTag,
2304
2254
  canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag,
2305
2255
  _props$infiniteScroll = props.infiniteScrollFlag,
2306
- infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll,
2307
- emailList = props.emailList,
2308
- articleRecs = props.articleRecs;
2256
+ infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
2309
2257
  var _props$article2 = props.article,
2310
2258
  _props$article2$passw = _props$article2.passwordLock,
2311
2259
  passwordLock = _props$article2$passw === undefined ? false : _props$article2$passw;
@@ -2485,7 +2433,7 @@ var View = function View(props) {
2485
2433
  props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
2486
2434
  )
2487
2435
  ),
2488
- !needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props)) : React__default.createElement(ArticleQueue, _extends({
2436
+ !needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus }, props)) : React__default.createElement(ArticleQueue, _extends({
2489
2437
  infiniteScroll: true,
2490
2438
  showRelatedArticles: showRelatedArticles,
2491
2439
  canonicalTag: canonicalTag,
@@ -2513,8 +2461,6 @@ View.returnGetInitialProps = function () {
2513
2461
 
2514
2462
  case 2:
2515
2463
  article = _context.sent;
2516
-
2517
- console.log('article url current', url);
2518
2464
  relatedArticleQuery = getQuery('related');
2519
2465
 
2520
2466
  article.seriesDetail = getSeriesDetail(article, seriesVid);
@@ -2526,35 +2472,35 @@ View.returnGetInitialProps = function () {
2526
2472
  }
2527
2473
 
2528
2474
  if (!(article.documentGroup && article.documentGroup.isSeries)) {
2529
- _context.next = 16;
2475
+ _context.next = 15;
2530
2476
  break;
2531
2477
  }
2532
2478
 
2533
- _context.next = 12;
2479
+ _context.next = 11;
2534
2480
  return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroup._id + '\')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }');
2535
2481
 
2536
- case 12:
2482
+ case 11:
2537
2483
  sliderArticles = _context.sent;
2538
2484
 
2539
2485
  sliderData = sliderArticles;
2540
- _context.next = 21;
2486
+ _context.next = 20;
2541
2487
  break;
2542
2488
 
2543
- case 16:
2489
+ case 15:
2544
2490
  if (!(article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].isSeries)) {
2545
- _context.next = 21;
2491
+ _context.next = 20;
2546
2492
  break;
2547
2493
  }
2548
2494
 
2549
- _context.next = 19;
2495
+ _context.next = 18;
2550
2496
  return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroupMapping[0]._id + '\')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }');
2551
2497
 
2552
- case 19:
2498
+ case 18:
2553
2499
  _sliderArticles = _context.sent;
2554
2500
 
2555
2501
  sliderData = _sliderArticles;
2556
2502
 
2557
- case 21:
2503
+ case 20:
2558
2504
  _context$query$series = context.query.seriesArticle, seriesArticle = _context$query$series === undefined ? false : _context$query$series;
2559
2505
 
2560
2506
  if ((seriesArticle || seriesVid) && article.body) {
@@ -2603,27 +2549,27 @@ View.returnGetInitialProps = function () {
2603
2549
  }
2604
2550
 
2605
2551
  if (!article.disableRelatedContent) {
2606
- _context.next = 31;
2552
+ _context.next = 30;
2607
2553
  break;
2608
2554
  }
2609
2555
 
2610
2556
  article.relatedArticle = null;
2611
- _context.next = 35;
2557
+ _context.next = 34;
2612
2558
  break;
2613
2559
 
2614
- case 31:
2560
+ case 30:
2615
2561
  if (!article) {
2616
- _context.next = 35;
2562
+ _context.next = 34;
2617
2563
  break;
2618
2564
  }
2619
2565
 
2620
- _context.next = 34;
2566
+ _context.next = 33;
2621
2567
  return getRelatedArticle(context, client, article, prevUrl, '0..2');
2622
2568
 
2623
- case 34:
2569
+ case 33:
2624
2570
  article.relatedArticle = _context.sent;
2625
2571
 
2626
- case 35:
2572
+ case 34:
2627
2573
  return _context.abrupt('return', {
2628
2574
  url: url,
2629
2575
  sao: sao,
@@ -2635,7 +2581,7 @@ View.returnGetInitialProps = function () {
2635
2581
  sponsoredFlag: sponsoredFlag
2636
2582
  });
2637
2583
 
2638
- case 36:
2584
+ case 35:
2639
2585
  case 'end':
2640
2586
  return _context.stop();
2641
2587
  }
@@ -4,7 +4,7 @@ import { g as getYoutubeId } from './index-c7e2ac95.js';
4
4
  import { L as LazyLoad } from './index-755f2cc2.js';
5
5
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
6
6
  import urlFor from './urlFor.js';
7
- import { m as main_43, a as main_49, b as main_42 } from './main-1894c974.js';
7
+ import { m as main_43, a as main_49, b as main_42 } from './main-9f6806ea.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './web.dom.iterable-ab4dea5c.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
@@ -0,0 +1,10 @@
1
+ import { s as siteArray } from './websiteList-a533df30.js';
2
+
3
+ var checkSisterSite = function checkSisterSite(url) {
4
+ if (url.includes('http://') || url.includes('https://')) {
5
+ url = url.replace('www.', '').split('/').slice(2, 3).join('/');
6
+ }
7
+ return url && url.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) && siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
8
+ };
9
+
10
+ export { checkSisterSite as c };
@@ -7,9 +7,7 @@ import './_iter-detect-98db3b07.js';
7
7
 
8
8
  var getPtceActivities = function () {
9
9
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(params) {
10
- var filterByProfession = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
11
- var filterQuery = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
12
- var hasMore, filter, response, data;
10
+ var hasMore, response, data;
13
11
  return regenerator.wrap(function _callee$(_context) {
14
12
  while (1) {
15
13
  switch (_context.prev = _context.next) {
@@ -21,26 +19,19 @@ var getPtceActivities = function () {
21
19
  if (params.paginatedPoint && params.paginatedPoint !== '') {
22
20
  hasMore = '&cursor=' + params.paginatedPoint;
23
21
  }
24
- filter = '';
25
22
 
26
- if (filterByProfession && filterQuery.length) {
27
- filter = '&query=status:published%20AND%20customFields.profession:"' + filterQuery + '"';
28
- } else {
29
- filter = '&query=status:published';
30
- }
31
-
32
- _context.next = 7;
33
- return fetch('https://www.pharmacytimes.org/incoming/v2/content?types[]=courses&sort=publishDate:desc' + filter + '&limit=25' + hasMore, {
23
+ _context.next = 5;
24
+ return fetch('https://www.pharmacytimes.org/incoming/v2/content?types[]=courses&sort=publishDate:desc&query=status:published&limit=25' + hasMore, {
34
25
  method: 'GET',
35
26
  headers: { Authorization: 'Bearer drnc4y57arj3f190cpvqiwxt3cxpbken' }
36
27
  });
37
28
 
38
- case 7:
29
+ case 5:
39
30
  response = _context.sent;
40
- _context.next = 10;
31
+ _context.next = 8;
41
32
  return response.json();
42
33
 
43
- case 10:
34
+ case 8:
44
35
  data = _context.sent;
45
36
 
46
37
 
@@ -48,10 +39,6 @@ var getPtceActivities = function () {
48
39
  if (course.tags && course.tags[0] && course.tags[0].label == 'Hidden') {
49
40
  return false;
50
41
  }
51
- var customField = data.contentItems.map(function (each) {
52
- return each.customFields;
53
- });
54
- console.log(customField);
55
42
 
56
43
  var current_date = new Date();
57
44
  var courseEndDate = new Date(course.courseEndDate);
@@ -61,19 +48,19 @@ var getPtceActivities = function () {
61
48
 
62
49
  return _context.abrupt('return', data);
63
50
 
64
- case 15:
65
- _context.prev = 15;
51
+ case 13:
52
+ _context.prev = 13;
66
53
  _context.t0 = _context['catch'](0);
67
54
 
68
55
  console.log(_context.t0);
69
56
  return _context.abrupt('return', []);
70
57
 
71
- case 19:
58
+ case 17:
72
59
  case 'end':
73
60
  return _context.stop();
74
61
  }
75
62
  }
76
- }, _callee, this, [[0, 15]]);
63
+ }, _callee, this, [[0, 13]]);
77
64
  }));
78
65
 
79
66
  return function getPtceActivities(_x) {
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { g as default } from './index-e0aeabc5.js';
2
+ export { g as default } from './index-df1f2337.js';
3
3
  import './BlockContent-1e73bd2c.js';
4
4
  import './entities-6d9154b4.js';
5
5
  import './slicedToArray-6ebcbfea.js';
@@ -21,7 +21,7 @@ import './asyncToGenerator-958ef5fc.js';
21
21
  import './_library-528f1934.js';
22
22
  import './_iter-detect-98db3b07.js';
23
23
  import './Segment.js';
24
- import './main-1894c974.js';
24
+ import './main-9f6806ea.js';
25
25
  import './extends-6d8e3924.js';
26
26
  import './_object-pie-133f504a.js';
27
27
  import './urlForFile-b69adffc.js';
@@ -58,3 +58,4 @@ import 'react-bootstrap/Figure';
58
58
  import 'react-bootstrap/OverlayTrigger';
59
59
  import 'react-bootstrap/Tooltip';
60
60
  import 'react-bootstrap/Popover';
61
+ import './websiteList-a533df30.js';
@@ -22,9 +22,7 @@ var getTargeting = function getTargeting(props) {
22
22
  position = props.position,
23
23
  prevUrl = props.prevUrl,
24
24
  _props$cpModification = props.cpModificationRequired,
25
- cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification,
26
- _props$disablePrevUrl = props.disablePrevUrlCheckContentPlacement,
27
- disablePrevUrlCheckContentPlacement = _props$disablePrevUrl === undefined ? false : _props$disablePrevUrl;
25
+ cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification;
28
26
 
29
27
 
30
28
  if (positionOverride) {
@@ -60,7 +58,7 @@ var getTargeting = function getTargeting(props) {
60
58
  context = context && context.split('?')[0];
61
59
  context = context && context.split('&')[0];
62
60
  var content_placement_urls = [];
63
- if (content_placement && prevUrl && prevUrl.length && !disablePrevUrlCheckContentPlacement) {
61
+ if (content_placement && prevUrl && prevUrl.length) {
64
62
  content_placement.forEach(function (item) {
65
63
  var path = item.path;
66
64
  if (cpModificationRequired) {
@@ -1,6 +1,6 @@
1
1
  import './extends-6d8e3924.js';
2
2
  import './toConsumableArray-f7074d7c.js';
3
- export { g as default } from './getTargeting-9bd28724.js';
3
+ export { g as default } from './getTargeting-42f9b439.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './core.get-iterator-method-ea258bb1.js';
6
6
  import './_object-pie-133f504a.js';