@mjhls/mjh-framework 1.0.109-8.rlTest → 1.0.109
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 +5 -1
- package/dist/index.es.js +20606 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +20644 -0
- package/dist/index.js.map +1 -0
- package/package.json +26 -55
- package/dist/cjs/AD.js +0 -32
- package/dist/cjs/AD300x250.js +0 -95
- package/dist/cjs/AD300x250x600.js +0 -112
- package/dist/cjs/AD728x90.js +0 -109
- package/dist/cjs/ADFloatingFooter.js +0 -151
- package/dist/cjs/ADFooter.js +0 -53
- package/dist/cjs/ADGutter.js +0 -123
- package/dist/cjs/ADInfeed-7c075eda.js +0 -75
- package/dist/cjs/ADSkyscraper.js +0 -125
- package/dist/cjs/ADSponsoredResources.js +0 -122
- package/dist/cjs/ADWebcast.js +0 -127
- package/dist/cjs/ADWelcome.js +0 -166
- package/dist/cjs/ADlgInfeed-d4f556bd.js +0 -69
- package/dist/cjs/AccordionPanel.js +0 -94
- package/dist/cjs/AdSlot.js +0 -283
- package/dist/cjs/AdSlotsProvider.js +0 -184
- package/dist/cjs/AlgoliaSearch.js +0 -15221
- package/dist/cjs/AlphabeticList.js +0 -134
- package/dist/cjs/ArticleCarousel.js +0 -45
- package/dist/cjs/ArticleProgramLandingPage.js +0 -186
- package/dist/cjs/ArticleSeriesLandingPage.js +0 -162
- package/dist/cjs/ArticleSeriesListing.js +0 -314
- package/dist/cjs/AuthWrapper.js +0 -1526
- package/dist/cjs/AuthorComponent-7d00f6d5.js +0 -96
- package/dist/cjs/Beam.js +0 -405
- package/dist/cjs/BlockContent-96b44364.js +0 -916
- package/dist/cjs/Breadcrumbs.js +0 -107
- package/dist/cjs/CEDeckSupabase.js +0 -444
- package/dist/cjs/CMEDeck.js +0 -444
- package/dist/cjs/Column1.js +0 -36
- package/dist/cjs/Column2.js +0 -73
- package/dist/cjs/Column3.js +0 -140
- package/dist/cjs/ConferenceArticleCard.js +0 -94
- package/dist/cjs/ConferenceBanner-213003ce.js +0 -24
- package/dist/cjs/ContentCardPaginated.js +0 -416
- package/dist/cjs/DeckContent.js +0 -507
- package/dist/cjs/DeckQueue.js +0 -402
- package/dist/cjs/DeckQueuePaginated.js +0 -347
- package/dist/cjs/Dfp-67646058.js +0 -103
- package/dist/cjs/EventsDeck.js +0 -856
- package/dist/cjs/ExternalResources.js +0 -220
- package/dist/cjs/Feature.js +0 -132
- package/dist/cjs/ForbesHero.js +0 -138
- package/dist/cjs/GridContent.js +0 -828
- package/dist/cjs/GridContentPaginated.js +0 -703
- package/dist/cjs/GridHero.js +0 -148
- package/dist/cjs/GroupDeck.js +0 -314
- package/dist/cjs/HamMagazine.js +0 -664
- package/dist/cjs/Header.js +0 -65
- package/dist/cjs/HealthCareProfessionalModal.js +0 -78
- package/dist/cjs/Hero.js +0 -49
- package/dist/cjs/HighlightenVideo.js +0 -69
- package/dist/cjs/HorizontalArticleListing.js +0 -167
- package/dist/cjs/HorizontalHero.js +0 -112
- package/dist/cjs/ImageSlider-7c995858.js +0 -2808
- package/dist/cjs/IssueContentDeck.js +0 -242
- package/dist/cjs/IssueDeck.js +0 -267
- package/dist/cjs/IssueLanding.js +0 -176
- package/dist/cjs/KMTracker.js +0 -27
- package/dist/cjs/LeftNav.js +0 -153
- package/dist/cjs/MasterDeck.js +0 -555
- package/dist/cjs/MasterDeckPaginated.js +0 -468
- package/dist/cjs/MediaSeriesCard.js +0 -134
- package/dist/cjs/MediaSeriesLanding.js +0 -507
- package/dist/cjs/MediaSeriesLandingPaginated.js +0 -532
- package/dist/cjs/NavDvm.js +0 -278
- package/dist/cjs/NavFooter-b7b16d48.js +0 -72
- package/dist/cjs/NavMagazine.js +0 -615
- package/dist/cjs/NavNative.js +0 -880
- package/dist/cjs/OncliveHero.js +0 -80
- package/dist/cjs/OncliveLargeHero.js +0 -242
- package/dist/cjs/PageFilter.js +0 -72
- package/dist/cjs/Pagination-6359861a.js +0 -97
- package/dist/cjs/PartnerDetailListing.js +0 -374
- package/dist/cjs/PartnerDetailListingPaginated.js +0 -365
- package/dist/cjs/PdfDownload.js +0 -28
- package/dist/cjs/PixelTracking.js +0 -191
- package/dist/cjs/PodcastsLanding.js +0 -234
- package/dist/cjs/PopUpModal.js +0 -58
- package/dist/cjs/PtceDeck.js +0 -150
- package/dist/cjs/PubSection.js +0 -120
- package/dist/cjs/PubToc.js +0 -88
- package/dist/cjs/PublicationDeck.js +0 -184
- package/dist/cjs/PublicationFeature-4b68e0db.js +0 -130
- package/dist/cjs/PublicationLanding.js +0 -826
- package/dist/cjs/QueueDeckExpanded.js +0 -1540
- package/dist/cjs/QueueDeckExpandedPaginated.js +0 -1387
- package/dist/cjs/RecentNews.js +0 -91
- package/dist/cjs/RelatedContent.js +0 -115
- package/dist/cjs/RelatedTopicsDropdown.js +0 -90
- package/dist/cjs/RolesDeck.js +0 -94
- package/dist/cjs/Schema.js +0 -102
- package/dist/cjs/Search.js +0 -66
- package/dist/cjs/Segment.js +0 -458
- package/dist/cjs/SeriesListingDeck.js +0 -247
- package/dist/cjs/SeriesSlider-086a8319.js +0 -332
- package/dist/cjs/SetCookie.js +0 -10
- package/dist/cjs/SideFooter.js +0 -152
- package/dist/cjs/SocialIcons.js +0 -103
- package/dist/cjs/SocialSearchComponent-d7e5d3a6.js +0 -213
- package/dist/cjs/SocialShare.js +0 -74
- package/dist/cjs/TaxonomyCard.js +0 -256
- package/dist/cjs/TaxonomyDescription.js +0 -208
- package/dist/cjs/TemplateNormal.js +0 -204
- package/dist/cjs/ThumbnailCard.js +0 -60
- package/dist/cjs/Tooltip-b8516cbf.js +0 -9541
- package/dist/cjs/Ustream.js +0 -157
- package/dist/cjs/VerticalHero.js +0 -75
- package/dist/cjs/VideoProgramLandingPage.js +0 -262
- package/dist/cjs/VideoSeriesCard.js +0 -88
- package/dist/cjs/VideoSeriesFilter.js +0 -129
- package/dist/cjs/VideoSeriesLandingPage.js +0 -178
- package/dist/cjs/VideoSeriesListing.js +0 -421
- package/dist/cjs/View.js +0 -2835
- package/dist/cjs/YahooHero.js +0 -127
- package/dist/cjs/YoutubeGroup.js +0 -372
- package/dist/cjs/_commonjsHelpers-06173234.js +0 -25
- package/dist/cjs/_is-array-54228b29.js +0 -74
- package/dist/cjs/_iter-detect-b1df62f0.js +0 -52
- package/dist/cjs/_library-dd23b178.js +0 -5
- package/dist/cjs/_object-sap-d1978572.js +0 -16
- package/dist/cjs/_object-to-array-9337ba83.js +0 -25
- package/dist/cjs/_set-species-0c7864a2.js +0 -55
- package/dist/cjs/asyncToGenerator-65df6bf8.js +0 -1347
- package/dist/cjs/brightcove-react-player-loader.es-35faab67.js +0 -2232
- package/dist/cjs/checkSisterSite-c3a4ac98.js +0 -19
- package/dist/cjs/core.get-iterator-method-5643aa10.js +0 -584
- package/dist/cjs/debounce-d4a2369b.js +0 -216
- package/dist/cjs/define-property-e8404b64.js +0 -20
- package/dist/cjs/defineProperty-19580e93.js +0 -71
- package/dist/cjs/defineProperty-9673846a.js +0 -34
- package/dist/cjs/entities-df1aed86.js +0 -510
- package/dist/cjs/eq-5fc26c07.js +0 -79
- package/dist/cjs/extends-be0d85bc.js +0 -100
- package/dist/cjs/faundadb.js +0 -765
- package/dist/cjs/get-5839e5b5.js +0 -920
- package/dist/cjs/getContentCategory-f38a4c00.js +0 -11
- package/dist/cjs/getKeywords.js +0 -46
- package/dist/cjs/getPtceActivities.js +0 -90
- package/dist/cjs/getQuery.js +0 -27
- package/dist/cjs/getRelatedArticle.js +0 -766
- package/dist/cjs/getRootDocGroup.js +0 -63
- package/dist/cjs/getSerializers.js +0 -66
- package/dist/cjs/getSeriesDetail.js +0 -40
- package/dist/cjs/getTIData.js +0 -93
- package/dist/cjs/getTargeting-7ce7037b.js +0 -166
- package/dist/cjs/getTargeting.js +0 -12
- package/dist/cjs/iconBase-be4097c0.js +0 -104
- package/dist/cjs/index-187c967e.js +0 -54
- package/dist/cjs/index-3177f564.js +0 -1573
- package/dist/cjs/index-65621b6c.js +0 -613
- package/dist/cjs/index-7435b964.js +0 -1683
- package/dist/cjs/index-a26637a3.js +0 -11764
- package/dist/cjs/index-d48b231c.js +0 -556
- package/dist/cjs/index-ff83a88b.js +0 -104
- package/dist/cjs/index.es-1ab8dda7.js +0 -445
- package/dist/cjs/index.esm-2ea9e9ff.js +0 -98
- package/dist/cjs/index.esm-c1e16606.js +0 -13
- package/dist/cjs/index.esm-d51c9ac6.js +0 -25
- package/dist/cjs/index.esm-d81454e7.js +0 -19
- package/dist/cjs/index.js +0 -638
- package/dist/cjs/inherits-e47b5342.js +0 -188
- package/dist/cjs/isSymbol-03abbdf0.js +0 -209
- package/dist/cjs/js.cookie-a511c430.js +0 -160
- package/dist/cjs/keys-e982b3fa.js +0 -25
- package/dist/cjs/lodash-f0783643.js +0 -17195
- package/dist/cjs/main-ae8472f3.js +0 -969
- package/dist/cjs/moment-f730814d.js +0 -5684
- package/dist/cjs/react-social-icons-2c5c389a.js +0 -616
- package/dist/cjs/slicedToArray-067dd3bc.js +0 -95
- package/dist/cjs/smoothscroll-99df7f93.js +0 -438
- package/dist/cjs/stringify-f7a37a8d.js +0 -17
- package/dist/cjs/style-inject.es-dcee06b6.js +0 -30
- package/dist/cjs/timeDifferenceCalc.js +0 -39
- package/dist/cjs/toConsumableArray-d7797c2b.js +0 -74
- package/dist/cjs/toNumber-5e1fac58.js +0 -104
- package/dist/cjs/typeof-220bbf73.js +0 -382
- package/dist/cjs/urlFor.js +0 -66
- package/dist/cjs/urlForFile-5084fc48.js +0 -29
- package/dist/cjs/ustream-api-3819e4aa.js +0 -106
- package/dist/cjs/visibility-sensor-56020df6.js +0 -597
- package/dist/cjs/web.dom.iterable-d98303e0.js +0 -50
- package/dist/esm/AD.js +0 -26
- package/dist/esm/AD300x250.js +0 -89
- package/dist/esm/AD300x250x600.js +0 -106
- package/dist/esm/AD728x90.js +0 -103
- package/dist/esm/ADFloatingFooter.js +0 -145
- package/dist/esm/ADFooter.js +0 -47
- package/dist/esm/ADGutter.js +0 -117
- package/dist/esm/ADInfeed-3442c999.js +0 -68
- package/dist/esm/ADSkyscraper.js +0 -119
- package/dist/esm/ADSponsoredResources.js +0 -116
- package/dist/esm/ADWebcast.js +0 -121
- package/dist/esm/ADWelcome.js +0 -160
- package/dist/esm/ADlgInfeed-30649360.js +0 -63
- package/dist/esm/AccordionPanel.js +0 -87
- package/dist/esm/AdSlot.js +0 -276
- package/dist/esm/AdSlotsProvider.js +0 -177
- package/dist/esm/AlgoliaSearch.js +0 -15214
- package/dist/esm/AlphabeticList.js +0 -128
- package/dist/esm/ArticleCarousel.js +0 -39
- package/dist/esm/ArticleProgramLandingPage.js +0 -180
- package/dist/esm/ArticleSeriesLandingPage.js +0 -156
- package/dist/esm/ArticleSeriesListing.js +0 -307
- package/dist/esm/AuthWrapper.js +0 -1520
- package/dist/esm/AuthorComponent-d9653ae5.js +0 -90
- package/dist/esm/Beam.js +0 -403
- package/dist/esm/BlockContent-1e73bd2c.js +0 -909
- package/dist/esm/Breadcrumbs.js +0 -100
- package/dist/esm/CEDeckSupabase.js +0 -438
- package/dist/esm/CMEDeck.js +0 -438
- package/dist/esm/Column1.js +0 -28
- package/dist/esm/Column2.js +0 -65
- package/dist/esm/Column3.js +0 -132
- package/dist/esm/ConferenceArticleCard.js +0 -88
- package/dist/esm/ConferenceBanner-8792ebd2.js +0 -18
- package/dist/esm/ContentCardPaginated.js +0 -405
- package/dist/esm/DeckContent.js +0 -497
- package/dist/esm/DeckQueue.js +0 -392
- package/dist/esm/DeckQueuePaginated.js +0 -336
- package/dist/esm/Dfp-3b6eb620.js +0 -96
- package/dist/esm/EventsDeck.js +0 -843
- package/dist/esm/ExternalResources.js +0 -213
- package/dist/esm/Feature.js +0 -125
- package/dist/esm/ForbesHero.js +0 -132
- package/dist/esm/GridContent.js +0 -818
- package/dist/esm/GridContentPaginated.js +0 -692
- package/dist/esm/GridHero.js +0 -142
- package/dist/esm/GroupDeck.js +0 -308
- package/dist/esm/HamMagazine.js +0 -651
- package/dist/esm/Header.js +0 -54
- package/dist/esm/HealthCareProfessionalModal.js +0 -70
- package/dist/esm/Hero.js +0 -43
- package/dist/esm/HighlightenVideo.js +0 -63
- package/dist/esm/HorizontalArticleListing.js +0 -161
- package/dist/esm/HorizontalHero.js +0 -106
- package/dist/esm/ImageSlider-75f7b81a.js +0 -2799
- package/dist/esm/IssueContentDeck.js +0 -232
- package/dist/esm/IssueDeck.js +0 -257
- package/dist/esm/IssueLanding.js +0 -170
- package/dist/esm/KMTracker.js +0 -25
- package/dist/esm/LeftNav.js +0 -143
- package/dist/esm/MasterDeck.js +0 -548
- package/dist/esm/MasterDeckPaginated.js +0 -460
- package/dist/esm/MediaSeriesCard.js +0 -128
- package/dist/esm/MediaSeriesLanding.js +0 -500
- package/dist/esm/MediaSeriesLandingPaginated.js +0 -525
- package/dist/esm/NavDvm.js +0 -265
- package/dist/esm/NavFooter-4bcffccb.js +0 -66
- package/dist/esm/NavMagazine.js +0 -602
- package/dist/esm/NavNative.js +0 -864
- package/dist/esm/OncliveHero.js +0 -74
- package/dist/esm/OncliveLargeHero.js +0 -236
- package/dist/esm/PageFilter.js +0 -66
- package/dist/esm/Pagination-9fe9f61d.js +0 -90
- package/dist/esm/PartnerDetailListing.js +0 -368
- package/dist/esm/PartnerDetailListingPaginated.js +0 -359
- package/dist/esm/PdfDownload.js +0 -22
- package/dist/esm/PixelTracking.js +0 -182
- package/dist/esm/PodcastsLanding.js +0 -227
- package/dist/esm/PopUpModal.js +0 -51
- package/dist/esm/PtceDeck.js +0 -144
- package/dist/esm/PubSection.js +0 -114
- package/dist/esm/PubToc.js +0 -82
- package/dist/esm/PublicationDeck.js +0 -174
- package/dist/esm/PublicationFeature-6c334891.js +0 -121
- package/dist/esm/PublicationLanding.js +0 -816
- package/dist/esm/QueueDeckExpanded.js +0 -1534
- package/dist/esm/QueueDeckExpandedPaginated.js +0 -1381
- package/dist/esm/RecentNews.js +0 -85
- package/dist/esm/RelatedContent.js +0 -109
- package/dist/esm/RelatedTopicsDropdown.js +0 -82
- package/dist/esm/RolesDeck.js +0 -84
- package/dist/esm/Schema.js +0 -96
- package/dist/esm/Search.js +0 -57
- package/dist/esm/Segment.js +0 -456
- package/dist/esm/SeriesListingDeck.js +0 -241
- package/dist/esm/SeriesSlider-acbdf4c9.js +0 -326
- package/dist/esm/SetCookie.js +0 -8
- package/dist/esm/SideFooter.js +0 -146
- package/dist/esm/SocialIcons.js +0 -97
- package/dist/esm/SocialSearchComponent-9e65c8d6.js +0 -204
- package/dist/esm/SocialShare.js +0 -67
- package/dist/esm/TaxonomyCard.js +0 -246
- package/dist/esm/TaxonomyDescription.js +0 -201
- package/dist/esm/TemplateNormal.js +0 -197
- package/dist/esm/ThumbnailCard.js +0 -53
- package/dist/esm/Tooltip-fe0ed92d.js +0 -9532
- package/dist/esm/Ustream.js +0 -151
- package/dist/esm/VerticalHero.js +0 -69
- package/dist/esm/VideoProgramLandingPage.js +0 -253
- package/dist/esm/VideoSeriesCard.js +0 -82
- package/dist/esm/VideoSeriesFilter.js +0 -123
- package/dist/esm/VideoSeriesLandingPage.js +0 -172
- package/dist/esm/VideoSeriesListing.js +0 -414
- package/dist/esm/View.js +0 -2825
- package/dist/esm/YahooHero.js +0 -121
- package/dist/esm/YoutubeGroup.js +0 -366
- package/dist/esm/_commonjsHelpers-0c4b6f40.js +0 -19
- package/dist/esm/_is-array-68c79b29.js +0 -71
- package/dist/esm/_iter-detect-2f89237f.js +0 -48
- package/dist/esm/_library-528f1934.js +0 -3
- package/dist/esm/_object-sap-14bd8e96.js +0 -14
- package/dist/esm/_object-to-array-9dfdfb29.js +0 -23
- package/dist/esm/_set-species-7d3317b7.js +0 -50
- package/dist/esm/asyncToGenerator-1ebeb135.js +0 -1343
- package/dist/esm/brightcove-react-player-loader.es-a2422c4b.js +0 -2226
- package/dist/esm/checkSisterSite-a7218fda.js +0 -17
- package/dist/esm/core.get-iterator-method-95db387d.js +0 -547
- package/dist/esm/debounce-533d9748.js +0 -214
- package/dist/esm/define-property-433c51d3.js +0 -18
- package/dist/esm/defineProperty-e5afb9eb.js +0 -32
- package/dist/esm/defineProperty-e8022d1e.js +0 -66
- package/dist/esm/entities-6d9154b4.js +0 -507
- package/dist/esm/eq-bdcbf886.js +0 -76
- package/dist/esm/extends-2f4448b8.js +0 -94
- package/dist/esm/faundadb.js +0 -754
- package/dist/esm/get-3c308da4.js +0 -918
- package/dist/esm/getContentCategory-15dcc413.js +0 -9
- package/dist/esm/getKeywords.js +0 -44
- package/dist/esm/getPtceActivities.js +0 -88
- package/dist/esm/getQuery.js +0 -25
- package/dist/esm/getRelatedArticle.js +0 -764
- package/dist/esm/getRootDocGroup.js +0 -61
- package/dist/esm/getSerializers.js +0 -60
- package/dist/esm/getSeriesDetail.js +0 -38
- package/dist/esm/getTIData.js +0 -91
- package/dist/esm/getTargeting-301942ae.js +0 -163
- package/dist/esm/getTargeting.js +0 -6
- package/dist/esm/iconBase-ccc56b97.js +0 -81
- package/dist/esm/index-3f5c03b2.js +0 -553
- package/dist/esm/index-4550ef23.js +0 -1571
- package/dist/esm/index-5cc7b406.js +0 -1674
- package/dist/esm/index-755f2cc2.js +0 -605
- package/dist/esm/index-a68bfe70.js +0 -11743
- package/dist/esm/index-c7e2ac95.js +0 -52
- package/dist/esm/index-c8d5e72b.js +0 -99
- package/dist/esm/index.es-a6137319.js +0 -439
- package/dist/esm/index.esm-1bd8a0a8.js +0 -18
- package/dist/esm/index.esm-9508070a.js +0 -91
- package/dist/esm/index.esm-9b042655.js +0 -10
- package/dist/esm/index.esm-eb1e8e80.js +0 -14
- package/dist/esm/index.js +0 -531
- package/dist/esm/inherits-96c84cbd.js +0 -179
- package/dist/esm/isSymbol-a7e9aafe.js +0 -203
- package/dist/esm/js.cookie-6874175c.js +0 -158
- package/dist/esm/keys-185288f4.js +0 -23
- package/dist/esm/lodash-f97fd99a.js +0 -17193
- package/dist/esm/main-754d4992.js +0 -956
- package/dist/esm/moment-48faeb9c.js +0 -5682
- package/dist/esm/react-social-icons-9be47857.js +0 -609
- package/dist/esm/slicedToArray-72ed566b.js +0 -92
- package/dist/esm/smoothscroll-fa4e3f8c.js +0 -436
- package/dist/esm/stringify-1e2a5946.js +0 -15
- package/dist/esm/style-inject.es-1f59c1d0.js +0 -28
- package/dist/esm/timeDifferenceCalc.js +0 -37
- package/dist/esm/toConsumableArray-e6f28e5c.js +0 -71
- package/dist/esm/toNumber-5aeba6e7.js +0 -102
- package/dist/esm/typeof-3ab7d3b6.js +0 -378
- package/dist/esm/urlFor.js +0 -64
- package/dist/esm/urlForFile-2e523b67.js +0 -27
- package/dist/esm/ustream-api-63a164b3.js +0 -104
- package/dist/esm/visibility-sensor-72fd8f8b.js +0 -590
- package/dist/esm/web.dom.iterable-3fffc027.js +0 -48
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from './extends-2f4448b8.js';
|
|
2
|
-
import { _ as _Object$keys } from './keys-185288f4.js';
|
|
3
|
-
import { _ as _toConsumableArray } from './toConsumableArray-e6f28e5c.js';
|
|
4
|
-
import React__default, { useRef, useEffect } from 'react';
|
|
5
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import './core.get-iterator-method-95db387d.js';
|
|
7
|
-
import './_object-sap-14bd8e96.js';
|
|
8
|
-
import './_iter-detect-2f89237f.js';
|
|
9
|
-
|
|
10
|
-
var sortByName = function sortByName(arr) {
|
|
11
|
-
var items = [].concat(_toConsumableArray(arr));
|
|
12
|
-
items.sort(function (a, b) {
|
|
13
|
-
var nameA = a.name.toUpperCase();
|
|
14
|
-
var nameB = b.name.toUpperCase();
|
|
15
|
-
if (nameA < nameB) {
|
|
16
|
-
return -1;
|
|
17
|
-
}
|
|
18
|
-
if (nameA > nameB) {
|
|
19
|
-
return 1;
|
|
20
|
-
}
|
|
21
|
-
return 0;
|
|
22
|
-
});
|
|
23
|
-
return items;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var AlphabeticList = function AlphabeticList(_ref) {
|
|
27
|
-
var _ref$dataRecord = _ref.dataRecord,
|
|
28
|
-
dataRecord = _ref$dataRecord === undefined ? [] : _ref$dataRecord;
|
|
29
|
-
|
|
30
|
-
var dataList = {};
|
|
31
|
-
if (dataRecord && dataRecord.length > 0) {
|
|
32
|
-
var sortedData = sortByName(dataRecord);
|
|
33
|
-
sortedData.forEach(function (item) {
|
|
34
|
-
var firstLetter = item.name.charAt(0).toUpperCase();
|
|
35
|
-
if (!dataList[firstLetter]) {
|
|
36
|
-
dataList[firstLetter] = [];
|
|
37
|
-
}
|
|
38
|
-
dataList[firstLetter].push(item);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('');
|
|
43
|
-
var itemsRef = useRef([]);
|
|
44
|
-
|
|
45
|
-
var renderAlbhabetList = function renderAlbhabetList() {
|
|
46
|
-
var style = {
|
|
47
|
-
fontWeight: '600',
|
|
48
|
-
fontSize: '30px',
|
|
49
|
-
textDecoration: 'none',
|
|
50
|
-
padding: '0 10px',
|
|
51
|
-
color: 'grey'
|
|
52
|
-
};
|
|
53
|
-
return React__default.createElement(
|
|
54
|
-
'div',
|
|
55
|
-
{ className: 'd-flex flex-wrap mb-3' },
|
|
56
|
-
alphabet.map(function (letter, i) {
|
|
57
|
-
if (dataList[letter]) {
|
|
58
|
-
return React__default.createElement(
|
|
59
|
-
'a',
|
|
60
|
-
{
|
|
61
|
-
key: i,
|
|
62
|
-
onClick: function onClick() {
|
|
63
|
-
var index = _Object$keys(dataList).findIndex(function (i) {
|
|
64
|
-
return i === letter;
|
|
65
|
-
});
|
|
66
|
-
if (itemsRef.current && itemsRef.current[index]) {
|
|
67
|
-
window.scrollTo(0, itemsRef.current[index].offsetTop);
|
|
68
|
-
}
|
|
69
|
-
} },
|
|
70
|
-
React__default.createElement(
|
|
71
|
-
'span',
|
|
72
|
-
{
|
|
73
|
-
style: _extends({}, style, {
|
|
74
|
-
color: 'black'
|
|
75
|
-
}) },
|
|
76
|
-
letter
|
|
77
|
-
)
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
return React__default.createElement(
|
|
81
|
-
'span',
|
|
82
|
-
{ key: i, style: style },
|
|
83
|
-
letter
|
|
84
|
-
);
|
|
85
|
-
})
|
|
86
|
-
);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
useEffect(function () {
|
|
90
|
-
itemsRef.current = itemsRef.current.slice(0, _Object$keys(dataList).length);
|
|
91
|
-
}, [dataList]);
|
|
92
|
-
|
|
93
|
-
return React__default.createElement(
|
|
94
|
-
React__default.Fragment,
|
|
95
|
-
null,
|
|
96
|
-
renderAlbhabetList(),
|
|
97
|
-
_Object$keys(dataList).map(function (letter, index) {
|
|
98
|
-
return React__default.createElement(
|
|
99
|
-
React__default.Fragment,
|
|
100
|
-
{ key: index },
|
|
101
|
-
React__default.createElement(
|
|
102
|
-
'h3',
|
|
103
|
-
{ ref: function ref(el) {
|
|
104
|
-
return itemsRef.current[index] = el;
|
|
105
|
-
} },
|
|
106
|
-
letter
|
|
107
|
-
),
|
|
108
|
-
React__default.createElement(
|
|
109
|
-
'ul',
|
|
110
|
-
null,
|
|
111
|
-
dataList[letter].map(function (item, i) {
|
|
112
|
-
return React__default.createElement(
|
|
113
|
-
'li',
|
|
114
|
-
{ key: i },
|
|
115
|
-
React__default.createElement(
|
|
116
|
-
'a',
|
|
117
|
-
{ href: item.url },
|
|
118
|
-
item.name
|
|
119
|
-
)
|
|
120
|
-
);
|
|
121
|
-
})
|
|
122
|
-
)
|
|
123
|
-
);
|
|
124
|
-
})
|
|
125
|
-
);
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export { AlphabeticList as default };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from './extends-2f4448b8.js';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import YoutubeGroup from './YoutubeGroup.js';
|
|
4
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
-
import './core.get-iterator-method-95db387d.js';
|
|
6
|
-
import './slicedToArray-72ed566b.js';
|
|
7
|
-
import './web.dom.iterable-3fffc027.js';
|
|
8
|
-
import './index-c7e2ac95.js';
|
|
9
|
-
import './index-755f2cc2.js';
|
|
10
|
-
import 'react-dom';
|
|
11
|
-
import 'prop-types';
|
|
12
|
-
import './smoothscroll-fa4e3f8c.js';
|
|
13
|
-
import './urlFor.js';
|
|
14
|
-
import './index-3f5c03b2.js';
|
|
15
|
-
import './main-754d4992.js';
|
|
16
|
-
|
|
17
|
-
function ArticleCarousel(props) {
|
|
18
|
-
//Passed in array of articles to pass into YoutubeGroup
|
|
19
|
-
var articles = props.articles;
|
|
20
|
-
|
|
21
|
-
//Setup article.link URL
|
|
22
|
-
|
|
23
|
-
var data = articles.map(function (article, index) {
|
|
24
|
-
article.link = '/view/' + article.url.current;
|
|
25
|
-
return article;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
return React__default.createElement(
|
|
29
|
-
React__default.Fragment,
|
|
30
|
-
null,
|
|
31
|
-
articles ? React__default.createElement(YoutubeGroup, _extends({ key: 'articleCarousel-0', dataset: data }, props)) : React__default.createElement(
|
|
32
|
-
'p',
|
|
33
|
-
null,
|
|
34
|
-
'No Article Found.'
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { ArticleCarousel as default };
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-1ebeb135.js';
|
|
2
|
-
import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
|
|
3
|
-
import { _ as _extends } from './extends-2f4448b8.js';
|
|
4
|
-
import React__default from 'react';
|
|
5
|
-
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-a68bfe70.js';
|
|
7
|
-
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
|
-
import './core.get-iterator-method-95db387d.js';
|
|
10
|
-
import './web.dom.iterable-3fffc027.js';
|
|
11
|
-
import './_library-528f1934.js';
|
|
12
|
-
import './_set-species-7d3317b7.js';
|
|
13
|
-
import './_iter-detect-2f89237f.js';
|
|
14
|
-
import 'prop-types';
|
|
15
|
-
import './index-3f5c03b2.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-1e2a5946.js';
|
|
23
|
-
import './Segment.js';
|
|
24
|
-
import './main-754d4992.js';
|
|
25
|
-
import './urlForFile-2e523b67.js';
|
|
26
|
-
import './index-755f2cc2.js';
|
|
27
|
-
import 'react-dom';
|
|
28
|
-
import './typeof-3ab7d3b6.js';
|
|
29
|
-
import './_is-array-68c79b29.js';
|
|
30
|
-
import './brightcove-react-player-loader.es-a2422c4b.js';
|
|
31
|
-
import './_object-to-array-9dfdfb29.js';
|
|
32
|
-
import './keys-185288f4.js';
|
|
33
|
-
import './_object-sap-14bd8e96.js';
|
|
34
|
-
import 'react-bootstrap/Modal';
|
|
35
|
-
import 'react-bootstrap/Button';
|
|
36
|
-
import 'react-bootstrap/Form';
|
|
37
|
-
import 'react-ga';
|
|
38
|
-
import './GroupDeck.js';
|
|
39
|
-
import './smoothscroll-fa4e3f8c.js';
|
|
40
|
-
import './moment-48faeb9c.js';
|
|
41
|
-
import './SocialShare.js';
|
|
42
|
-
import 'next/head';
|
|
43
|
-
import 'react-share';
|
|
44
|
-
import './toConsumableArray-e6f28e5c.js';
|
|
45
|
-
import 'react-bootstrap/Pagination';
|
|
46
|
-
import './entities-6d9154b4.js';
|
|
47
|
-
import './AdSlot.js';
|
|
48
|
-
import './debounce-533d9748.js';
|
|
49
|
-
import './isSymbol-a7e9aafe.js';
|
|
50
|
-
import './toNumber-5aeba6e7.js';
|
|
51
|
-
import 'react-bootstrap/Row';
|
|
52
|
-
import 'react-bootstrap/Col';
|
|
53
|
-
import './inherits-96c84cbd.js';
|
|
54
|
-
import './define-property-433c51d3.js';
|
|
55
|
-
import './index.esm-eb1e8e80.js';
|
|
56
|
-
import './iconBase-ccc56b97.js';
|
|
57
|
-
import 'react-bootstrap/Figure';
|
|
58
|
-
import 'react-bootstrap/OverlayTrigger';
|
|
59
|
-
import 'react-bootstrap/Tooltip';
|
|
60
|
-
import 'react-bootstrap/Popover';
|
|
61
|
-
import './checkSisterSite-a7218fda.js';
|
|
62
|
-
import 'react-bootstrap/Container';
|
|
63
|
-
import './visibility-sensor-72fd8f8b.js';
|
|
64
|
-
import './YoutubeGroup.js';
|
|
65
|
-
import './index.es-a6137319.js';
|
|
66
|
-
|
|
67
|
-
var _this = undefined;
|
|
68
|
-
|
|
69
|
-
var ArticleProgramLandingPage = function ArticleProgramLandingPage(props) {
|
|
70
|
-
var client = props.client,
|
|
71
|
-
posts = props.posts,
|
|
72
|
-
mapping = props.mapping,
|
|
73
|
-
query = props.query,
|
|
74
|
-
params = props.params,
|
|
75
|
-
currentPage = props.currentPage,
|
|
76
|
-
pageview = props.pageview,
|
|
77
|
-
_props$columns = props.columns,
|
|
78
|
-
columns = _props$columns === undefined ? 'rotate' : _props$columns,
|
|
79
|
-
_props$variant = props.variant,
|
|
80
|
-
variant = _props$variant === undefined ? 'top' : _props$variant,
|
|
81
|
-
_props$page = props.page,
|
|
82
|
-
page = _props$page === undefined ? '' : _props$page,
|
|
83
|
-
_props$defaultImage = props.defaultImage,
|
|
84
|
-
defaultImage = _props$defaultImage === undefined ? '/placeholder.jpg' : _props$defaultImage,
|
|
85
|
-
virtualBlock = props.virtualBlock,
|
|
86
|
-
pageDescription = props.pageDescription,
|
|
87
|
-
_props$autoScroll = props.autoScroll,
|
|
88
|
-
autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll;
|
|
89
|
-
|
|
90
|
-
return React__default.createElement(
|
|
91
|
-
'div',
|
|
92
|
-
null,
|
|
93
|
-
virtualBlock && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: virtualBlock.body, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
94
|
-
pageDescription && React__default.createElement(
|
|
95
|
-
'div',
|
|
96
|
-
{ className: 'mb-3' },
|
|
97
|
-
pageDescription.image && React__default.createElement('img', { className: 'mb-3 w-100', src: pageDescription.image, alt: pageDescription.imageAlt || '' }),
|
|
98
|
-
pageDescription.description && React__default.createElement(
|
|
99
|
-
'p',
|
|
100
|
-
null,
|
|
101
|
-
pageDescription.description
|
|
102
|
-
)
|
|
103
|
-
),
|
|
104
|
-
posts && React__default.createElement(ArticleSeriesListing, {
|
|
105
|
-
client: client,
|
|
106
|
-
mapping: mapping,
|
|
107
|
-
dataRecord: posts,
|
|
108
|
-
query: query,
|
|
109
|
-
params: params,
|
|
110
|
-
currentPage: currentPage,
|
|
111
|
-
pageview: pageview,
|
|
112
|
-
columns: columns,
|
|
113
|
-
variant: variant,
|
|
114
|
-
page: page,
|
|
115
|
-
autoScroll: autoScroll,
|
|
116
|
-
defaultImage: defaultImage
|
|
117
|
-
})
|
|
118
|
-
);
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
ArticleProgramLandingPage.getInitialData = function () {
|
|
122
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(context, client) {
|
|
123
|
-
var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
124
|
-
var taxonomyId = arguments[3];
|
|
125
|
-
|
|
126
|
-
var pathname, urlQuery, url, page, currentPage, start, params, query, postsPromise, virtualBlockPromise, posts, virtualBlock, _ref2, _ref3;
|
|
127
|
-
|
|
128
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
129
|
-
while (1) {
|
|
130
|
-
switch (_context.prev = _context.next) {
|
|
131
|
-
case 0:
|
|
132
|
-
pathname = context.pathname, urlQuery = context.query;
|
|
133
|
-
url = pathname ? pathname : '';
|
|
134
|
-
page = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
135
|
-
currentPage = page ? parseInt(page) : 1;
|
|
136
|
-
start = (currentPage - 1) * itemsPerPage;
|
|
137
|
-
params = {
|
|
138
|
-
from: start,
|
|
139
|
-
to: start + itemsPerPage,
|
|
140
|
-
itemsPerPage: itemsPerPage
|
|
141
|
-
};
|
|
142
|
-
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 }';
|
|
143
|
-
postsPromise = client.fetch(query, params);
|
|
144
|
-
virtualBlockPromise = client.fetch('*[_type == \'virtualBlock\' && identifier == \'' + pathname + '\'][0]');
|
|
145
|
-
posts = void 0, virtualBlock = void 0;
|
|
146
|
-
_context.prev = 10;
|
|
147
|
-
_context.next = 14;
|
|
148
|
-
return _Promise.all([postsPromise, virtualBlockPromise]);
|
|
149
|
-
|
|
150
|
-
case 14:
|
|
151
|
-
_ref2 = _context.sent;
|
|
152
|
-
_ref3 = _slicedToArray(_ref2, 2);
|
|
153
|
-
posts = _ref3[0];
|
|
154
|
-
virtualBlock = _ref3[1];
|
|
155
|
-
_context.next = 23;
|
|
156
|
-
break;
|
|
157
|
-
|
|
158
|
-
case 20:
|
|
159
|
-
_context.prev = 20;
|
|
160
|
-
_context.t0 = _context['catch'](10);
|
|
161
|
-
|
|
162
|
-
console.error(_context.t0);
|
|
163
|
-
|
|
164
|
-
case 23:
|
|
165
|
-
return _context.abrupt('return', { posts: posts, virtualBlock: virtualBlock, url: url, query: query });
|
|
166
|
-
|
|
167
|
-
case 24:
|
|
168
|
-
case 'end':
|
|
169
|
-
return _context.stop();
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}, _callee, _this, [[10, 20]]);
|
|
173
|
-
}));
|
|
174
|
-
|
|
175
|
-
return function (_x, _x2) {
|
|
176
|
-
return _ref.apply(this, arguments);
|
|
177
|
-
};
|
|
178
|
-
}();
|
|
179
|
-
|
|
180
|
-
export { ArticleProgramLandingPage as default };
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import MasterDeck from './MasterDeck.js';
|
|
4
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
-
import './core.get-iterator-method-95db387d.js';
|
|
6
|
-
import './web.dom.iterable-3fffc027.js';
|
|
7
|
-
import './_library-528f1934.js';
|
|
8
|
-
import './_set-species-7d3317b7.js';
|
|
9
|
-
import './_iter-detect-2f89237f.js';
|
|
10
|
-
import './toConsumableArray-e6f28e5c.js';
|
|
11
|
-
import './extends-2f4448b8.js';
|
|
12
|
-
import './inherits-96c84cbd.js';
|
|
13
|
-
import './_object-sap-14bd8e96.js';
|
|
14
|
-
import './define-property-433c51d3.js';
|
|
15
|
-
import './typeof-3ab7d3b6.js';
|
|
16
|
-
import './_is-array-68c79b29.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-48faeb9c.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-72ed566b.js';
|
|
33
|
-
import './index-3f5c03b2.js';
|
|
34
|
-
import './ADlgInfeed-30649360.js';
|
|
35
|
-
import './AdSlot.js';
|
|
36
|
-
import './Beam.js';
|
|
37
|
-
import './stringify-1e2a5946.js';
|
|
38
|
-
import './Segment.js';
|
|
39
|
-
import './main-754d4992.js';
|
|
40
|
-
import './ADInfeed-3442c999.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 { ArticleSeriesLandingPage as default };
|