@mjhls/mjh-framework 1.0.97 → 1.0.99-0.next-12
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.
- package/README.md +168 -172
- package/dist/cjs/AD.js +32 -0
- package/dist/cjs/AD300x250.js +95 -0
- package/dist/cjs/AD300x250x600.js +112 -0
- package/dist/cjs/AD728x90.js +109 -0
- package/dist/cjs/ADFloatingFooter.js +143 -0
- package/dist/cjs/ADFooter.js +53 -0
- package/dist/cjs/ADGutter.js +115 -0
- package/dist/cjs/ADInfeed-cf54cb8a.js +66 -0
- package/dist/cjs/ADSkyscraper.js +117 -0
- package/dist/cjs/ADSponsoredResources.js +114 -0
- package/dist/cjs/ADWebcast.js +119 -0
- package/dist/cjs/ADWelcome.js +166 -0
- package/dist/cjs/ADlgInfeed-d06624d8.js +60 -0
- package/dist/cjs/AccordionPanel.js +94 -0
- package/dist/cjs/AdSlot.js +251 -0
- package/dist/cjs/AdSlotsProvider.js +183 -0
- package/dist/cjs/AlgoliaSearch.js +195 -0
- package/dist/cjs/AlphabeticList.js +135 -0
- package/dist/cjs/ArticleCarousel.js +46 -0
- package/dist/cjs/ArticleProgramLandingPage.js +184 -0
- package/dist/cjs/ArticleSeriesLandingPage.js +162 -0
- package/dist/cjs/ArticleSeriesListing.js +315 -0
- package/dist/cjs/AuthWrapper.js +720 -0
- package/dist/cjs/AuthorComponent-39b37d84.js +96 -0
- package/dist/cjs/Beam.js +350 -0
- package/dist/cjs/BlockContent-36e54d77.js +916 -0
- package/dist/cjs/Breadcrumbs.js +107 -0
- package/dist/cjs/CMEDeck.js +443 -0
- package/dist/cjs/Column1.js +39 -0
- package/dist/cjs/Column2.js +75 -0
- package/dist/cjs/Column3.js +144 -0
- package/dist/cjs/ConferenceArticleCard.js +93 -0
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/ContentCardPaginated.js +417 -0
- package/dist/cjs/DeckContent.js +507 -0
- package/dist/cjs/DeckQueue.js +403 -0
- package/dist/cjs/DeckQueuePaginated.js +348 -0
- package/dist/cjs/Dfp-94f8ccdf.js +103 -0
- package/dist/cjs/EventsDeck.js +857 -0
- package/dist/cjs/ExternalResources.js +217 -0
- package/dist/cjs/Feature.js +129 -0
- package/dist/cjs/ForbesHero.js +137 -0
- package/dist/cjs/GridContent.js +828 -0
- package/dist/cjs/GridContentPaginated.js +704 -0
- package/dist/cjs/GridHero.js +147 -0
- package/dist/cjs/GroupDeck.js +314 -0
- package/dist/cjs/HamMagazine.js +602 -0
- package/dist/cjs/Header.js +39 -0
- package/dist/cjs/HealthCareProfessionalModal.js +78 -0
- package/dist/cjs/Hero.js +48 -0
- package/dist/cjs/HighlightenVideo.js +69 -0
- package/dist/cjs/HorizontalArticleListing.js +165 -0
- package/dist/cjs/HorizontalHero.js +111 -0
- package/dist/cjs/ImageSlider-a7fb6218.js +182 -0
- package/dist/cjs/IssueContentDeck.js +241 -0
- package/dist/cjs/IssueDeck.js +268 -0
- package/dist/cjs/IssueLanding.js +172 -0
- package/dist/cjs/KMTracker.js +27 -0
- package/dist/cjs/LeftNav.js +145 -0
- package/dist/cjs/MasterDeck.js +555 -0
- package/dist/cjs/MasterDeckPaginated.js +469 -0
- package/dist/cjs/MediaSeriesCard-36eab8b7.js +9502 -0
- package/dist/cjs/MediaSeriesLanding.js +503 -0
- package/dist/cjs/MediaSeriesLandingPaginated.js +529 -0
- package/dist/cjs/NavDvm.js +245 -0
- package/dist/cjs/NavFooter-3dcd99a8.js +66 -0
- package/dist/cjs/NavMagazine.js +595 -0
- package/dist/cjs/NavNative.js +861 -0
- package/dist/cjs/OncliveHero.js +79 -0
- package/dist/cjs/OncliveLargeHero.js +241 -0
- package/dist/cjs/PageFilter.js +72 -0
- package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +326 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +318 -0
- package/dist/cjs/PdfDownload.js +28 -0
- package/dist/cjs/PixelTracking.js +165 -0
- package/dist/cjs/PopUpModal.js +58 -0
- package/dist/cjs/PtceDeck.js +149 -0
- package/dist/cjs/PubSection.js +120 -0
- package/dist/cjs/PubToc.js +87 -0
- package/dist/cjs/PublicationDeck.js +183 -0
- package/dist/cjs/PublicationFeature-be5f3503.js +130 -0
- package/dist/cjs/PublicationLanding.js +853 -0
- package/dist/cjs/QueueDeckExpanded.js +1540 -0
- package/dist/cjs/QueueDeckExpandedPaginated.js +1388 -0
- package/dist/cjs/RecentNews.js +91 -0
- package/dist/cjs/RelatedContent.js +114 -0
- package/dist/cjs/RelatedTopicsDropdown.js +90 -0
- package/dist/cjs/RolesDeck.js +94 -0
- package/dist/cjs/Schema.js +101 -0
- package/dist/cjs/Search.js +66 -0
- package/dist/cjs/Segment.js +403 -0
- package/dist/cjs/SeriesListingDeck.js +248 -0
- package/dist/cjs/SeriesSlider-b94f1dd5.js +332 -0
- package/dist/cjs/SetCookie.js +10 -0
- package/dist/cjs/SideFooter.js +151 -0
- package/dist/cjs/SocialIcons.js +103 -0
- package/dist/cjs/SocialSearchComponent-b7faaedc.js +213 -0
- package/dist/cjs/SocialShare.js +74 -0
- package/dist/cjs/TaxonomyCard.js +253 -0
- package/dist/cjs/TaxonomyDescription.js +205 -0
- package/dist/cjs/TemplateNormal.js +204 -0
- package/dist/cjs/ThumbnailCard.js +59 -0
- package/dist/cjs/Ustream.js +156 -0
- package/dist/cjs/VerticalHero.js +74 -0
- package/dist/cjs/VideoProgramLandingPage.js +260 -0
- package/dist/cjs/VideoSeriesCard.js +88 -0
- package/dist/cjs/VideoSeriesFilter.js +128 -0
- package/dist/cjs/VideoSeriesLandingPage.js +178 -0
- package/dist/cjs/VideoSeriesListing.js +422 -0
- package/dist/cjs/View.js +2601 -0
- package/dist/cjs/YahooHero.js +126 -0
- package/dist/cjs/YoutubeGroup.js +371 -0
- package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
- package/dist/cjs/_is-array-54228b29.js +74 -0
- package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
- package/dist/cjs/_library-dd23b178.js +5 -0
- package/dist/cjs/_object-pie-083f2dd6.js +16 -0
- package/dist/cjs/_object-sap-d1978572.js +16 -0
- package/dist/cjs/_object-to-array-ce86cae7.js +25 -0
- package/dist/cjs/asyncToGenerator-77821af0.js +1395 -0
- package/dist/cjs/brightcove-react-player-loader.es-a195642e.js +2232 -0
- package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
- package/dist/cjs/debounce-d4a2369b.js +216 -0
- package/dist/cjs/define-property-e8404b64.js +20 -0
- package/dist/cjs/defineProperty-9673846a.js +34 -0
- package/dist/cjs/entities-3f9d0f2f.js +506 -0
- package/dist/cjs/eq-5fc26c07.js +79 -0
- package/dist/cjs/extends-7c86182f.js +87 -0
- package/dist/cjs/faundadb.js +644 -0
- package/dist/cjs/get-5839e5b5.js +920 -0
- package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
- package/dist/cjs/getKeywords.js +46 -0
- package/dist/cjs/getPtceActivities.js +89 -0
- package/dist/cjs/getQuery.js +28 -0
- package/dist/cjs/getRelatedArticle.js +747 -0
- package/dist/cjs/getRootDocGroup.js +62 -0
- package/dist/cjs/getSerializers.js +64 -0
- package/dist/cjs/getSeriesDetail.js +40 -0
- package/dist/cjs/getTargeting-4439c99d.js +164 -0
- package/dist/cjs/getTargeting.js +13 -0
- package/dist/cjs/iconBase-be4097c0.js +106 -0
- package/dist/cjs/index-0e4427c8.js +1683 -0
- package/dist/cjs/index-187c967e.js +54 -0
- package/dist/cjs/index-7361fa72.js +11305 -0
- package/dist/cjs/index-eadd5035.js +613 -0
- package/dist/cjs/index-efca863c.js +556 -0
- package/dist/cjs/index-f86bb269.js +1571 -0
- package/dist/cjs/index.es-f3e47207.js +445 -0
- package/dist/cjs/index.esm-2bb721c8.js +96 -0
- package/dist/cjs/index.esm-c1e16606.js +13 -0
- package/dist/cjs/index.esm-d51c9ac6.js +25 -0
- package/dist/cjs/index.esm-d81454e7.js +19 -0
- package/dist/cjs/index.js +635 -0
- package/dist/cjs/inherits-de66ea16.js +188 -0
- package/dist/cjs/isSymbol-03abbdf0.js +209 -0
- package/dist/cjs/js.cookie-a511c430.js +160 -0
- package/dist/cjs/keys-e982b3fa.js +25 -0
- package/dist/cjs/lodash-f0783643.js +17195 -0
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/moment-aca40de1.js +5669 -0
- package/dist/cjs/react-social-icons-af932527.js +616 -0
- package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
- package/dist/cjs/smoothscroll-99df7f93.js +438 -0
- package/dist/cjs/stringify-f7a37a8d.js +17 -0
- package/dist/cjs/style-inject.es-dcee06b6.js +30 -0
- package/dist/cjs/timeDifferenceCalc.js +39 -0
- package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
- package/dist/cjs/toNumber-5e1fac58.js +104 -0
- package/dist/cjs/typeof-567e31ff.js +382 -0
- package/dist/cjs/urlFor.js +65 -0
- package/dist/cjs/urlForFile-29d3815a.js +24 -0
- package/dist/cjs/ustream-api-3819e4aa.js +106 -0
- package/dist/cjs/visibility-sensor-eb2c5b69.js +597 -0
- package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
- package/dist/esm/AD.js +26 -0
- package/dist/esm/AD300x250.js +89 -0
- package/dist/esm/AD300x250x600.js +106 -0
- package/dist/esm/AD728x90.js +103 -0
- package/dist/esm/ADFloatingFooter.js +137 -0
- package/dist/esm/ADFooter.js +47 -0
- package/dist/esm/ADGutter.js +109 -0
- package/dist/esm/ADInfeed-f684cac9.js +59 -0
- package/dist/esm/ADSkyscraper.js +111 -0
- package/dist/esm/ADSponsoredResources.js +108 -0
- package/dist/esm/ADWebcast.js +113 -0
- package/dist/esm/ADWelcome.js +160 -0
- package/dist/esm/ADlgInfeed-8c438cee.js +54 -0
- package/dist/esm/AccordionPanel.js +87 -0
- package/dist/esm/AdSlot.js +244 -0
- package/dist/esm/AdSlotsProvider.js +176 -0
- package/dist/esm/AlgoliaSearch.js +188 -0
- package/dist/esm/AlphabeticList.js +129 -0
- package/dist/esm/ArticleCarousel.js +40 -0
- package/dist/esm/ArticleProgramLandingPage.js +178 -0
- package/dist/esm/ArticleSeriesLandingPage.js +156 -0
- package/dist/esm/ArticleSeriesListing.js +308 -0
- package/dist/esm/AuthWrapper.js +714 -0
- package/dist/esm/AuthorComponent-defe68b6.js +90 -0
- package/dist/esm/Beam.js +348 -0
- package/dist/esm/BlockContent-c99c9a8d.js +909 -0
- package/dist/esm/Breadcrumbs.js +100 -0
- package/dist/esm/CMEDeck.js +437 -0
- package/dist/esm/Column1.js +29 -0
- package/dist/esm/Column2.js +65 -0
- package/dist/esm/Column3.js +134 -0
- package/dist/esm/ConferenceArticleCard.js +87 -0
- package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
- package/dist/esm/ContentCardPaginated.js +406 -0
- package/dist/esm/DeckContent.js +497 -0
- package/dist/esm/DeckQueue.js +393 -0
- package/dist/esm/DeckQueuePaginated.js +337 -0
- package/dist/esm/Dfp-4b99f79d.js +96 -0
- package/dist/esm/EventsDeck.js +844 -0
- package/dist/esm/ExternalResources.js +210 -0
- package/dist/esm/Feature.js +122 -0
- package/dist/esm/ForbesHero.js +131 -0
- package/dist/esm/GridContent.js +818 -0
- package/dist/esm/GridContentPaginated.js +693 -0
- package/dist/esm/GridHero.js +141 -0
- package/dist/esm/GroupDeck.js +308 -0
- package/dist/esm/HamMagazine.js +590 -0
- package/dist/esm/Header.js +30 -0
- package/dist/esm/HealthCareProfessionalModal.js +70 -0
- package/dist/esm/Hero.js +42 -0
- package/dist/esm/HighlightenVideo.js +63 -0
- package/dist/esm/HorizontalArticleListing.js +159 -0
- package/dist/esm/HorizontalHero.js +105 -0
- package/dist/esm/ImageSlider-eab2fe41.js +176 -0
- package/dist/esm/IssueContentDeck.js +231 -0
- package/dist/esm/IssueDeck.js +258 -0
- package/dist/esm/IssueLanding.js +166 -0
- package/dist/esm/KMTracker.js +25 -0
- package/dist/esm/LeftNav.js +136 -0
- package/dist/esm/MasterDeck.js +548 -0
- package/dist/esm/MasterDeckPaginated.js +461 -0
- package/dist/esm/MediaSeriesCard-99048e65.js +9492 -0
- package/dist/esm/MediaSeriesLanding.js +496 -0
- package/dist/esm/MediaSeriesLandingPaginated.js +522 -0
- package/dist/esm/NavDvm.js +233 -0
- package/dist/esm/NavFooter-e27bd93b.js +60 -0
- package/dist/esm/NavMagazine.js +583 -0
- package/dist/esm/NavNative.js +846 -0
- package/dist/esm/OncliveHero.js +73 -0
- package/dist/esm/OncliveLargeHero.js +235 -0
- package/dist/esm/PageFilter.js +66 -0
- package/dist/esm/Pagination-cd21f8c2.js +82 -0
- package/dist/esm/PartnerDetailListing.js +320 -0
- package/dist/esm/PartnerDetailListingPaginated.js +312 -0
- package/dist/esm/PdfDownload.js +22 -0
- package/dist/esm/PixelTracking.js +156 -0
- package/dist/esm/PopUpModal.js +51 -0
- package/dist/esm/PtceDeck.js +143 -0
- package/dist/esm/PubSection.js +114 -0
- package/dist/esm/PubToc.js +81 -0
- package/dist/esm/PublicationDeck.js +173 -0
- package/dist/esm/PublicationFeature-03500094.js +121 -0
- package/dist/esm/PublicationLanding.js +843 -0
- package/dist/esm/QueueDeckExpanded.js +1534 -0
- package/dist/esm/QueueDeckExpandedPaginated.js +1382 -0
- package/dist/esm/RecentNews.js +85 -0
- package/dist/esm/RelatedContent.js +108 -0
- package/dist/esm/RelatedTopicsDropdown.js +82 -0
- package/dist/esm/RolesDeck.js +84 -0
- package/dist/esm/Schema.js +95 -0
- package/dist/esm/Search.js +57 -0
- package/dist/esm/Segment.js +401 -0
- package/dist/esm/SeriesListingDeck.js +242 -0
- package/dist/esm/SeriesSlider-609f9d94.js +326 -0
- package/dist/esm/SetCookie.js +8 -0
- package/dist/esm/SideFooter.js +145 -0
- package/dist/esm/SocialIcons.js +97 -0
- package/dist/esm/SocialSearchComponent-1d8a9f59.js +204 -0
- package/dist/esm/SocialShare.js +67 -0
- package/dist/esm/TaxonomyCard.js +243 -0
- package/dist/esm/TaxonomyDescription.js +198 -0
- package/dist/esm/TemplateNormal.js +197 -0
- package/dist/esm/ThumbnailCard.js +52 -0
- package/dist/esm/Ustream.js +150 -0
- package/dist/esm/VerticalHero.js +68 -0
- package/dist/esm/VideoProgramLandingPage.js +251 -0
- package/dist/esm/VideoSeriesCard.js +82 -0
- package/dist/esm/VideoSeriesFilter.js +122 -0
- package/dist/esm/VideoSeriesLandingPage.js +172 -0
- package/dist/esm/VideoSeriesListing.js +415 -0
- package/dist/esm/View.js +2590 -0
- package/dist/esm/YahooHero.js +120 -0
- package/dist/esm/YoutubeGroup.js +365 -0
- package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
- package/dist/esm/_is-array-893ab020.js +71 -0
- package/dist/esm/_iter-detect-f089461c.js +48 -0
- package/dist/esm/_library-528f1934.js +3 -0
- package/dist/esm/_object-pie-133f504a.js +13 -0
- package/dist/esm/_object-sap-169d6272.js +14 -0
- package/dist/esm/_object-to-array-50a6b9a3.js +23 -0
- package/dist/esm/asyncToGenerator-9716ae8d.js +1387 -0
- package/dist/esm/brightcove-react-player-loader.es-57a70a56.js +2226 -0
- package/dist/esm/core.get-iterator-method-e903ff31.js +547 -0
- package/dist/esm/debounce-533d9748.js +214 -0
- package/dist/esm/define-property-99e66838.js +18 -0
- package/dist/esm/defineProperty-8fa0bc8d.js +32 -0
- package/dist/esm/entities-932b50cf.js +503 -0
- package/dist/esm/eq-bdcbf886.js +76 -0
- package/dist/esm/extends-dc6a71fd.js +83 -0
- package/dist/esm/faundadb.js +636 -0
- package/dist/esm/get-3c308da4.js +918 -0
- package/dist/esm/getContentCategory-15dcc413.js +9 -0
- package/dist/esm/getKeywords.js +44 -0
- package/dist/esm/getPtceActivities.js +87 -0
- package/dist/esm/getQuery.js +26 -0
- package/dist/esm/getRelatedArticle.js +745 -0
- package/dist/esm/getRootDocGroup.js +60 -0
- package/dist/esm/getSerializers.js +58 -0
- package/dist/esm/getSeriesDetail.js +38 -0
- package/dist/esm/getTargeting-db566006.js +161 -0
- package/dist/esm/getTargeting.js +7 -0
- package/dist/esm/iconBase-ccc56b97.js +81 -0
- package/dist/esm/index-0dbff1d1.js +553 -0
- package/dist/esm/index-5cc7b406.js +1674 -0
- package/dist/esm/index-755f2cc2.js +605 -0
- package/dist/esm/index-79cfd25c.js +1569 -0
- package/dist/esm/index-c60f3bb6.js +11284 -0
- package/dist/esm/index-c7e2ac95.js +52 -0
- package/dist/esm/index.es-a6137319.js +439 -0
- package/dist/esm/index.esm-1bd8a0a8.js +18 -0
- package/dist/esm/index.esm-37268dca.js +89 -0
- package/dist/esm/index.esm-9b042655.js +10 -0
- package/dist/esm/index.esm-eb1e8e80.js +14 -0
- package/dist/esm/index.js +529 -0
- package/dist/esm/inherits-8a801a18.js +179 -0
- package/dist/esm/isSymbol-a7e9aafe.js +203 -0
- package/dist/esm/js.cookie-6874175c.js +158 -0
- package/dist/esm/keys-425c8ab0.js +23 -0
- package/dist/esm/lodash-f97fd99a.js +17193 -0
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/moment-bc12cb97.js +5667 -0
- package/dist/esm/react-social-icons-9be47857.js +609 -0
- package/dist/esm/slicedToArray-ca2c8b8d.js +92 -0
- package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
- package/dist/esm/stringify-c21932b3.js +15 -0
- package/dist/esm/style-inject.es-1f59c1d0.js +28 -0
- package/dist/esm/timeDifferenceCalc.js +37 -0
- package/dist/esm/toConsumableArray-7b1c0e23.js +71 -0
- package/dist/esm/toNumber-5aeba6e7.js +102 -0
- package/dist/esm/typeof-83d9eb10.js +378 -0
- package/dist/esm/urlFor.js +63 -0
- package/dist/esm/urlForFile-413f5ddb.js +22 -0
- package/dist/esm/ustream-api-41166338.js +104 -0
- package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
- package/dist/esm/web.dom.iterable-fdf034f5.js +48 -0
- package/package.json +115 -83
- package/dist/index.es.js +0 -12715
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -12749
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
2
|
+
import { _ as _Object$keys } from './keys-425c8ab0.js';
|
|
3
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
4
|
+
import React__default, { useRef, useEffect } from 'react';
|
|
5
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
7
|
+
import './_object-pie-133f504a.js';
|
|
8
|
+
import './_object-sap-169d6272.js';
|
|
9
|
+
import './_iter-detect-f089461c.js';
|
|
10
|
+
|
|
11
|
+
var sortByName = function sortByName(arr) {
|
|
12
|
+
var items = [].concat(_toConsumableArray(arr));
|
|
13
|
+
items.sort(function (a, b) {
|
|
14
|
+
var nameA = a.name.toUpperCase();
|
|
15
|
+
var nameB = b.name.toUpperCase();
|
|
16
|
+
if (nameA < nameB) {
|
|
17
|
+
return -1;
|
|
18
|
+
}
|
|
19
|
+
if (nameA > nameB) {
|
|
20
|
+
return 1;
|
|
21
|
+
}
|
|
22
|
+
return 0;
|
|
23
|
+
});
|
|
24
|
+
return items;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var AlphabeticList = function AlphabeticList(_ref) {
|
|
28
|
+
var _ref$dataRecord = _ref.dataRecord,
|
|
29
|
+
dataRecord = _ref$dataRecord === undefined ? [] : _ref$dataRecord;
|
|
30
|
+
|
|
31
|
+
var dataList = {};
|
|
32
|
+
if (dataRecord && dataRecord.length > 0) {
|
|
33
|
+
var sortedData = sortByName(dataRecord);
|
|
34
|
+
sortedData.forEach(function (item) {
|
|
35
|
+
var firstLetter = item.name.charAt(0).toUpperCase();
|
|
36
|
+
if (!dataList[firstLetter]) {
|
|
37
|
+
dataList[firstLetter] = [];
|
|
38
|
+
}
|
|
39
|
+
dataList[firstLetter].push(item);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('');
|
|
44
|
+
var itemsRef = useRef([]);
|
|
45
|
+
|
|
46
|
+
var renderAlbhabetList = function renderAlbhabetList() {
|
|
47
|
+
var style = {
|
|
48
|
+
fontWeight: '600',
|
|
49
|
+
fontSize: '30px',
|
|
50
|
+
textDecoration: 'none',
|
|
51
|
+
padding: '0 10px',
|
|
52
|
+
color: 'grey'
|
|
53
|
+
};
|
|
54
|
+
return React__default.createElement(
|
|
55
|
+
'div',
|
|
56
|
+
{ className: 'd-flex flex-wrap mb-3' },
|
|
57
|
+
alphabet.map(function (letter, i) {
|
|
58
|
+
if (dataList[letter]) {
|
|
59
|
+
return React__default.createElement(
|
|
60
|
+
'a',
|
|
61
|
+
{
|
|
62
|
+
key: i,
|
|
63
|
+
onClick: function onClick() {
|
|
64
|
+
var index = _Object$keys(dataList).findIndex(function (i) {
|
|
65
|
+
return i === letter;
|
|
66
|
+
});
|
|
67
|
+
if (itemsRef.current && itemsRef.current[index]) {
|
|
68
|
+
window.scrollTo(0, itemsRef.current[index].offsetTop);
|
|
69
|
+
}
|
|
70
|
+
} },
|
|
71
|
+
React__default.createElement(
|
|
72
|
+
'span',
|
|
73
|
+
{
|
|
74
|
+
style: _extends({}, style, {
|
|
75
|
+
color: 'black'
|
|
76
|
+
}) },
|
|
77
|
+
letter
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
return React__default.createElement(
|
|
82
|
+
'span',
|
|
83
|
+
{ key: i, style: style },
|
|
84
|
+
letter
|
|
85
|
+
);
|
|
86
|
+
})
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
useEffect(function () {
|
|
91
|
+
itemsRef.current = itemsRef.current.slice(0, _Object$keys(dataList).length);
|
|
92
|
+
}, [dataList]);
|
|
93
|
+
|
|
94
|
+
return React__default.createElement(
|
|
95
|
+
React__default.Fragment,
|
|
96
|
+
null,
|
|
97
|
+
renderAlbhabetList(),
|
|
98
|
+
_Object$keys(dataList).map(function (letter, index) {
|
|
99
|
+
return React__default.createElement(
|
|
100
|
+
React__default.Fragment,
|
|
101
|
+
{ key: index },
|
|
102
|
+
React__default.createElement(
|
|
103
|
+
'h3',
|
|
104
|
+
{ ref: function ref(el) {
|
|
105
|
+
return itemsRef.current[index] = el;
|
|
106
|
+
} },
|
|
107
|
+
letter
|
|
108
|
+
),
|
|
109
|
+
React__default.createElement(
|
|
110
|
+
'ul',
|
|
111
|
+
null,
|
|
112
|
+
dataList[letter].map(function (item, i) {
|
|
113
|
+
return React__default.createElement(
|
|
114
|
+
'li',
|
|
115
|
+
{ key: i },
|
|
116
|
+
React__default.createElement(
|
|
117
|
+
'a',
|
|
118
|
+
{ href: item.url },
|
|
119
|
+
item.name
|
|
120
|
+
)
|
|
121
|
+
);
|
|
122
|
+
})
|
|
123
|
+
)
|
|
124
|
+
);
|
|
125
|
+
})
|
|
126
|
+
);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export default AlphabeticList;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import YoutubeGroup from './YoutubeGroup.js';
|
|
4
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
6
|
+
import './_object-pie-133f504a.js';
|
|
7
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
8
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
9
|
+
import './index-c7e2ac95.js';
|
|
10
|
+
import './index-755f2cc2.js';
|
|
11
|
+
import 'react-dom';
|
|
12
|
+
import 'prop-types';
|
|
13
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
14
|
+
import './urlFor.js';
|
|
15
|
+
import './index-0dbff1d1.js';
|
|
16
|
+
import './main-1894c974.js';
|
|
17
|
+
|
|
18
|
+
function ArticleCarousel(props) {
|
|
19
|
+
//Passed in array of articles to pass into YoutubeGroup
|
|
20
|
+
var articles = props.articles;
|
|
21
|
+
|
|
22
|
+
//Setup article.link URL
|
|
23
|
+
|
|
24
|
+
var data = articles.map(function (article, index) {
|
|
25
|
+
article.link = '/view/' + article.url.current;
|
|
26
|
+
return article;
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
return React__default.createElement(
|
|
30
|
+
React__default.Fragment,
|
|
31
|
+
null,
|
|
32
|
+
articles ? React__default.createElement(YoutubeGroup, _extends({ key: 'articleCarousel-0', dataset: data }, props)) : React__default.createElement(
|
|
33
|
+
'p',
|
|
34
|
+
null,
|
|
35
|
+
'No Article Found.'
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default ArticleCarousel;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-9716ae8d.js';
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
3
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
6
|
+
import { g as getSerializers } from './index-c60f3bb6.js';
|
|
7
|
+
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
10
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
11
|
+
import './_library-528f1934.js';
|
|
12
|
+
import './_iter-detect-f089461c.js';
|
|
13
|
+
import './_object-pie-133f504a.js';
|
|
14
|
+
import 'prop-types';
|
|
15
|
+
import './index-0dbff1d1.js';
|
|
16
|
+
import 'react-bootstrap';
|
|
17
|
+
import './urlFor.js';
|
|
18
|
+
import './index-5cc7b406.js';
|
|
19
|
+
import 'next/router';
|
|
20
|
+
import './index-c7e2ac95.js';
|
|
21
|
+
import './Beam.js';
|
|
22
|
+
import './stringify-c21932b3.js';
|
|
23
|
+
import './Segment.js';
|
|
24
|
+
import './main-1894c974.js';
|
|
25
|
+
import './urlForFile-413f5ddb.js';
|
|
26
|
+
import './index-755f2cc2.js';
|
|
27
|
+
import 'react-dom';
|
|
28
|
+
import './typeof-83d9eb10.js';
|
|
29
|
+
import './_is-array-893ab020.js';
|
|
30
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
31
|
+
import 'react-bootstrap/Modal';
|
|
32
|
+
import 'react-bootstrap/Button';
|
|
33
|
+
import 'react-bootstrap/Form';
|
|
34
|
+
import 'react-ga';
|
|
35
|
+
import './GroupDeck.js';
|
|
36
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
37
|
+
import './moment-bc12cb97.js';
|
|
38
|
+
import './SocialShare.js';
|
|
39
|
+
import 'next/head';
|
|
40
|
+
import 'react-share';
|
|
41
|
+
import './_object-to-array-50a6b9a3.js';
|
|
42
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
43
|
+
import 'react-bootstrap/Pagination';
|
|
44
|
+
import './entities-932b50cf.js';
|
|
45
|
+
import './AdSlot.js';
|
|
46
|
+
import './debounce-533d9748.js';
|
|
47
|
+
import './isSymbol-a7e9aafe.js';
|
|
48
|
+
import './toNumber-5aeba6e7.js';
|
|
49
|
+
import 'react-bootstrap/Row';
|
|
50
|
+
import 'react-bootstrap/Col';
|
|
51
|
+
import './inherits-8a801a18.js';
|
|
52
|
+
import './_object-sap-169d6272.js';
|
|
53
|
+
import './define-property-99e66838.js';
|
|
54
|
+
import './index.esm-eb1e8e80.js';
|
|
55
|
+
import './iconBase-ccc56b97.js';
|
|
56
|
+
import 'react-bootstrap/Figure';
|
|
57
|
+
import 'react-bootstrap/OverlayTrigger';
|
|
58
|
+
import 'react-bootstrap/Tooltip';
|
|
59
|
+
import 'react-bootstrap/Popover';
|
|
60
|
+
import 'react-bootstrap/Container';
|
|
61
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
62
|
+
import './YoutubeGroup.js';
|
|
63
|
+
import './index.es-a6137319.js';
|
|
64
|
+
|
|
65
|
+
var _this = undefined;
|
|
66
|
+
|
|
67
|
+
var ArticleProgramLandingPage = function ArticleProgramLandingPage(props) {
|
|
68
|
+
var client = props.client,
|
|
69
|
+
posts = props.posts,
|
|
70
|
+
mapping = props.mapping,
|
|
71
|
+
query = props.query,
|
|
72
|
+
params = props.params,
|
|
73
|
+
currentPage = props.currentPage,
|
|
74
|
+
pageview = props.pageview,
|
|
75
|
+
_props$columns = props.columns,
|
|
76
|
+
columns = _props$columns === undefined ? 'rotate' : _props$columns,
|
|
77
|
+
_props$variant = props.variant,
|
|
78
|
+
variant = _props$variant === undefined ? 'top' : _props$variant,
|
|
79
|
+
_props$page = props.page,
|
|
80
|
+
page = _props$page === undefined ? '' : _props$page,
|
|
81
|
+
_props$defaultImage = props.defaultImage,
|
|
82
|
+
defaultImage = _props$defaultImage === undefined ? '/placeholder.jpg' : _props$defaultImage,
|
|
83
|
+
virtualBlock = props.virtualBlock,
|
|
84
|
+
pageDescription = props.pageDescription,
|
|
85
|
+
_props$autoScroll = props.autoScroll,
|
|
86
|
+
autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll;
|
|
87
|
+
|
|
88
|
+
return React__default.createElement(
|
|
89
|
+
'div',
|
|
90
|
+
null,
|
|
91
|
+
virtualBlock && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: virtualBlock.body, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
92
|
+
pageDescription && React__default.createElement(
|
|
93
|
+
'div',
|
|
94
|
+
{ className: 'mb-3' },
|
|
95
|
+
pageDescription.image && React__default.createElement('img', { className: 'mb-3 w-100', src: pageDescription.image, alt: pageDescription.imageAlt || '' }),
|
|
96
|
+
pageDescription.description && React__default.createElement(
|
|
97
|
+
'p',
|
|
98
|
+
null,
|
|
99
|
+
pageDescription.description
|
|
100
|
+
)
|
|
101
|
+
),
|
|
102
|
+
posts && React__default.createElement(ArticleSeriesListing, {
|
|
103
|
+
client: client,
|
|
104
|
+
mapping: mapping,
|
|
105
|
+
dataRecord: posts,
|
|
106
|
+
query: query,
|
|
107
|
+
params: params,
|
|
108
|
+
currentPage: currentPage,
|
|
109
|
+
pageview: pageview,
|
|
110
|
+
columns: columns,
|
|
111
|
+
variant: variant,
|
|
112
|
+
page: page,
|
|
113
|
+
autoScroll: autoScroll,
|
|
114
|
+
defaultImage: defaultImage
|
|
115
|
+
})
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
ArticleProgramLandingPage.getInitialData = function () {
|
|
120
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(context, client) {
|
|
121
|
+
var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
122
|
+
var taxonomyId = arguments[3];
|
|
123
|
+
|
|
124
|
+
var pathname, urlQuery, url, page, currentPage, start, params, query, postsPromise, virtualBlockPromise, posts, virtualBlock, _ref2, _ref3;
|
|
125
|
+
|
|
126
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
127
|
+
while (1) {
|
|
128
|
+
switch (_context.prev = _context.next) {
|
|
129
|
+
case 0:
|
|
130
|
+
pathname = context.pathname, urlQuery = context.query;
|
|
131
|
+
url = pathname ? pathname : '';
|
|
132
|
+
page = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
133
|
+
currentPage = page ? parseInt(page) : 1;
|
|
134
|
+
start = (currentPage - 1) * itemsPerPage;
|
|
135
|
+
params = {
|
|
136
|
+
from: start,
|
|
137
|
+
to: start + itemsPerPage,
|
|
138
|
+
itemsPerPage: itemsPerPage
|
|
139
|
+
};
|
|
140
|
+
query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && references(\'' + taxonomyId + '\')\n && is_visible == true\n && passwordLock != true \n && defined(published)\n && dateTime(published) <= dateTime(now())] | order(published desc)[$from...$to]{\n title,\n published,\n thumbnail,\n url,\n taxonomy,\n body[_type == "articleSeries"]{\n ...\n },\n \'pageNumber\': ' + currentPage + '\n }';
|
|
141
|
+
postsPromise = client.fetch(query, params);
|
|
142
|
+
virtualBlockPromise = client.fetch('*[_type == \'virtualBlock\' && identifier == \'' + pathname + '\'][0]');
|
|
143
|
+
posts = void 0, virtualBlock = void 0;
|
|
144
|
+
_context.prev = 10;
|
|
145
|
+
_context.next = 14;
|
|
146
|
+
return _Promise.all([postsPromise, virtualBlockPromise]);
|
|
147
|
+
|
|
148
|
+
case 14:
|
|
149
|
+
_ref2 = _context.sent;
|
|
150
|
+
_ref3 = _slicedToArray(_ref2, 2);
|
|
151
|
+
posts = _ref3[0];
|
|
152
|
+
virtualBlock = _ref3[1];
|
|
153
|
+
_context.next = 23;
|
|
154
|
+
break;
|
|
155
|
+
|
|
156
|
+
case 20:
|
|
157
|
+
_context.prev = 20;
|
|
158
|
+
_context.t0 = _context['catch'](10);
|
|
159
|
+
|
|
160
|
+
console.error(_context.t0);
|
|
161
|
+
|
|
162
|
+
case 23:
|
|
163
|
+
return _context.abrupt('return', { posts: posts, virtualBlock: virtualBlock, url: url, query: query });
|
|
164
|
+
|
|
165
|
+
case 24:
|
|
166
|
+
case 'end':
|
|
167
|
+
return _context.stop();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}, _callee, _this, [[10, 20]]);
|
|
171
|
+
}));
|
|
172
|
+
|
|
173
|
+
return function (_x, _x2) {
|
|
174
|
+
return _ref.apply(this, arguments);
|
|
175
|
+
};
|
|
176
|
+
}();
|
|
177
|
+
|
|
178
|
+
export default ArticleProgramLandingPage;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-9716ae8d.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import MasterDeck from './MasterDeck.js';
|
|
4
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
6
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
7
|
+
import './_library-528f1934.js';
|
|
8
|
+
import './_iter-detect-f089461c.js';
|
|
9
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
10
|
+
import './extends-dc6a71fd.js';
|
|
11
|
+
import './_object-pie-133f504a.js';
|
|
12
|
+
import './inherits-8a801a18.js';
|
|
13
|
+
import './_object-sap-169d6272.js';
|
|
14
|
+
import './define-property-99e66838.js';
|
|
15
|
+
import './typeof-83d9eb10.js';
|
|
16
|
+
import './_is-array-893ab020.js';
|
|
17
|
+
import './index-5cc7b406.js';
|
|
18
|
+
import 'prop-types';
|
|
19
|
+
import 'react-bootstrap/Container';
|
|
20
|
+
import 'react-bootstrap/Row';
|
|
21
|
+
import 'react-bootstrap/Col';
|
|
22
|
+
import 'react-bootstrap/Card';
|
|
23
|
+
import './moment-bc12cb97.js';
|
|
24
|
+
import 'next/router';
|
|
25
|
+
import './lodash-f97fd99a.js';
|
|
26
|
+
import './debounce-533d9748.js';
|
|
27
|
+
import './isSymbol-a7e9aafe.js';
|
|
28
|
+
import './toNumber-5aeba6e7.js';
|
|
29
|
+
import './index.es-a6137319.js';
|
|
30
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
31
|
+
import 'react-dom';
|
|
32
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
33
|
+
import './index-0dbff1d1.js';
|
|
34
|
+
import './ADlgInfeed-8c438cee.js';
|
|
35
|
+
import './AdSlot.js';
|
|
36
|
+
import './Beam.js';
|
|
37
|
+
import './stringify-c21932b3.js';
|
|
38
|
+
import './Segment.js';
|
|
39
|
+
import './main-1894c974.js';
|
|
40
|
+
import './ADInfeed-f684cac9.js';
|
|
41
|
+
|
|
42
|
+
var _this = undefined;
|
|
43
|
+
|
|
44
|
+
var ArticleSeriesLandingPage = function ArticleSeriesLandingPage(props) {
|
|
45
|
+
var client = props.client,
|
|
46
|
+
posts = props.posts,
|
|
47
|
+
summary = props.summary,
|
|
48
|
+
seriesTitle = props.seriesTitle,
|
|
49
|
+
seriesName = props.seriesName,
|
|
50
|
+
query = props.query,
|
|
51
|
+
params = props.params,
|
|
52
|
+
_props$currentPage = props.currentPage,
|
|
53
|
+
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
54
|
+
pageview = props.pageview,
|
|
55
|
+
_props$autoScroll = props.autoScroll,
|
|
56
|
+
autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll,
|
|
57
|
+
mapping = props.mapping,
|
|
58
|
+
deck = props.deck,
|
|
59
|
+
_props$variant = props.variant,
|
|
60
|
+
variant = _props$variant === undefined ? 'left' : _props$variant,
|
|
61
|
+
_props$defaultImage = props.defaultImage,
|
|
62
|
+
defaultImage = _props$defaultImage === undefined ? '/placeholder.jpg' : _props$defaultImage;
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
return React__default.createElement(
|
|
66
|
+
'div',
|
|
67
|
+
null,
|
|
68
|
+
summary && React__default.createElement(
|
|
69
|
+
'div',
|
|
70
|
+
{ style: { fontSize: '1rem' }, className: 'article-series-summary px-1 mt-2 mb-4' },
|
|
71
|
+
summary
|
|
72
|
+
),
|
|
73
|
+
seriesTitle && React__default.createElement(
|
|
74
|
+
'h1',
|
|
75
|
+
{ className: 'article-series-title' },
|
|
76
|
+
React__default.createElement(
|
|
77
|
+
'a',
|
|
78
|
+
seriesName && { href: '/view/' + seriesName },
|
|
79
|
+
seriesTitle
|
|
80
|
+
)
|
|
81
|
+
),
|
|
82
|
+
posts && deck && React__default.createElement(MasterDeck, {
|
|
83
|
+
deck: deck,
|
|
84
|
+
variant: variant,
|
|
85
|
+
defaultImage: defaultImage,
|
|
86
|
+
client: client,
|
|
87
|
+
mapping: mapping,
|
|
88
|
+
dataRecord: posts,
|
|
89
|
+
query: query,
|
|
90
|
+
params: params,
|
|
91
|
+
currentPage: currentPage,
|
|
92
|
+
pageview: pageview,
|
|
93
|
+
autoScroll: autoScroll
|
|
94
|
+
})
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
ArticleSeriesLandingPage.getInitialData = function () {
|
|
99
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(context, client) {
|
|
100
|
+
var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
101
|
+
var taxonomyId = arguments[3];
|
|
102
|
+
var urlQuery, seriesName, page, currentPage, start, params, query, posts, seriesTitle, summary, url;
|
|
103
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
104
|
+
while (1) {
|
|
105
|
+
switch (_context.prev = _context.next) {
|
|
106
|
+
case 0:
|
|
107
|
+
urlQuery = context.query;
|
|
108
|
+
seriesName = urlQuery.series;
|
|
109
|
+
page = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
110
|
+
currentPage = page ? parseInt(page) : 1;
|
|
111
|
+
start = (currentPage - 1) * itemsPerPage;
|
|
112
|
+
params = {
|
|
113
|
+
from: start,
|
|
114
|
+
to: start + itemsPerPage,
|
|
115
|
+
itemsPerPage: itemsPerPage
|
|
116
|
+
};
|
|
117
|
+
query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && references(\'' + taxonomyId + '\')\n && url.current == \'' + seriesName + '\'\n && is_visible == true\n && passwordLock != true \n && defined(published)\n && dateTime(published) <= dateTime(now())] | order(published desc)[$from...$to]{\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n body[_type == "articleSeries"]{\n ...\n },\n }';
|
|
118
|
+
_context.next = 9;
|
|
119
|
+
return client.fetch(query, params);
|
|
120
|
+
|
|
121
|
+
case 9:
|
|
122
|
+
posts = _context.sent;
|
|
123
|
+
seriesTitle = '';
|
|
124
|
+
summary = false;
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
if (posts.length > 0 && posts[0].body[0].articles) {
|
|
128
|
+
url = posts[0].url.current + '?seriesArticle=';
|
|
129
|
+
|
|
130
|
+
seriesTitle = posts[0].title;
|
|
131
|
+
summary = posts[0].summary;
|
|
132
|
+
posts = posts[0].body[0].articles;
|
|
133
|
+
//start youtube thumbnail fix
|
|
134
|
+
posts.map(function (post, index) {
|
|
135
|
+
return post['url'] = {
|
|
136
|
+
current: url + post.param.current
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
//end
|
|
140
|
+
}
|
|
141
|
+
return _context.abrupt('return', { posts: posts, query: query, params: params, seriesTitle: seriesTitle, seriesName: seriesName, summary: summary });
|
|
142
|
+
|
|
143
|
+
case 14:
|
|
144
|
+
case 'end':
|
|
145
|
+
return _context.stop();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}, _callee, _this);
|
|
149
|
+
}));
|
|
150
|
+
|
|
151
|
+
return function (_x, _x2) {
|
|
152
|
+
return _ref.apply(this, arguments);
|
|
153
|
+
};
|
|
154
|
+
}();
|
|
155
|
+
|
|
156
|
+
export default ArticleSeriesLandingPage;
|