@mjhls/mjh-framework 1.0.881 → 1.0.883-beta.0

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 (288) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +11 -11
  4. package/dist/cjs/AD300x250x600.js +11 -11
  5. package/dist/cjs/AD728x90.js +12 -12
  6. package/dist/cjs/ADFloatingFooter.js +10 -10
  7. package/dist/cjs/ADFooter.js +3 -3
  8. package/dist/cjs/ADGutter.js +10 -10
  9. package/dist/cjs/{ADInfeed-4f661172.js → ADInfeed-2e48af77.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +10 -10
  11. package/dist/cjs/ADSponsoredResources.js +10 -10
  12. package/dist/cjs/ADWebcast.js +10 -10
  13. package/dist/cjs/ADWelcome.js +10 -10
  14. package/dist/cjs/{ADlgInfeed-6242e5b5.js → ADlgInfeed-c39c7131.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +4 -4
  16. package/dist/cjs/AdSlot.js +10 -10
  17. package/dist/cjs/AdSlotsProvider.js +903 -10
  18. package/dist/cjs/AlgoliaSearch.js +264 -391
  19. package/dist/cjs/AlphabeticList.js +6 -6
  20. package/dist/cjs/ArticleCarousel.js +6 -6
  21. package/dist/cjs/ArticleProgramLandingPage.js +25 -25
  22. package/dist/cjs/ArticleSeriesLandingPage.js +22 -22
  23. package/dist/cjs/ArticleSeriesListing.js +16 -16
  24. package/dist/cjs/Auth.js +1297 -469
  25. package/dist/cjs/AuthWrapper.js +390 -1697
  26. package/dist/cjs/{AuthorComponent-421d5ec1.js → AuthorComponent-02e827ae.js} +1 -1
  27. package/dist/cjs/Beam.js +5 -5
  28. package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
  29. package/dist/cjs/Breadcrumbs.js +3 -3
  30. package/dist/cjs/CMEDeck.js +12 -12
  31. package/dist/cjs/Column2.js +6 -6
  32. package/dist/cjs/Column3.js +14 -14
  33. package/dist/cjs/ConferenceArticleCard.js +20 -20
  34. package/dist/cjs/DeckContent.js +30 -30
  35. package/dist/cjs/DeckQueue.js +19 -19
  36. package/dist/cjs/DeckQueuePaginated.js +339 -0
  37. package/dist/cjs/{Dfp-ab12cd55.js → Dfp-f492f985.js} +8 -8
  38. package/dist/cjs/EventsDeck.js +31 -31
  39. package/dist/cjs/ExternalResources.js +25 -25
  40. package/dist/cjs/Feature.js +6 -6
  41. package/dist/cjs/ForbesHero.js +6 -6
  42. package/dist/cjs/GridContent.js +27 -27
  43. package/dist/cjs/GridHero.js +7 -7
  44. package/dist/cjs/GroupDeck.js +6 -6
  45. package/dist/cjs/HamMagazine.js +23 -23
  46. package/dist/cjs/Hero.js +5 -5
  47. package/dist/cjs/HighlightenVideo.js +1 -1
  48. package/dist/cjs/HorizontalArticleListing.js +24 -24
  49. package/dist/cjs/HorizontalHero.js +6 -6
  50. package/dist/cjs/IssueContentDeck.js +6 -6
  51. package/dist/cjs/IssueDeck.js +8 -8
  52. package/dist/cjs/IssueLanding.js +58 -58
  53. package/dist/cjs/KMTracker.js +15 -15
  54. package/dist/cjs/LeftNav.js +10 -10
  55. package/dist/cjs/MasterDeck.js +30 -30
  56. package/dist/cjs/MasterDeckPaginated.js +443 -0
  57. package/dist/cjs/MediaSeriesCard-c6a6bfd3.js +9411 -0
  58. package/dist/cjs/MediaSeriesLanding.js +53 -9534
  59. package/dist/cjs/MediaSeriesLandingPaginated.js +521 -0
  60. package/dist/cjs/NavDvm.js +5 -5
  61. package/dist/cjs/NavMagazine.js +22 -22
  62. package/dist/cjs/NavNative.js +19 -19
  63. package/dist/cjs/OncliveHero.js +6 -5
  64. package/dist/cjs/OncliveLargeHero.js +7 -7
  65. package/dist/cjs/PageFilter.js +3 -3
  66. package/dist/cjs/Pagination-f3ef7bc1.js +59 -0
  67. package/dist/cjs/PartnerDetailListing.js +1233 -160
  68. package/dist/cjs/PdfDownload.js +1 -1
  69. package/dist/cjs/PopUpModal.js +3 -3
  70. package/dist/cjs/PubSection.js +19 -19
  71. package/dist/cjs/PubToc.js +5 -5
  72. package/dist/cjs/PublicationDeck.js +5 -5
  73. package/dist/cjs/PublicationLanding.js +34 -34
  74. package/dist/cjs/QueueDeckExpanded.js +21 -21
  75. package/dist/cjs/QueueDeckExpandedPaginated.js +1377 -0
  76. package/dist/cjs/RecentNews.js +1 -1
  77. package/dist/cjs/RelatedContent.js +33 -33
  78. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  79. package/dist/cjs/Search.js +3 -3
  80. package/dist/cjs/Segment.js +4 -4
  81. package/dist/cjs/SeriesListingDeck.js +10 -10
  82. package/dist/cjs/{SeriesSlider-372e418f.js → SeriesSlider-49b81b0b.js} +11 -11
  83. package/dist/cjs/SideFooter.js +8 -8
  84. package/dist/cjs/{SocialSearchComponent-80a2130a.js → SocialSearchComponent-e8477ca3.js} +7 -7
  85. package/dist/cjs/TaxonomyCard.js +6 -6
  86. package/dist/cjs/TaxonomyDescription.js +24 -24
  87. package/dist/cjs/TemplateNormal.js +16 -16
  88. package/dist/cjs/ThumbnailCard.js +5 -5
  89. package/dist/cjs/Ustream.js +10 -10
  90. package/dist/cjs/VerticalHero.js +5 -5
  91. package/dist/cjs/VideoProgramLandingPage.js +25 -25
  92. package/dist/cjs/VideoSeriesCard.js +9 -9
  93. package/dist/cjs/VideoSeriesFilter.js +5 -5
  94. package/dist/cjs/VideoSeriesLandingPage.js +23 -23
  95. package/dist/cjs/VideoSeriesListing.js +16 -16
  96. package/dist/cjs/View.js +63 -63
  97. package/dist/cjs/YahooHero.js +7 -7
  98. package/dist/cjs/YoutubeGroup.js +14 -14
  99. package/dist/cjs/{_is-array-bd978497.js → _is-array-aa52fa1e.js} +1 -1
  100. package/dist/cjs/{_iter-detect-ee3d4802.js → _iter-detect-05795553.js} +1 -1
  101. package/dist/cjs/{_object-sap-fee50a62.js → _object-sap-171b9ea5.js} +1 -1
  102. package/dist/cjs/{_object-to-array-18379aba.js → _object-to-array-9bac8737.js} +1 -1
  103. package/dist/cjs/{asyncToGenerator-15014394.js → asyncToGenerator-df19209d.js} +3 -3
  104. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  105. package/dist/cjs/{core.get-iterator-method-5cb3af28.js → core.get-iterator-method-f3c44602.js} +2 -2
  106. package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
  107. package/dist/cjs/{define-property-530a5e9e.js → define-property-21887c62.js} +1 -1
  108. package/dist/cjs/{defineProperty-5ca424cd.js → defineProperty-77a37684.js} +1 -1
  109. package/dist/cjs/{entities-fb0c6568.js → entities-310b46ee.js} +0 -4
  110. package/dist/cjs/{extends-1d905ddb.js → extends-eed4f016.js} +1 -1
  111. package/dist/cjs/faundadb.js +5 -5
  112. package/dist/cjs/getRelatedArticle.js +4 -4
  113. package/dist/cjs/getRootDocGroup.js +4 -4
  114. package/dist/cjs/getSerializers.js +24 -24
  115. package/dist/cjs/{getTargeting-41f2f52d.js → getTargeting-8874437b.js} +11 -11
  116. package/dist/cjs/getTargeting.js +5 -5
  117. package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
  118. package/dist/cjs/{index-d3451292.js → index-396089c0.js} +510 -514
  119. package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
  120. package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
  121. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  122. package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
  123. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  124. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  125. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  126. package/dist/cjs/index.js +41 -43
  127. package/dist/cjs/inherits-8d29278d.js +110 -0
  128. package/dist/cjs/{inherits-337c73a7.js → inherits-cba9c846.js} +7 -7
  129. package/dist/cjs/{keys-91f31941.js → keys-d207942e.js} +2 -2
  130. package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
  131. package/dist/cjs/main-02daeefe.js +862 -0
  132. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  133. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  134. package/dist/cjs/{slicedToArray-0a78cdf3.js → slicedToArray-f6d4eaa8.js} +2 -2
  135. package/dist/cjs/{stringify-13405ce2.js → stringify-bbc68047.js} +1 -1
  136. package/dist/cjs/timeDifferenceCalc.js +1 -1
  137. package/dist/cjs/{toConsumableArray-39fd0757.js → toConsumableArray-c9b8a0d0.js} +2 -2
  138. package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
  139. package/dist/cjs/{typeof-3dd6d3df.js → typeof-5f52cf64.js} +3 -3
  140. package/dist/cjs/urlFor.js +4 -4
  141. package/dist/cjs/{ustream-api-5619c1fa.js → ustream-api-9ebe112f.js} +4 -4
  142. package/dist/cjs/{web.dom.iterable-a9359910.js → web.dom.iterable-e34bf324.js} +1 -1
  143. package/dist/esm/AD.js +1 -1
  144. package/dist/esm/AD300x250.js +11 -11
  145. package/dist/esm/AD300x250x600.js +11 -11
  146. package/dist/esm/AD728x90.js +12 -12
  147. package/dist/esm/ADFloatingFooter.js +10 -10
  148. package/dist/esm/ADFooter.js +3 -3
  149. package/dist/esm/ADGutter.js +10 -10
  150. package/dist/esm/{ADInfeed-7db96917.js → ADInfeed-d767ebe2.js} +3 -3
  151. package/dist/esm/ADSkyscraper.js +10 -10
  152. package/dist/esm/ADSponsoredResources.js +10 -10
  153. package/dist/esm/ADWebcast.js +10 -10
  154. package/dist/esm/ADWelcome.js +10 -10
  155. package/dist/esm/{ADlgInfeed-a3931e68.js → ADlgInfeed-cee95aa2.js} +1 -1
  156. package/dist/esm/AccordionPanel.js +4 -4
  157. package/dist/esm/AdSlot.js +10 -10
  158. package/dist/esm/AdSlotsProvider.js +905 -13
  159. package/dist/esm/AlgoliaSearch.js +32 -159
  160. package/dist/esm/AlphabeticList.js +6 -6
  161. package/dist/esm/ArticleCarousel.js +6 -6
  162. package/dist/esm/ArticleProgramLandingPage.js +25 -25
  163. package/dist/esm/ArticleSeriesLandingPage.js +22 -22
  164. package/dist/esm/ArticleSeriesListing.js +18 -18
  165. package/dist/esm/Auth.js +1297 -469
  166. package/dist/esm/AuthWrapper.js +385 -1692
  167. package/dist/esm/{AuthorComponent-2277b67c.js → AuthorComponent-e6f95c2f.js} +1 -1
  168. package/dist/esm/Beam.js +5 -5
  169. package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
  170. package/dist/esm/Breadcrumbs.js +3 -3
  171. package/dist/esm/CMEDeck.js +12 -12
  172. package/dist/esm/Column1.js +4 -4
  173. package/dist/esm/Column2.js +11 -11
  174. package/dist/esm/Column3.js +20 -20
  175. package/dist/esm/ConferenceArticleCard.js +20 -20
  176. package/dist/esm/DeckContent.js +45 -45
  177. package/dist/esm/DeckQueue.js +37 -37
  178. package/dist/esm/DeckQueuePaginated.js +333 -0
  179. package/dist/esm/{Dfp-d6a5629f.js → Dfp-f867d061.js} +5 -5
  180. package/dist/esm/EventsDeck.js +57 -57
  181. package/dist/esm/ExternalResources.js +27 -27
  182. package/dist/esm/Feature.js +6 -6
  183. package/dist/esm/ForbesHero.js +6 -6
  184. package/dist/esm/GridContent.js +71 -71
  185. package/dist/esm/GridHero.js +7 -7
  186. package/dist/esm/GroupDeck.js +6 -6
  187. package/dist/esm/HamMagazine.js +26 -26
  188. package/dist/esm/Hero.js +5 -5
  189. package/dist/esm/HighlightenVideo.js +1 -1
  190. package/dist/esm/HorizontalArticleListing.js +24 -24
  191. package/dist/esm/HorizontalHero.js +6 -6
  192. package/dist/esm/IssueContentDeck.js +20 -20
  193. package/dist/esm/IssueDeck.js +30 -30
  194. package/dist/esm/IssueLanding.js +58 -58
  195. package/dist/esm/KMTracker.js +15 -15
  196. package/dist/esm/LeftNav.js +10 -10
  197. package/dist/esm/MasterDeck.js +33 -33
  198. package/dist/esm/MasterDeckPaginated.js +437 -0
  199. package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
  200. package/dist/esm/MediaSeriesLanding.js +53 -9533
  201. package/dist/esm/MediaSeriesLandingPaginated.js +516 -0
  202. package/dist/esm/NavDvm.js +8 -8
  203. package/dist/esm/NavMagazine.js +25 -25
  204. package/dist/esm/NavNative.js +24 -24
  205. package/dist/esm/OncliveHero.js +6 -5
  206. package/dist/esm/OncliveLargeHero.js +7 -7
  207. package/dist/esm/PageFilter.js +3 -3
  208. package/dist/esm/Pagination-a24855d4.js +54 -0
  209. package/dist/esm/PartnerDetailListing.js +1234 -161
  210. package/dist/esm/PdfDownload.js +1 -1
  211. package/dist/esm/PopUpModal.js +3 -3
  212. package/dist/esm/PubSection.js +19 -19
  213. package/dist/esm/PubToc.js +5 -5
  214. package/dist/esm/PublicationDeck.js +23 -23
  215. package/dist/esm/PublicationLanding.js +56 -56
  216. package/dist/esm/QueueDeckExpanded.js +21 -21
  217. package/dist/esm/QueueDeckExpandedPaginated.js +1371 -0
  218. package/dist/esm/RecentNews.js +1 -1
  219. package/dist/esm/RelatedContent.js +33 -33
  220. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  221. package/dist/esm/RolesDeck.js +12 -12
  222. package/dist/esm/Search.js +5 -5
  223. package/dist/esm/Segment.js +4 -4
  224. package/dist/esm/SeriesListingDeck.js +10 -10
  225. package/dist/esm/{SeriesSlider-88c4133d.js → SeriesSlider-ce19fa25.js} +11 -11
  226. package/dist/esm/SideFooter.js +8 -8
  227. package/dist/esm/{SocialSearchComponent-7f3d6531.js → SocialSearchComponent-dca69151.js} +10 -10
  228. package/dist/esm/TaxonomyCard.js +22 -22
  229. package/dist/esm/TaxonomyDescription.js +24 -24
  230. package/dist/esm/TemplateNormal.js +19 -19
  231. package/dist/esm/ThumbnailCard.js +5 -5
  232. package/dist/esm/Ustream.js +10 -10
  233. package/dist/esm/VerticalHero.js +5 -5
  234. package/dist/esm/VideoProgramLandingPage.js +30 -30
  235. package/dist/esm/VideoSeriesCard.js +8 -8
  236. package/dist/esm/VideoSeriesFilter.js +5 -5
  237. package/dist/esm/VideoSeriesLandingPage.js +22 -22
  238. package/dist/esm/VideoSeriesListing.js +19 -19
  239. package/dist/esm/View.js +38 -38
  240. package/dist/esm/YahooHero.js +7 -7
  241. package/dist/esm/YoutubeGroup.js +14 -14
  242. package/dist/esm/{_is-array-8914b83f.js → _is-array-4df618a6.js} +1 -1
  243. package/dist/esm/{_iter-detect-13e31915.js → _iter-detect-130ee549.js} +1 -1
  244. package/dist/esm/{_object-sap-fc9da7e8.js → _object-sap-8b8ea5a9.js} +1 -1
  245. package/dist/esm/{_object-to-array-ee8f6d98.js → _object-to-array-c54dd835.js} +1 -1
  246. package/dist/esm/{asyncToGenerator-40371743.js → asyncToGenerator-7bf8bc4d.js} +3 -3
  247. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  248. package/dist/esm/{core.get-iterator-method-0fb60d94.js → core.get-iterator-method-86d4db69.js} +2 -2
  249. package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
  250. package/dist/esm/{define-property-73034847.js → define-property-6d26cb48.js} +1 -1
  251. package/dist/esm/{defineProperty-e66a2c7c.js → defineProperty-d7d9b577.js} +1 -1
  252. package/dist/esm/{entities-731f3fdb.js → entities-7cc3bf45.js} +0 -4
  253. package/dist/esm/{extends-9a61581c.js → extends-5b1796d4.js} +1 -1
  254. package/dist/esm/faundadb.js +5 -5
  255. package/dist/esm/getRelatedArticle.js +4 -4
  256. package/dist/esm/getRootDocGroup.js +4 -4
  257. package/dist/esm/getSerializers.js +24 -24
  258. package/dist/esm/{getTargeting-e6820763.js → getTargeting-277c801e.js} +11 -11
  259. package/dist/esm/getTargeting.js +5 -5
  260. package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
  261. package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
  262. package/dist/esm/{index-cf149780.js → index-d1476645.js} +529 -533
  263. package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
  264. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  265. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  266. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  267. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  268. package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
  269. package/dist/esm/index.js +46 -48
  270. package/dist/esm/{inherits-eeaf6740.js → inherits-2409637d.js} +4 -4
  271. package/dist/esm/inherits-77d5e4fc.js +101 -0
  272. package/dist/esm/{keys-a5ffafe7.js → keys-69989821.js} +2 -2
  273. package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
  274. package/dist/esm/main-c0612122.js +851 -0
  275. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  276. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  277. package/dist/esm/{slicedToArray-9c3bb613.js → slicedToArray-67a08c9c.js} +2 -2
  278. package/dist/esm/{stringify-ebc16384.js → stringify-70b72959.js} +1 -1
  279. package/dist/esm/timeDifferenceCalc.js +1 -1
  280. package/dist/esm/{toConsumableArray-e333293f.js → toConsumableArray-32282905.js} +2 -2
  281. package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
  282. package/dist/esm/{typeof-938ae770.js → typeof-c05a82ba.js} +3 -3
  283. package/dist/esm/urlFor.js +4 -4
  284. package/dist/esm/{ustream-api-d325d196.js → ustream-api-4c4fe0ba.js} +4 -4
  285. package/dist/esm/{web.dom.iterable-6b037ff9.js → web.dom.iterable-f8f967cd.js} +1 -1
  286. package/package.json +112 -112
  287. package/dist/cjs/main-bc7d4bf8.js +0 -972
  288. package/dist/esm/main-ede573ee.js +0 -961
@@ -1,43 +1,43 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './core.get-iterator-method-0fb60d94.js';
2
+ import './core.get-iterator-method-86d4db69.js';
3
3
  import './_library-528f1934.js';
4
- import './_iter-detect-13e31915.js';
5
- import { _ as _toConsumableArray } from './toConsumableArray-e333293f.js';
4
+ import './_iter-detect-130ee549.js';
5
+ import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
6
6
  import './_object-pie-33c40e79.js';
7
- import { _ as _extends } from './extends-9a61581c.js';
8
- import './_object-sap-fc9da7e8.js';
9
- import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-eeaf6740.js';
10
- import './define-property-73034847.js';
11
- import './web.dom.iterable-6b037ff9.js';
12
- import './typeof-938ae770.js';
13
- import './_is-array-8914b83f.js';
7
+ import { _ as _extends } from './extends-5b1796d4.js';
8
+ import './_object-sap-8b8ea5a9.js';
9
+ import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-2409637d.js';
10
+ import './define-property-6d26cb48.js';
11
+ import './web.dom.iterable-f8f967cd.js';
12
+ import './typeof-c05a82ba.js';
13
+ import './_is-array-4df618a6.js';
14
14
  import React__default from 'react';
15
15
  import './events-6c3a7a63.js';
16
16
  import { l as lib_3 } from './index-41a678ea.js';
17
17
  import 'prop-types';
18
- import Container$1 from 'react-bootstrap/Container';
18
+ import Container from 'react-bootstrap/Container';
19
19
  import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
21
  import 'react-bootstrap/Card';
22
- import './moment-b6f49411.js';
22
+ import './moment-e2f9b20c.js';
23
23
  import { withRouter } from 'next/router';
24
24
  import './isSymbol-1981418f.js';
25
- import { d as debounce_1 } from './debounce-89969f66.js';
26
- import './toNumber-e3dcad26.js';
27
- import { I as InfiniteScroll } from './index.es-a6137319.js';
25
+ import { d as debounce_1 } from './debounce-9207d8ee.js';
26
+ import './toNumber-2f7a84cd.js';
27
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
28
28
  import 'react-dom';
29
29
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
30
- import './slicedToArray-9c3bb613.js';
31
- import './index-f7fdcc91.js';
32
- import './main-ede573ee.js';
33
- import './stringify-ebc16384.js';
34
- import { _ as _Promise } from './asyncToGenerator-40371743.js';
30
+ import './slicedToArray-67a08c9c.js';
31
+ import './index-73819142.js';
32
+ import './main-c0612122.js';
33
+ import './stringify-70b72959.js';
34
+ import { _ as _Promise } from './asyncToGenerator-7bf8bc4d.js';
35
35
  import './Segment.js';
36
36
  import './Beam.js';
37
37
  import './AdSlot.js';
38
- import { A as ADInfeed } from './ADInfeed-7db96917.js';
39
- import { l as lodash } from './lodash-a818d390.js';
40
- import { A as ADlgInfeed } from './ADlgInfeed-a3931e68.js';
38
+ import { A as ADInfeed } from './ADInfeed-d767ebe2.js';
39
+ import { l as lodash } from './lodash-17fdfebb.js';
40
+ import { A as ADlgInfeed } from './ADlgInfeed-cee95aa2.js';
41
41
 
42
42
  var MasterDeck = function (_React$Component) {
43
43
  _inherits(MasterDeck, _React$Component);
@@ -223,14 +223,14 @@ var MasterDeck = function (_React$Component) {
223
223
  }
224
224
 
225
225
  // please leave this for later debug purpose : Yong Jun.
226
- /* console.log('page change reported', {
227
- currentPage: currentPage,
228
- pageNumber: pageNumber,
229
- pathname: pathname,
230
- path: path,
231
- newPath: newPath,
232
- firstPage: pageNumber === 1,
233
- queryString: queryString
226
+ /* console.log('page change reported', {
227
+ currentPage: currentPage,
228
+ pageNumber: pageNumber,
229
+ pathname: pathname,
230
+ path: path,
231
+ newPath: newPath,
232
+ firstPage: pageNumber === 1,
233
+ queryString: queryString
234
234
  }) */
235
235
 
236
236
  if (pageview) {
@@ -489,7 +489,7 @@ var MasterDeck = function (_React$Component) {
489
489
  InfiniteScroll,
490
490
  { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
491
491
  React__default.createElement(
492
- Container$1,
492
+ Container,
493
493
  null,
494
494
  this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
495
495
  )
@@ -503,7 +503,7 @@ var MasterDeck = function (_React$Component) {
503
503
  React__default.Fragment,
504
504
  null,
505
505
  React__default.createElement(
506
- Container$1,
506
+ Container,
507
507
  null,
508
508
  this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
509
509
  ),
@@ -0,0 +1,437 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import './core.get-iterator-method-86d4db69.js';
3
+ import './_library-528f1934.js';
4
+ import './_iter-detect-130ee549.js';
5
+ import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
6
+ import './_object-pie-33c40e79.js';
7
+ import { _ as _extends } from './extends-5b1796d4.js';
8
+ import './_object-sap-8b8ea5a9.js';
9
+ import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-2409637d.js';
10
+ import './define-property-6d26cb48.js';
11
+ import './web.dom.iterable-f8f967cd.js';
12
+ import './typeof-c05a82ba.js';
13
+ import './_is-array-4df618a6.js';
14
+ import React__default from 'react';
15
+ import './events-6c3a7a63.js';
16
+ import { l as lib_3 } from './index-41a678ea.js';
17
+ import 'prop-types';
18
+ import Container from 'react-bootstrap/Container';
19
+ import 'react-bootstrap/Card';
20
+ import { withRouter } from 'next/router';
21
+ import './isSymbol-1981418f.js';
22
+ import './debounce-9207d8ee.js';
23
+ import './toNumber-2f7a84cd.js';
24
+ import './slicedToArray-67a08c9c.js';
25
+ import { m as main_36 } from './main-c0612122.js';
26
+ import { _ as _JSON$stringify } from './stringify-70b72959.js';
27
+ import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './asyncToGenerator-7bf8bc4d.js';
28
+ import './Segment.js';
29
+ import './Beam.js';
30
+ import './AdSlot.js';
31
+ import { A as ADInfeed } from './ADInfeed-d767ebe2.js';
32
+ import { l as lodash } from './lodash-17fdfebb.js';
33
+ import { A as ADlgInfeed } from './ADlgInfeed-cee95aa2.js';
34
+ import Spinner from 'react-bootstrap/Spinner';
35
+ import { P as Pagination } from './Pagination-a24855d4.js';
36
+
37
+ var MasterDeck = function (_React$Component) {
38
+ _inherits(MasterDeck, _React$Component);
39
+
40
+ function MasterDeck() {
41
+ var _ref,
42
+ _this2 = this;
43
+
44
+ var _temp, _this, _ret;
45
+
46
+ _classCallCheck(this, MasterDeck);
47
+
48
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
49
+ args[_key] = arguments[_key];
50
+ }
51
+
52
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || _Object$getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.data = _this.props.dataRecord || [], _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.isSeriesLanding = _this.props.isSeriesLanding ? _this.props.isSeriesLanding : false, _this.state = {
53
+ isDataLoading: false,
54
+ data: _this.data,
55
+ prevData: _this.data,
56
+ currentPage: _this.props.currentPage || 1,
57
+ dataRemapped: !_this.props.showBI || !_this.props.brandInsightAd,
58
+ itemsPerPage: _this.props.params ? _this.props.params.to - _this.props.params.from : 2,
59
+ mobileView: false
60
+ }, _this.seoPagination = function (pageNumber) {
61
+ var _this$props = _this.props,
62
+ pageview = _this$props.pageview,
63
+ router = _this$props.router;
64
+
65
+ var path = router.asPath;
66
+ var qrIndex = path.indexOf('?');
67
+ var pathname = router.pathname;
68
+ var queryString = '';
69
+
70
+ if (qrIndex > 0) {
71
+ path = path.substring(1, qrIndex);
72
+
73
+ var partialQS = router.asPath.substring(qrIndex + 1);
74
+ var partialQSArr = partialQS.split('&');
75
+
76
+ // exclude page=xxx from query string
77
+ partialQSArr.map(function (item) {
78
+ var itemArr = item.split('=');
79
+ var key = itemArr[0];
80
+ var val = itemArr[1];
81
+
82
+ if (key !== 'page') {
83
+ queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
84
+ }
85
+ });
86
+ }
87
+
88
+ if (queryString.length > 0) {
89
+ path += '?' + queryString;
90
+ }
91
+
92
+ pageNumber = parseInt(pageNumber);
93
+
94
+ if (path[0] !== '/') {
95
+ path = '/' + path;
96
+ }
97
+ var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
98
+ if (window.location.href.includes('?')) {
99
+ if (window.location.href.includes('?page')) {
100
+ newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
101
+ } else {
102
+ newPath = pageNumber === 1 ? '' + path : path + '&page=' + pageNumber;
103
+ }
104
+ }
105
+
106
+ // please leave this for later debug purpose : Yong Jun.
107
+ /* console.log('page change reported', {
108
+ currentPage: currentPage,
109
+ pageNumber: pageNumber,
110
+ pathname: pathname,
111
+ path: path,
112
+ newPath: newPath,
113
+ firstPage: pageNumber === 1,
114
+ queryString: queryString
115
+ }) */
116
+
117
+ if (pageview) {
118
+ pageview(newPath);
119
+ }
120
+
121
+ router.push(pathname, newPath, {
122
+ shallow: true
123
+ });
124
+ }, _this.cardLoader = function (_ref2) {
125
+ var variant = _ref2.variant,
126
+ brandInsightAd = _ref2.brandInsightAd,
127
+ showBI = _ref2.showBI,
128
+ lgInfeedAd = _ref2.lgInfeedAd;
129
+
130
+ var numberOfItemsBeforeAd = 6;
131
+ var data = _this.state.data;
132
+ var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
133
+ return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
134
+ };
135
+ // Need to pass flag "lgInfeedAd={true}" along with brandInsightAd from site level for large infeed-ad to render
136
+ // Checking lgInfeedAd flag in desktop view ( window >= 1400px ).
137
+ // Integrating large infeed AD
138
+ if (lgInfeedAd && brandInsightAd && typeof window !== 'undefined' && window.innerWidth >= 1400) {
139
+ var lgInfeed = {
140
+ _type: 'lg-infeed',
141
+ adUnit: brandInsightAd.adUnit,
142
+ className: 'lg-infeed',
143
+ networkID: brandInsightAd.networkID,
144
+ sizes: [728, 90],
145
+ sizeMapping: [{
146
+ viewport: [1400, 0],
147
+ sizes: [[728, 90]]
148
+ }, { viewport: [0, 0], sizes: [] }],
149
+ targeting: {
150
+ content_placement: brandInsightAd.targeting.content_placement,
151
+ document_url: brandInsightAd.targeting.document_url,
152
+ rootDocumentGroup: brandInsightAd.targeting.rootDocumentGroup
153
+ },
154
+ /* Passing refresh flag */
155
+ refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
156
+ };
157
+
158
+ var chunks = lodash.chunk(data, 6).map(function (chunk) {
159
+ var set = lodash.chunk(chunk, 2);
160
+ for (var i = 0; i < set.length; i++) {
161
+ if (i !== set.length - 1) {
162
+ set[i].push(lgInfeed);
163
+ }
164
+ }
165
+ return lodash.flattenDeep(set);
166
+ });
167
+ data = lodash.flatten(chunks);
168
+ !_this.state.dataRemapped && _this.setState({ dataRemapped: true }); // To detect if appending of insights ads are completed
169
+ }
170
+
171
+ // Integrating infeed AD
172
+ if (showBI && brandInsightAd) {
173
+ // Checking lgInfeedAd flag in desktop view ( window >= 1400px ).
174
+ if (lgInfeedAd && typeof window !== 'undefined' && window.innerWidth >= 1400) brandInsightAd.interval = 8;
175
+ var pos = 0;
176
+ for (var i = 1; pos < data.length; i++) {
177
+ var inFeedAd = {
178
+ adUnit: brandInsightAd.adUnit,
179
+ className: brandInsightAd.className,
180
+ networkID: brandInsightAd.networkID,
181
+ sizes: brandInsightAd.sizes,
182
+ slotId: brandInsightAd.slotId + '_' + i,
183
+ targeting: {
184
+ pos: 'infeed',
185
+ content_placement: brandInsightAd.targeting.content_placement,
186
+ document_url: brandInsightAd.targeting.document_url,
187
+ rootDocumentGroup: brandInsightAd.targeting.rootDocumentGroup
188
+ },
189
+ _type: 'brandInsightAd',
190
+ /* Passing refresh flag */
191
+ refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
192
+ };
193
+
194
+ data = insertBrandInsightAd(data, pos, inFeedAd);
195
+ pos += brandInsightAd.interval + 1;
196
+ }
197
+ }
198
+
199
+ // 'index' was including the indexes for infeed ads along with article count making the page number change before it reaches last article.
200
+ data = data.map(function (ele, i) {
201
+ if (ele._type === 'lg-infeed') {
202
+ // Setting pos as top2 for the first occurence of large infeed ad
203
+ // const pos = data.indexOf(data.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
204
+ return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: 'lg-infeed' }) });
205
+ } else {
206
+ return ele;
207
+ }
208
+ });
209
+
210
+ return React__default.createElement(
211
+ 'div',
212
+ null,
213
+ data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
214
+ data.map(function (row, index) {
215
+ if (row._type === 'lg-infeed' && row.adUnit) {
216
+ return React__default.createElement(ADlgInfeed, _extends({ index: index }, row));
217
+ // Returning view for infeed Ad
218
+ } else if (row._type === 'brandInsightAd' && row.adUnit) {
219
+ return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
220
+ } else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
221
+ // Returning view for articles
222
+ return React__default.createElement(
223
+ React__default.Fragment,
224
+ { key: index },
225
+ React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
226
+ _this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
227
+ 'div',
228
+ { className: 'ad-container', style: { margin: '0 auto' } },
229
+ _this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
230
+ )
231
+ );
232
+ } else {
233
+ return null;
234
+ }
235
+ }) : data && data.length > 0 ? // For Javascript Disabled Cases. data is not remapped if JS is disabled.
236
+ data.map(function (row, index) {
237
+ if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
238
+ return React__default.createElement(
239
+ React__default.Fragment,
240
+ { key: index },
241
+ React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
242
+ );
243
+ }
244
+ }) : React__default.createElement(
245
+ 'div',
246
+ null,
247
+ React__default.createElement(
248
+ 'em',
249
+ null,
250
+ 'New content coming soon, please check back later.'
251
+ )
252
+ )
253
+ );
254
+ }, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
255
+ var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
256
+ return React__default.createElement(
257
+ 'div',
258
+ { className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
259
+ rightItems[i].component
260
+ );
261
+ }, _this.handlePageChange = function () {
262
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(selectedPage) {
263
+ var itemsPerPage, _this$props2, query, params, client, dataHandler, seoPaginate, start, newParams, dataHandlerPromise, newData;
264
+
265
+ return regenerator.wrap(function _callee$(_context) {
266
+ while (1) {
267
+ switch (_context.prev = _context.next) {
268
+ case 0:
269
+ itemsPerPage = _this.state.itemsPerPage;
270
+ _this$props2 = _this.props, query = _this$props2.query, params = _this$props2.params, client = _this$props2.client, dataHandler = _this$props2.dataHandler, seoPaginate = _this$props2.seoPaginate;
271
+
272
+ _this.setState({ isDataLoading: true, currentPage: selectedPage });
273
+ seoPaginate && _this.seoPagination(selectedPage);
274
+ lib_3.refresh();
275
+ document.body.scrollTop = 0;
276
+ document.documentElement.scrollTop = 0;
277
+ start = (selectedPage - 1) * itemsPerPage;
278
+ newParams = _extends({}, params, {
279
+ from: start,
280
+ to: start + itemsPerPage
281
+ });
282
+ dataHandlerPromise = null;
283
+
284
+ if (dataHandler) {
285
+ dataHandlerPromise = new _Promise(function (resolve, reject) {
286
+ try {
287
+ var result = dataHandler(newParams);
288
+ resolve(result);
289
+ } catch (e) {
290
+ reject(e);
291
+ }
292
+ });
293
+ }
294
+
295
+ _context.prev = 11;
296
+
297
+ if (!dataHandlerPromise) {
298
+ _context.next = 18;
299
+ break;
300
+ }
301
+
302
+ _context.next = 15;
303
+ return dataHandlerPromise;
304
+
305
+ case 15:
306
+ _context.t0 = _context.sent;
307
+ _context.next = 21;
308
+ break;
309
+
310
+ case 18:
311
+ _context.next = 20;
312
+ return client.fetch(query, newParams);
313
+
314
+ case 20:
315
+ _context.t0 = _context.sent;
316
+
317
+ case 21:
318
+ newData = _context.t0;
319
+
320
+ if (_this.pointer && _this.pointerArray) newData = newData[_this.pointerArray][_this.pointer];
321
+ if (newData && newData.length > 0) {
322
+ _this.setState({ isDataLoading: false, data: newData });
323
+ }
324
+ _context.next = 29;
325
+ break;
326
+
327
+ case 26:
328
+ _context.prev = 26;
329
+ _context.t1 = _context['catch'](11);
330
+
331
+ console.error(_context.t1);
332
+
333
+ case 29:
334
+ case 'end':
335
+ return _context.stop();
336
+ }
337
+ }
338
+ }, _callee, _this2, [[11, 26]]);
339
+ }));
340
+
341
+ return function (_x) {
342
+ return _ref3.apply(this, arguments);
343
+ };
344
+ }(), _temp), _possibleConstructorReturn(_this, _ret);
345
+ }
346
+
347
+ _createClass(MasterDeck, [{
348
+ key: 'componentDidUpdate',
349
+ value: function componentDidUpdate(prevProps, prevState) {
350
+ if (_JSON$stringify(prevState.prevData) !== _JSON$stringify(this.state.prevData)) {
351
+ this.seoPagination(this.state.currentPage);
352
+ }
353
+ // set dataRemap to true as there are no infeed or BI ads or window width is less than limit
354
+ if (typeof window !== 'undefined' && (!this.props.lgInfeedAd || !this.props.brandInsightAd || window.innerWidth < 1400) && !this.state.dataRemapped) {
355
+ !this.state.dataRemapped && this.setState({ dataRemapped: true });
356
+ }
357
+ if (typeof window !== 'undefined' && window.innerWidth <= 1191) {
358
+ !this.state.mobileView && this.setState({ mobileView: true });
359
+ }
360
+ }
361
+ }, {
362
+ key: 'render',
363
+ value: function render() {
364
+ // Setting default value for 'showBI' and 'lgInfeedAd'
365
+ var _props = this.props,
366
+ variant = _props.variant,
367
+ brandInsightAd = _props.brandInsightAd,
368
+ _props$showBI = _props.showBI,
369
+ showBI = _props$showBI === undefined ? false : _props$showBI,
370
+ _props$lgInfeedAd = _props.lgInfeedAd,
371
+ lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
372
+ totalDataCount = _props.totalDataCount;
373
+ var _state = this.state,
374
+ data = _state.data,
375
+ itemsPerPage = _state.itemsPerPage,
376
+ currentPage = _state.currentPage,
377
+ isDataLoading = _state.isDataLoading;
378
+
379
+ return React__default.createElement(
380
+ 'div',
381
+ { className: 'contentDeck' },
382
+ isDataLoading ? React__default.createElement(
383
+ 'div',
384
+ { className: 'd-flex justify-content-center', style: { marginTop: '100px' } },
385
+ React__default.createElement(
386
+ Spinner,
387
+ { animation: 'border', role: 'status' },
388
+ React__default.createElement(
389
+ 'span',
390
+ { className: 'sr-only' },
391
+ 'Loading...'
392
+ )
393
+ )
394
+ ) : data && data.length > 0 ? React__default.createElement(
395
+ Container,
396
+ null,
397
+ this.cardLoader({ variant: variant, brandInsightAd: brandInsightAd, showBI: showBI, lgInfeedAd: lgInfeedAd }),
398
+ React__default.createElement(
399
+ 'div',
400
+ { className: 'pagination-wrapper' },
401
+ React__default.createElement(Pagination, {
402
+ pageCount: Math.ceil(totalDataCount / itemsPerPage),
403
+ pageRangeDisplayed: main_36 ? 3 : 9,
404
+ currentPage: currentPage,
405
+ onPageChange: this.handlePageChange
406
+ }),
407
+ React__default.createElement(
408
+ 'style',
409
+ { jsx: 'true' },
410
+ '\n .pagination-wrapper {\n margin: 3rem 0;\n }\n @media only screen and (max-width: 768px) {\n .pagination-wrapper {\n margin-bottom: 6rem;\n }\n }\n '
411
+ )
412
+ )
413
+ ) : null
414
+ );
415
+ }
416
+ }], [{
417
+ key: 'getDerivedStateFromProps',
418
+ value: function getDerivedStateFromProps(props, state) {
419
+ if (_JSON$stringify(props.dataRecord) !== _JSON$stringify(state.prevData)) {
420
+ return {
421
+ data: props.dataRecord,
422
+ prevData: props.dataRecord,
423
+ currentPage: props.currentPage
424
+ };
425
+ }
426
+ return null;
427
+ }
428
+ // Passing 'brandInsightAd','showBI' and 'lgInfeedAd'
429
+
430
+ }]);
431
+
432
+ return MasterDeck;
433
+ }(React__default.Component);
434
+
435
+ var MasterDeck$1 = withRouter(MasterDeck);
436
+
437
+ export default MasterDeck$1;