@mjhls/mjh-framework 1.0.1005-next12-0002 → 1.0.1005-sap-context-test

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 (613) hide show
  1. package/dist/cjs/AD.js +32 -1
  2. package/dist/cjs/AD300x250.js +96 -1
  3. package/dist/cjs/AD300x250x600.js +113 -1
  4. package/dist/cjs/AD728x90.js +110 -1
  5. package/dist/cjs/ADFloatingFooter.js +144 -1
  6. package/dist/cjs/ADFooter.js +53 -1
  7. package/dist/cjs/ADGutter.js +116 -1
  8. package/dist/cjs/ADInfeed-0394f391.js +66 -0
  9. package/dist/cjs/ADSkyscraper.js +118 -1
  10. package/dist/cjs/ADSponsoredResources.js +115 -1
  11. package/dist/cjs/ADWebcast.js +120 -1
  12. package/dist/cjs/ADWelcome.js +167 -1
  13. package/dist/cjs/ADlgInfeed-759969d6.js +60 -0
  14. package/dist/cjs/AccordionPanel.js +94 -1
  15. package/dist/cjs/AdSlot.js +252 -1
  16. package/dist/cjs/AdSlotsProvider.js +184 -1
  17. package/dist/cjs/AlgoliaSearch.js +14466 -1
  18. package/dist/cjs/AlphabeticList.js +135 -1
  19. package/dist/cjs/ArticleCarousel.js +46 -1
  20. package/dist/cjs/ArticleProgramLandingPage.js +188 -1
  21. package/dist/cjs/ArticleSeriesLandingPage.js +163 -1
  22. package/dist/cjs/ArticleSeriesListing.js +316 -1
  23. package/dist/cjs/Auth.js +3653 -1
  24. package/dist/cjs/AuthWrapper.js +1902 -1
  25. package/dist/cjs/AuthorComponent-7d00f6d5.js +96 -0
  26. package/dist/cjs/Beam.js +350 -1
  27. package/dist/cjs/BlockContent-96b44364.js +916 -0
  28. package/dist/cjs/Breadcrumbs.js +107 -1
  29. package/dist/cjs/CMEDeck.js +448 -1
  30. package/dist/cjs/Column1.js +39 -1
  31. package/dist/cjs/Column2.js +74 -1
  32. package/dist/cjs/Column3.js +144 -1
  33. package/dist/cjs/ConferenceArticleCard.js +93 -1
  34. package/dist/cjs/ConferenceBanner-213003ce.js +24 -0
  35. package/dist/cjs/ContentCardPaginated.js +417 -1
  36. package/dist/cjs/DeckContent.js +508 -1
  37. package/dist/cjs/DeckQueue.js +404 -1
  38. package/dist/cjs/DeckQueuePaginated.js +348 -1
  39. package/dist/cjs/Dfp-c313a700.js +104 -0
  40. package/dist/cjs/EventsDeck.js +884 -1
  41. package/dist/cjs/ExternalResources.js +222 -1
  42. package/dist/cjs/Feature.js +129 -1
  43. package/dist/cjs/ForbesHero.js +137 -1
  44. package/dist/cjs/GridContent.js +829 -1
  45. package/dist/cjs/GridContentPaginated.js +704 -1
  46. package/dist/cjs/GridHero.js +147 -1
  47. package/dist/cjs/GroupDeck.js +314 -1
  48. package/dist/cjs/HamMagazine.js +602 -1
  49. package/dist/cjs/Header.js +39 -1
  50. package/dist/cjs/HealthCareProfessionalModal.js +78 -1
  51. package/dist/cjs/Hero.js +48 -1
  52. package/dist/cjs/HighlightenVideo.js +69 -1
  53. package/dist/cjs/HorizontalArticleListing.js +169 -1
  54. package/dist/cjs/HorizontalHero.js +111 -1
  55. package/dist/cjs/ImageSlider-17fdaf3b.js +2813 -0
  56. package/dist/cjs/IssueContentDeck.js +241 -1
  57. package/dist/cjs/IssueDeck.js +268 -1
  58. package/dist/cjs/IssueLanding.js +176 -1
  59. package/dist/cjs/KMTracker.js +27 -1
  60. package/dist/cjs/LeftNav.js +155 -1
  61. package/dist/cjs/MasterDeck.js +556 -1
  62. package/dist/cjs/MasterDeckPaginated.js +469 -1
  63. package/dist/cjs/MediaSeriesCard-eacea66a.js +81 -0
  64. package/dist/cjs/MediaSeriesLanding.js +509 -1
  65. package/dist/cjs/MediaSeriesLandingPaginated.js +534 -1
  66. package/dist/cjs/NavDvm.js +276 -1
  67. package/dist/cjs/NavFooter-880e9d87.js +71 -0
  68. package/dist/cjs/NavMagazine.js +613 -1
  69. package/dist/cjs/NavNative.js +880 -1
  70. package/dist/cjs/OncliveHero.js +79 -1
  71. package/dist/cjs/OncliveLargeHero.js +241 -1
  72. package/dist/cjs/PageFilter.js +72 -1
  73. package/dist/cjs/Pagination-842c556f.js +97 -0
  74. package/dist/cjs/PartnerDetailListing.js +345 -1
  75. package/dist/cjs/PartnerDetailListingPaginated.js +353 -1
  76. package/dist/cjs/PdfDownload.js +28 -1
  77. package/dist/cjs/PixelTracking.js +165 -1
  78. package/dist/cjs/PodcastsLanding.js +236 -1
  79. package/dist/cjs/PopUpModal.js +58 -1
  80. package/dist/cjs/PtceDeck.js +149 -1
  81. package/dist/cjs/PubSection.js +121 -1
  82. package/dist/cjs/PubToc.js +87 -1
  83. package/dist/cjs/PublicationDeck.js +183 -1
  84. package/dist/cjs/PublicationFeature-a989a2b3.js +130 -0
  85. package/dist/cjs/PublicationLanding.js +857 -1
  86. package/dist/cjs/QueueDeckExpanded.js +1541 -1
  87. package/dist/cjs/QueueDeckExpandedPaginated.js +1388 -1
  88. package/dist/cjs/RecentNews.js +91 -1
  89. package/dist/cjs/RelatedContent.js +114 -1
  90. package/dist/cjs/RelatedTopicsDropdown.js +90 -1
  91. package/dist/cjs/RolesDeck.js +94 -1
  92. package/dist/cjs/Schema.js +103 -1
  93. package/dist/cjs/Search.js +66 -1
  94. package/dist/cjs/Segment.js +452 -1
  95. package/dist/cjs/SeriesListingDeck.js +249 -1
  96. package/dist/cjs/SeriesSlider-3d57985d.js +332 -0
  97. package/dist/cjs/SetCookie.js +10 -1
  98. package/dist/cjs/SideFooter.js +150 -1
  99. package/dist/cjs/SocialIcons.js +103 -1
  100. package/dist/cjs/SocialSearchComponent-62bceb87.js +213 -0
  101. package/dist/cjs/SocialShare.js +74 -1
  102. package/dist/cjs/TaxonomyCard.js +257 -1
  103. package/dist/cjs/TaxonomyDescription.js +209 -1
  104. package/dist/cjs/TemplateNormal.js +204 -1
  105. package/dist/cjs/ThumbnailCard.js +59 -1
  106. package/dist/cjs/Tooltip-4cb8849a.js +9454 -0
  107. package/dist/cjs/Ustream.js +156 -1
  108. package/dist/cjs/VerticalHero.js +74 -1
  109. package/dist/cjs/VideoProgramLandingPage.js +264 -1
  110. package/dist/cjs/VideoSeriesCard.js +88 -1
  111. package/dist/cjs/VideoSeriesFilter.js +128 -1
  112. package/dist/cjs/VideoSeriesLandingPage.js +179 -1
  113. package/dist/cjs/VideoSeriesListing.js +423 -1
  114. package/dist/cjs/View.js +2699 -1
  115. package/dist/cjs/YahooHero.js +126 -1
  116. package/dist/cjs/YoutubeGroup.js +371 -1
  117. package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
  118. package/dist/cjs/_is-array-54228b29.js +74 -0
  119. package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
  120. package/dist/cjs/_library-dd23b178.js +5 -0
  121. package/dist/cjs/_object-pie-083f2dd6.js +16 -0
  122. package/dist/cjs/_object-sap-d1978572.js +16 -0
  123. package/dist/cjs/_object-to-array-ce86cae7.js +25 -0
  124. package/dist/cjs/asyncToGenerator-77821af0.js +1395 -0
  125. package/dist/cjs/brightcove-react-player-loader.es-4c7825a1.js +2232 -0
  126. package/dist/cjs/checkSisterSite-b29833b2.js +19 -0
  127. package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
  128. package/dist/cjs/debounce-d4a2369b.js +216 -0
  129. package/dist/cjs/define-property-e8404b64.js +20 -0
  130. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  131. package/dist/cjs/entities-df1aed86.js +510 -0
  132. package/dist/cjs/eq-5fc26c07.js +79 -0
  133. package/dist/cjs/events-1b438fe7.js +469 -0
  134. package/dist/cjs/extends-7c86182f.js +87 -0
  135. package/dist/cjs/faundadb.js +406 -1
  136. package/dist/cjs/get-5839e5b5.js +920 -0
  137. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  138. package/dist/cjs/getKeywords.js +46 -1
  139. package/dist/cjs/getPtceActivities.js +89 -1
  140. package/dist/cjs/getQuery.js +28 -1
  141. package/dist/cjs/getRelatedArticle.js +542 -1
  142. package/dist/cjs/getRootDocGroup.js +62 -1
  143. package/dist/cjs/getSerializers.js +68 -1
  144. package/dist/cjs/getSeriesDetail.js +40 -1
  145. package/dist/cjs/getTargeting-ba942d9a.js +164 -0
  146. package/dist/cjs/getTargeting.js +13 -1
  147. package/dist/cjs/iconBase-be4097c0.js +104 -0
  148. package/dist/cjs/index-187c967e.js +54 -0
  149. package/dist/cjs/index-19fbbcea.js +10788 -0
  150. package/dist/cjs/index-50be6759.js +105 -0
  151. package/dist/cjs/index-65621b6c.js +613 -0
  152. package/dist/cjs/index-bd6c9f56.js +211 -0
  153. package/dist/cjs/index-d2a6ef75.js +1218 -0
  154. package/dist/cjs/index-d48b231c.js +556 -0
  155. package/dist/cjs/index-f86bb269.js +1571 -0
  156. package/dist/cjs/index.es-1ab8dda7.js +445 -0
  157. package/dist/cjs/index.esm-c1e16606.js +13 -0
  158. package/dist/cjs/index.esm-d51c9ac6.js +25 -0
  159. package/dist/cjs/index.esm-d81454e7.js +19 -0
  160. package/dist/cjs/index.esm-f59ef5b4.js +97 -0
  161. package/dist/cjs/index.js +644 -1
  162. package/dist/cjs/inherits-de66ea16.js +188 -0
  163. package/dist/cjs/isSymbol-03abbdf0.js +209 -0
  164. package/dist/cjs/js.cookie-a511c430.js +160 -0
  165. package/dist/cjs/keys-e982b3fa.js +25 -0
  166. package/dist/cjs/lodash-f0783643.js +17195 -0
  167. package/dist/cjs/main-3643d499.js +973 -0
  168. package/dist/cjs/md5-e1ca5797.js +323 -0
  169. package/dist/cjs/moment-aca40de1.js +5669 -0
  170. package/dist/cjs/react-social-icons-2c5c389a.js +616 -0
  171. package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
  172. package/dist/cjs/smoothscroll-99df7f93.js +438 -0
  173. package/dist/cjs/stringify-f7a37a8d.js +17 -0
  174. package/dist/cjs/style-inject.es-dcee06b6.js +30 -1
  175. package/dist/cjs/timeDifferenceCalc.js +39 -1
  176. package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
  177. package/dist/cjs/toNumber-5e1fac58.js +104 -0
  178. package/dist/cjs/typeof-1358762e.js +33 -0
  179. package/dist/cjs/typeof-567e31ff.js +382 -0
  180. package/dist/cjs/urlFor.js +65 -1
  181. package/dist/cjs/urlForFile-29d3815a.js +24 -0
  182. package/dist/cjs/ustream-api-3819e4aa.js +106 -0
  183. package/dist/cjs/util-93a37fd0.js +587 -0
  184. package/dist/cjs/visibility-sensor-56020df6.js +597 -0
  185. package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
  186. package/dist/esm/AD.js +26 -1
  187. package/dist/esm/AD300x250.js +90 -1
  188. package/dist/esm/AD300x250x600.js +107 -1
  189. package/dist/esm/AD728x90.js +104 -1
  190. package/dist/esm/ADFloatingFooter.js +138 -1
  191. package/dist/esm/ADFooter.js +47 -1
  192. package/dist/esm/ADGutter.js +110 -1
  193. package/dist/esm/ADInfeed-5765a73a.js +59 -0
  194. package/dist/esm/ADSkyscraper.js +112 -1
  195. package/dist/esm/ADSponsoredResources.js +109 -1
  196. package/dist/esm/ADWebcast.js +114 -1
  197. package/dist/esm/ADWelcome.js +161 -1
  198. package/dist/esm/ADlgInfeed-5e36f317.js +54 -0
  199. package/dist/esm/AccordionPanel.js +87 -1
  200. package/dist/esm/AdSlot.js +245 -1
  201. package/dist/esm/AdSlotsProvider.js +177 -1
  202. package/dist/esm/AlgoliaSearch.js +14459 -1
  203. package/dist/esm/AlphabeticList.js +129 -1
  204. package/dist/esm/ArticleCarousel.js +40 -1
  205. package/dist/esm/ArticleProgramLandingPage.js +182 -1
  206. package/dist/esm/ArticleSeriesLandingPage.js +157 -1
  207. package/dist/esm/ArticleSeriesListing.js +309 -1
  208. package/dist/esm/Auth.js +3632 -1
  209. package/dist/esm/AuthWrapper.js +1896 -1
  210. package/dist/esm/AuthorComponent-11adff02.js +90 -0
  211. package/dist/esm/Beam.js +348 -1
  212. package/dist/esm/BlockContent-1e73bd2c.js +909 -0
  213. package/dist/esm/Breadcrumbs.js +100 -1
  214. package/dist/esm/CMEDeck.js +442 -1
  215. package/dist/esm/Column1.js +28 -1
  216. package/dist/esm/Column2.js +63 -1
  217. package/dist/esm/Column3.js +133 -1
  218. package/dist/esm/ConferenceArticleCard.js +87 -1
  219. package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
  220. package/dist/esm/ContentCardPaginated.js +406 -1
  221. package/dist/esm/DeckContent.js +498 -1
  222. package/dist/esm/DeckQueue.js +394 -1
  223. package/dist/esm/DeckQueuePaginated.js +337 -1
  224. package/dist/esm/Dfp-102f0beb.js +97 -0
  225. package/dist/esm/EventsDeck.js +871 -1
  226. package/dist/esm/ExternalResources.js +215 -1
  227. package/dist/esm/Feature.js +122 -1
  228. package/dist/esm/ForbesHero.js +131 -1
  229. package/dist/esm/GridContent.js +819 -1
  230. package/dist/esm/GridContentPaginated.js +693 -1
  231. package/dist/esm/GridHero.js +141 -1
  232. package/dist/esm/GroupDeck.js +308 -1
  233. package/dist/esm/HamMagazine.js +589 -1
  234. package/dist/esm/Header.js +29 -1
  235. package/dist/esm/HealthCareProfessionalModal.js +70 -1
  236. package/dist/esm/Hero.js +42 -1
  237. package/dist/esm/HighlightenVideo.js +63 -1
  238. package/dist/esm/HorizontalArticleListing.js +163 -1
  239. package/dist/esm/HorizontalHero.js +105 -1
  240. package/dist/esm/ImageSlider-f84174cb.js +2804 -0
  241. package/dist/esm/IssueContentDeck.js +231 -1
  242. package/dist/esm/IssueDeck.js +258 -1
  243. package/dist/esm/IssueLanding.js +170 -1
  244. package/dist/esm/KMTracker.js +25 -1
  245. package/dist/esm/LeftNav.js +145 -1
  246. package/dist/esm/MasterDeck.js +549 -1
  247. package/dist/esm/MasterDeckPaginated.js +461 -1
  248. package/dist/esm/MediaSeriesCard-f56c8274.js +75 -0
  249. package/dist/esm/MediaSeriesLanding.js +502 -1
  250. package/dist/esm/MediaSeriesLandingPaginated.js +527 -1
  251. package/dist/esm/NavDvm.js +263 -1
  252. package/dist/esm/NavFooter-3272e9cd.js +65 -0
  253. package/dist/esm/NavMagazine.js +600 -1
  254. package/dist/esm/NavNative.js +864 -1
  255. package/dist/esm/OncliveHero.js +73 -1
  256. package/dist/esm/OncliveLargeHero.js +235 -1
  257. package/dist/esm/PageFilter.js +66 -1
  258. package/dist/esm/Pagination-dc30727b.js +90 -0
  259. package/dist/esm/PartnerDetailListing.js +339 -1
  260. package/dist/esm/PartnerDetailListingPaginated.js +347 -1
  261. package/dist/esm/PdfDownload.js +22 -1
  262. package/dist/esm/PixelTracking.js +156 -1
  263. package/dist/esm/PodcastsLanding.js +229 -1
  264. package/dist/esm/PopUpModal.js +51 -1
  265. package/dist/esm/PtceDeck.js +143 -1
  266. package/dist/esm/PubSection.js +115 -1
  267. package/dist/esm/PubToc.js +81 -1
  268. package/dist/esm/PublicationDeck.js +173 -1
  269. package/dist/esm/PublicationFeature-d88e76b9.js +121 -0
  270. package/dist/esm/PublicationLanding.js +847 -1
  271. package/dist/esm/QueueDeckExpanded.js +1535 -1
  272. package/dist/esm/QueueDeckExpandedPaginated.js +1382 -1
  273. package/dist/esm/RecentNews.js +85 -1
  274. package/dist/esm/RelatedContent.js +108 -1
  275. package/dist/esm/RelatedTopicsDropdown.js +82 -1
  276. package/dist/esm/RolesDeck.js +84 -1
  277. package/dist/esm/Schema.js +97 -1
  278. package/dist/esm/Search.js +57 -1
  279. package/dist/esm/Segment.js +450 -1
  280. package/dist/esm/SeriesListingDeck.js +243 -1
  281. package/dist/esm/SeriesSlider-f771e20d.js +326 -0
  282. package/dist/esm/SetCookie.js +8 -1
  283. package/dist/esm/SideFooter.js +144 -1
  284. package/dist/esm/SocialIcons.js +97 -1
  285. package/dist/esm/SocialSearchComponent-165b4ae7.js +204 -0
  286. package/dist/esm/SocialShare.js +67 -1
  287. package/dist/esm/TaxonomyCard.js +247 -1
  288. package/dist/esm/TaxonomyDescription.js +202 -1
  289. package/dist/esm/TemplateNormal.js +197 -1
  290. package/dist/esm/ThumbnailCard.js +52 -1
  291. package/dist/esm/Tooltip-95655b44.js +9445 -0
  292. package/dist/esm/Ustream.js +150 -1
  293. package/dist/esm/VerticalHero.js +68 -1
  294. package/dist/esm/VideoProgramLandingPage.js +255 -1
  295. package/dist/esm/VideoSeriesCard.js +82 -1
  296. package/dist/esm/VideoSeriesFilter.js +122 -1
  297. package/dist/esm/VideoSeriesLandingPage.js +173 -1
  298. package/dist/esm/VideoSeriesListing.js +416 -1
  299. package/dist/esm/View.js +2689 -1
  300. package/dist/esm/YahooHero.js +120 -1
  301. package/dist/esm/YoutubeGroup.js +365 -1
  302. package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
  303. package/dist/esm/_is-array-8d21b9e3.js +71 -0
  304. package/dist/esm/_iter-detect-98db3b07.js +48 -0
  305. package/dist/esm/_library-528f1934.js +3 -0
  306. package/dist/esm/_object-pie-133f504a.js +13 -0
  307. package/dist/esm/_object-sap-7cee6f84.js +14 -0
  308. package/dist/esm/_object-to-array-2300e51b.js +23 -0
  309. package/dist/esm/asyncToGenerator-958ef5fc.js +1387 -0
  310. package/dist/esm/brightcove-react-player-loader.es-57a70a56.js +2226 -0
  311. package/dist/esm/checkSisterSite-baa4fb6b.js +17 -0
  312. package/dist/esm/core.get-iterator-method-ea258bb1.js +547 -0
  313. package/dist/esm/debounce-533d9748.js +214 -0
  314. package/dist/esm/define-property-5f1bda73.js +18 -0
  315. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  316. package/dist/esm/entities-6d9154b4.js +507 -0
  317. package/dist/esm/eq-bdcbf886.js +76 -0
  318. package/dist/esm/events-6c3a7a63.js +467 -0
  319. package/dist/esm/extends-6d8e3924.js +83 -0
  320. package/dist/esm/faundadb.js +396 -1
  321. package/dist/esm/get-3c308da4.js +918 -0
  322. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  323. package/dist/esm/getKeywords.js +44 -1
  324. package/dist/esm/getPtceActivities.js +87 -1
  325. package/dist/esm/getQuery.js +26 -1
  326. package/dist/esm/getRelatedArticle.js +540 -1
  327. package/dist/esm/getRootDocGroup.js +60 -1
  328. package/dist/esm/getSerializers.js +62 -1
  329. package/dist/esm/getSeriesDetail.js +38 -1
  330. package/dist/esm/getTargeting-9bd28724.js +161 -0
  331. package/dist/esm/getTargeting.js +7 -1
  332. package/dist/esm/iconBase-ccc56b97.js +81 -0
  333. package/dist/esm/index-3f5c03b2.js +553 -0
  334. package/dist/esm/index-5d8b0a9d.js +10767 -0
  335. package/dist/esm/index-755f2cc2.js +605 -0
  336. package/dist/esm/index-79cfd25c.js +1569 -0
  337. package/dist/esm/index-98ca9cec.js +100 -0
  338. package/dist/esm/index-c7e2ac95.js +52 -0
  339. package/dist/esm/index-db3bb315.js +207 -0
  340. package/dist/esm/index-f0fc23eb.js +1209 -0
  341. package/dist/esm/index.es-a6137319.js +439 -0
  342. package/dist/esm/index.esm-07c37a92.js +90 -0
  343. package/dist/esm/index.esm-1bd8a0a8.js +18 -0
  344. package/dist/esm/index.esm-9b042655.js +10 -0
  345. package/dist/esm/index.esm-eb1e8e80.js +14 -0
  346. package/dist/esm/index.js +537 -1
  347. package/dist/esm/inherits-a6ba2ec4.js +179 -0
  348. package/dist/esm/isSymbol-a7e9aafe.js +203 -0
  349. package/dist/esm/js.cookie-6874175c.js +158 -0
  350. package/dist/esm/keys-31dcdb31.js +23 -0
  351. package/dist/esm/lodash-f97fd99a.js +17193 -0
  352. package/dist/esm/main-1894c974.js +961 -0
  353. package/dist/esm/md5-4e42248e.js +321 -0
  354. package/dist/esm/moment-bc12cb97.js +5667 -0
  355. package/dist/esm/react-social-icons-9be47857.js +609 -0
  356. package/dist/esm/slicedToArray-6ebcbfea.js +92 -0
  357. package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
  358. package/dist/esm/stringify-2b084bee.js +15 -0
  359. package/dist/esm/style-inject.es-1f59c1d0.js +28 -1
  360. package/dist/esm/timeDifferenceCalc.js +37 -1
  361. package/dist/esm/toConsumableArray-f7074d7c.js +71 -0
  362. package/dist/esm/toNumber-5aeba6e7.js +102 -0
  363. package/dist/esm/typeof-2f07d0e8.js +30 -0
  364. package/dist/esm/typeof-e9fc0c5d.js +378 -0
  365. package/dist/esm/urlFor.js +63 -1
  366. package/dist/esm/urlForFile-b69adffc.js +22 -0
  367. package/dist/esm/ustream-api-d3714624.js +104 -0
  368. package/dist/esm/util-8ed16d48.js +585 -0
  369. package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
  370. package/dist/esm/web.dom.iterable-ab4dea5c.js +48 -0
  371. package/package.json +23 -24
  372. package/dist/cjs/AD-e1bb7536.js +0 -1
  373. package/dist/cjs/AD300x250-0bcfcd78.js +0 -1
  374. package/dist/cjs/AD300x250x600-01659df6.js +0 -1
  375. package/dist/cjs/AD728x90-c92f784d.js +0 -1
  376. package/dist/cjs/ADFloatingFooter-f0650a0e.js +0 -1
  377. package/dist/cjs/ADFooter-b3d98c5f.js +0 -1
  378. package/dist/cjs/ADGutter-8451a0e7.js +0 -1
  379. package/dist/cjs/ADInfeed-7019b746.js +0 -1
  380. package/dist/cjs/ADSkyscraper-2db48edc.js +0 -1
  381. package/dist/cjs/ADSponsoredResources-126ab84c.js +0 -1
  382. package/dist/cjs/ADWebcast-26543865.js +0 -1
  383. package/dist/cjs/ADWelcome-6261c769.js +0 -1
  384. package/dist/cjs/ADlgInfeed-42059b30.js +0 -1
  385. package/dist/cjs/AccordionPanel-b018a969.js +0 -1
  386. package/dist/cjs/AdSlot-8a0b4211.js +0 -1
  387. package/dist/cjs/AdSlotsProvider-e06c4b39.js +0 -1
  388. package/dist/cjs/AlgoliaSearch-05bab51c.js +0 -1
  389. package/dist/cjs/AlphabeticList-94ed00ad.js +0 -1
  390. package/dist/cjs/ArticleCarousel-6599cb34.js +0 -1
  391. package/dist/cjs/ArticleProgramLandingPage-2cc43252.js +0 -1
  392. package/dist/cjs/ArticleSeriesLandingPage-4af0758a.js +0 -1
  393. package/dist/cjs/ArticleSeriesListing-476cb622.js +0 -1
  394. package/dist/cjs/AuthorComponent-dd3ac7f5.js +0 -1
  395. package/dist/cjs/Breadcrumbs-10474e7d.js +0 -1
  396. package/dist/cjs/CMEDeck-c7276c4c.js +0 -1
  397. package/dist/cjs/Column1-9a0e0262.js +0 -1
  398. package/dist/cjs/Column2-47fa24ac.js +0 -1
  399. package/dist/cjs/Column3-7407a3a2.js +0 -1
  400. package/dist/cjs/ConferenceArticleCard-a48a5eb4.js +0 -1
  401. package/dist/cjs/ConferenceBanner-9fb497af.js +0 -1
  402. package/dist/cjs/ContentCard-0543793a.js +0 -1
  403. package/dist/cjs/Dfp-eb398ac3.js +0 -1
  404. package/dist/cjs/DropdownButton-3f21ccbf.js +0 -6
  405. package/dist/cjs/Dvm-4aab0fca.js +0 -1
  406. package/dist/cjs/EventsDeck-7614cec4.js +0 -1
  407. package/dist/cjs/ExternalResources-c1d4e253.js +0 -1
  408. package/dist/cjs/Feature-4254dfe3.js +0 -1
  409. package/dist/cjs/ForbesHero-82c18210.js +0 -1
  410. package/dist/cjs/GridContent-6c8dd8e5.js +0 -1
  411. package/dist/cjs/GridHero-c6784d3f.js +0 -1
  412. package/dist/cjs/GroupDeck-6920bcf7.js +0 -1
  413. package/dist/cjs/HamburgerNav-02a13006.js +0 -1
  414. package/dist/cjs/Header-268a2cda.js +0 -1
  415. package/dist/cjs/Hero-79a1f7a3.js +0 -1
  416. package/dist/cjs/HighlightenVideo-20edba55.js +0 -1
  417. package/dist/cjs/HorizontalArticleListing-4a44f354.js +0 -1
  418. package/dist/cjs/HorizontalHero-c5a3cb7a.js +0 -1
  419. package/dist/cjs/ImageSlider-d1359f16.js +0 -1
  420. package/dist/cjs/IssueContentDeck-48a04696.js +0 -1
  421. package/dist/cjs/IssueDeck-41ebd17b.js +0 -1
  422. package/dist/cjs/IssueLanding-06765ae0.js +0 -1
  423. package/dist/cjs/KMTracker-4e1de793.js +0 -1
  424. package/dist/cjs/LeftNav-c7283941.js +0 -1
  425. package/dist/cjs/Magazine-0d15b137.js +0 -1
  426. package/dist/cjs/MasterDeck-0e168ac1.js +0 -1
  427. package/dist/cjs/MediaSeriesCard-07b6f758.js +0 -1
  428. package/dist/cjs/Native-ee78edeb.js +0 -1
  429. package/dist/cjs/NavFooter-f905aca3.js +0 -1
  430. package/dist/cjs/Normal-ad14a1b1.js +0 -1
  431. package/dist/cjs/OncliveHero-5c7454fe.js +0 -1
  432. package/dist/cjs/OncliveLargeHero-46e0a793.js +0 -1
  433. package/dist/cjs/PageFilter-bdffe62b.js +0 -1
  434. package/dist/cjs/Pagination-825e4903.js +0 -1
  435. package/dist/cjs/PartnerDetailListing-848c514f.js +0 -1
  436. package/dist/cjs/PdfDownload-c99142ff.js +0 -1
  437. package/dist/cjs/PopUpModal-c1cbf9b6.js +0 -1
  438. package/dist/cjs/PubSection-08e834ca.js +0 -1
  439. package/dist/cjs/PubToc-6e2a3f50.js +0 -1
  440. package/dist/cjs/PublicationDeck-e242bd17.js +0 -1
  441. package/dist/cjs/PublicationFeature-0e2014fb.js +0 -1
  442. package/dist/cjs/PublicationLanding-d54d80d4.js +0 -1
  443. package/dist/cjs/Queue-8e0e436f.js +0 -1
  444. package/dist/cjs/QueueDeckExpanded-e420bdec.js +0 -1
  445. package/dist/cjs/RelatedContent-4ac0ceca.js +0 -1
  446. package/dist/cjs/RelatedTopicsDropdown-4736b927.js +0 -1
  447. package/dist/cjs/RolesDeck-83cbb45e.js +0 -1
  448. package/dist/cjs/Schema-8c138aa8.js +0 -1
  449. package/dist/cjs/SeriesSlider-720871f8.js +0 -1
  450. package/dist/cjs/SideFooter-17e666a3.js +0 -1
  451. package/dist/cjs/SocialIcons-425827d3.js +0 -1
  452. package/dist/cjs/SocialNavFooter-8f053a08.js +0 -1
  453. package/dist/cjs/SocialSearchComponent-dea3dbc8.js +0 -1
  454. package/dist/cjs/SocialShare-3d7c8abe.js +0 -1
  455. package/dist/cjs/TaxonomyCard-e881cb43.js +0 -1
  456. package/dist/cjs/TaxonomyDescription-9a13ded6.js +0 -1
  457. package/dist/cjs/ThumbnailCard-101f04b8.js +0 -1
  458. package/dist/cjs/Ustream-b7692d0a.js +0 -1
  459. package/dist/cjs/VerticalHero-a61b1a2e.js +0 -1
  460. package/dist/cjs/VideoProgramLandingPage-5508836c.js +0 -1
  461. package/dist/cjs/VideoSeriesFilter-9650cf01.js +0 -1
  462. package/dist/cjs/VideoSeriesLandingPage-d1fae653.js +0 -1
  463. package/dist/cjs/VideoSeriesListing-91f5aa6d.js +0 -1
  464. package/dist/cjs/YahooHero-2df6a408.js +0 -1
  465. package/dist/cjs/YoutubeGroup-d8a93da0.js +0 -1
  466. package/dist/cjs/_commonjsHelpers-0a7b82d9.js +0 -1
  467. package/dist/cjs/beam-aaf6fbe9.js +0 -1
  468. package/dist/cjs/checkSisterSite-d2d62375.js +0 -1
  469. package/dist/cjs/defineProperty-ba7cd53d.js +0 -1
  470. package/dist/cjs/entities-8feddf1d.js +0 -1
  471. package/dist/cjs/extends-5ede7877.js +0 -1
  472. package/dist/cjs/getContentCategory-ee6d9fdf.js +0 -1
  473. package/dist/cjs/getKeywords-5341ea76.js +0 -1
  474. package/dist/cjs/getPrototypeOf-99b1cfd8.js +0 -1
  475. package/dist/cjs/getQuery-154617ad.js +0 -1
  476. package/dist/cjs/getRelatedArticle-dbed93dc.js +0 -1
  477. package/dist/cjs/getSeriesDetail-e2980903.js +0 -1
  478. package/dist/cjs/getTargeting-a1ecaa0b.js +0 -1
  479. package/dist/cjs/index-14c8083b.js +0 -1
  480. package/dist/cjs/index-3291d44c.js +0 -1
  481. package/dist/cjs/index-5cca2099.js +0 -1
  482. package/dist/cjs/index-66647f61.js +0 -1
  483. package/dist/cjs/searchForm-bb5e3dbf.js +0 -1
  484. package/dist/cjs/segment-lib-7a16e514.js +0 -1
  485. package/dist/cjs/setCookie-e72f573d.js +0 -1
  486. package/dist/cjs/slicedToArray-c9e22c6a.js +0 -1
  487. package/dist/cjs/toConsumableArray-7afb7984.js +0 -1
  488. package/dist/cjs/typeof-a861d137.js +0 -1
  489. package/dist/cjs/unsupportedIterableToArray-294d47a8.js +0 -1
  490. package/dist/cjs/urlFor-86a2f4db.js +0 -1
  491. package/dist/cjs/urlForFile-52afb8e9.js +0 -1
  492. package/dist/cjs/ustream-api-05a918f3.js +0 -1
  493. package/dist/esm/AD-8a57f623.js +0 -1
  494. package/dist/esm/AD300x250-10ccde99.js +0 -1
  495. package/dist/esm/AD300x250x600-10e29b3d.js +0 -1
  496. package/dist/esm/AD728x90-2b0e930d.js +0 -1
  497. package/dist/esm/ADFloatingFooter-f23caacf.js +0 -1
  498. package/dist/esm/ADFooter-4c20b5fc.js +0 -1
  499. package/dist/esm/ADGutter-59cf52e3.js +0 -1
  500. package/dist/esm/ADInfeed-8ce85d87.js +0 -1
  501. package/dist/esm/ADSkyscraper-bfd33e46.js +0 -1
  502. package/dist/esm/ADSponsoredResources-0410407c.js +0 -1
  503. package/dist/esm/ADWebcast-6f27e384.js +0 -1
  504. package/dist/esm/ADWelcome-421d5621.js +0 -1
  505. package/dist/esm/ADlgInfeed-19d0f057.js +0 -1
  506. package/dist/esm/AccordionPanel-123022f0.js +0 -1
  507. package/dist/esm/AdSlot-16696371.js +0 -1
  508. package/dist/esm/AdSlotsProvider-5ead284e.js +0 -1
  509. package/dist/esm/AlgoliaSearch-1343b721.js +0 -1
  510. package/dist/esm/AlphabeticList-f1ca5612.js +0 -1
  511. package/dist/esm/ArticleCarousel-ba29666c.js +0 -1
  512. package/dist/esm/ArticleProgramLandingPage-d996da8f.js +0 -1
  513. package/dist/esm/ArticleSeriesLandingPage-67cda955.js +0 -1
  514. package/dist/esm/ArticleSeriesListing-22e8f5a6.js +0 -1
  515. package/dist/esm/AuthorComponent-f3e14fdd.js +0 -1
  516. package/dist/esm/Breadcrumbs-8838701e.js +0 -1
  517. package/dist/esm/CMEDeck-182d8eb7.js +0 -1
  518. package/dist/esm/Column1-3304e0a7.js +0 -1
  519. package/dist/esm/Column2-2d42433b.js +0 -1
  520. package/dist/esm/Column3-94c8661b.js +0 -1
  521. package/dist/esm/ConferenceArticleCard-c10c5b7f.js +0 -1
  522. package/dist/esm/ConferenceBanner-8a6f3ed9.js +0 -1
  523. package/dist/esm/ContentCard-01c2e43a.js +0 -1
  524. package/dist/esm/Dfp-c3c626b1.js +0 -1
  525. package/dist/esm/DropdownButton-c4621022.js +0 -6
  526. package/dist/esm/Dvm-138f924d.js +0 -1
  527. package/dist/esm/EventsDeck-e5aad41d.js +0 -1
  528. package/dist/esm/ExternalResources-e9656681.js +0 -1
  529. package/dist/esm/Feature-69a30cea.js +0 -1
  530. package/dist/esm/ForbesHero-0b0a5436.js +0 -1
  531. package/dist/esm/GridContent-d8df59ae.js +0 -1
  532. package/dist/esm/GridHero-0d17636c.js +0 -1
  533. package/dist/esm/GroupDeck-4c581822.js +0 -1
  534. package/dist/esm/HamburgerNav-5fcf79ae.js +0 -1
  535. package/dist/esm/Header-b0624adc.js +0 -1
  536. package/dist/esm/Hero-1b663f28.js +0 -1
  537. package/dist/esm/HighlightenVideo-5c3fd0fd.js +0 -1
  538. package/dist/esm/HorizontalArticleListing-cccace2e.js +0 -1
  539. package/dist/esm/HorizontalHero-8633a55c.js +0 -1
  540. package/dist/esm/ImageSlider-c354db50.js +0 -1
  541. package/dist/esm/IssueContentDeck-915409a7.js +0 -1
  542. package/dist/esm/IssueDeck-61a4a550.js +0 -1
  543. package/dist/esm/IssueLanding-a59c91ee.js +0 -1
  544. package/dist/esm/KMTracker-d9e1c288.js +0 -1
  545. package/dist/esm/LeftNav-a3852fbe.js +0 -1
  546. package/dist/esm/Magazine-7d6e5dcd.js +0 -1
  547. package/dist/esm/MasterDeck-41c7cd70.js +0 -1
  548. package/dist/esm/MediaSeriesCard-cf72ce87.js +0 -1
  549. package/dist/esm/Native-bf89940a.js +0 -1
  550. package/dist/esm/NavFooter-83d89acd.js +0 -1
  551. package/dist/esm/Normal-06895213.js +0 -1
  552. package/dist/esm/OncliveHero-19794e52.js +0 -1
  553. package/dist/esm/OncliveLargeHero-01d4c10f.js +0 -1
  554. package/dist/esm/PageFilter-81144bcb.js +0 -1
  555. package/dist/esm/Pagination-44c3ff7c.js +0 -1
  556. package/dist/esm/PartnerDetailListing-429d60e1.js +0 -1
  557. package/dist/esm/PdfDownload-eff648d3.js +0 -1
  558. package/dist/esm/PopUpModal-a2735a23.js +0 -1
  559. package/dist/esm/PubSection-3d940b53.js +0 -1
  560. package/dist/esm/PubToc-52a85696.js +0 -1
  561. package/dist/esm/PublicationDeck-538d397e.js +0 -1
  562. package/dist/esm/PublicationFeature-6deea07c.js +0 -1
  563. package/dist/esm/PublicationLanding-48ebce9b.js +0 -1
  564. package/dist/esm/Queue-847df47f.js +0 -1
  565. package/dist/esm/QueueDeckExpanded-fdc60f72.js +0 -1
  566. package/dist/esm/RelatedContent-f3eaad29.js +0 -1
  567. package/dist/esm/RelatedTopicsDropdown-0cf5829a.js +0 -1
  568. package/dist/esm/RolesDeck-6146633e.js +0 -1
  569. package/dist/esm/Schema-c7f42de0.js +0 -1
  570. package/dist/esm/SeriesSlider-a00cd257.js +0 -1
  571. package/dist/esm/SideFooter-7cd5abc0.js +0 -1
  572. package/dist/esm/SocialIcons-c7861c13.js +0 -1
  573. package/dist/esm/SocialNavFooter-66c6cf3c.js +0 -1
  574. package/dist/esm/SocialSearchComponent-e74e11f8.js +0 -1
  575. package/dist/esm/SocialShare-9cc43665.js +0 -1
  576. package/dist/esm/TaxonomyCard-507f5c95.js +0 -1
  577. package/dist/esm/TaxonomyDescription-ee6ae52e.js +0 -1
  578. package/dist/esm/ThumbnailCard-b7a3af71.js +0 -1
  579. package/dist/esm/Ustream-29dc2277.js +0 -1
  580. package/dist/esm/VerticalHero-ffc93a70.js +0 -1
  581. package/dist/esm/VideoProgramLandingPage-179db5b2.js +0 -1
  582. package/dist/esm/VideoSeriesFilter-b6bd4c07.js +0 -1
  583. package/dist/esm/VideoSeriesLandingPage-180a2469.js +0 -1
  584. package/dist/esm/VideoSeriesListing-62650a53.js +0 -1
  585. package/dist/esm/YahooHero-ddfeb2a5.js +0 -1
  586. package/dist/esm/YoutubeGroup-1dd6f1ba.js +0 -1
  587. package/dist/esm/_commonjsHelpers-57e89916.js +0 -1
  588. package/dist/esm/beam-50a5c4d8.js +0 -1
  589. package/dist/esm/checkSisterSite-20e2bf62.js +0 -1
  590. package/dist/esm/defineProperty-18999f8e.js +0 -1
  591. package/dist/esm/entities-8b138943.js +0 -1
  592. package/dist/esm/extends-e61fd370.js +0 -1
  593. package/dist/esm/getContentCategory-f99fdf90.js +0 -1
  594. package/dist/esm/getKeywords-2512775a.js +0 -1
  595. package/dist/esm/getPrototypeOf-a8361cb6.js +0 -1
  596. package/dist/esm/getQuery-bfc0390c.js +0 -1
  597. package/dist/esm/getRelatedArticle-66a08458.js +0 -1
  598. package/dist/esm/getSeriesDetail-aef9680c.js +0 -1
  599. package/dist/esm/getTargeting-eeb7bb6a.js +0 -1
  600. package/dist/esm/index-00bbf2b1.js +0 -1
  601. package/dist/esm/index-24498aa0.js +0 -1
  602. package/dist/esm/index-541d17f5.js +0 -1
  603. package/dist/esm/index-a96a4f73.js +0 -1
  604. package/dist/esm/searchForm-8218e558.js +0 -1
  605. package/dist/esm/segment-lib-3a19dbdd.js +0 -1
  606. package/dist/esm/setCookie-0f2ab6df.js +0 -1
  607. package/dist/esm/slicedToArray-f57adb2c.js +0 -1
  608. package/dist/esm/toConsumableArray-2f86a0c1.js +0 -1
  609. package/dist/esm/typeof-92b42de1.js +0 -1
  610. package/dist/esm/unsupportedIterableToArray-b359dd50.js +0 -1
  611. package/dist/esm/urlFor-649884fa.js +0 -1
  612. package/dist/esm/urlForFile-3b87fb01.js +0 -1
  613. package/dist/esm/ustream-api-7998d140.js +0 -1
@@ -1 +1,229 @@
1
- import{_ as t}from"./defineProperty-18999f8e.js";import{_ as e,r}from"./index-00bbf2b1.js";import{_ as o}from"./slicedToArray-f57adb2c.js";import a,{useState as i}from"react";import n from"next/link";import{a as c}from"./MasterDeck-41c7cd70.js";import{M as p}from"./MediaSeriesCard-cf72ce87.js";import s from"@sanity/block-content-to-react";import{g as m}from"./index-24498aa0.js";import"./unsupportedIterableToArray-b359dd50.js";import"./extends-e61fd370.js";import"./toConsumableArray-2f86a0c1.js";import"./getPrototypeOf-a8361cb6.js";import"./typeof-92b42de1.js";import"react-dfp";import"react-bootstrap/Container";import"react-bootstrap/Row";import"react-bootstrap/Col";import"react-bootstrap/Card";import"moment";import"next/router";import"lodash";import"lodash/debounce";import"react-infinite-scroll-component";import"react-visibility-sensor";import"./ADlgInfeed-19d0f057.js";import"./AdSlot-16696371.js";import"prop-types";import"./segment-lib-3a19dbdd.js";import"react-device-detect";import"./ADInfeed-8ce85d87.js";import"react-lazyload";import"./urlFor-649884fa.js";import"@sanity/image-url";import"./style-inject.es-1f59c1d0.js";import"react-bootstrap";import"get-youtube-id";import"react-youtube";import"./urlForFile-3b87fb01.js";import"@brightcove/react-player-loader";import"react-bootstrap/Modal";import"react-bootstrap/Button";import"react-bootstrap/Form";import"react-player";import"react-ga";import"./GroupDeck-4c581822.js";import"smoothscroll-polyfill";import"./SocialShare-9cc43665.js";import"next/head";import"react-share";import"react-bootstrap/Pagination";import"./entities-8b138943.js";import"striptags";import"./_commonjsHelpers-57e89916.js";import"react-icons/io";import"react-bootstrap/Figure";import"react-bootstrap/OverlayTrigger";import"react-bootstrap/Tooltip";import"react-bootstrap/Popover";import"react-script-tag";import"./checkSisterSite-20e2bf62.js";function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?l(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var f=function(t){var e=t.client,r=t.pageview,l=t.currentPage;t.taxonomyId,t.parentUrl;var u=t.nextPagePostsCount,f=i(t.seriesData),d=o(f,2),y=d[0];d[1];var b=i(t.params),g=o(b,2),j=g[0];g[1];var h=i(t.query),x=o(h,2),P=x[0];return x[1],404===t.statusCode?a.createElement("div",{className:"d-flex flex-column align-items-center mt-3"},a.createElement("h3",null,"404: Resource not found"),a.createElement("p",null,"We seem to have misplaced the page you're looking for. Sorry! Please try checking the URL for errors."),a.createElement("p",null,"Click here to",a.createElement(n,{href:"/"},a.createElement("a",{style:{color:"blue",textDecoration:"underline"}}," return to homepage.")))):a.createElement("div",{className:"mb-5"},t.taxonomy&&t.taxonomy.summary&&a.createElement(s,{style:{marginTop:"1rem !important"},blocks:t.taxonomy.summary,serializers:m(e)}),a.createElement("hr",{style:{marginTop:"2rem",marginBottom:"2rem"}}),y&&a.createElement(c,{deck:p,variant:"left",defaultImage:"/placeholder.jpg",client:e,dataRecord:y,query:P&&P,params:j&&j,currentPage:l,pageview:r,autoScroll:!0,seoPaginate:!0,nextPagePostsCount:u}))};f.getInitialData=function(){var t=e(r.mark((function t(e,o,a){var i,n,c,p,s,m,l,f,d,y,b,g;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.query,n=e.pathname,c=n.replace("/",""),p=10,s=i.page?parseInt(i.page):1,l=200,f={count:p,from:m=(s-1)*p,to:m+p,url:n,itemsPerPage:p},t.next=9,o.fetch("*[_type == 'taxonomy' && identifier == '".concat(c,"'][0]{\n _id, \n name,\n summary,\n pixelTrackingCode->\n }"));case 9:return d=t.sent,y="*[_type == 'taxonomy' && isMainTopic == true && references('".concat(d._id,"')] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n thumbnail{ ..., asset-> },\n summary,\n 'pageNumber': ").concat(s,",\n 'parentUrl': '").concat(c,"'\n }"),t.next=13,o.fetch(y,f);case 13:return(b=t.sent).forEach((function(t){t.description=t.summary,t.identifier={_type:"slug",current:t.identifier}})),t.next=17,o.fetch("count(".concat(y,")"),u(u({},f),{},{from:f.to,to:f.to+p}));case 17:return g=t.sent,s>1&&0===b.length&&(l=404),t.abrupt("return",{seriesData:b,query:y,params:f,currentPage:s,identifier:c,taxonomyId:d,parentUrl:c,statusCode:l,taxonomy:d,nextPagePostsCount:g});case 20:case"end":return t.stop()}}),t)})));return function(e,r,o){return t.apply(this,arguments)}}();export{f as default};
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
+ import { _ as _extends } from './extends-6d8e3924.js';
3
+ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
+ import React__default, { useState } from 'react';
5
+ import Link from 'next/link';
6
+ import MasterDeck from './MasterDeck.js';
7
+ import { M as MediaSeriesCard } from './MediaSeriesCard-f56c8274.js';
8
+ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
9
+ import { g as getSerializers } from './index-5d8b0a9d.js';
10
+ import './_commonjsHelpers-0c4b6f40.js';
11
+ import './core.get-iterator-method-ea258bb1.js';
12
+ import './web.dom.iterable-ab4dea5c.js';
13
+ import './_library-528f1934.js';
14
+ import './_iter-detect-98db3b07.js';
15
+ import './_object-pie-133f504a.js';
16
+ import './toConsumableArray-f7074d7c.js';
17
+ import './inherits-a6ba2ec4.js';
18
+ import './_object-sap-7cee6f84.js';
19
+ import './define-property-5f1bda73.js';
20
+ import './typeof-e9fc0c5d.js';
21
+ import './_is-array-8d21b9e3.js';
22
+ import './index-f0fc23eb.js';
23
+ import './events-6c3a7a63.js';
24
+ import 'prop-types';
25
+ import 'react-bootstrap/Container';
26
+ import 'react-bootstrap/Row';
27
+ import 'react-bootstrap/Col';
28
+ import 'react-bootstrap/Card';
29
+ import './moment-bc12cb97.js';
30
+ import 'next/router';
31
+ import './lodash-f97fd99a.js';
32
+ import './debounce-533d9748.js';
33
+ import './isSymbol-a7e9aafe.js';
34
+ import './toNumber-5aeba6e7.js';
35
+ import './index.es-a6137319.js';
36
+ import './visibility-sensor-72fd8f8b.js';
37
+ import 'react-dom';
38
+ import './index-3f5c03b2.js';
39
+ import './ADlgInfeed-5e36f317.js';
40
+ import './AdSlot.js';
41
+ import './Beam.js';
42
+ import './stringify-2b084bee.js';
43
+ import './Segment.js';
44
+ import './main-1894c974.js';
45
+ import './ADInfeed-5765a73a.js';
46
+ import './index-755f2cc2.js';
47
+ import './urlFor.js';
48
+ import './style-inject.es-1f59c1d0.js';
49
+ import 'react-bootstrap';
50
+ import './index-c7e2ac95.js';
51
+ import './util-8ed16d48.js';
52
+ import './urlForFile-b69adffc.js';
53
+ import './brightcove-react-player-loader.es-57a70a56.js';
54
+ import './_object-to-array-2300e51b.js';
55
+ import './keys-31dcdb31.js';
56
+ import 'react-bootstrap/Modal';
57
+ import 'react-bootstrap/Button';
58
+ import 'react-bootstrap/Form';
59
+ import 'react-ga';
60
+ import './GroupDeck.js';
61
+ import './smoothscroll-fa4e3f8c.js';
62
+ import './SocialShare.js';
63
+ import 'next/head';
64
+ import 'react-share';
65
+ import 'react-bootstrap/Pagination';
66
+ import './entities-6d9154b4.js';
67
+ import './index.esm-eb1e8e80.js';
68
+ import './iconBase-ccc56b97.js';
69
+ import 'react-bootstrap/Figure';
70
+ import 'react-bootstrap/OverlayTrigger';
71
+ import 'react-bootstrap/Tooltip';
72
+ import 'react-bootstrap/Popover';
73
+ import './checkSisterSite-baa4fb6b.js';
74
+
75
+ var _this = undefined;
76
+
77
+ var PodcastsLanding = function PodcastsLanding(props) {
78
+ var client = props.client,
79
+ pageview = props.pageview,
80
+ currentPage = props.currentPage;
81
+ props.taxonomyId;
82
+ props.parentUrl;
83
+ var nextPagePostsCount = props.nextPagePostsCount;
84
+
85
+ var _useState = useState(props.seriesData),
86
+ _useState2 = _slicedToArray(_useState, 2),
87
+ seriesData = _useState2[0];
88
+ _useState2[1];
89
+
90
+ var _useState3 = useState(props.params),
91
+ _useState4 = _slicedToArray(_useState3, 2),
92
+ params = _useState4[0];
93
+ _useState4[1];
94
+
95
+ var _useState5 = useState(props.query),
96
+ _useState6 = _slicedToArray(_useState5, 2),
97
+ query = _useState6[0];
98
+ _useState6[1];
99
+
100
+ if (props.statusCode === 404) {
101
+ return React__default.createElement(
102
+ 'div',
103
+ { className: 'd-flex flex-column align-items-center mt-3' },
104
+ React__default.createElement(
105
+ 'h3',
106
+ null,
107
+ '404: Resource not found'
108
+ ),
109
+ React__default.createElement(
110
+ 'p',
111
+ null,
112
+ 'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
113
+ ),
114
+ React__default.createElement(
115
+ 'p',
116
+ null,
117
+ 'Click here to',
118
+ React__default.createElement(
119
+ Link,
120
+ { href: '/' },
121
+ React__default.createElement(
122
+ 'a',
123
+ { style: { color: 'blue', textDecoration: 'underline' } },
124
+ ' return to homepage.'
125
+ )
126
+ )
127
+ )
128
+ );
129
+ }
130
+
131
+ return React__default.createElement(
132
+ 'div',
133
+ { className: 'mb-5' },
134
+ props.taxonomy && props.taxonomy.summary && React__default.createElement(BlockContent, { style: { marginTop: '1rem !important' }, blocks: props.taxonomy.summary, serializers: getSerializers(client) }),
135
+ React__default.createElement('hr', { style: { marginTop: '2rem', marginBottom: '2rem' } }),
136
+ seriesData && React__default.createElement(MasterDeck, {
137
+ deck: MediaSeriesCard,
138
+ variant: 'left',
139
+ defaultImage: '/placeholder.jpg',
140
+ client: client,
141
+ dataRecord: seriesData,
142
+ query: query && query,
143
+ params: params && params,
144
+ currentPage: currentPage,
145
+ pageview: pageview,
146
+ autoScroll: true,
147
+ seoPaginate: true,
148
+ nextPagePostsCount: nextPagePostsCount
149
+ })
150
+ );
151
+ };
152
+
153
+ PodcastsLanding.getInitialData = function () {
154
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(ctx, client, cache) {
155
+ var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, taxonomyId, seriesQuery, seriesData, nextPagePostsCount;
156
+ return regenerator.wrap(function _callee$(_context) {
157
+ while (1) {
158
+ switch (_context.prev = _context.next) {
159
+ case 0:
160
+ urlQuery = ctx.query, pathname = ctx.pathname;
161
+ identifier = pathname.replace('/', '');
162
+ itemsPerPage = 10;
163
+ currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
164
+ start = (currentPage - 1) * itemsPerPage;
165
+ statusCode = 200;
166
+ params = {
167
+ count: itemsPerPage,
168
+ from: start,
169
+ to: start + itemsPerPage,
170
+ url: pathname,
171
+ itemsPerPage: itemsPerPage
172
+ };
173
+ _context.next = 9;
174
+ return client.fetch('*[_type == \'taxonomy\' && identifier == \'' + identifier + '\'][0]{\n _id, \n name,\n summary,\n pixelTrackingCode->\n }');
175
+
176
+ case 9:
177
+ taxonomyId = _context.sent;
178
+
179
+ // const taxonomyId = await client.fetch(`*[_type == 'taxonomy' && _id == '6d748e0d-7946-4a14-968e-ca8182f06c1e']`)
180
+ // console.log('taxonomyId', taxonomyId)
181
+ seriesQuery = '*[_type == \'taxonomy\' && isMainTopic == true && references(\'' + taxonomyId._id + '\')] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n thumbnail{ ..., asset-> },\n summary,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + identifier + '\'\n }';
182
+ _context.next = 13;
183
+ return client.fetch(seriesQuery, params);
184
+
185
+ case 13:
186
+ seriesData = _context.sent;
187
+
188
+ seriesData.forEach(function (seriesObj) {
189
+ seriesObj.description = seriesObj.summary;
190
+ seriesObj.identifier = { _type: 'slug', current: seriesObj.identifier };
191
+ });
192
+ _context.next = 17;
193
+ return client.fetch('count(' + seriesQuery + ')', _extends({}, params, { from: params.to, to: params.to + itemsPerPage }));
194
+
195
+ case 17:
196
+ nextPagePostsCount = _context.sent;
197
+
198
+
199
+ if (currentPage > 1 && seriesData.length === 0) {
200
+ statusCode = 404;
201
+ }
202
+
203
+ return _context.abrupt('return', {
204
+ seriesData: seriesData,
205
+ query: seriesQuery,
206
+ params: params,
207
+ currentPage: currentPage,
208
+ identifier: identifier,
209
+ taxonomyId: taxonomyId,
210
+ parentUrl: identifier,
211
+ statusCode: statusCode,
212
+ taxonomy: taxonomyId,
213
+ nextPagePostsCount: nextPagePostsCount
214
+ });
215
+
216
+ case 20:
217
+ case 'end':
218
+ return _context.stop();
219
+ }
220
+ }
221
+ }, _callee, _this);
222
+ }));
223
+
224
+ return function (_x, _x2, _x3) {
225
+ return _ref.apply(this, arguments);
226
+ };
227
+ }();
228
+
229
+ export { PodcastsLanding as default };
@@ -1 +1,51 @@
1
- import"./slicedToArray-f57adb2c.js";import"react";import"react-bootstrap/Modal";export{a as default}from"./PopUpModal-a2735a23.js";import"./unsupportedIterableToArray-b359dd50.js";
1
+ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
2
+ import React__default, { useState } from 'react';
3
+ import Modal from 'react-bootstrap/Modal';
4
+ import './_commonjsHelpers-0c4b6f40.js';
5
+ import './web.dom.iterable-ab4dea5c.js';
6
+ import './core.get-iterator-method-ea258bb1.js';
7
+
8
+ var PopUpModal = function PopUpModal(props) {
9
+ var _ref = props.ModalImage ? useState(true) : useState(false),
10
+ _ref2 = _slicedToArray(_ref, 2),
11
+ show = _ref2[0],
12
+ setShow = _ref2[1];
13
+
14
+ var launchModalButton = function launchModalButton(e) {
15
+ window.open(props.landingURL, '_blank');
16
+ setShow(false);
17
+ };
18
+
19
+ return React__default.createElement(
20
+ Modal,
21
+ { show: show, onHide: function onHide() {
22
+ return setShow(false);
23
+ }, 'aria-labelledby': 'Popup-Modal' },
24
+ React__default.createElement(Modal.Title, null),
25
+ React__default.createElement(
26
+ Modal.Body,
27
+ null,
28
+ React__default.createElement(
29
+ 'div',
30
+ { className: 'modalImageHolder' },
31
+ React__default.createElement('img', { className: 'modalImage', src: props.ModalImage, onClick: function onClick() {
32
+ return launchModalButton();
33
+ } }),
34
+ React__default.createElement(
35
+ 'div',
36
+ { className: 'modalClose', onClick: function onClick() {
37
+ return setShow(false);
38
+ } },
39
+ 'X'
40
+ )
41
+ )
42
+ ),
43
+ React__default.createElement(
44
+ 'style',
45
+ { jsx: 'true' },
46
+ '\n .modalImageHolder {\n display: flex;\n justify-content: center;\n }\n .modalClose {\n display: flex;\n justify-content: center;\n width: 25px;\n height: 25px;\n font-size: 1.25rem;\n color: #fff;\n cursor: pointer;\n }\n .modalImage {\n cursor: pointer;\n }\n '
47
+ )
48
+ );
49
+ };
50
+
51
+ export { PopUpModal as default };
@@ -1 +1,143 @@
1
- import{_ as e}from"./toConsumableArray-2f86a0c1.js";import{_ as t,r}from"./index-00bbf2b1.js";import{_ as n}from"./slicedToArray-f57adb2c.js";import a from"moment";import o,{useState as s,useEffect as m}from"react";import{Col as i,Row as c}from"react-bootstrap";import"./unsupportedIterableToArray-b359dd50.js";function l(l){var p=l.initialData,u=s(),d=n(u,2),f=d[0],g=d[1],E=s(),b=n(E,2),x=b[0],y=b[1],h=s(),I=n(h,2),_=I[0],v=I[1];m((function(){p&&p.pageInfo&&(y(p.pageInfo.hasMore),v(p.pageInfo.cursor),g(p.contentItems))}),[]);var M=function(){var n=t(r.mark((function t(){var n,a;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/api/get_activities-CE",{headers:{"Content-Type":"application/json",Accept:"application/json"},method:"post",credentials:"same-origin",body:JSON.stringify({params:{paginatedPoint:_}})});case 2:return n=t.sent,t.next=5,n.json();case 5:(a=t.sent).pageInfo&&(y(a.pageInfo.hasMore),v(a.pageInfo.cursor),g((function(t){return[].concat(e(t),e(a.contentItems))})));case 7:case"end":return t.stop()}}),t)})));return function(){return n.apply(this,arguments)}}();return o.createElement("div",null,f&&f.map((function(e){var t=e.url?e.url:"https://www.pharmacytimes.org/courses/".concat(e.slug);return o.createElement(i,{xl:12,style:{marginBottom:"1rem"}},o.createElement(c,null,o.createElement(i,{xs:3,sm:4,md:4,lg:4,xl:4,style:{padding:"0"}},o.createElement("a",{href:t,rel:"noopener",target:"_blank"},o.createElement("img",{style:{width:"100%",borderRadius:"0 0 0 10%",marginBottom:"20px",borderTop:"1px solid #EEE"},src:e.asset}))),o.createElement(i,{xs:9,sm:8,md:8,lg:8,xl:8,style:{paddingTop:"10px",marginBottom:"20px",borderTop:"1px solid #EEE"}},o.createElement("a",{href:t,rel:"noopener",target:"_blank"},o.createElement("h4",{className:"mb-1",style:{fontWeight:"500",fontSize:"22px"},dangerouslySetInnerHTML:{__html:e.title}}),o.createElement("p",{className:"mb-2"},"Expiration Date: ",a(e.courseEndDate).format("MMM Do YYYY")),o.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}})))))})),x&&o.createElement("div",{className:"text-center my-5"},o.createElement("button",{onClick:M,className:"btn btn-lg btn-primary"},"Load More")))}export{l as default};
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
+ import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
3
+ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
4
+ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
5
+ import { m as moment } from './moment-bc12cb97.js';
6
+ import React__default, { useState, useEffect } from 'react';
7
+ import { Col, Row } from 'react-bootstrap';
8
+ import './_commonjsHelpers-0c4b6f40.js';
9
+ import './core.get-iterator-method-ea258bb1.js';
10
+ import './web.dom.iterable-ab4dea5c.js';
11
+ import './_library-528f1934.js';
12
+ import './_iter-detect-98db3b07.js';
13
+
14
+ function PtceDeck(props) {
15
+ var _this = this;
16
+
17
+ var initialData = props.initialData;
18
+
19
+ var _useState = useState(),
20
+ _useState2 = _slicedToArray(_useState, 2),
21
+ cmeData = _useState2[0],
22
+ setCmeData = _useState2[1];
23
+
24
+ var _useState3 = useState(),
25
+ _useState4 = _slicedToArray(_useState3, 2),
26
+ hasMore = _useState4[0],
27
+ setHasMore = _useState4[1];
28
+
29
+ var _useState5 = useState(),
30
+ _useState6 = _slicedToArray(_useState5, 2),
31
+ paginatedPoint = _useState6[0],
32
+ setPaginatedPoint = _useState6[1];
33
+
34
+ useEffect(function () {
35
+ //set inital data
36
+ if (initialData && initialData.pageInfo) {
37
+ setHasMore(initialData.pageInfo.hasMore);
38
+ setPaginatedPoint(initialData.pageInfo.cursor);
39
+ setCmeData(initialData.contentItems);
40
+ }
41
+ //set hasMore and breakpoint
42
+ }, []);
43
+
44
+ var loadMore = function () {
45
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
46
+ var response, data;
47
+ return regenerator.wrap(function _callee$(_context) {
48
+ while (1) {
49
+ switch (_context.prev = _context.next) {
50
+ case 0:
51
+ _context.next = 2;
52
+ return fetch('/api/get_activities-CE', {
53
+ headers: {
54
+ 'Content-Type': 'application/json',
55
+ Accept: 'application/json'
56
+ },
57
+ method: 'post',
58
+ credentials: 'same-origin',
59
+ body: _JSON$stringify({ params: { paginatedPoint: paginatedPoint } })
60
+ });
61
+
62
+ case 2:
63
+ response = _context.sent;
64
+ _context.next = 5;
65
+ return response.json();
66
+
67
+ case 5:
68
+ data = _context.sent;
69
+
70
+
71
+ if (data.pageInfo) {
72
+ setHasMore(data.pageInfo.hasMore);
73
+ setPaginatedPoint(data.pageInfo.cursor);
74
+ setCmeData(function (prevState) {
75
+ return [].concat(_toConsumableArray(prevState), _toConsumableArray(data.contentItems));
76
+ });
77
+ }
78
+
79
+ case 7:
80
+ case 'end':
81
+ return _context.stop();
82
+ }
83
+ }
84
+ }, _callee, _this);
85
+ }));
86
+
87
+ return function loadMore() {
88
+ return _ref.apply(this, arguments);
89
+ };
90
+ }();
91
+
92
+ return React__default.createElement(
93
+ 'div',
94
+ null,
95
+ cmeData && cmeData.map(function (activity) {
96
+ var href = activity.url ? activity.url : 'https://www.pharmacytimes.org/courses/' + activity.slug;
97
+ return React__default.createElement(
98
+ Col,
99
+ { xl: 12, style: { marginBottom: '1rem' } },
100
+ React__default.createElement(
101
+ Row,
102
+ null,
103
+ React__default.createElement(
104
+ Col,
105
+ { xs: 3, sm: 4, md: 4, lg: 4, xl: 4, style: { padding: '0' } },
106
+ React__default.createElement(
107
+ 'a',
108
+ { href: href, rel: 'noopener', target: '_blank' },
109
+ React__default.createElement('img', { style: { width: '100%', borderRadius: '0 0 0 10%', marginBottom: '20px', borderTop: '1px solid #EEE' }, src: activity.asset })
110
+ )
111
+ ),
112
+ React__default.createElement(
113
+ Col,
114
+ { xs: 9, sm: 8, md: 8, lg: 8, xl: 8, style: { paddingTop: '10px', marginBottom: '20px', borderTop: '1px solid #EEE' } },
115
+ React__default.createElement(
116
+ 'a',
117
+ { href: href, rel: 'noopener', target: '_blank' },
118
+ React__default.createElement('h4', { className: 'mb-1', style: { fontWeight: '500', fontSize: '22px' }, dangerouslySetInnerHTML: { __html: activity.title } }),
119
+ React__default.createElement(
120
+ 'p',
121
+ { className: 'mb-2' },
122
+ 'Expiration Date: ',
123
+ moment(activity.courseEndDate).format('MMM Do YYYY')
124
+ ),
125
+ React__default.createElement('p', { dangerouslySetInnerHTML: { __html: activity.description } })
126
+ )
127
+ )
128
+ )
129
+ );
130
+ }),
131
+ hasMore && React__default.createElement(
132
+ 'div',
133
+ { className: 'text-center my-5' },
134
+ React__default.createElement(
135
+ 'button',
136
+ { onClick: loadMore, className: 'btn btn-lg btn-primary' },
137
+ 'Load More'
138
+ )
139
+ )
140
+ );
141
+ }
142
+
143
+ export { PtceDeck as default };
@@ -1 +1,115 @@
1
- import"./slicedToArray-f57adb2c.js";import"./index-00bbf2b1.js";import"./extends-e61fd370.js";import"react";import"./QueueDeckExpanded-fdc60f72.js";export{a as default}from"./PubSection-3d940b53.js";import"./unsupportedIterableToArray-b359dd50.js";import"./toConsumableArray-2f86a0c1.js";import"./defineProperty-18999f8e.js";import"react-bootstrap";import"./urlFor-649884fa.js";import"@sanity/image-url";import"react-infinite-scroll-component";import"moment";import"react-visibility-sensor";import"react-dfp";import"next/router";import"react-lazyload";import"react-device-detect";import"./entities-8b138943.js";import"striptags";import"./_commonjsHelpers-57e89916.js";import"./ADInfeed-8ce85d87.js";import"react-bootstrap/Card";import"./AdSlot-16696371.js";import"prop-types";import"lodash/debounce";import"./segment-lib-3a19dbdd.js";import"./AuthorComponent-f3e14fdd.js";import"lodash";import"./ADlgInfeed-19d0f057.js";import"./getContentCategory-f99fdf90.js";import"./timeDifferenceCalc.js";
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
+ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
+ import { _ as _extends } from './extends-6d8e3924.js';
4
+ import React__default from 'react';
5
+ import QueueDeckExpanded from './QueueDeckExpanded.js';
6
+ import './_commonjsHelpers-0c4b6f40.js';
7
+ import './core.get-iterator-method-ea258bb1.js';
8
+ import './web.dom.iterable-ab4dea5c.js';
9
+ import './_library-528f1934.js';
10
+ import './_iter-detect-98db3b07.js';
11
+ import './_object-pie-133f504a.js';
12
+ import './toConsumableArray-f7074d7c.js';
13
+ import 'react-bootstrap';
14
+ import './urlFor.js';
15
+ import './index-3f5c03b2.js';
16
+ import './index.es-a6137319.js';
17
+ import './moment-bc12cb97.js';
18
+ import './visibility-sensor-72fd8f8b.js';
19
+ import 'react-dom';
20
+ import './index-f0fc23eb.js';
21
+ import './events-6c3a7a63.js';
22
+ import 'prop-types';
23
+ import 'next/router';
24
+ import './index-755f2cc2.js';
25
+ import './main-1894c974.js';
26
+ import './entities-6d9154b4.js';
27
+ import './ADInfeed-5765a73a.js';
28
+ import 'react-bootstrap/Card';
29
+ import './AdSlot.js';
30
+ import './debounce-533d9748.js';
31
+ import './isSymbol-a7e9aafe.js';
32
+ import './toNumber-5aeba6e7.js';
33
+ import './Beam.js';
34
+ import './stringify-2b084bee.js';
35
+ import './Segment.js';
36
+ import './AuthorComponent-11adff02.js';
37
+ import './lodash-f97fd99a.js';
38
+ import './ADlgInfeed-5e36f317.js';
39
+ import './getContentCategory-15dcc413.js';
40
+ import './timeDifferenceCalc.js';
41
+
42
+ var _this = undefined;
43
+
44
+ var PubSection = function PubSection(props) {
45
+ var pubSection = props.pubSection,
46
+ tocUrl = props.tocUrl;
47
+
48
+ return React__default.createElement(
49
+ 'div',
50
+ { id: 'pubSection' },
51
+ pubSection.publication && pubSection.publication.name && React__default.createElement(
52
+ 'h2',
53
+ null,
54
+ pubSection.publication.name
55
+ ),
56
+ React__default.createElement(
57
+ 'p',
58
+ null,
59
+ React__default.createElement(
60
+ 'a',
61
+ { id: 'back', href: tocUrl ? tocUrl : 'toc' },
62
+ 'Back to Table of Contents'
63
+ )
64
+ ),
65
+ React__default.createElement(QueueDeckExpanded, _extends({ dataRecord: pubSection.articles }, props))
66
+ );
67
+ };
68
+
69
+ PubSection.getInitialProps = function () {
70
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(ctx, client) {
71
+ var _ctx$query, publication, issue, section, res, params, query, _ref2, _ref3, pubSection;
72
+
73
+ return regenerator.wrap(function _callee$(_context) {
74
+ while (1) {
75
+ switch (_context.prev = _context.next) {
76
+ case 0:
77
+ _ctx$query = ctx.query, publication = _ctx$query.publication, issue = _ctx$query.issue, section = _ctx$query.section, res = ctx.res;
78
+ params = {
79
+ publication: publication,
80
+ section: section
81
+ };
82
+ query = '*[_type == \'publicationSection\'\n && defined(parent)\n && parent->identifier == $publication\n && identifier == $section] {\n ...,\n parent->,\n \'articles\': *[_type == \'article\'\n \t&& !(_id in path("drafts.**")) \n\t\t && defined(title) \n\t\t && defined(url) \n\t\t && is_visible \n\t\t && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] {\n ...,\n contentCategory->,\n authorMapping[]->,\n },\n \'publication\': *[_type == \'publication\'\n && identifier.current == $publication] [0]\n }';
83
+ _context.next = 5;
84
+ return client.fetch(query, params);
85
+
86
+ case 5:
87
+ _ref2 = _context.sent;
88
+ _ref3 = _slicedToArray(_ref2, 1);
89
+ pubSection = _ref3[0];
90
+
91
+ if (pubSection) {
92
+ _context.next = 11;
93
+ break;
94
+ }
95
+
96
+ res.statusCode = 404;
97
+ return _context.abrupt('return', { show404: true });
98
+
99
+ case 11:
100
+ return _context.abrupt('return', { publication: publication, issue: issue, section: section, pubSection: pubSection });
101
+
102
+ case 12:
103
+ case 'end':
104
+ return _context.stop();
105
+ }
106
+ }
107
+ }, _callee, _this);
108
+ }));
109
+
110
+ return function (_x, _x2) {
111
+ return _ref.apply(this, arguments);
112
+ };
113
+ }();
114
+
115
+ export { PubSection as default };
@@ -1 +1,81 @@
1
- import"./slicedToArray-f57adb2c.js";import"./index-00bbf2b1.js";import"react";export{a as default}from"./PubToc-52a85696.js";import"./unsupportedIterableToArray-b359dd50.js";
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
+ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
+ import React__default from 'react';
4
+ import './_commonjsHelpers-0c4b6f40.js';
5
+ import './core.get-iterator-method-ea258bb1.js';
6
+ import './web.dom.iterable-ab4dea5c.js';
7
+ import './_library-528f1934.js';
8
+ import './_iter-detect-98db3b07.js';
9
+
10
+ var _this = undefined;
11
+
12
+ var PubToc = function PubToc(props) {
13
+ var toc = props.toc;
14
+
15
+ return React__default.createElement(
16
+ 'div',
17
+ { id: 'pubToc' },
18
+ React__default.createElement(
19
+ 'ul',
20
+ null,
21
+ toc && toc.parentSection && Array.isArray(toc.parentSection.sections) && toc.parentSection.sections.map(function (s) {
22
+ return React__default.createElement(
23
+ 'li',
24
+ { key: s.identifier },
25
+ React__default.createElement(
26
+ 'a',
27
+ { href: s.identifier },
28
+ s.name
29
+ )
30
+ );
31
+ })
32
+ )
33
+ );
34
+ };
35
+
36
+ PubToc.getInitialProps = function () {
37
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(ctx, client) {
38
+ var _ctx$query, publication, issue, res, params, query, _ref2, _ref3, toc;
39
+
40
+ return regenerator.wrap(function _callee$(_context) {
41
+ while (1) {
42
+ switch (_context.prev = _context.next) {
43
+ case 0:
44
+ _ctx$query = ctx.query, publication = _ctx$query.publication, issue = _ctx$query.issue, res = ctx.res;
45
+ params = {
46
+ publication: publication
47
+ };
48
+ query = '*[_type == \'publication\'\n && identifier.current == $publication] {\n ...,\n \'parentSection\': *[_type == \'publicationSection\'\n && name == ^.name\n && !defined(parent)] [0] {\n ...,\n \'sections\': *[_type == \'publicationSection\'\n && references(^._id)]\n }\n }';
49
+ _context.next = 5;
50
+ return client.fetch(query, params);
51
+
52
+ case 5:
53
+ _ref2 = _context.sent;
54
+ _ref3 = _slicedToArray(_ref2, 1);
55
+ toc = _ref3[0];
56
+
57
+ if (!(!toc || !toc.parentSection)) {
58
+ _context.next = 11;
59
+ break;
60
+ }
61
+
62
+ res.statusCode = 404;
63
+ return _context.abrupt('return', { show404: true });
64
+
65
+ case 11:
66
+ return _context.abrupt('return', { publication: publication, issue: issue, toc: toc });
67
+
68
+ case 12:
69
+ case 'end':
70
+ return _context.stop();
71
+ }
72
+ }
73
+ }, _callee, _this);
74
+ }));
75
+
76
+ return function (_x, _x2) {
77
+ return _ref.apply(this, arguments);
78
+ };
79
+ }();
80
+
81
+ export { PubToc as default };