@mjhls/mjh-framework 1.0.878 → 1.0.880-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 (315) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +28 -29
  4. package/dist/cjs/AD300x250x600.js +28 -29
  5. package/dist/cjs/AD728x90.js +31 -32
  6. package/dist/cjs/ADFloatingFooter.js +30 -31
  7. package/dist/cjs/ADFooter.js +12 -13
  8. package/dist/cjs/ADGutter.js +30 -31
  9. package/dist/cjs/{ADInfeed-f7e6956b.js → ADInfeed-2e48af77.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +30 -31
  11. package/dist/cjs/ADSponsoredResources.js +30 -31
  12. package/dist/cjs/ADWebcast.js +30 -31
  13. package/dist/cjs/ADWelcome.js +31 -32
  14. package/dist/cjs/{ADlgInfeed-4df6d147.js → ADlgInfeed-c39c7131.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +27 -29
  16. package/dist/cjs/AdSlot.js +31 -32
  17. package/dist/cjs/AdSlotsProvider.js +909 -18
  18. package/dist/cjs/AlgoliaSearch.js +1272 -1391
  19. package/dist/cjs/AlphabeticList.js +23 -24
  20. package/dist/cjs/ArticleCarousel.js +19 -21
  21. package/dist/cjs/ArticleProgramLandingPage.js +59 -61
  22. package/dist/cjs/ArticleSeriesLandingPage.js +38 -44
  23. package/dist/cjs/ArticleSeriesListing.js +58 -60
  24. package/dist/cjs/Auth.js +1504 -680
  25. package/dist/cjs/AuthWrapper.js +267 -309
  26. package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
  27. package/dist/cjs/Beam.js +6 -6
  28. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-9c6b07ad.js} +55 -56
  29. package/dist/cjs/Breadcrumbs.js +25 -27
  30. package/dist/cjs/CMEDeck.js +81 -81
  31. package/dist/cjs/Column1.js +11 -14
  32. package/dist/cjs/Column2.js +31 -34
  33. package/dist/cjs/Column3.js +57 -60
  34. package/dist/cjs/ConferenceArticleCard.js +41 -43
  35. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  36. package/dist/cjs/DeckContent.js +100 -105
  37. package/dist/cjs/DeckQueue.js +86 -91
  38. package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
  39. package/dist/cjs/EventsDeck.js +150 -157
  40. package/dist/cjs/ExternalResources.js +78 -80
  41. package/dist/cjs/Feature.js +28 -31
  42. package/dist/cjs/ForbesHero.js +41 -43
  43. package/dist/cjs/GridContent.js +231 -237
  44. package/dist/cjs/GridHero.js +43 -45
  45. package/dist/cjs/GroupDeck.js +58 -60
  46. package/dist/cjs/HamMagazine.js +138 -143
  47. package/dist/cjs/Header.js +12 -14
  48. package/dist/cjs/Hero.js +14 -16
  49. package/dist/cjs/HighlightenVideo.js +17 -18
  50. package/dist/cjs/HorizontalArticleListing.js +70 -72
  51. package/dist/cjs/HorizontalHero.js +28 -30
  52. package/dist/cjs/IssueContentDeck.js +71 -77
  53. package/dist/cjs/IssueDeck.js +70 -76
  54. package/dist/cjs/IssueLanding.js +91 -94
  55. package/dist/cjs/KMTracker.js +15 -15
  56. package/dist/cjs/LeftNav.js +37 -39
  57. package/dist/cjs/MasterDeck.js +227 -355
  58. package/dist/cjs/MediaSeriesLanding.js +1126 -1118
  59. package/dist/cjs/NavDvm.js +72 -77
  60. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  61. package/dist/cjs/NavMagazine.js +145 -150
  62. package/dist/cjs/NavNative.js +137 -145
  63. package/dist/cjs/OncliveHero.js +23 -24
  64. package/dist/cjs/OncliveLargeHero.js +73 -75
  65. package/dist/cjs/PageFilter.js +12 -13
  66. package/dist/cjs/Pagination-9cb60fba.js +61 -0
  67. package/dist/cjs/PartnerDetailListing.js +3917 -119
  68. package/dist/cjs/PdfDownload.js +8 -9
  69. package/dist/cjs/PopUpModal.js +17 -19
  70. package/dist/cjs/PubSection.js +38 -41
  71. package/dist/cjs/PubToc.js +13 -14
  72. package/dist/cjs/PublicationDeck.js +65 -71
  73. package/dist/cjs/PublicationLanding.js +133 -137
  74. package/dist/cjs/QueueDeckExpanded.js +1001 -1173
  75. package/dist/cjs/RecentNews.js +21 -22
  76. package/dist/cjs/RelatedContent.js +57 -59
  77. package/dist/cjs/RelatedTopicsDropdown.js +29 -32
  78. package/dist/cjs/RolesDeck.js +27 -32
  79. package/dist/cjs/Search.js +16 -20
  80. package/dist/cjs/Segment.js +6 -24
  81. package/dist/cjs/SeriesListingDeck.js +36 -37
  82. package/dist/cjs/{SeriesSlider-ce3261cb.js → SeriesSlider-ec146338.js} +40 -41
  83. package/dist/cjs/SetCookie.js +1 -1
  84. package/dist/cjs/SideFooter.js +36 -37
  85. package/dist/cjs/SocialIcons.js +9 -10
  86. package/dist/cjs/{SocialSearchComponent-5ec44406.js → SocialSearchComponent-e8477ca3.js} +36 -40
  87. package/dist/cjs/SocialShare.js +29 -31
  88. package/dist/cjs/TaxonomyCard.js +61 -67
  89. package/dist/cjs/TaxonomyDescription.js +53 -55
  90. package/dist/cjs/TemplateNormal.js +72 -73
  91. package/dist/cjs/ThumbnailCard.js +23 -26
  92. package/dist/cjs/Ustream.js +27 -28
  93. package/dist/cjs/VerticalHero.js +20 -22
  94. package/dist/cjs/VideoProgramLandingPage.js +73 -78
  95. package/dist/cjs/VideoSeriesCard.js +32 -34
  96. package/dist/cjs/VideoSeriesFilter.js +16 -16
  97. package/dist/cjs/VideoSeriesLandingPage.js +48 -52
  98. package/dist/cjs/VideoSeriesListing.js +75 -77
  99. package/dist/cjs/View.js +273 -277
  100. package/dist/cjs/YahooHero.js +40 -42
  101. package/dist/cjs/YoutubeGroup.js +66 -68
  102. package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
  103. package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
  104. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  105. package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
  106. package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
  107. package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
  108. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  109. package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
  110. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  111. package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
  112. package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
  113. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  114. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  115. package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
  116. package/dist/cjs/faundadb.js +19 -19
  117. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  118. package/dist/cjs/getRelatedArticle.js +18 -18
  119. package/dist/cjs/getRootDocGroup.js +6 -6
  120. package/dist/cjs/getSerializers.js +42 -43
  121. package/dist/cjs/{getTargeting-9d509319.js → getTargeting-8874437b.js} +12 -12
  122. package/dist/cjs/getTargeting.js +6 -6
  123. package/dist/cjs/iconBase-68959171.js +3 -0
  124. package/dist/cjs/{index-e2ec2eae.js → index-17c6af5a.js} +1067 -1093
  125. package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
  126. package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
  127. package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
  128. package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
  129. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  130. package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
  131. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  132. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  133. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  134. package/dist/cjs/index.js +164 -170
  135. package/dist/cjs/inherits-8d29278d.js +110 -0
  136. package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
  137. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  138. package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
  139. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  140. package/dist/cjs/main-02daeefe.js +862 -0
  141. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  142. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  143. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  144. package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
  145. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  146. package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
  147. package/dist/cjs/timeDifferenceCalc.js +1 -1
  148. package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
  149. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  150. package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
  151. package/dist/cjs/{index-efca863c.js → urlFor-3a61226f.js} +88 -37
  152. package/dist/cjs/urlFor.js +5 -59
  153. package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
  154. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  155. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  156. package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
  157. package/dist/esm/AD.js +7 -7
  158. package/dist/esm/AD300x250.js +25 -25
  159. package/dist/esm/AD300x250x600.js +25 -25
  160. package/dist/esm/AD728x90.js +28 -28
  161. package/dist/esm/ADFloatingFooter.js +27 -27
  162. package/dist/esm/ADFooter.js +9 -9
  163. package/dist/esm/ADGutter.js +27 -27
  164. package/dist/esm/{ADInfeed-014c7bd1.js → ADInfeed-0c13c803.js} +11 -11
  165. package/dist/esm/ADSkyscraper.js +27 -27
  166. package/dist/esm/ADSponsoredResources.js +27 -27
  167. package/dist/esm/ADWebcast.js +27 -27
  168. package/dist/esm/ADWelcome.js +28 -28
  169. package/dist/esm/{ADlgInfeed-75e097f4.js → ADlgInfeed-e4e2031a.js} +8 -8
  170. package/dist/esm/AccordionPanel.js +22 -22
  171. package/dist/esm/AdSlot.js +23 -23
  172. package/dist/esm/AdSlotsProvider.js +907 -15
  173. package/dist/esm/AlgoliaSearch.js +702 -820
  174. package/dist/esm/AlphabeticList.js +20 -20
  175. package/dist/esm/ArticleCarousel.js +16 -17
  176. package/dist/esm/ArticleProgramLandingPage.js +53 -54
  177. package/dist/esm/ArticleSeriesLandingPage.js +33 -38
  178. package/dist/esm/ArticleSeriesListing.js +54 -55
  179. package/dist/esm/Auth.js +1487 -659
  180. package/dist/esm/AuthWrapper.js +265 -306
  181. package/dist/esm/{AuthorComponent-46a745ba.js → AuthorComponent-e6f95c2f.js} +11 -11
  182. package/dist/esm/Beam.js +6 -6
  183. package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-f4515898.js} +35 -35
  184. package/dist/esm/Breadcrumbs.js +15 -15
  185. package/dist/esm/CMEDeck.js +77 -77
  186. package/dist/esm/Column1.js +9 -9
  187. package/dist/esm/Column2.js +28 -28
  188. package/dist/esm/Column3.js +54 -54
  189. package/dist/esm/ConferenceArticleCard.js +37 -38
  190. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  191. package/dist/esm/DeckContent.js +95 -96
  192. package/dist/esm/DeckQueue.js +81 -82
  193. package/dist/esm/{Dfp-4ca12f2e.js → Dfp-f867d061.js} +20 -20
  194. package/dist/esm/EventsDeck.js +129 -129
  195. package/dist/esm/ExternalResources.js +72 -73
  196. package/dist/esm/Feature.js +21 -22
  197. package/dist/esm/ForbesHero.js +32 -33
  198. package/dist/esm/GridContent.js +198 -199
  199. package/dist/esm/GridHero.js +34 -35
  200. package/dist/esm/GroupDeck.js +44 -45
  201. package/dist/esm/HamMagazine.js +114 -114
  202. package/dist/esm/Header.js +8 -8
  203. package/dist/esm/Hero.js +12 -13
  204. package/dist/esm/HighlightenVideo.js +14 -14
  205. package/dist/esm/HorizontalArticleListing.js +67 -68
  206. package/dist/esm/HorizontalHero.js +24 -25
  207. package/dist/esm/IssueContentDeck.js +58 -59
  208. package/dist/esm/IssueDeck.js +62 -63
  209. package/dist/esm/IssueLanding.js +88 -90
  210. package/dist/esm/KMTracker.js +15 -15
  211. package/dist/esm/LeftNav.js +33 -33
  212. package/dist/esm/MasterDeck.js +223 -350
  213. package/dist/esm/MediaSeriesLanding.js +850 -839
  214. package/dist/esm/NavDvm.js +57 -57
  215. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  216. package/dist/esm/NavMagazine.js +124 -124
  217. package/dist/esm/NavNative.js +114 -114
  218. package/dist/esm/OncliveHero.js +20 -20
  219. package/dist/esm/OncliveLargeHero.js +57 -58
  220. package/dist/esm/PageFilter.js +10 -10
  221. package/dist/esm/Pagination-256b60e5.js +56 -0
  222. package/dist/esm/PartnerDetailListing.js +3910 -112
  223. package/dist/esm/PdfDownload.js +6 -6
  224. package/dist/esm/PopUpModal.js +12 -12
  225. package/dist/esm/PubSection.js +35 -37
  226. package/dist/esm/PubToc.js +10 -10
  227. package/dist/esm/PublicationDeck.js +55 -56
  228. package/dist/esm/PublicationLanding.js +120 -120
  229. package/dist/esm/QueueDeckExpanded.js +991 -1163
  230. package/dist/esm/RecentNews.js +19 -19
  231. package/dist/esm/RelatedContent.js +50 -51
  232. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  233. package/dist/esm/RolesDeck.js +25 -25
  234. package/dist/esm/Search.js +11 -11
  235. package/dist/esm/Segment.js +6 -24
  236. package/dist/esm/SeriesListingDeck.js +30 -31
  237. package/dist/esm/{SeriesSlider-7a6c45ce.js → SeriesSlider-d6561e33.js} +31 -31
  238. package/dist/esm/SetCookie.js +1 -1
  239. package/dist/esm/SideFooter.js +32 -32
  240. package/dist/esm/SocialIcons.js +7 -7
  241. package/dist/esm/{SocialSearchComponent-bdecba55.js → SocialSearchComponent-b5be0e6c.js} +30 -30
  242. package/dist/esm/SocialShare.js +25 -25
  243. package/dist/esm/TaxonomyCard.js +55 -56
  244. package/dist/esm/TaxonomyDescription.js +48 -49
  245. package/dist/esm/TemplateNormal.js +68 -68
  246. package/dist/esm/ThumbnailCard.js +16 -17
  247. package/dist/esm/Ustream.js +24 -24
  248. package/dist/esm/VerticalHero.js +16 -17
  249. package/dist/esm/VideoProgramLandingPage.js +64 -65
  250. package/dist/esm/VideoSeriesCard.js +25 -26
  251. package/dist/esm/VideoSeriesFilter.js +13 -13
  252. package/dist/esm/VideoSeriesLandingPage.js +39 -42
  253. package/dist/esm/VideoSeriesListing.js +71 -72
  254. package/dist/esm/View.js +249 -249
  255. package/dist/esm/YahooHero.js +32 -33
  256. package/dist/esm/YoutubeGroup.js +51 -52
  257. package/dist/esm/{_is-array-893ab020.js → _is-array-4df618a6.js} +6 -6
  258. package/dist/esm/{_iter-detect-f089461c.js → _iter-detect-130ee549.js} +7 -7
  259. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  260. package/dist/esm/{_object-sap-169d6272.js → _object-sap-8b8ea5a9.js} +1 -1
  261. package/dist/esm/{_object-to-array-50a6b9a3.js → _object-to-array-c54dd835.js} +2 -2
  262. package/dist/esm/{asyncToGenerator-b4dfe691.js → asyncToGenerator-64812e90.js} +31 -31
  263. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
  264. package/dist/esm/{core.get-iterator-method-e903ff31.js → core.get-iterator-method-86d4db69.js} +36 -36
  265. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  266. package/dist/esm/{define-property-99e66838.js → define-property-6d26cb48.js} +6 -6
  267. package/dist/esm/{defineProperty-8fa0bc8d.js → defineProperty-d7d9b577.js} +1 -1
  268. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  269. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  270. package/dist/esm/{extends-dc6a71fd.js → extends-5b1796d4.js} +7 -7
  271. package/dist/esm/faundadb.js +5 -5
  272. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  273. package/dist/esm/getRelatedArticle.js +12 -12
  274. package/dist/esm/getRootDocGroup.js +4 -4
  275. package/dist/esm/getSerializers.js +42 -43
  276. package/dist/esm/{getTargeting-ff2c9409.js → getTargeting-277c801e.js} +11 -11
  277. package/dist/esm/getTargeting.js +6 -6
  278. package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
  279. package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
  280. package/dist/esm/{index-f2783f14.js → index-a35a5c39.js} +1001 -1017
  281. package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
  282. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  283. package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
  284. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  285. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  286. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  287. package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
  288. package/dist/esm/index.js +137 -140
  289. package/dist/esm/{inherits-8a801a18.js → inherits-2409637d.js} +18 -18
  290. package/dist/esm/inherits-77d5e4fc.js +101 -0
  291. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  292. package/dist/esm/{keys-425c8ab0.js → keys-69989821.js} +6 -6
  293. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  294. package/dist/esm/main-c0612122.js +851 -0
  295. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  296. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  297. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
  298. package/dist/esm/{slicedToArray-ca2c8b8d.js → slicedToArray-67a08c9c.js} +12 -12
  299. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  300. package/dist/esm/stringify-70b72959.js +15 -0
  301. package/dist/esm/timeDifferenceCalc.js +1 -1
  302. package/dist/esm/{toConsumableArray-7b1c0e23.js → toConsumableArray-32282905.js} +7 -7
  303. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  304. package/dist/esm/{typeof-83d9eb10.js → typeof-c05a82ba.js} +35 -35
  305. package/dist/esm/{index-0dbff1d1.js → urlFor-23b2244b.js} +88 -37
  306. package/dist/esm/urlFor.js +4 -62
  307. package/dist/esm/{ustream-api-41166338.js → ustream-api-4c4fe0ba.js} +4 -4
  308. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  309. package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
  310. package/dist/esm/{web.dom.iterable-fdf034f5.js → web.dom.iterable-f8f967cd.js} +2 -2
  311. package/package.json +112 -111
  312. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  313. package/dist/cjs/main-025fdc78.js +0 -973
  314. package/dist/esm/main-4136096f.js +0 -961
  315. package/dist/esm/stringify-c21932b3.js +0 -15
@@ -1,157 +1,78 @@
1
- import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
2
- import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
3
- import { _ as _extends } from './extends-dc6a71fd.js';
4
- import React, { useEffect, useState, useRef } from 'react';
5
- import { Container, Media } from 'react-bootstrap';
6
- import urlFor from './urlFor.js';
7
- import { I as InfiniteScroll } from './index.es-c6222053.js';
8
- import { m as moment } from './moment-bc12cb97.js';
9
- import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
10
- import { l as lib_3 } from './index-2446af28.js';
11
- import { useRouter } from 'next/router';
12
- import { L as LazyLoad } from './index-35bdcc81.js';
13
- import { m as main_43 } from './main-4136096f.js';
14
- import { c as clean_html_1 } from './entities-932b50cf.js';
15
- import { A as ADInfeed } from './ADInfeed-014c7bd1.js';
16
- import { A as AuthorComponent } from './AuthorComponent-46a745ba.js';
17
- import { l as lodash } from './lodash-f97fd99a.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-75e097f4.js';
19
- import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
- import timeDifferenceCalc from './timeDifferenceCalc.js';
21
1
  import './_commonjsHelpers-0c4b6f40.js';
22
- import './web.dom.iterable-fdf034f5.js';
23
- import './core.get-iterator-method-e903ff31.js';
24
- import './_iter-detect-f089461c.js';
25
- import './_object-pie-133f504a.js';
26
- import './index-0dbff1d1.js';
27
- import 'react-dom';
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 './web.dom.iterable-f8f967cd.js';
9
+ import React__default, { useState, useEffect, useRef } from 'react';
28
10
  import './events-6c3a7a63.js';
11
+ import { l as lib_3 } from './index-41a678ea.js';
29
12
  import 'prop-types';
30
13
  import 'react-bootstrap/Card';
31
- import './AdSlot.js';
32
- import './debounce-533d9748.js';
33
- import './isSymbol-a7e9aafe.js';
34
- import './toNumber-5aeba6e7.js';
35
- import './Beam.js';
36
- import './stringify-c21932b3.js';
37
- import './asyncToGenerator-b4dfe691.js';
38
- import './_library-528f1934.js';
14
+ import { m as moment } from './moment-e2f9b20c.js';
15
+ import { useRouter } from 'next/router';
16
+ import './isSymbol-1981418f.js';
17
+ import './debounce-9207d8ee.js';
18
+ import './toNumber-2f7a84cd.js';
19
+ import 'react-dom';
20
+ import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
21
+ import { u as urlFor } from './urlFor-23b2244b.js';
22
+ import { L as LazyLoad } from './index-5f7e79e7.js';
23
+ import { m as main_36 } from './main-c0612122.js';
24
+ import { c as clean_html_1 } from './entities-7cc3bf45.js';
25
+ import './stringify-70b72959.js';
26
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
39
27
  import './Segment.js';
28
+ import './Beam.js';
29
+ import './AdSlot.js';
30
+ import { A as ADInfeed } from './ADInfeed-0c13c803.js';
31
+ import { l as lodash } from './lodash-17fdfebb.js';
32
+ import { A as ADlgInfeed } from './ADlgInfeed-e4e2031a.js';
33
+ import { g as getContentCategory } from './getContentCategory-15dcc413.js';
34
+ import { A as AuthorComponent } from './AuthorComponent-e6f95c2f.js';
35
+ import { Spinner, Container, Media } from 'react-bootstrap';
36
+ import timeDifferenceCalc from './timeDifferenceCalc.js';
37
+ import { P as Pagination } from './Pagination-256b60e5.js';
38
+
39
+ var _this = undefined;
40
40
 
41
41
  var renderCardImage = function renderCardImage(row, client) {
42
42
  var imageHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
43
43
  var imageWidth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
44
44
  var imageMaxHeight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
45
45
  var imageFit = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
46
-
47
- var url = urlFor({ client: client, source: row.thumbnail, imageHeight: imageHeight, imageWidth: imageWidth, imageMaxHeight: imageMaxHeight, imageFit: imageFit });
48
-
49
- return url;
50
- };
51
-
52
- var loadMore = function loadMore(values, setValues, itemsPerPage) {
53
- console.log('Values:::', values);
54
- setValues({
55
- page: values.page + 1,
56
- from: values.from + itemsPerPage,
57
- to: values.to + itemsPerPage
58
- });
59
- };
60
-
61
- var loadData = function loadData(values, query, client, params, setData, setScrolling, setLastDataSize, pointer, pointerArray) {
62
- params = _extends({}, params, {
63
- from: values.from,
64
- to: values.to
65
- });
66
- client.fetch(query, params).then(function (dataArr) {
67
- if (pointer && pointerArray) {
68
- dataArr = dataArr[pointerArray][pointer];
69
- }
70
-
71
- if (!dataArr) {
72
- dataArr = [];
73
- }
74
-
75
- dataArr = dataArr.map(function (item) {
76
- return _extends({}, item, {
77
- pageNumber: values.page
78
- });
79
- });
80
-
81
- if (dataArr.length > 0) {
82
- setData(function (prevData) {
83
- return [].concat(_toConsumableArray(prevData), _toConsumableArray(dataArr));
84
- });
85
- setLastDataSize(dataArr.length);
86
- setScrolling(true);
87
- } else {
88
- setLastDataSize(0);
89
- setScrolling(false);
90
- }
91
- });
92
- };
93
-
94
- var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, itemIndex) {
95
- if (seoPaginate) {
96
- var path = router.asPath;
97
- var qrIndex = path.indexOf('?');
98
- var pathname = router.pathname;
99
- var queryString = '';
100
-
101
- if (qrIndex > 0) {
102
- path = path.substring(1, qrIndex);
103
-
104
- var partialQS = router.asPath.substring(qrIndex + 1);
105
- var partialQSArr = partialQS.split('&');
106
-
107
- // exclude page=xxx from query string
108
- partialQSArr.map(function (item) {
109
- var itemArr = item.split('=');
110
- var key = itemArr[0];
111
- var val = itemArr[1];
112
-
113
- if (key !== 'page') {
114
- queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
115
- }
116
- });
117
- }
118
-
119
- if (queryString.length > 0) {
120
- path += '?' + queryString;
121
- }
122
-
123
- pageNumber = parseInt(pageNumber);
124
- // const index = Number(itemIndex)
125
- // const perPage = Number(itemsPerPage)
126
-
127
- // pageNumber = Math.ceil((index + 1) / perPage)
128
-
129
- if (currentPage !== pageNumber) {
130
- lib_3.refresh();
131
-
132
- setCurrentPage(pageNumber);
133
- if (path[0] !== '/') {
134
- path = '/' + path;
135
- }
136
-
137
- var newPath = pageNumber === 1 ? '' + path : '' + path + (queryString.length > 0 ? '&' : '?') + 'page=' + pageNumber;
138
-
139
- // if (pageview) {
140
- // pageview(newPath)
141
- // }
142
-
143
- router.push(pathname, newPath, {
144
- shallow: true
145
- });
146
- }
147
- }
46
+ return urlFor({ client: client, source: row.thumbnail, imageHeight: imageHeight, imageWidth: imageWidth, imageMaxHeight: imageMaxHeight, imageFit: imageFit });
148
47
  };
149
48
 
150
49
  var checkExternalUrl = function checkExternalUrl(url) {
151
50
  return new RegExp(['http', 'https'].join('|')).test(url);
152
51
  };
153
52
 
154
- var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, imageMaxHeight, imageFit, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro) {
53
+ var CardLoader = function CardLoader(_ref) {
54
+ var data = _ref.data,
55
+ client = _ref.client,
56
+ mapping = _ref.mapping,
57
+ showPublished = _ref.showPublished,
58
+ defaultImage = _ref.defaultImage,
59
+ showAuthor = _ref.showAuthor,
60
+ showCategory = _ref.showCategory,
61
+ imageHeight = _ref.imageHeight,
62
+ imageWidth = _ref.imageWidth,
63
+ imageMaxHeight = _ref.imageMaxHeight,
64
+ imageFit = _ref.imageFit,
65
+ rightItems = _ref.rightItems,
66
+ brandInsightAd = _ref.brandInsightAd,
67
+ showBI = _ref.showBI,
68
+ heroContent = _ref.heroContent,
69
+ lgInfeedAd = _ref.lgInfeedAd,
70
+ showPubInfo = _ref.showPubInfo,
71
+ contentCategoryMapping = _ref.contentCategoryMapping,
72
+ showTimeDiff = _ref.showTimeDiff,
73
+ showTaxonomies = _ref.showTaxonomies,
74
+ showIntro = _ref.showIntro;
75
+
155
76
  var numberOfItemsBeforeAd = data.length < 6 ? data.length : 6;
156
77
  var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
157
78
  return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
@@ -233,425 +154,850 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
233
154
  }
234
155
  }
235
156
 
236
- // 'articleCount' is New parameter to use instead of 'index' while passing to 'changePageNumber()'
237
- // 'index' was including the indexes for infeed ads along with article count making the page number change before it reaches last article.
238
- // 'articleCount' will be the indexes of only the articles in the deck.
239
- var articleCount = -1;
240
157
  data = data.map(function (ele, i) {
241
158
  if (ele._type === 'lg-infeed') {
242
159
  // Setting pos as top2 for the first occurence of large infeed ad
243
160
  // const pos = data.indexOf(data.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
244
161
  return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: 'lg-infeed' }) });
245
- } else if (ele._type === 'article') {
246
- // incrementing 'articleCount' for each article.
247
- ++articleCount;
248
- return _extends({}, ele, { articleCount: articleCount });
249
- } else {
250
- return ele;
251
- }
162
+ } else return ele;
252
163
  });
253
164
 
254
165
  var featureCount = 0;
255
- return React.createElement(
166
+ return React__default.createElement(
256
167
  'div',
257
168
  null,
258
169
  data && data.length > 0 ? dataRemapped ? // For Javascript Enabled Cases
259
170
  data.map(function (article, index) {
260
- var pageNumber = article.pageNumber || values.page;
261
171
  var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
262
172
 
263
173
  if (article._type === 'feature') {
264
174
  featureCount++;
265
175
  if (article.blank || checkExternalUrl(article.url.current)) {
266
- return React.createElement(
267
- VisibilitySensor,
176
+ return React__default.createElement(
177
+ Media,
268
178
  {
269
179
  key: article._id ? article._id : index,
270
- partialVisibility: true,
271
- onChange: function onChange(isVisible) {
272
- isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
273
- } },
274
- React.createElement(
275
- React.Fragment,
180
+ className: 'feature-media',
181
+ style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
182
+ (article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
183
+ 'a',
184
+ { rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
185
+ React__default.createElement(
186
+ LazyLoad,
187
+ { height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
188
+ article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
189
+ ),
190
+ article.source && React__default.createElement(
191
+ 'div',
192
+ { className: 'content-category-label' },
193
+ React__default.createElement(
194
+ 'div',
195
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
196
+ article.source
197
+ )
198
+ )
199
+ ),
200
+ React__default.createElement(
201
+ Media.Body,
276
202
  null,
277
- React.createElement(
278
- Media,
279
- {
280
- key: article._id ? article._id : index,
281
- className: 'feature-media',
282
- style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
283
- (article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
284
- 'a',
285
- { rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
286
- React.createElement(
287
- LazyLoad,
288
- { height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
289
- article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
290
- ),
291
- article.source && React.createElement(
203
+ React__default.createElement(
204
+ 'a',
205
+ { rel: 'noopener', href: article.url.current, target: '_blank' },
206
+ article.title && React__default.createElement(
207
+ 'h4',
208
+ { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
209
+ article.title
210
+ )
211
+ ),
212
+ showPublished && !showTimeDiff && article.published && React__default.createElement(
213
+ 'p',
214
+ { className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
215
+ moment(article.published).format('MMMM DD, YYYY')
216
+ ),
217
+ showTimeDiff && article.published && React__default.createElement(
218
+ 'p',
219
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
220
+ showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
221
+ if (index > 3) {
222
+ return null;
223
+ }
224
+ if (index === 3) {
225
+ return React__default.createElement(
226
+ React__default.Fragment,
227
+ null,
228
+ React__default.createElement(
229
+ 'em',
230
+ { style: { marginRight: '.5rem' } },
231
+ '...'
232
+ )
233
+ );
234
+ }
235
+ return React__default.createElement(
236
+ React__default.Fragment,
237
+ null,
238
+ React__default.createElement(
239
+ 'em',
240
+ null,
241
+ taxonomy.name
242
+ ),
243
+ ' |',
244
+ ' '
245
+ );
246
+ }),
247
+ ' ',
248
+ React__default.createElement(
249
+ 'span',
250
+ { style: { display: 'inline-block' } },
251
+ timeDifferenceCalc(article.published)
252
+ )
253
+ ),
254
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
255
+ LazyLoad,
256
+ { height: 50 },
257
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
258
+ ),
259
+ !article.thumbnail && !defaultImage && article.source && React__default.createElement(
260
+ 'div',
261
+ { className: 'content-category-label' },
262
+ React__default.createElement(
263
+ 'div',
264
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
265
+ article.source
266
+ )
267
+ ),
268
+ React__default.createElement(
269
+ 'div',
270
+ { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
271
+ showCategory && article.contentCategory && React__default.createElement(
272
+ 'p',
273
+ {
274
+ className: 'article-category',
275
+ style: {
276
+ background: '#3FB618',
277
+ color: '#ffffff',
278
+ marginBottom: '.25rem',
279
+ display: 'inline-block',
280
+ padding: '0 .25rem',
281
+ fontSize: '.8rem'
282
+ } },
283
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
284
+ ),
285
+ article.issueSection && article.issueSection.name && React__default.createElement(
286
+ 'p',
287
+ {
288
+ className: 'issueSection',
289
+ style: {
290
+ background: '#000000',
291
+ color: '#ffffff',
292
+ marginBottom: '.25rem',
293
+ marginLeft: '.25rem',
294
+ display: 'inline-block',
295
+ padding: '0 .25rem',
296
+ fontSize: '.8rem'
297
+ } },
298
+ article.issueSection.name
299
+ )
300
+ ),
301
+ showPubInfo && (article.issue || article.volume) && React__default.createElement(
302
+ 'div',
303
+ { className: 'pubInfo' },
304
+ article.volume && React__default.createElement(
305
+ 'p',
306
+ { className: 'qdeVolume' },
307
+ article.volume
308
+ ),
309
+ article.issue && React__default.createElement(
310
+ 'p',
311
+ { className: 'qdeIssue' },
312
+ article.issue
313
+ )
314
+ ),
315
+ showIntro && article.summary && React__default.createElement(
316
+ 'p',
317
+ { className: 'pt-2 card-text' },
318
+ clean_html_1(article.summary)
319
+ )
320
+ )
321
+ );
322
+ } else {
323
+ return React__default.createElement(
324
+ Media,
325
+ {
326
+ key: article._id ? article._id : index,
327
+ className: 'feature-media',
328
+ style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
329
+ (article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
330
+ 'a',
331
+ { href: article.url.current, className: 'feature-wrapper' },
332
+ React__default.createElement(
333
+ LazyLoad,
334
+ { height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
335
+ article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
336
+ ),
337
+ article.source && React__default.createElement(
338
+ 'div',
339
+ { className: 'content-category-label' },
340
+ React__default.createElement(
341
+ 'div',
342
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
343
+ article.source
344
+ )
345
+ )
346
+ ),
347
+ React__default.createElement(
348
+ Media.Body,
349
+ null,
350
+ React__default.createElement(
351
+ 'a',
352
+ { href: article.url.current },
353
+ article.title && React__default.createElement(
354
+ 'h4',
355
+ { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
356
+ article.title
357
+ )
358
+ ),
359
+ showPublished && !showTimeDiff && article.published && React__default.createElement(
360
+ 'p',
361
+ { className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
362
+ moment(article.published).format('MMMM DD, YYYY')
363
+ ),
364
+ showTimeDiff && article.published && React__default.createElement(
365
+ 'p',
366
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
367
+ showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
368
+ if (index > 3) {
369
+ return null;
370
+ }
371
+ if (index === 3) {
372
+ return React__default.createElement(
373
+ React__default.Fragment,
374
+ null,
375
+ React__default.createElement(
376
+ 'em',
377
+ { style: { marginRight: '.5rem' } },
378
+ '...'
379
+ )
380
+ );
381
+ }
382
+ if (index === 3) {
383
+ return React__default.createElement(
384
+ React__default.Fragment,
385
+ null,
386
+ React__default.createElement(
387
+ 'em',
388
+ { style: { marginRight: '.5rem' } },
389
+ '...'
390
+ )
391
+ );
392
+ }
393
+ return React__default.createElement(
394
+ React__default.Fragment,
395
+ null,
396
+ React__default.createElement(
397
+ 'em',
398
+ null,
399
+ taxonomy.name
400
+ ),
401
+ ' |',
402
+ ' '
403
+ );
404
+ }),
405
+ ' ',
406
+ React__default.createElement(
407
+ 'span',
408
+ { style: { display: 'inline-block' } },
409
+ timeDifferenceCalc(article.published)
410
+ )
411
+ ),
412
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
413
+ LazyLoad,
414
+ { height: 50 },
415
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
416
+ ),
417
+ !article.thumbnail && !defaultImage && article.source && React__default.createElement(
418
+ 'div',
419
+ { className: 'content-category-label' },
420
+ React__default.createElement(
421
+ 'div',
422
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
423
+ article.source
424
+ )
425
+ ),
426
+ React__default.createElement(
427
+ 'div',
428
+ { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
429
+ showCategory && article.contentCategory && React__default.createElement(
430
+ 'p',
431
+ {
432
+ className: 'article-category',
433
+ style: {
434
+ background: '#3FB618',
435
+ color: '#ffffff',
436
+ marginBottom: '.25rem',
437
+ display: 'inline-block',
438
+ padding: '0 .25rem',
439
+ fontSize: '.8rem'
440
+ } },
441
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
442
+ ),
443
+ article.issueSection && article.issueSection.name && React__default.createElement(
444
+ 'p',
445
+ {
446
+ className: 'issueSection',
447
+ style: {
448
+ background: '#000000',
449
+ color: '#ffffff',
450
+ marginBottom: '.25rem',
451
+ marginLeft: '.25rem',
452
+ display: 'inline-block',
453
+ padding: '0 .25rem',
454
+ fontSize: '.8rem'
455
+ } },
456
+ article.issueSection.name
457
+ )
458
+ ),
459
+ showPubInfo && (article.issue || article.volume) && React__default.createElement(
460
+ 'div',
461
+ { className: 'pubInfo' },
462
+ article.volume && React__default.createElement(
463
+ 'p',
464
+ { className: 'qdeVolume' },
465
+ article.volume
466
+ ),
467
+ article.issue && React__default.createElement(
468
+ 'p',
469
+ { className: 'qdeIssue' },
470
+ article.issue
471
+ )
472
+ ),
473
+ showIntro && article.summary && React__default.createElement(
474
+ 'p',
475
+ { className: 'pt-2 card-text' },
476
+ clean_html_1(article.summary)
477
+ )
478
+ )
479
+ );
480
+ }
481
+ } else if (article._type === 'lg-infeed' && article.adUnit) {
482
+ return React__default.createElement(ADlgInfeed, _extends({ index: index }, article));
483
+ } else if (article._type === 'brandInsightAd' && article.adUnit) {
484
+ return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
485
+ }
486
+ if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
487
+ return React__default.createElement(
488
+ React__default.Fragment,
489
+ { key: article._id ? article._id : index },
490
+ React__default.createElement(
491
+ Media,
492
+ {
493
+ key: article._id ? article._id : index,
494
+ style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
495
+ (article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
496
+ 'a',
497
+ { href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
498
+ React__default.createElement(
499
+ LazyLoad,
500
+ { height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
501
+ article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
502
+ ),
503
+ article.source && React__default.createElement(
504
+ 'div',
505
+ { className: 'content-category-label' },
506
+ React__default.createElement(
507
+ 'div',
508
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
509
+ article.source
510
+ )
511
+ )
512
+ ),
513
+ React__default.createElement(
514
+ Media.Body,
515
+ null,
516
+ React__default.createElement(
517
+ 'a',
518
+ { href: mapping[contentCategoryName] + '/' + article.url.current },
519
+ article.title && React__default.createElement(
520
+ 'h4',
521
+ { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
522
+ article.title
523
+ )
524
+ ),
525
+ showPublished && !showTimeDiff && article.published && React__default.createElement(
526
+ 'p',
527
+ { className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
528
+ moment(article.published).format('MMMM DD, YYYY')
529
+ ),
530
+ showTimeDiff && article.published && React__default.createElement(
531
+ 'p',
532
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
533
+ showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
534
+ if (index > 3) {
535
+ return null;
536
+ }
537
+ if (index === 3) {
538
+ return React__default.createElement(
539
+ React__default.Fragment,
540
+ null,
541
+ React__default.createElement(
542
+ 'em',
543
+ { style: { marginRight: '.5rem' } },
544
+ '...'
545
+ )
546
+ );
547
+ }
548
+ return React__default.createElement(
549
+ React__default.Fragment,
550
+ null,
551
+ React__default.createElement(
552
+ 'em',
553
+ null,
554
+ taxonomy.name
555
+ ),
556
+ ' |',
557
+ ' '
558
+ );
559
+ }),
560
+ ' ',
561
+ React__default.createElement(
562
+ 'span',
563
+ { style: { display: 'inline-block' } },
564
+ timeDifferenceCalc(article.published)
565
+ )
566
+ ),
567
+ React__default.createElement(
568
+ 'div',
569
+ { className: 'author-sec', style: { lineHeight: 1.5 } },
570
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
571
+ LazyLoad,
572
+ { height: 50 },
573
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
574
+ )
575
+ ),
576
+ !article.thumbnail && !defaultImage && article.source && React__default.createElement(
577
+ 'div',
578
+ { className: 'content-category-label' },
579
+ React__default.createElement(
580
+ 'div',
581
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
582
+ article.source
583
+ )
584
+ ),
585
+ React__default.createElement(
586
+ 'div',
587
+ { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
588
+ showCategory && article.contentCategory && React__default.createElement(
589
+ 'p',
590
+ {
591
+ className: 'article-category',
592
+ style: {
593
+ background: '#3FB618',
594
+ color: '#ffffff',
595
+ marginBottom: '.25rem',
596
+ display: 'inline-block',
597
+ padding: '0 .25rem',
598
+ fontSize: '.8rem'
599
+ } },
600
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
601
+ ),
602
+ article.issueSection && article.issueSection.name && React__default.createElement(
603
+ 'p',
604
+ {
605
+ className: 'issueSection',
606
+ style: {
607
+ background: '#000000',
608
+ color: '#ffffff',
609
+ marginBottom: '.25rem',
610
+ marginLeft: '.25rem',
611
+ display: 'inline-block',
612
+ padding: '0 .25rem',
613
+ fontSize: '.8rem'
614
+ } },
615
+ article.issueSection.name
616
+ )
617
+ ),
618
+ showPubInfo && (article.issue || article.volume) && React__default.createElement(
619
+ 'div',
620
+ { className: 'pubInfo' },
621
+ article.volume && React__default.createElement(
622
+ 'p',
623
+ { className: 'qdeVolume' },
624
+ article.volume
625
+ ),
626
+ article.issue && React__default.createElement(
627
+ 'p',
628
+ { className: 'qdeIssue' },
629
+ article.issue
630
+ )
631
+ ),
632
+ showIntro && article.summary && React__default.createElement(
633
+ 'p',
634
+ { className: 'pt-2 card-text' },
635
+ clean_html_1(article.summary)
636
+ )
637
+ )
638
+ ),
639
+ React__default.createElement(
640
+ 'div',
641
+ null,
642
+ main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
643
+ )
644
+ );
645
+ } else return null;
646
+ }) :
647
+ // For Javascript Disabled Cases
648
+ React__default.createElement(
649
+ 'noscript',
650
+ null,
651
+ data.map(function (article, index) {
652
+ var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
653
+
654
+ if (article._type === 'feature') {
655
+ featureCount++;
656
+ if (article.blank || checkExternalUrl(article.url.current)) {
657
+ return React__default.createElement(
658
+ Media,
659
+ {
660
+ key: article._id ? article._id : index,
661
+ className: 'feature-media',
662
+ style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
663
+ (article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
664
+ 'a',
665
+ { rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
666
+ React__default.createElement(
667
+ LazyLoad,
668
+ { height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
669
+ article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
670
+ ),
671
+ article.source && React__default.createElement(
672
+ 'div',
673
+ { className: 'content-category-label' },
674
+ React__default.createElement(
292
675
  'div',
293
- { className: 'content-category-label' },
294
- React.createElement(
295
- 'div',
296
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
297
- article.source
298
- )
676
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
677
+ article.source
678
+ )
679
+ )
680
+ ),
681
+ React__default.createElement(
682
+ Media.Body,
683
+ null,
684
+ React__default.createElement(
685
+ 'a',
686
+ { rel: 'noopener', href: article.url.current, target: '_blank' },
687
+ article.title && React__default.createElement(
688
+ 'h4',
689
+ { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
690
+ article.title
299
691
  )
300
692
  ),
301
- React.createElement(
302
- Media.Body,
303
- null,
304
- React.createElement(
305
- 'a',
306
- { rel: 'noopener', href: article.url.current, target: '_blank' },
307
- article.title && React.createElement(
308
- 'h4',
309
- { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
310
- article.title
311
- )
312
- ),
313
- showPublished && !showTimeDiff && article.published && React.createElement(
314
- 'p',
315
- { className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
316
- moment(article.published).format('MMMM DD, YYYY')
317
- ),
318
- showTimeDiff && article.published && React.createElement(
319
- 'p',
320
- { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
321
- showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
322
- if (index > 3) {
323
- return null;
324
- }
325
- if (index === 3) {
326
- return React.createElement(
327
- React.Fragment,
328
- null,
329
- React.createElement(
330
- 'em',
331
- { style: { marginRight: '.5rem' } },
332
- '...'
333
- )
334
- );
335
- }
336
- return React.createElement(
337
- React.Fragment,
693
+ showPublished && article.published && React__default.createElement(
694
+ 'p',
695
+ { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
696
+ moment(article.published).format('MMMM DD, YYYY')
697
+ ),
698
+ showTimeDiff && article.published && React__default.createElement(
699
+ 'p',
700
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
701
+ showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
702
+ if (index > 3) {
703
+ return null;
704
+ }
705
+ if (index === 3) {
706
+ return React__default.createElement(
707
+ React__default.Fragment,
338
708
  null,
339
- React.createElement(
709
+ React__default.createElement(
340
710
  'em',
341
- null,
342
- taxonomy.name
343
- ),
344
- ' |',
345
- ' '
711
+ { style: { marginRight: '.5rem' } },
712
+ '...'
713
+ )
346
714
  );
347
- }),
348
- ' ',
349
- React.createElement(
350
- 'span',
351
- { style: { display: 'inline-block' } },
352
- timeDifferenceCalc(article.published)
353
- )
354
- ),
355
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
356
- LazyLoad,
357
- { height: 50 },
358
- React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
359
- ),
360
- !article.thumbnail && !defaultImage && article.source && React.createElement(
361
- 'div',
362
- { className: 'content-category-label' },
363
- React.createElement(
364
- 'div',
365
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
366
- article.source
367
- )
368
- ),
369
- React.createElement(
715
+ }
716
+ return React__default.createElement(
717
+ React__default.Fragment,
718
+ null,
719
+ React__default.createElement(
720
+ 'em',
721
+ null,
722
+ taxonomy.name
723
+ ),
724
+ ' |',
725
+ ' '
726
+ );
727
+ }),
728
+ ' ',
729
+ React__default.createElement(
730
+ 'span',
731
+ { style: { display: 'inline-block' } },
732
+ timeDifferenceCalc(article.published)
733
+ )
734
+ ),
735
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
736
+ LazyLoad,
737
+ { height: 50 },
738
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
739
+ ),
740
+ !article.thumbnail && !defaultImage && article.source && React__default.createElement(
741
+ 'div',
742
+ { className: 'content-category-label' },
743
+ React__default.createElement(
370
744
  'div',
371
- { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
372
- showCategory && article.contentCategory && React.createElement(
373
- 'p',
374
- {
375
- className: 'article-category',
376
- style: {
377
- background: '#3FB618',
378
- color: '#ffffff',
379
- marginBottom: '.25rem',
380
- display: 'inline-block',
381
- padding: '0 .25rem',
382
- fontSize: '.8rem'
383
- } },
384
- getContentCategory(article.contentCategory.name, contentCategoryMapping)
385
- ),
386
- article.issueSection && article.issueSection.name && React.createElement(
387
- 'p',
388
- {
389
- className: 'issueSection',
390
- style: {
391
- background: '#000000',
392
- color: '#ffffff',
393
- marginBottom: '.25rem',
394
- marginLeft: '.25rem',
395
- display: 'inline-block',
396
- padding: '0 .25rem',
397
- fontSize: '.8rem'
398
- } },
399
- article.issueSection.name
400
- )
745
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
746
+ article.source
747
+ )
748
+ ),
749
+ React__default.createElement(
750
+ 'div',
751
+ { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
752
+ showCategory && article.contentCategory && React__default.createElement(
753
+ 'p',
754
+ {
755
+ className: 'article-category',
756
+ style: {
757
+ background: '#3FB618',
758
+ color: '#ffffff',
759
+ marginBottom: '.25rem',
760
+ display: 'inline-block',
761
+ padding: '0 .25rem',
762
+ fontSize: '.8rem'
763
+ } },
764
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
401
765
  ),
402
- showPubInfo && (article.issue || article.volume) && React.createElement(
403
- 'div',
404
- { className: 'pubInfo' },
405
- article.volume && React.createElement(
406
- 'p',
407
- { className: 'qdeVolume' },
408
- article.volume
409
- ),
410
- article.issue && React.createElement(
411
- 'p',
412
- { className: 'qdeIssue' },
413
- article.issue
414
- )
766
+ article.issueSection && article.issueSection.name && React__default.createElement(
767
+ 'p',
768
+ {
769
+ className: 'issueSection',
770
+ style: {
771
+ background: '#000000',
772
+ color: '#ffffff',
773
+ marginBottom: '.25rem',
774
+ marginLeft: '.25rem',
775
+ display: 'inline-block',
776
+ padding: '0 .25rem',
777
+ fontSize: '.8rem'
778
+ } },
779
+ article.issueSection.name
780
+ )
781
+ ),
782
+ showPubInfo && (article.issue || article.volume) && React__default.createElement(
783
+ 'div',
784
+ { className: 'pubInfo' },
785
+ article.volume && React__default.createElement(
786
+ 'p',
787
+ { className: 'qdeVolume' },
788
+ article.volume
415
789
  ),
416
- showIntro && article.summary && React.createElement(
790
+ article.issue && React__default.createElement(
417
791
  'p',
418
- { className: 'pt-2 card-text' },
419
- clean_html_1(article.summary)
792
+ { className: 'qdeIssue' },
793
+ article.issue
420
794
  )
795
+ ),
796
+ showIntro && article.summary && React__default.createElement(
797
+ 'p',
798
+ { className: 'pt-2 card-text' },
799
+ clean_html_1(article.summary)
421
800
  )
422
801
  )
423
- )
424
- );
425
- } else {
426
- return React.createElement(
427
- VisibilitySensor,
428
- {
429
- key: article._id ? article._id : index,
430
- partialVisibility: true,
431
- onChange: function onChange(isVisible) {
432
- isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
433
- } },
434
- React.createElement(
435
- React.Fragment,
436
- null,
437
- React.createElement(
438
- Media,
439
- {
440
- key: article._id ? article._id : index,
441
- className: 'feature-media',
442
- style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
443
- (article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
802
+ );
803
+ } else {
804
+ return React__default.createElement(
805
+ Media,
806
+ {
807
+ key: article._id ? article._id : index,
808
+ className: 'feature-media',
809
+ style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
810
+ (article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
811
+ 'a',
812
+ { href: article.url.current, className: 'feature-wrapper' },
813
+ React__default.createElement(
814
+ LazyLoad,
815
+ { height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
816
+ article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
817
+ ),
818
+ article.source && React__default.createElement(
819
+ 'div',
820
+ { className: 'content-category-label' },
821
+ React__default.createElement(
822
+ 'div',
823
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
824
+ article.source
825
+ )
826
+ )
827
+ ),
828
+ React__default.createElement(
829
+ Media.Body,
830
+ null,
831
+ React__default.createElement(
444
832
  'a',
445
- { href: article.url.current, className: 'feature-wrapper' },
446
- React.createElement(
447
- LazyLoad,
448
- { height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
449
- article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
450
- ),
451
- article.source && React.createElement(
833
+ { href: article.url.current },
834
+ article.title && React__default.createElement(
835
+ 'h4',
836
+ { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
837
+ article.title
838
+ )
839
+ ),
840
+ showPublished && article.published && React__default.createElement(
841
+ 'p',
842
+ { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
843
+ moment(article.published).format('MMMM DD, YYYY')
844
+ ),
845
+ showTimeDiff && article.published && React__default.createElement(
846
+ 'p',
847
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
848
+ showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
849
+ if (index > 3) {
850
+ return null;
851
+ }
852
+ if (index === 3) {
853
+ return React__default.createElement(
854
+ React__default.Fragment,
855
+ null,
856
+ React__default.createElement(
857
+ 'em',
858
+ { style: { marginRight: '.5rem' } },
859
+ '...'
860
+ )
861
+ );
862
+ }
863
+ return React__default.createElement(
864
+ React__default.Fragment,
865
+ null,
866
+ React__default.createElement(
867
+ 'em',
868
+ null,
869
+ taxonomy.name
870
+ ),
871
+ ' |',
872
+ ' '
873
+ );
874
+ }),
875
+ ' ',
876
+ React__default.createElement(
877
+ 'span',
878
+ { style: { display: 'inline-block' } },
879
+ timeDifferenceCalc(article.published)
880
+ )
881
+ ),
882
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
883
+ LazyLoad,
884
+ { height: 50 },
885
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
886
+ ),
887
+ !article.thumbnail && !defaultImage && article.source && React__default.createElement(
888
+ 'div',
889
+ { className: 'content-category-label' },
890
+ React__default.createElement(
452
891
  'div',
453
- { className: 'content-category-label' },
454
- React.createElement(
455
- 'div',
456
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
457
- article.source
458
- )
892
+ { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
893
+ article.source
459
894
  )
460
895
  ),
461
- React.createElement(
462
- Media.Body,
463
- null,
464
- React.createElement(
465
- 'a',
466
- { href: article.url.current },
467
- article.title && React.createElement(
468
- 'h4',
469
- { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
470
- article.title
471
- )
472
- ),
473
- showPublished && !showTimeDiff && article.published && React.createElement(
896
+ React__default.createElement(
897
+ 'div',
898
+ { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
899
+ showCategory && article.contentCategory && React__default.createElement(
474
900
  'p',
475
- { className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
476
- moment(article.published).format('MMMM DD, YYYY')
901
+ {
902
+ className: 'article-category',
903
+ style: {
904
+ background: '#3FB618',
905
+ color: '#ffffff',
906
+ marginBottom: '.25rem',
907
+ display: 'inline-block',
908
+ padding: '0 .25rem',
909
+ fontSize: '.8rem'
910
+ } },
911
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
477
912
  ),
478
- showTimeDiff && article.published && React.createElement(
913
+ article.issueSection && article.issueSection.name && React__default.createElement(
479
914
  'p',
480
- { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
481
- showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
482
- if (index > 3) {
483
- return null;
484
- }
485
- if (index === 3) {
486
- return React.createElement(
487
- React.Fragment,
488
- null,
489
- React.createElement(
490
- 'em',
491
- { style: { marginRight: '.5rem' } },
492
- '...'
493
- )
494
- );
495
- }
496
- if (index === 3) {
497
- return React.createElement(
498
- React.Fragment,
499
- null,
500
- React.createElement(
501
- 'em',
502
- { style: { marginRight: '.5rem' } },
503
- '...'
504
- )
505
- );
506
- }
507
- return React.createElement(
508
- React.Fragment,
509
- null,
510
- React.createElement(
511
- 'em',
512
- null,
513
- taxonomy.name
514
- ),
515
- ' |',
516
- ' '
517
- );
518
- }),
519
- ' ',
520
- React.createElement(
521
- 'span',
522
- { style: { display: 'inline-block' } },
523
- timeDifferenceCalc(article.published)
524
- )
525
- ),
526
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
527
- LazyLoad,
528
- { height: 50 },
529
- React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
530
- ),
531
- !article.thumbnail && !defaultImage && article.source && React.createElement(
532
- 'div',
533
- { className: 'content-category-label' },
534
- React.createElement(
535
- 'div',
536
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
537
- article.source
538
- )
539
- ),
540
- React.createElement(
541
- 'div',
542
- { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
543
- showCategory && article.contentCategory && React.createElement(
544
- 'p',
545
- {
546
- className: 'article-category',
547
- style: {
548
- background: '#3FB618',
549
- color: '#ffffff',
550
- marginBottom: '.25rem',
551
- display: 'inline-block',
552
- padding: '0 .25rem',
553
- fontSize: '.8rem'
554
- } },
555
- getContentCategory(article.contentCategory.name, contentCategoryMapping)
556
- ),
557
- article.issueSection && article.issueSection.name && React.createElement(
558
- 'p',
559
- {
560
- className: 'issueSection',
561
- style: {
562
- background: '#000000',
563
- color: '#ffffff',
564
- marginBottom: '.25rem',
565
- marginLeft: '.25rem',
566
- display: 'inline-block',
567
- padding: '0 .25rem',
568
- fontSize: '.8rem'
569
- } },
570
- article.issueSection.name
571
- )
572
- ),
573
- showPubInfo && (article.issue || article.volume) && React.createElement(
574
- 'div',
575
- { className: 'pubInfo' },
576
- article.volume && React.createElement(
577
- 'p',
578
- { className: 'qdeVolume' },
579
- article.volume
580
- ),
581
- article.issue && React.createElement(
582
- 'p',
583
- { className: 'qdeIssue' },
584
- article.issue
585
- )
915
+ {
916
+ className: 'issueSection',
917
+ style: {
918
+ background: '#000000',
919
+ color: '#ffffff',
920
+ marginBottom: '.25rem',
921
+ marginLeft: '.25rem',
922
+ display: 'inline-block',
923
+ padding: '0 .25rem',
924
+ fontSize: '.8rem'
925
+ } },
926
+ article.issueSection.name
927
+ )
928
+ ),
929
+ showPubInfo && (article.issue || article.volume) && React__default.createElement(
930
+ 'div',
931
+ { className: 'pubInfo' },
932
+ article.volume && React__default.createElement(
933
+ 'p',
934
+ { className: 'qdeVolume' },
935
+ article.volume
586
936
  ),
587
- showIntro && article.summary && React.createElement(
937
+ article.issue && React__default.createElement(
588
938
  'p',
589
- { className: 'pt-2 card-text' },
590
- clean_html_1(article.summary)
939
+ { className: 'qdeIssue' },
940
+ article.issue
591
941
  )
942
+ ),
943
+ showIntro && article.summary && React__default.createElement(
944
+ 'p',
945
+ { className: 'pt-2 card-text' },
946
+ clean_html_1(article.summary)
592
947
  )
593
948
  )
594
- )
595
- );
949
+ );
950
+ }
951
+ } else if (article._type === 'lg-infeed' && article.adUnit) {
952
+ return React__default.createElement(ADlgInfeed, _extends({ index: index }, article));
953
+ } else if (article._type === 'brandInsightAd' && article.adUnit) {
954
+ return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
596
955
  }
597
- } else if (article._type === 'lg-infeed' && article.adUnit) {
598
- return React.createElement(ADlgInfeed, _extends({ index: index }, article));
599
- } else if (article._type === 'brandInsightAd' && article.adUnit) {
600
- return React.createElement(ADInfeed, { index: index, infeedAd: article });
601
- }
602
- if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
603
- return React.createElement(
604
- VisibilitySensor,
605
- {
606
- key: article._id ? article._id : index,
607
- onChange: function onChange(isVisible) {
608
- // Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
609
- isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
610
- } },
611
- React.createElement(
612
- React.Fragment,
613
- null,
614
- React.createElement(
956
+ if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
957
+ return React__default.createElement(
958
+ React__default.Fragment,
959
+ { key: article._id ? article._id : index },
960
+ React__default.createElement(
615
961
  Media,
616
962
  {
617
963
  key: article._id ? article._id : index,
618
964
  style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
619
- (article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
965
+ (article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
620
966
  'a',
621
967
  { href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
622
- React.createElement(
968
+ React__default.createElement(
623
969
  LazyLoad,
624
- { height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
625
- article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
970
+ { height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
971
+ article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
626
972
  ),
627
- article.source && React.createElement(
973
+ article.source && React__default.createElement(
628
974
  'div',
629
975
  { className: 'content-category-label' },
630
- React.createElement(
976
+ React__default.createElement(
631
977
  'div',
632
978
  { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
633
979
  article.source
634
980
  )
635
981
  )
636
982
  ),
637
- React.createElement(
983
+ React__default.createElement(
638
984
  Media.Body,
639
985
  null,
640
- React.createElement(
986
+ React__default.createElement(
641
987
  'a',
642
988
  { href: mapping[contentCategoryName] + '/' + article.url.current },
643
- article.title && React.createElement(
989
+ article.title && React__default.createElement(
644
990
  'h4',
645
991
  { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
646
992
  article.title
647
993
  )
648
994
  ),
649
- showPublished && !showTimeDiff && article.published && React.createElement(
995
+ showPublished && article.published && React__default.createElement(
650
996
  'p',
651
- { className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
997
+ { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
652
998
  moment(article.published).format('MMMM DD, YYYY')
653
999
  ),
654
- showTimeDiff && article.published && React.createElement(
1000
+ showTimeDiff && article.published && React__default.createElement(
655
1001
  'p',
656
1002
  { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
657
1003
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
@@ -659,20 +1005,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
659
1005
  return null;
660
1006
  }
661
1007
  if (index === 3) {
662
- return React.createElement(
663
- React.Fragment,
1008
+ return React__default.createElement(
1009
+ React__default.Fragment,
664
1010
  null,
665
- React.createElement(
1011
+ React__default.createElement(
666
1012
  'em',
667
1013
  { style: { marginRight: '.5rem' } },
668
1014
  '...'
669
1015
  )
670
1016
  );
671
1017
  }
672
- return React.createElement(
673
- React.Fragment,
1018
+ return React__default.createElement(
1019
+ React__default.Fragment,
674
1020
  null,
675
- React.createElement(
1021
+ React__default.createElement(
676
1022
  'em',
677
1023
  null,
678
1024
  taxonomy.name
@@ -682,34 +1028,34 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
682
1028
  );
683
1029
  }),
684
1030
  ' ',
685
- React.createElement(
1031
+ React__default.createElement(
686
1032
  'span',
687
1033
  { style: { display: 'inline-block' } },
688
1034
  timeDifferenceCalc(article.published)
689
1035
  )
690
1036
  ),
691
- React.createElement(
1037
+ React__default.createElement(
692
1038
  'div',
693
1039
  { className: 'author-sec', style: { lineHeight: 1.5 } },
694
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
1040
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
695
1041
  LazyLoad,
696
1042
  { height: 50 },
697
- React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
1043
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
698
1044
  )
699
1045
  ),
700
- !article.thumbnail && !defaultImage && article.source && React.createElement(
1046
+ !article.thumbnail && !defaultImage && article.source && React__default.createElement(
701
1047
  'div',
702
1048
  { className: 'content-category-label' },
703
- React.createElement(
1049
+ React__default.createElement(
704
1050
  'div',
705
1051
  { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
706
1052
  article.source
707
1053
  )
708
1054
  ),
709
- React.createElement(
1055
+ React__default.createElement(
710
1056
  'div',
711
1057
  { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
712
- showCategory && article.contentCategory && React.createElement(
1058
+ showCategory && article.contentCategory && React__default.createElement(
713
1059
  'p',
714
1060
  {
715
1061
  className: 'article-category',
@@ -723,7 +1069,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
723
1069
  } },
724
1070
  getContentCategory(article.contentCategory.name, contentCategoryMapping)
725
1071
  ),
726
- article.issueSection && article.issueSection.name && React.createElement(
1072
+ article.issueSection && article.issueSection.name && React__default.createElement(
727
1073
  'p',
728
1074
  {
729
1075
  className: 'issueSection',
@@ -739,556 +1085,49 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
739
1085
  article.issueSection.name
740
1086
  )
741
1087
  ),
742
- showPubInfo && (article.issue || article.volume) && React.createElement(
1088
+ showPubInfo && (article.issue || article.volume) && React__default.createElement(
743
1089
  'div',
744
1090
  { className: 'pubInfo' },
745
- article.volume && React.createElement(
1091
+ article.volume && React__default.createElement(
746
1092
  'p',
747
1093
  { className: 'qdeVolume' },
748
1094
  article.volume
749
1095
  ),
750
- article.issue && React.createElement(
1096
+ article.issue && React__default.createElement(
751
1097
  'p',
752
1098
  { className: 'qdeIssue' },
753
1099
  article.issue
754
1100
  )
755
1101
  ),
756
- showIntro && article.summary && React.createElement(
1102
+ showIntro && article.summary && React__default.createElement(
757
1103
  'p',
758
1104
  { className: 'pt-2 card-text' },
759
1105
  clean_html_1(article.summary)
760
1106
  )
761
1107
  )
762
1108
  ),
763
- React.createElement(
1109
+ React__default.createElement(
764
1110
  'div',
765
1111
  null,
766
- main_43 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
767
- )
768
- )
769
- );
770
- } else return null;
771
- }) :
772
- // For Javascript Disabled Cases
773
- React.createElement(
774
- 'noscript',
775
- null,
776
- data.map(function (article, index) {
777
- var pageNumber = article.pageNumber || values.page;
778
- var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
779
-
780
- if (article._type === 'feature') {
781
- featureCount++;
782
- if (article.blank || checkExternalUrl(article.url.current)) {
783
- return React.createElement(
784
- VisibilitySensor,
785
- {
786
- key: article._id ? article._id : index,
787
- partialVisibility: true,
788
- onChange: function onChange(isVisible) {
789
- isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
790
- } },
791
- React.createElement(
792
- React.Fragment,
793
- null,
794
- React.createElement(
795
- Media,
796
- {
797
- key: article._id ? article._id : index,
798
- className: 'feature-media',
799
- style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
800
- (article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
801
- 'a',
802
- { rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
803
- React.createElement(
804
- LazyLoad,
805
- { height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
806
- article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
807
- ),
808
- article.source && React.createElement(
809
- 'div',
810
- { className: 'content-category-label' },
811
- React.createElement(
812
- 'div',
813
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
814
- article.source
815
- )
816
- )
817
- ),
818
- React.createElement(
819
- Media.Body,
820
- null,
821
- React.createElement(
822
- 'a',
823
- { rel: 'noopener', href: article.url.current, target: '_blank' },
824
- article.title && React.createElement(
825
- 'h4',
826
- { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
827
- article.title
828
- )
829
- ),
830
- showPublished && article.published && React.createElement(
831
- 'p',
832
- { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
833
- moment(article.published).format('MMMM DD, YYYY')
834
- ),
835
- showTimeDiff && article.published && React.createElement(
836
- 'p',
837
- { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
838
- showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
839
- if (index > 3) {
840
- return null;
841
- }
842
- if (index === 3) {
843
- return React.createElement(
844
- React.Fragment,
845
- null,
846
- React.createElement(
847
- 'em',
848
- { style: { marginRight: '.5rem' } },
849
- '...'
850
- )
851
- );
852
- }
853
- return React.createElement(
854
- React.Fragment,
855
- null,
856
- React.createElement(
857
- 'em',
858
- null,
859
- taxonomy.name
860
- ),
861
- ' |',
862
- ' '
863
- );
864
- }),
865
- ' ',
866
- React.createElement(
867
- 'span',
868
- { style: { display: 'inline-block' } },
869
- timeDifferenceCalc(article.published)
870
- )
871
- ),
872
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
873
- LazyLoad,
874
- { height: 50 },
875
- React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
876
- ),
877
- !article.thumbnail && !defaultImage && article.source && React.createElement(
878
- 'div',
879
- { className: 'content-category-label' },
880
- React.createElement(
881
- 'div',
882
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
883
- article.source
884
- )
885
- ),
886
- React.createElement(
887
- 'div',
888
- { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
889
- showCategory && article.contentCategory && React.createElement(
890
- 'p',
891
- {
892
- className: 'article-category',
893
- style: {
894
- background: '#3FB618',
895
- color: '#ffffff',
896
- marginBottom: '.25rem',
897
- display: 'inline-block',
898
- padding: '0 .25rem',
899
- fontSize: '.8rem'
900
- } },
901
- getContentCategory(article.contentCategory.name, contentCategoryMapping)
902
- ),
903
- article.issueSection && article.issueSection.name && React.createElement(
904
- 'p',
905
- {
906
- className: 'issueSection',
907
- style: {
908
- background: '#000000',
909
- color: '#ffffff',
910
- marginBottom: '.25rem',
911
- marginLeft: '.25rem',
912
- display: 'inline-block',
913
- padding: '0 .25rem',
914
- fontSize: '.8rem'
915
- } },
916
- article.issueSection.name
917
- )
918
- ),
919
- showPubInfo && (article.issue || article.volume) && React.createElement(
920
- 'div',
921
- { className: 'pubInfo' },
922
- article.volume && React.createElement(
923
- 'p',
924
- { className: 'qdeVolume' },
925
- article.volume
926
- ),
927
- article.issue && React.createElement(
928
- 'p',
929
- { className: 'qdeIssue' },
930
- article.issue
931
- )
932
- ),
933
- showIntro && article.summary && React.createElement(
934
- 'p',
935
- { className: 'pt-2 card-text' },
936
- clean_html_1(article.summary)
937
- )
938
- )
939
- )
940
- )
941
- );
942
- } else {
943
- return React.createElement(
944
- VisibilitySensor,
945
- {
946
- key: article._id ? article._id : index,
947
- partialVisibility: true,
948
- onChange: function onChange(isVisible) {
949
- isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
950
- } },
951
- React.createElement(
952
- React.Fragment,
953
- null,
954
- React.createElement(
955
- Media,
956
- {
957
- key: article._id ? article._id : index,
958
- className: 'feature-media',
959
- style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
960
- (article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
961
- 'a',
962
- { href: article.url.current, className: 'feature-wrapper' },
963
- React.createElement(
964
- LazyLoad,
965
- { height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
966
- article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
967
- ),
968
- article.source && React.createElement(
969
- 'div',
970
- { className: 'content-category-label' },
971
- React.createElement(
972
- 'div',
973
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
974
- article.source
975
- )
976
- )
977
- ),
978
- React.createElement(
979
- Media.Body,
980
- null,
981
- React.createElement(
982
- 'a',
983
- { href: article.url.current },
984
- article.title && React.createElement(
985
- 'h4',
986
- { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
987
- article.title
988
- )
989
- ),
990
- showPublished && article.published && React.createElement(
991
- 'p',
992
- { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
993
- moment(article.published).format('MMMM DD, YYYY')
994
- ),
995
- showTimeDiff && article.published && React.createElement(
996
- 'p',
997
- { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
998
- showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
999
- if (index > 3) {
1000
- return null;
1001
- }
1002
- if (index === 3) {
1003
- return React.createElement(
1004
- React.Fragment,
1005
- null,
1006
- React.createElement(
1007
- 'em',
1008
- { style: { marginRight: '.5rem' } },
1009
- '...'
1010
- )
1011
- );
1012
- }
1013
- return React.createElement(
1014
- React.Fragment,
1015
- null,
1016
- React.createElement(
1017
- 'em',
1018
- null,
1019
- taxonomy.name
1020
- ),
1021
- ' |',
1022
- ' '
1023
- );
1024
- }),
1025
- ' ',
1026
- React.createElement(
1027
- 'span',
1028
- { style: { display: 'inline-block' } },
1029
- timeDifferenceCalc(article.published)
1030
- )
1031
- ),
1032
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
1033
- LazyLoad,
1034
- { height: 50 },
1035
- React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
1036
- ),
1037
- !article.thumbnail && !defaultImage && article.source && React.createElement(
1038
- 'div',
1039
- { className: 'content-category-label' },
1040
- React.createElement(
1041
- 'div',
1042
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
1043
- article.source
1044
- )
1045
- ),
1046
- React.createElement(
1047
- 'div',
1048
- { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
1049
- showCategory && article.contentCategory && React.createElement(
1050
- 'p',
1051
- {
1052
- className: 'article-category',
1053
- style: {
1054
- background: '#3FB618',
1055
- color: '#ffffff',
1056
- marginBottom: '.25rem',
1057
- display: 'inline-block',
1058
- padding: '0 .25rem',
1059
- fontSize: '.8rem'
1060
- } },
1061
- getContentCategory(article.contentCategory.name, contentCategoryMapping)
1062
- ),
1063
- article.issueSection && article.issueSection.name && React.createElement(
1064
- 'p',
1065
- {
1066
- className: 'issueSection',
1067
- style: {
1068
- background: '#000000',
1069
- color: '#ffffff',
1070
- marginBottom: '.25rem',
1071
- marginLeft: '.25rem',
1072
- display: 'inline-block',
1073
- padding: '0 .25rem',
1074
- fontSize: '.8rem'
1075
- } },
1076
- article.issueSection.name
1077
- )
1078
- ),
1079
- showPubInfo && (article.issue || article.volume) && React.createElement(
1080
- 'div',
1081
- { className: 'pubInfo' },
1082
- article.volume && React.createElement(
1083
- 'p',
1084
- { className: 'qdeVolume' },
1085
- article.volume
1086
- ),
1087
- article.issue && React.createElement(
1088
- 'p',
1089
- { className: 'qdeIssue' },
1090
- article.issue
1091
- )
1092
- ),
1093
- showIntro && article.summary && React.createElement(
1094
- 'p',
1095
- { className: 'pt-2 card-text' },
1096
- clean_html_1(article.summary)
1097
- )
1098
- )
1099
- )
1100
- )
1101
- );
1102
- }
1103
- } else if (article._type === 'lg-infeed' && article.adUnit) {
1104
- return React.createElement(ADlgInfeed, _extends({ index: index }, article));
1105
- } else if (article._type === 'brandInsightAd' && article.adUnit) {
1106
- return React.createElement(ADInfeed, { index: index, infeedAd: article });
1107
- }
1108
- if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
1109
- return React.createElement(
1110
- VisibilitySensor,
1111
- {
1112
- key: article._id ? article._id : index,
1113
- onChange: function onChange(isVisible) {
1114
- // Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
1115
- isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
1116
- } },
1117
- React.createElement(
1118
- React.Fragment,
1119
- null,
1120
- React.createElement(
1121
- Media,
1122
- {
1123
- key: article._id ? article._id : index,
1124
- style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
1125
- (article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
1126
- 'a',
1127
- { href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
1128
- React.createElement(
1129
- LazyLoad,
1130
- { height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
1131
- article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
1132
- ),
1133
- article.source && React.createElement(
1134
- 'div',
1135
- { className: 'content-category-label' },
1136
- React.createElement(
1137
- 'div',
1138
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
1139
- article.source
1140
- )
1141
- )
1142
- ),
1143
- React.createElement(
1144
- Media.Body,
1145
- null,
1146
- React.createElement(
1147
- 'a',
1148
- { href: mapping[contentCategoryName] + '/' + article.url.current },
1149
- article.title && React.createElement(
1150
- 'h4',
1151
- { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
1152
- article.title
1153
- )
1154
- ),
1155
- showPublished && article.published && React.createElement(
1156
- 'p',
1157
- { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
1158
- moment(article.published).format('MMMM DD, YYYY')
1159
- ),
1160
- showTimeDiff && article.published && React.createElement(
1161
- 'p',
1162
- { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
1163
- showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
1164
- if (index > 3) {
1165
- return null;
1166
- }
1167
- if (index === 3) {
1168
- return React.createElement(
1169
- React.Fragment,
1170
- null,
1171
- React.createElement(
1172
- 'em',
1173
- { style: { marginRight: '.5rem' } },
1174
- '...'
1175
- )
1176
- );
1177
- }
1178
- return React.createElement(
1179
- React.Fragment,
1180
- null,
1181
- React.createElement(
1182
- 'em',
1183
- null,
1184
- taxonomy.name
1185
- ),
1186
- ' |',
1187
- ' '
1188
- );
1189
- }),
1190
- ' ',
1191
- React.createElement(
1192
- 'span',
1193
- { style: { display: 'inline-block' } },
1194
- timeDifferenceCalc(article.published)
1195
- )
1196
- ),
1197
- React.createElement(
1198
- 'div',
1199
- { className: 'author-sec', style: { lineHeight: 1.5 } },
1200
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
1201
- LazyLoad,
1202
- { height: 50 },
1203
- React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
1204
- )
1205
- ),
1206
- !article.thumbnail && !defaultImage && article.source && React.createElement(
1207
- 'div',
1208
- { className: 'content-category-label' },
1209
- React.createElement(
1210
- 'div',
1211
- { className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
1212
- article.source
1213
- )
1214
- ),
1215
- React.createElement(
1216
- 'div',
1217
- { style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
1218
- showCategory && article.contentCategory && React.createElement(
1219
- 'p',
1220
- {
1221
- className: 'article-category',
1222
- style: {
1223
- background: '#3FB618',
1224
- color: '#ffffff',
1225
- marginBottom: '.25rem',
1226
- display: 'inline-block',
1227
- padding: '0 .25rem',
1228
- fontSize: '.8rem'
1229
- } },
1230
- getContentCategory(article.contentCategory.name, contentCategoryMapping)
1231
- ),
1232
- article.issueSection && article.issueSection.name && React.createElement(
1233
- 'p',
1234
- {
1235
- className: 'issueSection',
1236
- style: {
1237
- background: '#000000',
1238
- color: '#ffffff',
1239
- marginBottom: '.25rem',
1240
- marginLeft: '.25rem',
1241
- display: 'inline-block',
1242
- padding: '0 .25rem',
1243
- fontSize: '.8rem'
1244
- } },
1245
- article.issueSection.name
1246
- )
1247
- ),
1248
- showPubInfo && (article.issue || article.volume) && React.createElement(
1249
- 'div',
1250
- { className: 'pubInfo' },
1251
- article.volume && React.createElement(
1252
- 'p',
1253
- { className: 'qdeVolume' },
1254
- article.volume
1255
- ),
1256
- article.issue && React.createElement(
1257
- 'p',
1258
- { className: 'qdeIssue' },
1259
- article.issue
1260
- )
1261
- ),
1262
- showIntro && article.summary && React.createElement(
1263
- 'p',
1264
- { className: 'pt-2 card-text' },
1265
- clean_html_1(article.summary)
1266
- )
1267
- )
1268
- ),
1269
- React.createElement(
1270
- 'div',
1271
- null,
1272
- main_43 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
1273
- )
1112
+ main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
1274
1113
  )
1275
1114
  );
1276
1115
  } else return null;
1277
1116
  })
1278
- ) : React.createElement(
1117
+ ) : React__default.createElement(
1279
1118
  'div',
1280
1119
  null,
1281
- React.createElement(
1120
+ React__default.createElement(
1282
1121
  'h5',
1283
1122
  null,
1284
- React.createElement(
1123
+ React__default.createElement(
1285
1124
  'em',
1286
1125
  null,
1287
1126
  'New content coming soon, please check back later.'
1288
1127
  )
1289
1128
  )
1290
1129
  ),
1291
- React.createElement(
1130
+ React__default.createElement(
1292
1131
  'style',
1293
1132
  { jsx: 'true' },
1294
1133
  '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n width: fit-content;\n width: -moz-fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n height: 100%;\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .sanityDisplayLabel {\n max-width: 100%;\n }\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column !important;\n }\n }\n '
@@ -1297,11 +1136,11 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
1297
1136
  };
1298
1137
 
1299
1138
  var ImagePlaceholder = function ImagePlaceholder() {
1300
- return React.createElement(
1301
- React.Fragment,
1139
+ return React__default.createElement(
1140
+ React__default.Fragment,
1302
1141
  null,
1303
- React.createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
1304
- React.createElement(
1142
+ React__default.createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
1143
+ React__default.createElement(
1305
1144
  'style',
1306
1145
  { jsx: 'true' },
1307
1146
  '\n .queuedeck-exp-image-placeholder {\n width: 240px;\n height: 0;\n padding-top: calc(240px * 9 / 16);\n margin: 0 1rem 0 0;\n }\n @media only screen and (max-width: 767px) {\n .queuedeck-exp-image-placeholder {\n width: 100%;\n height: 0;\n padding-top: calc(100% * 9 / 16);\n margin: 0 0 1rem 0;\n }\n }\n '
@@ -1311,7 +1150,7 @@ var ImagePlaceholder = function ImagePlaceholder() {
1311
1150
 
1312
1151
  var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
1313
1152
  var i = numberOfItemsBeforeAd < 6 ? 0 : ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
1314
- return React.createElement(
1153
+ return React__default.createElement(
1315
1154
  'div',
1316
1155
  { style: { display: 'flex', flex: '1 0 auto' } },
1317
1156
  rightItems[i].component
@@ -1328,23 +1167,11 @@ var usePrevious = function usePrevious(value) {
1328
1167
 
1329
1168
  var QueueDeckExpanded = function QueueDeckExpanded(props) {
1330
1169
  var router = useRouter();
1331
-
1332
- // Logging GA Pageview on path change
1333
- var prevPath = usePrevious(lodash.get(router, 'asPath', undefined));
1334
- useEffect(function () {
1335
- var pageview = props.pageview;
1336
-
1337
- var currentPath = router.asPath;
1338
- if (prevPath && prevPath !== currentPath && pageview) {
1339
- pageview(router.asPath);
1340
- }
1341
- }, [router]);
1342
-
1343
1170
  var initialData = props.dataRecord,
1171
+ initialCurrentPage = props.currentPage,
1344
1172
  client = props.client,
1345
1173
  params = props.params,
1346
1174
  query = props.query,
1347
- autoScroll = props.autoScroll,
1348
1175
  pointer = props.pointer,
1349
1176
  pointerArray = props.pointerArray,
1350
1177
  mapping = props.mapping,
@@ -1374,159 +1201,160 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1374
1201
  _props$showIntro = props.showIntro,
1375
1202
  showIntro = _props$showIntro === undefined ? true : _props$showIntro,
1376
1203
  _props$contentCategor = props.contentCategoryMapping,
1377
- contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor;
1378
- var initialCurrentPage = props.currentPage,
1379
- showPublished = props.showPublished;
1204
+ contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor,
1205
+ showPublished = props.showPublished,
1206
+ totalDataCount = props.totalDataCount;
1380
1207
 
1381
1208
  var _useState3 = useState(initialData),
1382
1209
  _useState4 = _slicedToArray(_useState3, 2),
1383
1210
  data = _useState4[0],
1384
1211
  setData = _useState4[1];
1385
1212
 
1386
- var _useState5 = useState(true),
1213
+ var _useState5 = useState(initialCurrentPage || 1),
1387
1214
  _useState6 = _slicedToArray(_useState5, 2),
1388
- scrolling = _useState6[0],
1389
- setScrolling = _useState6[1];
1390
-
1391
- var _useState7 = useState(initialCurrentPage || 1),
1392
- _useState8 = _slicedToArray(_useState7, 2),
1393
- currentPage = _useState8[0],
1394
- setCurrentPage = _useState8[1];
1215
+ currentPage = _useState6[0],
1216
+ setCurrentPage = _useState6[1];
1395
1217
 
1396
- var _useState9 = useState(initialData ? initialData.length : 0),
1397
- _useState10 = _slicedToArray(_useState9, 2),
1398
- lastDataSize = _useState10[0],
1399
- setLastDataSize = _useState10[1];
1218
+ var itemsPerPage = params && params.itemsPerPage ? params.itemsPerPage : params && params.from && params.to ? params.to - params.from : 10;
1400
1219
 
1401
- var _useState11 = useState({
1402
- from: params ? params.from : 0,
1403
- to: params ? params.to : 0,
1404
- page: initialCurrentPage ? initialCurrentPage : 1
1405
- }),
1406
- _useState12 = _slicedToArray(_useState11, 2),
1407
- values = _useState12[0],
1408
- setValues = _useState12[1];
1220
+ // Logging GA Pageview on path change
1221
+ var prevPath = usePrevious(lodash.get(router, 'asPath', undefined));
1222
+ useEffect(function () {
1223
+ var currentPath = router.asPath;
1224
+ if (prevPath && prevPath !== currentPath && pageview) {
1225
+ pageview(router.asPath);
1226
+ }
1227
+ }, [router]);
1409
1228
 
1410
- var itemsPerPage = params && params.itemsPerPage ? params.itemsPerPage : 10;
1229
+ var seoPagination = function seoPagination(pageNumber) {
1230
+ var path = router.asPath;
1231
+ var qrIndex = path.indexOf('?');
1232
+ var pathname = router.pathname;
1233
+ var queryString = '';
1234
+ if (qrIndex > 0) {
1235
+ path = path.substring(1, qrIndex);
1236
+ var partialQS = router.asPath.substring(qrIndex + 1);
1237
+ var partialQSArr = partialQS.split('&');
1238
+ // exclude page=xxx from query string
1239
+ partialQSArr.map(function (item) {
1240
+ var itemArr = item.split('=');
1241
+ var key = itemArr[0];
1242
+ var val = itemArr[1];
1243
+ if (key !== 'page') queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
1244
+ });
1245
+ }
1246
+ if (queryString.length > 0) path += '?' + queryString;
1247
+ pageNumber = parseInt(pageNumber);
1248
+ if (currentPage !== pageNumber) {
1249
+ if (path[0] !== '/') path = '/' + path;
1250
+ var newPath = pageNumber === 1 ? '' + path : '' + path + (queryString.length > 0 ? '&' : '?') + 'page=' + pageNumber;
1251
+ router.push(pathname, newPath, {
1252
+ shallow: true
1253
+ });
1254
+ }
1255
+ };
1411
1256
 
1412
- var prevValues = usePrevious(values);
1257
+ var handlePageChange = function () {
1258
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(selectedPage) {
1259
+ var start, newParams, newData;
1260
+ return regenerator.wrap(function _callee$(_context) {
1261
+ while (1) {
1262
+ switch (_context.prev = _context.next) {
1263
+ case 0:
1264
+ setData(null);
1265
+ document.body.scrollTop = 0;
1266
+ document.documentElement.scrollTop = 0;
1267
+ start = (selectedPage - 1) * itemsPerPage;
1268
+ newParams = _extends({}, params, {
1269
+ from: start,
1270
+ to: start + itemsPerPage
1271
+ });
1272
+ _context.prev = 5;
1273
+ _context.next = 8;
1274
+ return client.fetch(query, newParams);
1413
1275
 
1414
- var renderManualPagination = function renderManualPagination(currentPage) {
1415
- if (lastDataSize < itemsPerPage) {
1416
- return null;
1417
- }
1276
+ case 8:
1277
+ newData = _context.sent;
1418
1278
 
1419
- return React.createElement(
1420
- 'div',
1421
- { className: 'd-flex justify-content-between' },
1422
- currentPage && currentPage > 1 && React.createElement(
1423
- 'a',
1424
- { href: '?page=' + (currentPage - 1) },
1425
- '<< Previous'
1426
- ),
1427
- React.createElement(
1428
- 'a',
1429
- { href: '?page=' + (currentPage + 1) },
1430
- 'Next >>'
1431
- )
1432
- );
1433
- };
1279
+ if (pointer && pointerArray) newData = newData[pointerArray][pointer];
1280
+ if (newData && newData.length > 0) {
1281
+ setData(newData);
1282
+ seoPaginate && seoPagination(selectedPage);
1283
+ setCurrentPage(selectedPage);
1284
+ lib_3.refresh();
1285
+ }
1286
+ _context.next = 16;
1287
+ break;
1434
1288
 
1435
- // check for change in filter parameters from client side and refresh the page
1436
- useEffect(function () {
1437
- if (initialData && data !== initialData && initialData.length >= 0) {
1438
- setData(initialData);
1439
- setCurrentPage(initialCurrentPage ? initialCurrentPage : 1);
1440
- setValues({
1441
- from: params ? params.from : 0,
1442
- to: params ? params.to : 0,
1443
- page: initialCurrentPage ? initialCurrentPage : 1
1444
- });
1445
- if (initialData.length > 0) {
1446
- setScrolling(true);
1447
- }
1448
- }
1449
- }, [initialData]);
1289
+ case 13:
1290
+ _context.prev = 13;
1291
+ _context.t0 = _context['catch'](5);
1450
1292
 
1451
- useEffect(function () {
1452
- if (prevValues) {
1453
- if (values.page !== prevValues.page && values.from !== prevValues.from && values.to !== prevValues.to) {
1454
- loadData(values, query, client, params, setData, setScrolling, setLastDataSize, pointer, pointerArray);
1455
- }
1456
- }
1457
- }, [values, prevValues, query, client, params, setData, setScrolling, setLastDataSize, pointer, pointerArray]);
1293
+ console.error(_context.t0);
1458
1294
 
1459
- // useEffect(() => {
1460
- // document.addEventListener('scroll', trackScrolling)
1461
- // return () => {
1462
- // document.removeEventListener('scroll', trackScrolling)
1463
- // }
1464
- // }, [currentPage])
1295
+ case 16:
1296
+ case 'end':
1297
+ return _context.stop();
1298
+ }
1299
+ }
1300
+ }, _callee, _this, [[5, 13]]);
1301
+ }));
1465
1302
 
1466
- // const trackScrolling = (current) => {
1467
- // if (window.pageYOffset === 0) {
1468
- // if (currentPage > 1) {
1469
- // changePageNumber(1, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, 1)
1470
- // }
1471
- // }
1472
- // }
1303
+ return function handlePageChange(_x5) {
1304
+ return _ref2.apply(this, arguments);
1305
+ };
1306
+ }();
1473
1307
 
1474
- return React.createElement(
1308
+ return React__default.createElement(
1475
1309
  'div',
1476
- null,
1477
- autoScroll ? React.createElement(
1478
- React.Fragment,
1479
- null,
1480
- React.createElement(
1481
- InfiniteScroll,
1482
- { dataLength: data && data.length, next: function next() {
1483
- return loadMore(values, setValues, itemsPerPage);
1484
- }, hasMore: scrolling, scrollThreshold: 0.9 },
1485
- React.createElement(
1486
- Container,
1487
- null,
1488
- cardLoader(data, client, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, imageMaxHeight, imageFit, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
1310
+ { className: 'queuedeck-expanded' },
1311
+ !data ? React__default.createElement(
1312
+ 'div',
1313
+ { className: 'd-flex justify-content-center', style: { marginTop: '100px' } },
1314
+ React__default.createElement(
1315
+ Spinner,
1316
+ { animation: 'border', role: 'status' },
1317
+ React__default.createElement(
1318
+ 'span',
1319
+ { className: 'sr-only' },
1320
+ 'Loading...'
1489
1321
  )
1490
- ),
1491
- React.createElement(
1492
- 'noscript',
1493
- null,
1494
- renderManualPagination(currentPage)
1495
1322
  )
1496
- ) : React.createElement(
1497
- React.Fragment,
1323
+ ) : React__default.createElement(
1324
+ Container,
1498
1325
  null,
1499
- React.createElement(
1500
- Container,
1501
- null,
1502
- cardLoader(data, client, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, imageMaxHeight, imageFit, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
1503
- ),
1504
- React.createElement(
1505
- 'div',
1506
- { style: { padding: '0px 10px' } },
1507
- scrolling ? React.createElement(
1508
- 'button',
1509
- {
1510
- className: 'load-more-btn',
1511
- style: { margin: 'auto', width: '100%' },
1512
- onClick: function onClick(e) {
1513
- loadMore(values, setValues, itemsPerPage);
1514
- } },
1515
- 'Load More'
1516
- ) : React.createElement(
1517
- 'p',
1518
- { style: { textAlign: 'center' } },
1519
- React.createElement(
1520
- 'b',
1521
- null,
1522
- 'End of data'
1523
- )
1524
- )
1525
- ),
1526
- React.createElement(
1527
- 'noscript',
1528
- null,
1529
- renderManualPagination(currentPage)
1326
+ React__default.createElement(CardLoader, {
1327
+ data: data,
1328
+ client: client,
1329
+ mapping: mapping,
1330
+ showPublished: showPublished,
1331
+ defaultImage: defaultImage,
1332
+ showAuthor: showAuthor,
1333
+ showCategory: showCategory,
1334
+ imageHeight: imageHeight,
1335
+ imageWidth: imageWidth,
1336
+ imageMaxHeight: imageMaxHeight,
1337
+ imageFit: imageFit,
1338
+ rightItems: rightItems,
1339
+ brandInsightAd: brandInsightAd,
1340
+ showBI: showBI,
1341
+ heroContent: heroContent,
1342
+ lgInfeedAd: lgInfeedAd,
1343
+ showPubInfo: showPubInfo,
1344
+ contentCategoryMapping: contentCategoryMapping,
1345
+ showTimeDif: showTimeDiff,
1346
+ showTaxonomies: showTaxonomies,
1347
+ showIntro: showIntro
1348
+ })
1349
+ ),
1350
+ React__default.createElement(
1351
+ 'div',
1352
+ { className: 'pagination-wrapper ' + (!data ? 'd-none' : 'd-block') },
1353
+ React__default.createElement(Pagination, { pageCount: Math.ceil(totalDataCount / itemsPerPage), pageRangeDisplayed: main_36 ? 3 : 9, initialPage: currentPage, onPageChange: handlePageChange }),
1354
+ React__default.createElement(
1355
+ 'style',
1356
+ { jsx: 'true' },
1357
+ '\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 '
1530
1358
  )
1531
1359
  )
1532
1360
  );