@mjhls/mjh-framework 1.0.109-8.rlTest → 1.0.110
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 +20609 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +20647 -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,227 +0,0 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
|
|
2
|
-
import { _ as _extends } from './extends-2f4448b8.js';
|
|
3
|
-
import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
|
|
4
|
-
import React__default, { useState } from 'react';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
import MasterDeck from './MasterDeck.js';
|
|
7
|
-
import MediaSeriesCard from './MediaSeriesCard.js';
|
|
8
|
-
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
9
|
-
import { g as getSerializers } from './index-a68bfe70.js';
|
|
10
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import './core.get-iterator-method-95db387d.js';
|
|
12
|
-
import './web.dom.iterable-3fffc027.js';
|
|
13
|
-
import './_library-528f1934.js';
|
|
14
|
-
import './_set-species-7d3317b7.js';
|
|
15
|
-
import './_iter-detect-2f89237f.js';
|
|
16
|
-
import './toConsumableArray-e6f28e5c.js';
|
|
17
|
-
import './inherits-96c84cbd.js';
|
|
18
|
-
import './_object-sap-14bd8e96.js';
|
|
19
|
-
import './define-property-433c51d3.js';
|
|
20
|
-
import './typeof-3ab7d3b6.js';
|
|
21
|
-
import './_is-array-68c79b29.js';
|
|
22
|
-
import './index-5cc7b406.js';
|
|
23
|
-
import 'prop-types';
|
|
24
|
-
import 'react-bootstrap/Container';
|
|
25
|
-
import 'react-bootstrap/Row';
|
|
26
|
-
import 'react-bootstrap/Col';
|
|
27
|
-
import 'react-bootstrap/Card';
|
|
28
|
-
import './moment-48faeb9c.js';
|
|
29
|
-
import 'next/router';
|
|
30
|
-
import './lodash-f97fd99a.js';
|
|
31
|
-
import './debounce-533d9748.js';
|
|
32
|
-
import './isSymbol-a7e9aafe.js';
|
|
33
|
-
import './toNumber-5aeba6e7.js';
|
|
34
|
-
import './index.es-a6137319.js';
|
|
35
|
-
import './visibility-sensor-72fd8f8b.js';
|
|
36
|
-
import 'react-dom';
|
|
37
|
-
import './index-3f5c03b2.js';
|
|
38
|
-
import './ADlgInfeed-30649360.js';
|
|
39
|
-
import './AdSlot.js';
|
|
40
|
-
import './Beam.js';
|
|
41
|
-
import './stringify-1e2a5946.js';
|
|
42
|
-
import './Segment.js';
|
|
43
|
-
import './main-754d4992.js';
|
|
44
|
-
import './ADInfeed-3442c999.js';
|
|
45
|
-
import './index-755f2cc2.js';
|
|
46
|
-
import './urlFor.js';
|
|
47
|
-
import './style-inject.es-1f59c1d0.js';
|
|
48
|
-
import 'react-bootstrap';
|
|
49
|
-
import './index-c7e2ac95.js';
|
|
50
|
-
import './urlForFile-2e523b67.js';
|
|
51
|
-
import './brightcove-react-player-loader.es-a2422c4b.js';
|
|
52
|
-
import './_object-to-array-9dfdfb29.js';
|
|
53
|
-
import './keys-185288f4.js';
|
|
54
|
-
import 'react-bootstrap/Modal';
|
|
55
|
-
import 'react-bootstrap/Button';
|
|
56
|
-
import 'react-bootstrap/Form';
|
|
57
|
-
import 'react-ga';
|
|
58
|
-
import './GroupDeck.js';
|
|
59
|
-
import './smoothscroll-fa4e3f8c.js';
|
|
60
|
-
import './SocialShare.js';
|
|
61
|
-
import 'next/head';
|
|
62
|
-
import 'react-share';
|
|
63
|
-
import 'react-bootstrap/Pagination';
|
|
64
|
-
import './entities-6d9154b4.js';
|
|
65
|
-
import './index.esm-eb1e8e80.js';
|
|
66
|
-
import './iconBase-ccc56b97.js';
|
|
67
|
-
import 'react-bootstrap/Figure';
|
|
68
|
-
import 'react-bootstrap/OverlayTrigger';
|
|
69
|
-
import 'react-bootstrap/Tooltip';
|
|
70
|
-
import 'react-bootstrap/Popover';
|
|
71
|
-
import './checkSisterSite-a7218fda.js';
|
|
72
|
-
|
|
73
|
-
var _this = undefined;
|
|
74
|
-
|
|
75
|
-
var PodcastsLanding = function PodcastsLanding(props) {
|
|
76
|
-
var client = props.client,
|
|
77
|
-
pageview = props.pageview,
|
|
78
|
-
currentPage = props.currentPage;
|
|
79
|
-
props.taxonomyId;
|
|
80
|
-
props.parentUrl;
|
|
81
|
-
var nextPagePostsCount = props.nextPagePostsCount;
|
|
82
|
-
|
|
83
|
-
var _useState = useState(props.seriesData),
|
|
84
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
85
|
-
seriesData = _useState2[0];
|
|
86
|
-
_useState2[1];
|
|
87
|
-
|
|
88
|
-
var _useState3 = useState(props.params),
|
|
89
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
90
|
-
params = _useState4[0];
|
|
91
|
-
_useState4[1];
|
|
92
|
-
|
|
93
|
-
var _useState5 = useState(props.query),
|
|
94
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
95
|
-
query = _useState6[0];
|
|
96
|
-
_useState6[1];
|
|
97
|
-
|
|
98
|
-
if (props.statusCode === 404) {
|
|
99
|
-
return React__default.createElement(
|
|
100
|
-
'div',
|
|
101
|
-
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
102
|
-
React__default.createElement(
|
|
103
|
-
'h3',
|
|
104
|
-
null,
|
|
105
|
-
'404: Resource not found'
|
|
106
|
-
),
|
|
107
|
-
React__default.createElement(
|
|
108
|
-
'p',
|
|
109
|
-
null,
|
|
110
|
-
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
111
|
-
),
|
|
112
|
-
React__default.createElement(
|
|
113
|
-
'p',
|
|
114
|
-
null,
|
|
115
|
-
'Click here to',
|
|
116
|
-
React__default.createElement(
|
|
117
|
-
Link,
|
|
118
|
-
{ href: '/' },
|
|
119
|
-
React__default.createElement(
|
|
120
|
-
'a',
|
|
121
|
-
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
122
|
-
' return to homepage.'
|
|
123
|
-
)
|
|
124
|
-
)
|
|
125
|
-
)
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return React__default.createElement(
|
|
130
|
-
'div',
|
|
131
|
-
{ className: 'mb-5' },
|
|
132
|
-
props.taxonomy && props.taxonomy.summary && React__default.createElement(BlockContent, { style: { marginTop: '1rem !important' }, blocks: props.taxonomy.summary, serializers: getSerializers(client) }),
|
|
133
|
-
React__default.createElement('hr', { style: { marginTop: '2rem', marginBottom: '2rem' } }),
|
|
134
|
-
seriesData && React__default.createElement(MasterDeck, {
|
|
135
|
-
deck: MediaSeriesCard,
|
|
136
|
-
variant: 'left',
|
|
137
|
-
defaultImage: '/placeholder.jpg',
|
|
138
|
-
client: client,
|
|
139
|
-
dataRecord: seriesData,
|
|
140
|
-
query: query && query,
|
|
141
|
-
params: params && params,
|
|
142
|
-
currentPage: currentPage,
|
|
143
|
-
pageview: pageview,
|
|
144
|
-
autoScroll: true,
|
|
145
|
-
seoPaginate: true,
|
|
146
|
-
nextPagePostsCount: nextPagePostsCount
|
|
147
|
-
})
|
|
148
|
-
);
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
PodcastsLanding.getInitialData = function () {
|
|
152
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(ctx, client, cache) {
|
|
153
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, taxonomyId, seriesQuery, seriesData, nextPagePostsCount;
|
|
154
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
155
|
-
while (1) {
|
|
156
|
-
switch (_context.prev = _context.next) {
|
|
157
|
-
case 0:
|
|
158
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
159
|
-
identifier = pathname.replace('/', '');
|
|
160
|
-
itemsPerPage = 10;
|
|
161
|
-
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
162
|
-
start = (currentPage - 1) * itemsPerPage;
|
|
163
|
-
statusCode = 200;
|
|
164
|
-
params = {
|
|
165
|
-
count: itemsPerPage,
|
|
166
|
-
from: start,
|
|
167
|
-
to: start + itemsPerPage,
|
|
168
|
-
url: pathname,
|
|
169
|
-
itemsPerPage: itemsPerPage
|
|
170
|
-
};
|
|
171
|
-
_context.next = 9;
|
|
172
|
-
return client.fetch('*[_type == \'taxonomy\' && identifier == \'' + identifier + '\'][0]{\n _id, \n name,\n summary,\n pixelTrackingCode->\n }');
|
|
173
|
-
|
|
174
|
-
case 9:
|
|
175
|
-
taxonomyId = _context.sent;
|
|
176
|
-
|
|
177
|
-
// const taxonomyId = await client.fetch(`*[_type == 'taxonomy' && _id == '6d748e0d-7946-4a14-968e-ca8182f06c1e']`)
|
|
178
|
-
// console.log('taxonomyId', taxonomyId)
|
|
179
|
-
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 }';
|
|
180
|
-
_context.next = 13;
|
|
181
|
-
return client.fetch(seriesQuery, params);
|
|
182
|
-
|
|
183
|
-
case 13:
|
|
184
|
-
seriesData = _context.sent;
|
|
185
|
-
|
|
186
|
-
seriesData.forEach(function (seriesObj) {
|
|
187
|
-
seriesObj.description = seriesObj.summary;
|
|
188
|
-
seriesObj.identifier = { _type: 'slug', current: seriesObj.identifier };
|
|
189
|
-
});
|
|
190
|
-
_context.next = 17;
|
|
191
|
-
return client.fetch('count(' + seriesQuery + ')', _extends({}, params, { from: params.to, to: params.to + itemsPerPage }));
|
|
192
|
-
|
|
193
|
-
case 17:
|
|
194
|
-
nextPagePostsCount = _context.sent;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
if (currentPage > 1 && seriesData.length === 0) {
|
|
198
|
-
statusCode = 404;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return _context.abrupt('return', {
|
|
202
|
-
seriesData: seriesData,
|
|
203
|
-
query: seriesQuery,
|
|
204
|
-
params: params,
|
|
205
|
-
currentPage: currentPage,
|
|
206
|
-
identifier: identifier,
|
|
207
|
-
taxonomyId: taxonomyId,
|
|
208
|
-
parentUrl: identifier,
|
|
209
|
-
statusCode: statusCode,
|
|
210
|
-
taxonomy: taxonomyId,
|
|
211
|
-
nextPagePostsCount: nextPagePostsCount
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
case 20:
|
|
215
|
-
case 'end':
|
|
216
|
-
return _context.stop();
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}, _callee, _this);
|
|
220
|
-
}));
|
|
221
|
-
|
|
222
|
-
return function (_x, _x2, _x3) {
|
|
223
|
-
return _ref.apply(this, arguments);
|
|
224
|
-
};
|
|
225
|
-
}();
|
|
226
|
-
|
|
227
|
-
export { PodcastsLanding as default };
|
package/dist/esm/PopUpModal.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-72ed566b.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-3fffc027.js';
|
|
6
|
-
import './core.get-iterator-method-95db387d.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 };
|
package/dist/esm/PtceDeck.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
|
|
2
|
-
import { _ as _toConsumableArray } from './toConsumableArray-e6f28e5c.js';
|
|
3
|
-
import { _ as _JSON$stringify } from './stringify-1e2a5946.js';
|
|
4
|
-
import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
|
|
5
|
-
import { m as moment } from './moment-48faeb9c.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-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
|
-
|
|
15
|
-
function PtceDeck(props) {
|
|
16
|
-
var _this = this;
|
|
17
|
-
|
|
18
|
-
var initialData = props.initialData;
|
|
19
|
-
|
|
20
|
-
var _useState = useState(),
|
|
21
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
22
|
-
cmeData = _useState2[0],
|
|
23
|
-
setCmeData = _useState2[1];
|
|
24
|
-
|
|
25
|
-
var _useState3 = useState(),
|
|
26
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
27
|
-
hasMore = _useState4[0],
|
|
28
|
-
setHasMore = _useState4[1];
|
|
29
|
-
|
|
30
|
-
var _useState5 = useState(),
|
|
31
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
32
|
-
paginatedPoint = _useState6[0],
|
|
33
|
-
setPaginatedPoint = _useState6[1];
|
|
34
|
-
|
|
35
|
-
useEffect(function () {
|
|
36
|
-
//set inital data
|
|
37
|
-
if (initialData && initialData.pageInfo) {
|
|
38
|
-
setHasMore(initialData.pageInfo.hasMore);
|
|
39
|
-
setPaginatedPoint(initialData.pageInfo.cursor);
|
|
40
|
-
setCmeData(initialData.contentItems);
|
|
41
|
-
}
|
|
42
|
-
//set hasMore and breakpoint
|
|
43
|
-
}, []);
|
|
44
|
-
|
|
45
|
-
var loadMore = function () {
|
|
46
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
47
|
-
var response, data;
|
|
48
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
49
|
-
while (1) {
|
|
50
|
-
switch (_context.prev = _context.next) {
|
|
51
|
-
case 0:
|
|
52
|
-
_context.next = 2;
|
|
53
|
-
return fetch('/api/get_activities-CE', {
|
|
54
|
-
headers: {
|
|
55
|
-
'Content-Type': 'application/json',
|
|
56
|
-
Accept: 'application/json'
|
|
57
|
-
},
|
|
58
|
-
method: 'post',
|
|
59
|
-
credentials: 'same-origin',
|
|
60
|
-
body: _JSON$stringify({ params: { paginatedPoint: paginatedPoint } })
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
case 2:
|
|
64
|
-
response = _context.sent;
|
|
65
|
-
_context.next = 5;
|
|
66
|
-
return response.json();
|
|
67
|
-
|
|
68
|
-
case 5:
|
|
69
|
-
data = _context.sent;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (data.pageInfo) {
|
|
73
|
-
setHasMore(data.pageInfo.hasMore);
|
|
74
|
-
setPaginatedPoint(data.pageInfo.cursor);
|
|
75
|
-
setCmeData(function (prevState) {
|
|
76
|
-
return [].concat(_toConsumableArray(prevState), _toConsumableArray(data.contentItems));
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
case 7:
|
|
81
|
-
case 'end':
|
|
82
|
-
return _context.stop();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}, _callee, _this);
|
|
86
|
-
}));
|
|
87
|
-
|
|
88
|
-
return function loadMore() {
|
|
89
|
-
return _ref.apply(this, arguments);
|
|
90
|
-
};
|
|
91
|
-
}();
|
|
92
|
-
|
|
93
|
-
return React__default.createElement(
|
|
94
|
-
'div',
|
|
95
|
-
null,
|
|
96
|
-
cmeData && cmeData.map(function (activity) {
|
|
97
|
-
var href = activity.url ? activity.url : 'https://www.pharmacytimes.org/courses/' + activity.slug;
|
|
98
|
-
return React__default.createElement(
|
|
99
|
-
Col,
|
|
100
|
-
{ xl: 12, style: { marginBottom: '1rem' } },
|
|
101
|
-
React__default.createElement(
|
|
102
|
-
Row,
|
|
103
|
-
null,
|
|
104
|
-
React__default.createElement(
|
|
105
|
-
Col,
|
|
106
|
-
{ xs: 3, sm: 4, md: 4, lg: 4, xl: 4, style: { padding: '0' } },
|
|
107
|
-
React__default.createElement(
|
|
108
|
-
'a',
|
|
109
|
-
{ href: href, rel: 'noopener', target: '_blank' },
|
|
110
|
-
React__default.createElement('img', { style: { width: '100%', borderRadius: '0 0 0 10%', marginBottom: '20px', borderTop: '1px solid #EEE' }, src: activity.asset })
|
|
111
|
-
)
|
|
112
|
-
),
|
|
113
|
-
React__default.createElement(
|
|
114
|
-
Col,
|
|
115
|
-
{ xs: 9, sm: 8, md: 8, lg: 8, xl: 8, style: { paddingTop: '10px', marginBottom: '20px', borderTop: '1px solid #EEE' } },
|
|
116
|
-
React__default.createElement(
|
|
117
|
-
'a',
|
|
118
|
-
{ href: href, rel: 'noopener', target: '_blank' },
|
|
119
|
-
React__default.createElement('h4', { className: 'mb-1', style: { fontWeight: '500', fontSize: '22px' }, dangerouslySetInnerHTML: { __html: activity.title } }),
|
|
120
|
-
React__default.createElement(
|
|
121
|
-
'p',
|
|
122
|
-
{ className: 'mb-2' },
|
|
123
|
-
'Expiration Date: ',
|
|
124
|
-
moment(activity.courseEndDate).format('MMM Do YYYY')
|
|
125
|
-
),
|
|
126
|
-
React__default.createElement('p', { dangerouslySetInnerHTML: { __html: activity.description } })
|
|
127
|
-
)
|
|
128
|
-
)
|
|
129
|
-
)
|
|
130
|
-
);
|
|
131
|
-
}),
|
|
132
|
-
hasMore && React__default.createElement(
|
|
133
|
-
'div',
|
|
134
|
-
{ className: 'text-center my-5' },
|
|
135
|
-
React__default.createElement(
|
|
136
|
-
'button',
|
|
137
|
-
{ onClick: loadMore, className: 'btn btn-lg btn-primary' },
|
|
138
|
-
'Load More'
|
|
139
|
-
)
|
|
140
|
-
)
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export { PtceDeck as default };
|
package/dist/esm/PubSection.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, r as regenerator } 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 QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
6
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import './core.get-iterator-method-95db387d.js';
|
|
8
|
-
import './web.dom.iterable-3fffc027.js';
|
|
9
|
-
import './_library-528f1934.js';
|
|
10
|
-
import './_set-species-7d3317b7.js';
|
|
11
|
-
import './_iter-detect-2f89237f.js';
|
|
12
|
-
import './toConsumableArray-e6f28e5c.js';
|
|
13
|
-
import 'react-bootstrap';
|
|
14
|
-
import './urlFor.js';
|
|
15
|
-
import './index-3f5c03b2.js';
|
|
16
|
-
import './index.es-a6137319.js';
|
|
17
|
-
import './moment-48faeb9c.js';
|
|
18
|
-
import './visibility-sensor-72fd8f8b.js';
|
|
19
|
-
import 'react-dom';
|
|
20
|
-
import './index-5cc7b406.js';
|
|
21
|
-
import 'prop-types';
|
|
22
|
-
import 'next/router';
|
|
23
|
-
import './index-755f2cc2.js';
|
|
24
|
-
import './main-754d4992.js';
|
|
25
|
-
import './entities-6d9154b4.js';
|
|
26
|
-
import './ADInfeed-3442c999.js';
|
|
27
|
-
import 'react-bootstrap/Card';
|
|
28
|
-
import './AdSlot.js';
|
|
29
|
-
import './debounce-533d9748.js';
|
|
30
|
-
import './isSymbol-a7e9aafe.js';
|
|
31
|
-
import './toNumber-5aeba6e7.js';
|
|
32
|
-
import './Beam.js';
|
|
33
|
-
import './stringify-1e2a5946.js';
|
|
34
|
-
import './Segment.js';
|
|
35
|
-
import './AuthorComponent-d9653ae5.js';
|
|
36
|
-
import './lodash-f97fd99a.js';
|
|
37
|
-
import './ADlgInfeed-30649360.js';
|
|
38
|
-
import './getContentCategory-15dcc413.js';
|
|
39
|
-
import './timeDifferenceCalc.js';
|
|
40
|
-
|
|
41
|
-
var _this = undefined;
|
|
42
|
-
|
|
43
|
-
var PubSection = function PubSection(props) {
|
|
44
|
-
var pubSection = props.pubSection,
|
|
45
|
-
tocUrl = props.tocUrl;
|
|
46
|
-
|
|
47
|
-
return React__default.createElement(
|
|
48
|
-
'div',
|
|
49
|
-
{ id: 'pubSection' },
|
|
50
|
-
pubSection.publication && pubSection.publication.name && React__default.createElement(
|
|
51
|
-
'h2',
|
|
52
|
-
null,
|
|
53
|
-
pubSection.publication.name
|
|
54
|
-
),
|
|
55
|
-
React__default.createElement(
|
|
56
|
-
'p',
|
|
57
|
-
null,
|
|
58
|
-
React__default.createElement(
|
|
59
|
-
'a',
|
|
60
|
-
{ id: 'back', href: tocUrl ? tocUrl : 'toc' },
|
|
61
|
-
'Back to Table of Contents'
|
|
62
|
-
)
|
|
63
|
-
),
|
|
64
|
-
React__default.createElement(QueueDeckExpanded, _extends({ dataRecord: pubSection.articles }, props))
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
PubSection.getInitialProps = function () {
|
|
69
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(ctx, client) {
|
|
70
|
-
var _ctx$query, publication, issue, section, res, params, query, _ref2, _ref3, pubSection;
|
|
71
|
-
|
|
72
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
73
|
-
while (1) {
|
|
74
|
-
switch (_context.prev = _context.next) {
|
|
75
|
-
case 0:
|
|
76
|
-
_ctx$query = ctx.query, publication = _ctx$query.publication, issue = _ctx$query.issue, section = _ctx$query.section, res = ctx.res;
|
|
77
|
-
params = {
|
|
78
|
-
publication: publication,
|
|
79
|
-
section: section
|
|
80
|
-
};
|
|
81
|
-
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 }';
|
|
82
|
-
_context.next = 5;
|
|
83
|
-
return client.fetch(query, params);
|
|
84
|
-
|
|
85
|
-
case 5:
|
|
86
|
-
_ref2 = _context.sent;
|
|
87
|
-
_ref3 = _slicedToArray(_ref2, 1);
|
|
88
|
-
pubSection = _ref3[0];
|
|
89
|
-
|
|
90
|
-
if (pubSection) {
|
|
91
|
-
_context.next = 11;
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
res.statusCode = 404;
|
|
96
|
-
return _context.abrupt('return', { show404: true });
|
|
97
|
-
|
|
98
|
-
case 11:
|
|
99
|
-
return _context.abrupt('return', { publication: publication, issue: issue, section: section, pubSection: pubSection });
|
|
100
|
-
|
|
101
|
-
case 12:
|
|
102
|
-
case 'end':
|
|
103
|
-
return _context.stop();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}, _callee, _this);
|
|
107
|
-
}));
|
|
108
|
-
|
|
109
|
-
return function (_x, _x2) {
|
|
110
|
-
return _ref.apply(this, arguments);
|
|
111
|
-
};
|
|
112
|
-
}();
|
|
113
|
-
|
|
114
|
-
export { PubSection as default };
|
package/dist/esm/PubToc.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
|
|
2
|
-
import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
|
|
3
|
-
import React__default from 'react';
|
|
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
|
-
|
|
11
|
-
var _this = undefined;
|
|
12
|
-
|
|
13
|
-
var PubToc = function PubToc(props) {
|
|
14
|
-
var toc = props.toc;
|
|
15
|
-
|
|
16
|
-
return React__default.createElement(
|
|
17
|
-
'div',
|
|
18
|
-
{ id: 'pubToc' },
|
|
19
|
-
React__default.createElement(
|
|
20
|
-
'ul',
|
|
21
|
-
null,
|
|
22
|
-
toc && toc.parentSection && Array.isArray(toc.parentSection.sections) && toc.parentSection.sections.map(function (s) {
|
|
23
|
-
return React__default.createElement(
|
|
24
|
-
'li',
|
|
25
|
-
{ key: s.identifier },
|
|
26
|
-
React__default.createElement(
|
|
27
|
-
'a',
|
|
28
|
-
{ href: s.identifier },
|
|
29
|
-
s.name
|
|
30
|
-
)
|
|
31
|
-
);
|
|
32
|
-
})
|
|
33
|
-
)
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
PubToc.getInitialProps = function () {
|
|
38
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(ctx, client) {
|
|
39
|
-
var _ctx$query, publication, issue, res, params, query, _ref2, _ref3, toc;
|
|
40
|
-
|
|
41
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
42
|
-
while (1) {
|
|
43
|
-
switch (_context.prev = _context.next) {
|
|
44
|
-
case 0:
|
|
45
|
-
_ctx$query = ctx.query, publication = _ctx$query.publication, issue = _ctx$query.issue, res = ctx.res;
|
|
46
|
-
params = {
|
|
47
|
-
publication: publication
|
|
48
|
-
};
|
|
49
|
-
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 }';
|
|
50
|
-
_context.next = 5;
|
|
51
|
-
return client.fetch(query, params);
|
|
52
|
-
|
|
53
|
-
case 5:
|
|
54
|
-
_ref2 = _context.sent;
|
|
55
|
-
_ref3 = _slicedToArray(_ref2, 1);
|
|
56
|
-
toc = _ref3[0];
|
|
57
|
-
|
|
58
|
-
if (!(!toc || !toc.parentSection)) {
|
|
59
|
-
_context.next = 11;
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
res.statusCode = 404;
|
|
64
|
-
return _context.abrupt('return', { show404: true });
|
|
65
|
-
|
|
66
|
-
case 11:
|
|
67
|
-
return _context.abrupt('return', { publication: publication, issue: issue, toc: toc });
|
|
68
|
-
|
|
69
|
-
case 12:
|
|
70
|
-
case 'end':
|
|
71
|
-
return _context.stop();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, _callee, _this);
|
|
75
|
-
}));
|
|
76
|
-
|
|
77
|
-
return function (_x, _x2) {
|
|
78
|
-
return _ref.apply(this, arguments);
|
|
79
|
-
};
|
|
80
|
-
}();
|
|
81
|
-
|
|
82
|
-
export { PubToc as default };
|