@mjhls/mjh-framework 1.0.790-filter-test → 1.0.790

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 (253) hide show
  1. package/README.md +170 -170
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +15 -15
  4. package/dist/cjs/AD300x250x600.js +15 -15
  5. package/dist/cjs/AD728x90.js +16 -16
  6. package/dist/cjs/ADFloatingFooter.js +14 -14
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +14 -14
  9. package/dist/cjs/{ADInfeed-e7aecdf9.js → ADInfeed-1e53d7db.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +14 -14
  11. package/dist/cjs/ADSponsoredResources.js +14 -14
  12. package/dist/cjs/ADWebcast.js +14 -14
  13. package/dist/cjs/ADWelcome.js +14 -14
  14. package/dist/cjs/{ADlgInfeed-0941023e.js → ADlgInfeed-2494fd17.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +5 -5
  16. package/dist/cjs/AdSlot.js +16 -16
  17. package/dist/cjs/AdSlotsProvider.js +10 -10
  18. package/dist/cjs/AlphabeticList.js +9 -9
  19. package/dist/cjs/ArticleCarousel.js +11 -11
  20. package/dist/cjs/ArticleProgramLandingPage.js +25 -24
  21. package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
  22. package/dist/cjs/ArticleSeriesListing.js +17 -17
  23. package/dist/cjs/Auth.js +468 -206
  24. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-5fa89df5.js} +1 -1
  25. package/dist/cjs/Beam.js +7 -7
  26. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-eca358e4.js} +34 -34
  27. package/dist/cjs/Breadcrumbs.js +5 -5
  28. package/dist/cjs/CMEDeck.js +14 -14
  29. package/dist/cjs/Column2.js +11 -11
  30. package/dist/cjs/Column3.js +20 -20
  31. package/dist/cjs/ConferenceArticleCard.js +16 -16
  32. package/dist/cjs/DeckContent.js +31 -31
  33. package/dist/cjs/DeckQueue.js +21 -21
  34. package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-6d140494.js} +8 -8
  35. package/dist/cjs/EventsDeck.js +36 -36
  36. package/dist/cjs/ExternalResources.js +26 -25
  37. package/dist/cjs/Feature.js +3 -3
  38. package/dist/cjs/ForbesHero.js +7 -7
  39. package/dist/cjs/GridContent.js +30 -30
  40. package/dist/cjs/GridHero.js +7 -7
  41. package/dist/cjs/GroupDeck.js +9 -9
  42. package/dist/cjs/HamMagazine.js +21 -21
  43. package/dist/cjs/Hero.js +1 -1
  44. package/dist/cjs/HorizontalArticleListing.js +25 -24
  45. package/dist/cjs/HorizontalHero.js +1 -1
  46. package/dist/cjs/IssueContentDeck.js +7 -7
  47. package/dist/cjs/IssueDeck.js +10 -10
  48. package/dist/cjs/IssueLanding.js +49 -49
  49. package/dist/cjs/KMTracker.js +15 -15
  50. package/dist/cjs/LeftNav.js +14 -14
  51. package/dist/cjs/MasterDeck.js +32 -32
  52. package/dist/cjs/MediaSeriesLanding.js +398 -503
  53. package/dist/cjs/NavDvm.js +7 -7
  54. package/dist/cjs/NavMagazine.js +21 -21
  55. package/dist/cjs/NavNative.js +26 -26
  56. package/dist/cjs/NavNormal.js +7 -7
  57. package/dist/cjs/OncliveHero.js +1 -1
  58. package/dist/cjs/OncliveLargeHero.js +7 -7
  59. package/dist/cjs/PageFilter.js +5 -5
  60. package/dist/cjs/PartnerDetailListing.js +29 -28
  61. package/dist/cjs/PopUpModal.js +5 -5
  62. package/dist/cjs/PubSection.js +20 -20
  63. package/dist/cjs/PubToc.js +7 -7
  64. package/dist/cjs/PublicationDeck.js +2 -2
  65. package/dist/cjs/PublicationLanding.js +143 -69
  66. package/dist/cjs/QueueDeckExpanded.js +22 -22
  67. package/dist/cjs/RecentNews.js +1 -1
  68. package/dist/cjs/RelatedContent.js +29 -29
  69. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  70. package/dist/cjs/Search.js +5 -5
  71. package/dist/cjs/Segment.js +6 -6
  72. package/dist/cjs/SeriesListingDeck.js +12 -12
  73. package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-49577417.js} +12 -12
  74. package/dist/cjs/SideFooter.js +13 -13
  75. package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-45c54bed.js} +6 -6
  76. package/dist/cjs/TaxonomyCard.js +5 -5
  77. package/dist/cjs/TaxonomyDescription.js +25 -24
  78. package/dist/cjs/TemplateNormal.js +19 -19
  79. package/dist/cjs/ThumbnailCard.js +1 -1
  80. package/dist/cjs/Ustream.js +7 -7
  81. package/dist/cjs/VerticalHero.js +1 -1
  82. package/dist/cjs/VideoProgramLandingPage.js +25 -24
  83. package/dist/cjs/VideoSeriesCard.js +8 -8
  84. package/dist/cjs/VideoSeriesFilter.js +7 -7
  85. package/dist/cjs/VideoSeriesLandingPage.js +24 -24
  86. package/dist/cjs/VideoSeriesListing.js +17 -17
  87. package/dist/cjs/View.js +39 -38
  88. package/dist/cjs/YahooHero.js +7 -7
  89. package/dist/cjs/YoutubeGroup.js +19 -19
  90. package/dist/cjs/{_is-array-6128bd56.js → _is-array-63ae4740.js} +1 -1
  91. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-2613ffa1.js} +8 -8
  92. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  93. package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-c5bd707d.js} +1 -1
  94. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-bec5fcf2.js} +2 -2
  95. package/dist/cjs/{_to-object-6de10e57.js → _to-object-821a2927.js} +4 -4
  96. package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-b6a175bf.js} +30 -30
  97. package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-b4615fd3.js} +2 -2
  98. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  99. package/dist/cjs/{define-property-c88be878.js → define-property-aff11f8a.js} +6 -6
  100. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-d6fbb280.js} +1 -1
  101. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  102. package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-20d42c53.js} +5 -5
  103. package/dist/cjs/{extends-29bdbc6d.js → extends-1e24fc8d.js} +7 -8
  104. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  105. package/dist/cjs/getRelatedArticle.js +9 -11
  106. package/dist/cjs/getRootDocGroup.js +6 -6
  107. package/dist/cjs/getSerializers.js +25 -24
  108. package/dist/cjs/{getTargeting-45b91c88.js → getTargeting-497b581d.js} +11 -11
  109. package/dist/cjs/getTargeting.js +8 -8
  110. package/dist/cjs/{index-f86bb269.js → index-4d74ffd6.js} +4 -4
  111. package/dist/cjs/{index-70cfabd2.js → index-d450e2d5.js} +88 -338
  112. package/dist/cjs/{index-efca863c.js → index-d48b231c.js} +5 -5
  113. package/dist/cjs/index.js +37 -36
  114. package/dist/cjs/{inherits-c2065b95.js → inherits-2eb23889.js} +19 -22
  115. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  116. package/dist/cjs/keys-95c064c9.js +25 -0
  117. package/dist/cjs/{lodash-f0783643.js → lodash-4ef21f0f.js} +9 -57
  118. package/dist/cjs/{main-025fdc78.js → main-dc082238.js} +109 -184
  119. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-db24842a.js} +14 -14
  120. package/dist/cjs/stringify-01cf47f7.js +17 -0
  121. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-cf0865fc.js} +9 -9
  122. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  123. package/dist/cjs/{typeof-88a668c5.js → typeof-97065d40.js} +34 -34
  124. package/dist/cjs/urlFor.js +1 -1
  125. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-4480325a.js} +2 -2
  126. package/dist/esm/AD.js +1 -1
  127. package/dist/esm/AD300x250.js +15 -15
  128. package/dist/esm/AD300x250x600.js +15 -15
  129. package/dist/esm/AD728x90.js +16 -16
  130. package/dist/esm/ADFloatingFooter.js +14 -14
  131. package/dist/esm/ADFooter.js +5 -5
  132. package/dist/esm/ADGutter.js +14 -14
  133. package/dist/esm/{ADInfeed-e1e18f87.js → ADInfeed-94817c40.js} +1 -1
  134. package/dist/esm/ADSkyscraper.js +14 -14
  135. package/dist/esm/ADSponsoredResources.js +14 -14
  136. package/dist/esm/ADWebcast.js +14 -14
  137. package/dist/esm/ADWelcome.js +14 -14
  138. package/dist/esm/{ADlgInfeed-c6d2831b.js → ADlgInfeed-6124ee3c.js} +1 -1
  139. package/dist/esm/AccordionPanel.js +5 -5
  140. package/dist/esm/AdSlot.js +16 -16
  141. package/dist/esm/AdSlotsProvider.js +10 -10
  142. package/dist/esm/AlphabeticList.js +9 -9
  143. package/dist/esm/ArticleCarousel.js +11 -11
  144. package/dist/esm/ArticleProgramLandingPage.js +25 -24
  145. package/dist/esm/ArticleSeriesLandingPage.js +24 -24
  146. package/dist/esm/ArticleSeriesListing.js +17 -17
  147. package/dist/esm/Auth.js +469 -207
  148. package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-c7ff069f.js} +1 -1
  149. package/dist/esm/Beam.js +7 -7
  150. package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-d8cd739c.js} +34 -34
  151. package/dist/esm/Breadcrumbs.js +5 -5
  152. package/dist/esm/CMEDeck.js +14 -14
  153. package/dist/esm/Column2.js +11 -11
  154. package/dist/esm/Column3.js +20 -20
  155. package/dist/esm/ConferenceArticleCard.js +16 -16
  156. package/dist/esm/DeckContent.js +31 -31
  157. package/dist/esm/DeckQueue.js +21 -21
  158. package/dist/esm/{Dfp-a304d96c.js → Dfp-313e4ebe.js} +8 -8
  159. package/dist/esm/EventsDeck.js +36 -36
  160. package/dist/esm/ExternalResources.js +26 -25
  161. package/dist/esm/Feature.js +3 -3
  162. package/dist/esm/ForbesHero.js +7 -7
  163. package/dist/esm/GridContent.js +30 -30
  164. package/dist/esm/GridHero.js +7 -7
  165. package/dist/esm/GroupDeck.js +9 -9
  166. package/dist/esm/HamMagazine.js +21 -21
  167. package/dist/esm/Hero.js +1 -1
  168. package/dist/esm/HorizontalArticleListing.js +25 -24
  169. package/dist/esm/HorizontalHero.js +1 -1
  170. package/dist/esm/IssueContentDeck.js +7 -7
  171. package/dist/esm/IssueDeck.js +10 -10
  172. package/dist/esm/IssueLanding.js +49 -49
  173. package/dist/esm/KMTracker.js +15 -15
  174. package/dist/esm/LeftNav.js +14 -14
  175. package/dist/esm/MasterDeck.js +32 -32
  176. package/dist/esm/MediaSeriesLanding.js +398 -503
  177. package/dist/esm/NavDvm.js +7 -7
  178. package/dist/esm/NavMagazine.js +21 -21
  179. package/dist/esm/NavNative.js +26 -26
  180. package/dist/esm/NavNormal.js +7 -7
  181. package/dist/esm/OncliveHero.js +1 -1
  182. package/dist/esm/OncliveLargeHero.js +7 -7
  183. package/dist/esm/PageFilter.js +5 -5
  184. package/dist/esm/PartnerDetailListing.js +29 -28
  185. package/dist/esm/PopUpModal.js +5 -5
  186. package/dist/esm/PubSection.js +20 -20
  187. package/dist/esm/PubToc.js +7 -7
  188. package/dist/esm/PublicationDeck.js +2 -2
  189. package/dist/esm/PublicationLanding.js +143 -69
  190. package/dist/esm/QueueDeckExpanded.js +22 -22
  191. package/dist/esm/RecentNews.js +1 -1
  192. package/dist/esm/RelatedContent.js +29 -29
  193. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  194. package/dist/esm/Search.js +5 -5
  195. package/dist/esm/Segment.js +6 -6
  196. package/dist/esm/SeriesListingDeck.js +12 -12
  197. package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-291e1c9e.js} +12 -12
  198. package/dist/esm/SideFooter.js +13 -13
  199. package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-c3216d1a.js} +6 -6
  200. package/dist/esm/TaxonomyCard.js +5 -5
  201. package/dist/esm/TaxonomyDescription.js +25 -24
  202. package/dist/esm/TemplateNormal.js +19 -19
  203. package/dist/esm/ThumbnailCard.js +1 -1
  204. package/dist/esm/Ustream.js +7 -7
  205. package/dist/esm/VerticalHero.js +1 -1
  206. package/dist/esm/VideoProgramLandingPage.js +25 -24
  207. package/dist/esm/VideoSeriesCard.js +8 -8
  208. package/dist/esm/VideoSeriesFilter.js +7 -7
  209. package/dist/esm/VideoSeriesLandingPage.js +24 -24
  210. package/dist/esm/VideoSeriesListing.js +17 -17
  211. package/dist/esm/View.js +39 -38
  212. package/dist/esm/YahooHero.js +7 -7
  213. package/dist/esm/YoutubeGroup.js +19 -19
  214. package/dist/esm/{_is-array-3e99e06e.js → _is-array-674f71ec.js} +1 -1
  215. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-48516cd3.js} +8 -8
  216. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  217. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-fd3054d0.js} +1 -1
  218. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-8f409e54.js} +2 -2
  219. package/dist/esm/{_to-object-b50e61c3.js → _to-object-97770c52.js} +4 -4
  220. package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-585841c0.js} +30 -30
  221. package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-d1d5ed02.js} +2 -2
  222. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  223. package/dist/esm/{define-property-fe54dc9f.js → define-property-ec6d528d.js} +6 -6
  224. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-ea516b15.js} +1 -1
  225. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  226. package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-aa6068a3.js} +5 -5
  227. package/dist/esm/{extends-60e0e1c6.js → extends-31d65aba.js} +8 -8
  228. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  229. package/dist/esm/getRelatedArticle.js +9 -11
  230. package/dist/esm/getRootDocGroup.js +6 -6
  231. package/dist/esm/getSerializers.js +25 -24
  232. package/dist/esm/{getTargeting-d0d71a56.js → getTargeting-2d402d66.js} +11 -11
  233. package/dist/esm/getTargeting.js +8 -8
  234. package/dist/esm/{index-0dbff1d1.js → index-3f5c03b2.js} +5 -5
  235. package/dist/esm/{index-79cfd25c.js → index-ccb770c7.js} +4 -4
  236. package/dist/esm/{index-613fdebe.js → index-f4fe5a50.js} +86 -337
  237. package/dist/esm/index.js +37 -36
  238. package/dist/esm/{inherits-a41fe93f.js → inherits-5906fbea.js} +20 -20
  239. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  240. package/dist/esm/{keys-7a3adabf.js → keys-a0b0c7a4.js} +6 -6
  241. package/dist/esm/{lodash-f97fd99a.js → lodash-ad27652f.js} +9 -57
  242. package/dist/esm/{main-b5c5aac1.js → main-1450d277.js} +103 -178
  243. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-cdeaee08.js} +14 -14
  244. package/dist/esm/stringify-d4839bab.js +15 -0
  245. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-fa2dcda7.js} +9 -9
  246. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  247. package/dist/esm/{typeof-a286cf0c.js → typeof-e9cea9e8.js} +34 -34
  248. package/dist/esm/urlFor.js +1 -1
  249. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-035980f3.js} +2 -2
  250. package/package.json +108 -108
  251. package/dist/cjs/keys-7f2c2108.js +0 -25
  252. package/dist/cjs/stringify-c9ac1214.js +0 -17
  253. package/dist/esm/stringify-59c8f690.js +0 -15
@@ -1,13 +1,13 @@
1
- import { b as _anInstance, c as _forOf, d as _redefineAll, e as _setSpecies, a as _asyncToGenerator, r as regenerator, _ as _Promise } from './asyncToGenerator-7f8f9219.js';
2
- import { _ as _extends } from './extends-60e0e1c6.js';
3
- import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
1
+ import { b as _anInstance, c as _forOf, d as _redefineAll, e as _setSpecies, a as _asyncToGenerator, r as regenerator, _ as _Promise } from './asyncToGenerator-585841c0.js';
2
+ import { _ as _extends } from './extends-31d65aba.js';
3
+ import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
4
4
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
5
- import { _ as _objectCreate, a as _iterDefine, b as _wks, c as _setToStringTag } from './es6.string.iterator-bc33758b.js';
6
- import { _ as _iterStep } from './web.dom.iterable-4109ff68.js';
7
- import { b as _isObject, c as _ctx, d as _descriptors, e as _objectDp, f as _toObject, g as _iobject, h as _toLength, i as _global, j as _fails, k as _hide, _ as _export, l as _aFunction, a as _core } from './_to-object-b50e61c3.js';
8
- import { _ as _meta, a as _isArray } from './_is-array-3e99e06e.js';
9
- import { _ as _classof } from './core.get-iterator-method-133dfacd.js';
10
- import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
5
+ import { _ as _objectCreate, a as _iterDefine, b as _wks, c as _setToStringTag } from './es6.string.iterator-aa6068a3.js';
6
+ import { _ as _iterStep } from './web.dom.iterable-035980f3.js';
7
+ import { b as _isObject, c as _ctx, d as _descriptors, e as _objectDp, f as _toObject, g as _iobject, h as _toLength, i as _global, j as _fails, k as _hide, _ as _export, l as _aFunction, a as _core } from './_to-object-97770c52.js';
8
+ import { _ as _meta, a as _isArray } from './_is-array-674f71ec.js';
9
+ import { _ as _classof } from './core.get-iterator-method-d1d5ed02.js';
10
+ import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
11
11
  import React, { useState, useEffect } from 'react';
12
12
  import Row from 'react-bootstrap/Row';
13
13
  import Col from 'react-bootstrap/Col';
@@ -16,8 +16,8 @@ import Card from 'react-bootstrap/Card';
16
16
  import { useRouter } from 'next/router';
17
17
  import { L as LazyLoad } from './index-35bdcc81.js';
18
18
  import './_library-528f1934.js';
19
- import './_iter-detect-7e5e5ce2.js';
20
- import './_object-pie-133f504a.js';
19
+ import './_iter-detect-48516cd3.js';
20
+ import './_object-pie-33c40e79.js';
21
21
  import 'react-dom';
22
22
  import 'prop-types';
23
23
 
@@ -26,7 +26,7 @@ var _validateCollection = function (it, TYPE) {
26
26
  return it;
27
27
  };
28
28
 
29
- var dP$1 = _objectDp.f;
29
+ var dP = _objectDp.f;
30
30
 
31
31
 
32
32
 
@@ -109,7 +109,7 @@ var _collectionStrong = {
109
109
  return !!getEntry(_validateCollection(this, NAME), key);
110
110
  }
111
111
  });
112
- if (_descriptors) dP$1(C.prototype, 'size', {
112
+ if (_descriptors) dP(C.prototype, 'size', {
113
113
  get: function () {
114
114
  return _validateCollection(this, NAME)[SIZE];
115
115
  }
@@ -237,7 +237,7 @@ var _arrayMethods = function (TYPE, $create) {
237
237
  };
238
238
  };
239
239
 
240
- var dP = _objectDp.f;
240
+ var dP$1 = _objectDp.f;
241
241
  var each = _arrayMethods(0);
242
242
 
243
243
 
@@ -269,7 +269,7 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
269
269
  return IS_ADDER ? this : result;
270
270
  });
271
271
  });
272
- IS_WEAK || dP(C.prototype, 'size', {
272
+ IS_WEAK || dP$1(C.prototype, 'size', {
273
273
  get: function () {
274
274
  return this._c.size;
275
275
  }
@@ -365,43 +365,43 @@ var _setCollectionFrom = function (COLLECTION) {
365
365
  // https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
366
366
  _setCollectionFrom('Set');
367
367
 
368
- var set$1 = _core.Set;
368
+ var set = _core.Set;
369
369
 
370
- var set = createCommonjsModule(function (module) {
371
- module.exports = { "default": set$1, __esModule: true };
370
+ var set$1 = createCommonjsModule(function (module) {
371
+ module.exports = { "default": set, __esModule: true };
372
372
  });
373
373
 
374
- var _Set = unwrapExports(set);
375
-
376
- /* usage & query
377
- const Publication = (props) => {
378
- const { cache, pub, year } = props
379
- const targeting = {
380
- content_placement: [`/journals/${pub.identifier.current}`],
381
- document_url: [`/journals/${pub.identifier.current}`],
382
- }
383
- return (
384
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
385
- <PublicationLanding publication={pub} year={year} href={'journals'} />
386
- </Shell>
387
- )
388
- }
389
- Publication.getInitialProps = async (ctx) => {
390
- const { query } = ctx
391
- const {
392
- query: { year },
393
- } = ctx
394
- const pub = await client.fetch(getQuery('publication'), query)
395
- const builder = imageUrlBuilder(client)
396
- const urlFor = (source) => {
397
- return builder.image(source)
398
- }
399
- pub.issues.map((issue) => {
400
- issue.thumbnail = urlFor(issue.thumbnail).url()
401
- })
402
- return { pub, year }
403
- }
404
- export default Publication
374
+ var _Set = unwrapExports(set$1);
375
+
376
+ /* usage & query
377
+ const Publication = (props) => {
378
+ const { cache, pub, year } = props
379
+ const targeting = {
380
+ content_placement: [`/journals/${pub.identifier.current}`],
381
+ document_url: [`/journals/${pub.identifier.current}`],
382
+ }
383
+ return (
384
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
385
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
386
+ </Shell>
387
+ )
388
+ }
389
+ Publication.getInitialProps = async (ctx) => {
390
+ const { query } = ctx
391
+ const {
392
+ query: { year },
393
+ } = ctx
394
+ const pub = await client.fetch(getQuery('publication'), query)
395
+ const builder = imageUrlBuilder(client)
396
+ const urlFor = (source) => {
397
+ return builder.image(source)
398
+ }
399
+ pub.issues.map((issue) => {
400
+ issue.thumbnail = urlFor(issue.thumbnail).url()
401
+ })
402
+ return { pub, year }
403
+ }
404
+ export default Publication
405
405
  */
406
406
 
407
407
  var generateContentPlacements = function generateContentPlacements(issues) {
@@ -531,32 +531,102 @@ var PublicationLanding = function PublicationLanding(props) {
531
531
  }, _callee2, this, [[1, 9]]);
532
532
  }))();
533
533
  }, []);
534
+ // function for filtering by year
535
+ var filterByYear = function filterByYear(year) {
536
+ return issueData.filter(function (issue) {
537
+ return issue.year == year;
538
+ });
539
+ };
540
+
541
+ //function for filtering by Content-Placement
542
+ var filterByCP = function filterByCP(contentPlacement) {
543
+ var issuesWithTM = issueData.filter(function (issue) {
544
+ return issue.taxonomyMapping;
545
+ });
546
+ return issuesWithTM.filter(function (issue) {
547
+ return issue.taxonomyMapping.find(function (tm) {
548
+ return tm.name == contentPlacement.name;
549
+ });
550
+ });
551
+ };
552
+
553
+ //function takes yearsArray and then assigns the object with year key with corresponding year data values
554
+ var assignDatabyYear = function assignDatabyYear() {
555
+ var data_by_year = {};
556
+ for (var i = 0; i < years.length; i++) {
557
+ data_by_year[years[i]] = sortedData[i];
558
+ }
559
+ return data_by_year;
560
+ };
561
+ var assignDatabyCP = function assignDatabyCP() {
562
+ var data_by_CP = {};
563
+ for (var i = 0; i < contentPlacements.length; i++) {
564
+ data_by_CP[contentPlacements[i].name] = sorted_Content_Placement[i];
565
+ }
566
+ return data_by_CP;
567
+ };
568
+
569
+ var sortedYearly = function sortedYearly() {
570
+ var dataArray = [];
571
+ for (var i = 0; i < years.length; i++) {
572
+ dataArray[i] = filterByYear(years[i]);
573
+ }
574
+ return dataArray;
575
+ };
576
+
577
+ var sortedCP = function sortedCP() {
578
+ var dataArray = [];
579
+ for (var i = 0; i < contentPlacements.length; i++) {
580
+ dataArray[i] = filterByCP(contentPlacements[i]);
581
+ }
582
+ return dataArray;
583
+ };
584
+
585
+ var sortByBoth = function sortByBoth() {
586
+ var sortedObj = {};
587
+ for (var i = 0; i < years.length; i++) {
588
+ var dataYear = filterByYear(years[i]);
589
+ sortedObj[years[i]] = dataYear;
590
+
591
+ var _loop = function _loop(j) {
592
+ sortedObj[years[i]][contentPlacements[j].name] = dataYear.filter(function (issue) {
593
+ return issue.taxonomyMapping && issue.taxonomyMapping.find(function (tm) {
594
+ return tm.name == contentPlacements[j].name;
595
+ });
596
+ });
597
+ };
598
+
599
+ for (var j = 0; j < contentPlacements.length; j++) {
600
+ _loop(j);
601
+ }
602
+ }
603
+ return sortedObj;
604
+ };
605
+
606
+ var dataByBoth = sortByBoth();
607
+
608
+ var sortedData = sortedYearly();
609
+
610
+ var sorted_Content_Placement = sortedCP();
611
+
612
+ var dataByYear = assignDatabyYear();
613
+
614
+ var dataByCP = assignDatabyCP();
534
615
 
535
616
  useEffect(function () {
536
617
  if (activeYear && activeContentPlacement && activeContentPlacement.id) {
537
618
  router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current + '?year=' + activeYear + '&cp=' + activeContentPlacement.id, { shallow: true });
538
- var filteredResult = issueData.filter(function (issue) {
539
- return issue.year === activeYear;
540
- }).filter(function (issue) {
541
- return issue.taxonomyMapping && issue.taxonomyMapping.find(function (tm) {
542
- return tm.identifier === activeContentPlacement.id;
543
- });
544
- });
619
+ var filteredResult = dataByBoth[activeYear][activeContentPlacement.name];
545
620
  setSortedIssues(filteredResult);
546
621
  } else if (activeYear) {
547
622
  router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current + '?year=' + activeYear, { shallow: true });
548
- var _filteredResult = issueData.filter(function (issue) {
549
- return issue.year === activeYear;
550
- });
551
- setSortedIssues(_filteredResult);
623
+
624
+ var filteredData = dataByYear[activeYear];
625
+ setSortedIssues(filteredData);
552
626
  } else if (activeContentPlacement && activeContentPlacement.id) {
553
627
  router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current + '?cp=' + activeContentPlacement.id, { shallow: true });
554
- var _filteredResult2 = issueData.filter(function (issue) {
555
- return issue.taxonomyMapping && issue.taxonomyMapping.find(function (tm) {
556
- return tm.identifier === activeContentPlacement.id;
557
- });
558
- });
559
- setSortedIssues(_filteredResult2);
628
+ var filteredPlacement = dataByCP[activeContentPlacement.name];
629
+ setSortedIssues(filteredPlacement);
560
630
  } else {
561
631
  router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current, { shallow: true });
562
632
  setSortedIssues(null);
@@ -575,7 +645,7 @@ var PublicationLanding = function PublicationLanding(props) {
575
645
  React.createElement(
576
646
  Row,
577
647
  null,
578
- publication && publication.issues && publication.issues.length > 0 && years.length > 0 && React.createElement(
648
+ issueData && issueData.length > 0 && years.length > 0 && React.createElement(
579
649
  Col,
580
650
  { className: 'flex-grow-0 mb-3' },
581
651
  React.createElement(
@@ -700,7 +770,7 @@ var PublicationLanding = function PublicationLanding(props) {
700
770
  )
701
771
  )
702
772
  );
703
- }) : issueData && issueData.length > 0 && issueData.map(function (issue, key) {
773
+ }) : !activeContentPlacement && !activeYear && issueData && issueData.length > 0 ? issueData.map(function (issue, key) {
704
774
  return React.createElement(
705
775
  Card,
706
776
  { key: key, className: 'issueCard' },
@@ -763,7 +833,11 @@ var PublicationLanding = function PublicationLanding(props) {
763
833
  )
764
834
  )
765
835
  );
766
- }),
836
+ }) : React.createElement(
837
+ 'em',
838
+ null,
839
+ 'New content coming soon, please check back later.'
840
+ ),
767
841
  React.createElement(
768
842
  'style',
769
843
  { jsx: 'true' },
@@ -1,40 +1,40 @@
1
- import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
2
- import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
3
- import { _ as _extends } from './extends-60e0e1c6.js';
1
+ import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
2
+ import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
3
+ import { _ as _extends } from './extends-31d65aba.js';
4
4
  import React, { useEffect, useState, useRef } from 'react';
5
5
  import { Container, Media } from 'react-bootstrap';
6
- import { i as imageUrlBuilder } from './index-0dbff1d1.js';
6
+ import { i as imageUrlBuilder } from './index-3f5c03b2.js';
7
7
  import { I as InfiniteScroll } from './index.es-c6222053.js';
8
8
  import { m as moment } from './moment-bc12cb97.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
10
10
  import { l as lib_3 } from './index-888f9253.js';
11
11
  import { useRouter } from 'next/router';
12
12
  import { L as LazyLoad } from './index-35bdcc81.js';
13
- import { m as main_43 } from './main-b5c5aac1.js';
13
+ import { m as main_40 } from './main-1450d277.js';
14
14
  import { c as clean_html_1 } from './entities-932b50cf.js';
15
- import { A as ADInfeed } from './ADInfeed-e1e18f87.js';
16
- import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
17
- import { l as lodash } from './lodash-f97fd99a.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-c6d2831b.js';
15
+ import { A as ADInfeed } from './ADInfeed-94817c40.js';
16
+ import { A as AuthorComponent } from './AuthorComponent-c7ff069f.js';
17
+ import { l as lodash } from './lodash-ad27652f.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-6124ee3c.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
22
- import './web.dom.iterable-4109ff68.js';
23
- import './es6.string.iterator-bc33758b.js';
24
- import './_to-object-b50e61c3.js';
25
- import './core.get-iterator-method-133dfacd.js';
26
- import './_iter-detect-7e5e5ce2.js';
27
- import './_object-pie-133f504a.js';
22
+ import './web.dom.iterable-035980f3.js';
23
+ import './es6.string.iterator-aa6068a3.js';
24
+ import './_to-object-97770c52.js';
25
+ import './core.get-iterator-method-d1d5ed02.js';
26
+ import './_iter-detect-48516cd3.js';
27
+ import './_object-pie-33c40e79.js';
28
28
  import 'react-dom';
29
29
  import 'prop-types';
30
30
  import 'react-bootstrap/Card';
31
31
  import './AdSlot.js';
32
- import './debounce-533d9748.js';
33
- import './isSymbol-a7e9aafe.js';
34
- import './toNumber-5aeba6e7.js';
32
+ import './debounce-9207d8ee.js';
33
+ import './isSymbol-1981418f.js';
34
+ import './toNumber-2f7a84cd.js';
35
35
  import './Beam.js';
36
- import './stringify-59c8f690.js';
37
- import './asyncToGenerator-7f8f9219.js';
36
+ import './stringify-d4839bab.js';
37
+ import './asyncToGenerator-585841c0.js';
38
38
  import './_library-528f1934.js';
39
39
  import './Segment.js';
40
40
 
@@ -763,7 +763,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
763
763
  React.createElement(
764
764
  'div',
765
765
  null,
766
- main_43 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
766
+ main_40 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
767
767
  )
768
768
  )
769
769
  );
@@ -1269,7 +1269,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1269
1269
  React.createElement(
1270
1270
  'div',
1271
1271
  null,
1272
- main_43 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
1272
+ main_40 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
1273
1273
  )
1274
1274
  )
1275
1275
  );
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './moment-bc12cb97.js';
3
- import { i as imageUrlBuilder } from './index-0dbff1d1.js';
3
+ import { i as imageUrlBuilder } from './index-3f5c03b2.js';
4
4
  import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
5
5
  import './_commonjsHelpers-0c4b6f40.js';
6
6
  import './iconBase-602d52fe.js';
@@ -1,40 +1,40 @@
1
1
  import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
3
  import 'react-bootstrap/Media';
4
- import { i as imageUrlBuilder } from './index-0dbff1d1.js';
4
+ import { i as imageUrlBuilder } from './index-3f5c03b2.js';
5
5
  import { L as LazyLoad } from './index-35bdcc81.js';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
7
7
  import 'react-dom';
8
8
  import 'prop-types';
9
9
 
10
- /*
11
- Sample query
12
- let references = ''
13
- if(article.taxonomyMapping.length > 0){
14
- article.taxonomyMapping.forEach((ref, index) => {
15
- references = references + `references('${ref._ref}') `
16
- if(index+1 !== article.taxonomyMapping.length){
17
- references = references + ` && `
18
- }
19
- })
20
- }
21
-
22
- const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
23
- ...,
24
- title,
25
- summary,
26
- thumbnail,
27
- url,
28
- published,
29
- authorMapping[]->,
30
- contentCategory->
31
- }`
32
- const relatedArticles = await client.fetch(relatedArticlesQuery)
33
-
34
- Sample usage
35
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
36
-
37
-
10
+ /*
11
+ Sample query
12
+ let references = ''
13
+ if(article.taxonomyMapping.length > 0){
14
+ article.taxonomyMapping.forEach((ref, index) => {
15
+ references = references + `references('${ref._ref}') `
16
+ if(index+1 !== article.taxonomyMapping.length){
17
+ references = references + ` && `
18
+ }
19
+ })
20
+ }
21
+
22
+ const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
23
+ ...,
24
+ title,
25
+ summary,
26
+ thumbnail,
27
+ url,
28
+ published,
29
+ authorMapping[]->,
30
+ contentCategory->
31
+ }`
32
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
33
+
34
+ Sample usage
35
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
36
+
37
+
38
38
  */
39
39
  var RelatedContent = function RelatedContent(props) {
40
40
  var client = props.client,
@@ -14,16 +14,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14
14
  _ref$className = _ref.className,
15
15
  className = _ref$className === undefined ? '' : _ref$className;
16
16
 
17
- /*
18
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
19
- example:
20
- <RelatedTopicDropdown
21
- page='/clinical'
22
- exclude="clinical"
23
- className='mb-3'
24
- parentTaxonomy={props.parentTaxonomy}
25
- subTaxonomies={props.subTaxonomies}
26
- />
17
+ /*
18
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
19
+ example:
20
+ <RelatedTopicDropdown
21
+ page='/clinical'
22
+ exclude="clinical"
23
+ className='mb-3'
24
+ parentTaxonomy={props.parentTaxonomy}
25
+ subTaxonomies={props.subTaxonomies}
26
+ />
27
27
  */
28
28
  if (subTaxonomies.length === 0 && parentTaxonomy) {
29
29
  if (parentTaxonomy.identifier == exclude) {
@@ -1,13 +1,13 @@
1
- import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
1
+ import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
2
2
  import React, { useState } from 'react';
3
3
  import Form from 'react-bootstrap/Form';
4
4
  import FormControl from 'react-bootstrap/FormControl';
5
5
  import Button from 'react-bootstrap/Button';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
7
- import './web.dom.iterable-4109ff68.js';
8
- import './es6.string.iterator-bc33758b.js';
9
- import './_to-object-b50e61c3.js';
10
- import './core.get-iterator-method-133dfacd.js';
7
+ import './web.dom.iterable-035980f3.js';
8
+ import './es6.string.iterator-aa6068a3.js';
9
+ import './_to-object-97770c52.js';
10
+ import './core.get-iterator-method-d1d5ed02.js';
11
11
 
12
12
  var Search = function Search(props) {
13
13
  var _props$placeholder = props.placeholder,
@@ -1,11 +1,11 @@
1
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
2
2
  import './_commonjsHelpers-0c4b6f40.js';
3
- import './es6.string.iterator-bc33758b.js';
4
- import './_to-object-b50e61c3.js';
5
- import './web.dom.iterable-4109ff68.js';
3
+ import './es6.string.iterator-aa6068a3.js';
4
+ import './_to-object-97770c52.js';
5
+ import './web.dom.iterable-035980f3.js';
6
6
  import './_library-528f1934.js';
7
- import './core.get-iterator-method-133dfacd.js';
8
- import './_iter-detect-7e5e5ce2.js';
7
+ import './core.get-iterator-method-d1d5ed02.js';
8
+ import './_iter-detect-48516cd3.js';
9
9
 
10
10
  require("babel-polyfill");
11
11
 
@@ -1,26 +1,26 @@
1
- import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
2
- import { _ as _extends } from './extends-60e0e1c6.js';
3
- import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
1
+ import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
2
+ import { _ as _extends } from './extends-31d65aba.js';
3
+ import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
4
4
  import React, { useState, useEffect, useRef } from 'react';
5
5
  import { useRouter } from 'next/router';
6
6
  import { l as lib_3 } from './index-888f9253.js';
7
7
  import { I as InfiniteScroll } from './index.es-c6222053.js';
8
- import { S as SeriesSlider } from './SeriesSlider-8414085b.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-291e1c9e.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
- import './es6.string.iterator-bc33758b.js';
12
- import './_to-object-b50e61c3.js';
13
- import './_iter-detect-7e5e5ce2.js';
14
- import './core.get-iterator-method-133dfacd.js';
15
- import './_object-pie-133f504a.js';
16
- import './web.dom.iterable-4109ff68.js';
11
+ import './es6.string.iterator-aa6068a3.js';
12
+ import './_to-object-97770c52.js';
13
+ import './_iter-detect-48516cd3.js';
14
+ import './core.get-iterator-method-d1d5ed02.js';
15
+ import './_object-pie-33c40e79.js';
16
+ import './web.dom.iterable-035980f3.js';
17
17
  import 'prop-types';
18
18
  import './index-c7e2ac95.js';
19
19
  import './index-35bdcc81.js';
20
20
  import 'react-dom';
21
21
  import './smoothscroll-fa4e3f8c.js';
22
- import './index-0dbff1d1.js';
23
- import './main-b5c5aac1.js';
22
+ import './index-3f5c03b2.js';
23
+ import './main-1450d277.js';
24
24
 
25
25
  var usePrevious = function usePrevious(value) {
26
26
  var ref = useRef();