@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,88 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { m as moment } from './moment-48faeb9c.js';
|
|
3
|
-
import urlFor from './urlFor.js';
|
|
4
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
-
import './slicedToArray-72ed566b.js';
|
|
6
|
-
import './web.dom.iterable-3fffc027.js';
|
|
7
|
-
import './core.get-iterator-method-95db387d.js';
|
|
8
|
-
import './extends-2f4448b8.js';
|
|
9
|
-
import './index-3f5c03b2.js';
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
Example usage - targetedonc.com/latest-conference
|
|
13
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
14
|
-
...,
|
|
15
|
-
title,
|
|
16
|
-
summary,
|
|
17
|
-
thumbnail,
|
|
18
|
-
url,
|
|
19
|
-
published,
|
|
20
|
-
documentGroup->,
|
|
21
|
-
contentCategory->,
|
|
22
|
-
'pageNumber': ${currentPage}
|
|
23
|
-
}`
|
|
24
|
-
|
|
25
|
-
const posts = await client.fetch(query, params)
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
29
|
-
var data = props.data;
|
|
30
|
-
props.variant;
|
|
31
|
-
props.index;
|
|
32
|
-
var client = props.client;
|
|
33
|
-
|
|
34
|
-
// title, thumbnail, summary, published, documentGroup.identifier.current, documentGroup.identifier.name
|
|
35
|
-
|
|
36
|
-
return React__default.createElement(
|
|
37
|
-
'div',
|
|
38
|
-
{ className: 'conference-media' },
|
|
39
|
-
React__default.createElement(
|
|
40
|
-
'a',
|
|
41
|
-
{ className: 'img-wrapper', href: '/view/' + (data.url ? data.url.current : '') },
|
|
42
|
-
React__default.createElement('img', {
|
|
43
|
-
className: 'mr-3 img-fluid',
|
|
44
|
-
src: data.thumbnail && urlFor({ client: client, source: data.thumbnail.asset, imageWidth: 350 }),
|
|
45
|
-
alt: data.title
|
|
46
|
-
})
|
|
47
|
-
),
|
|
48
|
-
React__default.createElement(
|
|
49
|
-
'div',
|
|
50
|
-
{ className: 'media-body' },
|
|
51
|
-
React__default.createElement(
|
|
52
|
-
'a',
|
|
53
|
-
{ href: '/view/' + (data.url ? data.url.current : '') },
|
|
54
|
-
React__default.createElement(
|
|
55
|
-
'h4',
|
|
56
|
-
{ className: 'conf-media__card-title' },
|
|
57
|
-
data.title
|
|
58
|
-
)
|
|
59
|
-
),
|
|
60
|
-
React__default.createElement(
|
|
61
|
-
'p',
|
|
62
|
-
{ className: 'conf-media__card-text' },
|
|
63
|
-
moment(data.published).format('MMMM Do YYYY, h:mma')
|
|
64
|
-
),
|
|
65
|
-
React__default.createElement(
|
|
66
|
-
'p',
|
|
67
|
-
{ className: 'mb-1 conference-group' },
|
|
68
|
-
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ? React__default.createElement(
|
|
69
|
-
'a',
|
|
70
|
-
{ href: '/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
71
|
-
data.documentGroup.name
|
|
72
|
-
) : React__default.createElement(
|
|
73
|
-
'a',
|
|
74
|
-
{ href: '/conference/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
75
|
-
data.documentGroup.name
|
|
76
|
-
))
|
|
77
|
-
),
|
|
78
|
-
React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: data.summary } })
|
|
79
|
-
),
|
|
80
|
-
React__default.createElement(
|
|
81
|
-
'style',
|
|
82
|
-
{ jsx: 'true' },
|
|
83
|
-
'\n .conference-media {\n display: flex;\n flex-direction: row;\n margin-bottom: 1.25rem;\n padding-bottom: 1.25rem;\n border-bottom: 1px solid #ddd;\n }\n .conf-media__card-title {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.5rem;\n font-size: 1.5rem;\n }\n .conf-media__card-text {\n color: var(--dark);\n margin-bottom: 0.25rem;\n }\n .conference-media a img {\n width: 175px;\n min-width: 175px;\n height: auto;\n object-fit: contain;\n }\n .conference-media .conference-group {\n background: #003767;\n color: white;\n border-radius: 5px;\n display: inline-block;\n padding: 0 0.25rem;\n }\n .conference-media .conference-group a {\n color: white;\n font-size: 0.8rem;\n }\n @media screen and (max-width: 1064px) {\n .conf-media__card-title {\n font-size: 1.1rem;\n }\n }\n @media screen and (max-width: 768px) {\n .conference-media {\n flex-direction: column;\n }\n .conference-media a img {\n width: 100%;\n height: auto;\n max-height: 175px;\n object-fit: contain;\n margin-bottom: 1rem;\n }\n }\n '
|
|
84
|
-
)
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export { ConferenceArticleCard as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
var ConferenceBanner = function ConferenceBanner(props) {
|
|
4
|
-
var website = props.website;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return React__default.createElement(
|
|
8
|
-
"div",
|
|
9
|
-
{ className: "conf-img" },
|
|
10
|
-
React__default.createElement(
|
|
11
|
-
"a",
|
|
12
|
-
{ href: website.conferenceBannerContent.href },
|
|
13
|
-
React__default.createElement("img", { src: website.conferenceBannerContent.src, alt: website.conferenceBannerContent.alt })
|
|
14
|
-
)
|
|
15
|
-
);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { ConferenceBanner as C };
|
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-e6f28e5c.js';
|
|
2
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
|
|
3
|
-
import { _ as _extends } from './extends-2f4448b8.js';
|
|
4
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-96c84cbd.js';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
|
-
import Container from 'react-bootstrap/Container';
|
|
8
|
-
import Row from 'react-bootstrap/Row';
|
|
9
|
-
import Col from 'react-bootstrap/Col';
|
|
10
|
-
import Card from 'react-bootstrap/Card';
|
|
11
|
-
import { m as moment } from './moment-48faeb9c.js';
|
|
12
|
-
import { withRouter } from 'next/router';
|
|
13
|
-
import urlFor from './urlFor.js';
|
|
14
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
15
|
-
import { m as main_43 } from './main-754d4992.js';
|
|
16
|
-
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
17
|
-
import { A as ADInfeed } from './ADInfeed-3442c999.js';
|
|
18
|
-
import { P as Pagination } from './Pagination-9fe9f61d.js';
|
|
19
|
-
import Spinner from 'react-bootstrap/Spinner';
|
|
20
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
|
-
import './core.get-iterator-method-95db387d.js';
|
|
22
|
-
import './_iter-detect-2f89237f.js';
|
|
23
|
-
import './web.dom.iterable-3fffc027.js';
|
|
24
|
-
import './_library-528f1934.js';
|
|
25
|
-
import './_set-species-7d3317b7.js';
|
|
26
|
-
import './_object-sap-14bd8e96.js';
|
|
27
|
-
import './define-property-433c51d3.js';
|
|
28
|
-
import './typeof-3ab7d3b6.js';
|
|
29
|
-
import './_is-array-68c79b29.js';
|
|
30
|
-
import 'prop-types';
|
|
31
|
-
import './slicedToArray-72ed566b.js';
|
|
32
|
-
import './index-3f5c03b2.js';
|
|
33
|
-
import 'react-dom';
|
|
34
|
-
import './AdSlot.js';
|
|
35
|
-
import './debounce-533d9748.js';
|
|
36
|
-
import './isSymbol-a7e9aafe.js';
|
|
37
|
-
import './toNumber-5aeba6e7.js';
|
|
38
|
-
import './Beam.js';
|
|
39
|
-
import './stringify-1e2a5946.js';
|
|
40
|
-
import './Segment.js';
|
|
41
|
-
import 'react-bootstrap/Button';
|
|
42
|
-
import './index.esm-1bd8a0a8.js';
|
|
43
|
-
import './iconBase-ccc56b97.js';
|
|
44
|
-
|
|
45
|
-
var DeckContent = function (_React$Component) {
|
|
46
|
-
_inherits(DeckContent, _React$Component);
|
|
47
|
-
|
|
48
|
-
function DeckContent() {
|
|
49
|
-
var _ref,
|
|
50
|
-
_this2 = this;
|
|
51
|
-
|
|
52
|
-
var _temp, _this, _ret;
|
|
53
|
-
|
|
54
|
-
_classCallCheck(this, DeckContent);
|
|
55
|
-
|
|
56
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
57
|
-
args[_key] = arguments[_key];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.client = _this.props.client, _this.seoPaginate = _this.props.seoPaginate, _this.state = {
|
|
61
|
-
data: _this.data,
|
|
62
|
-
dataKeptToCompareNewDatarecord: _this.data,
|
|
63
|
-
itemsPerPage: _this.params ? _this.params.itemsPerPage : _this.params.from && _this.params.to ? _this.params.to - _this.params.from : 30,
|
|
64
|
-
page: _this.props.currentPage || 1,
|
|
65
|
-
from: _this.params ? _this.params.from : 0,
|
|
66
|
-
to: _this.params ? _this.params.to : 30,
|
|
67
|
-
total_pages: null,
|
|
68
|
-
query: _this.query,
|
|
69
|
-
currentPage: _this.props.currentPage || 1,
|
|
70
|
-
isDataLoading: false,
|
|
71
|
-
totalDataCount: _this.props.totalDataCount
|
|
72
|
-
}, _this.renderCardImage = function (row, page) {
|
|
73
|
-
if (row.thumbnail && row.thumbnail.asset) {
|
|
74
|
-
var url = urlFor({
|
|
75
|
-
client: _this.client,
|
|
76
|
-
source: row.thumbnail,
|
|
77
|
-
imageHeight: _this.props.imageHeight || null,
|
|
78
|
-
imageWidth: _this.props.imageWidth || null,
|
|
79
|
-
imageFit: _this.props.imageFit || null
|
|
80
|
-
});
|
|
81
|
-
return url;
|
|
82
|
-
} else {
|
|
83
|
-
return _this.defaultImage;
|
|
84
|
-
}
|
|
85
|
-
}, _this.seoPagination = function (pageNumber) {
|
|
86
|
-
var router = _this.props.router;
|
|
87
|
-
|
|
88
|
-
var path = router.asPath;
|
|
89
|
-
var qrIndex = path.indexOf('?');
|
|
90
|
-
var pathname = router.pathname;
|
|
91
|
-
var queryString = '';
|
|
92
|
-
if (qrIndex > 0) {
|
|
93
|
-
path = path.substring(1, qrIndex);
|
|
94
|
-
var partialQS = router.asPath.substring(qrIndex + 1);
|
|
95
|
-
var partialQSArr = partialQS.split('&');
|
|
96
|
-
// exclude page=xxx from query string
|
|
97
|
-
partialQSArr.map(function (item) {
|
|
98
|
-
var itemArr = item.split('=');
|
|
99
|
-
var key = itemArr[0];
|
|
100
|
-
var val = itemArr[1];
|
|
101
|
-
if (key !== 'page') queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
if (queryString.length > 0) path += '?' + queryString;
|
|
105
|
-
pageNumber = parseInt(pageNumber);
|
|
106
|
-
if (_this.state.page !== pageNumber) {
|
|
107
|
-
if (path[0] !== '/') path = '/' + path;
|
|
108
|
-
var newPath = pageNumber === 1 ? '' + path : '' + path + (queryString.length > 0 ? '&' : '?') + 'page=' + pageNumber;
|
|
109
|
-
router.push(pathname, newPath, {
|
|
110
|
-
shallow: true
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}, _this.handlePageChange = function () {
|
|
114
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(selectedPage) {
|
|
115
|
-
var start, newParams, newData;
|
|
116
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
117
|
-
while (1) {
|
|
118
|
-
switch (_context.prev = _context.next) {
|
|
119
|
-
case 0:
|
|
120
|
-
console.log('selectedPage', selectedPage);
|
|
121
|
-
_this.setState({
|
|
122
|
-
isDataLoading: true,
|
|
123
|
-
currentPage: selectedPage
|
|
124
|
-
});
|
|
125
|
-
_this.seoPaginate && _this.seoPagination(selectedPage);
|
|
126
|
-
lib_3.refresh();
|
|
127
|
-
document.body.scrollTop = 0;
|
|
128
|
-
document.documentElement.scrollTop = 0;
|
|
129
|
-
start = (selectedPage - 1) * _this.state.itemsPerPage;
|
|
130
|
-
newParams = _extends({}, _this.params, {
|
|
131
|
-
from: start,
|
|
132
|
-
to: start + _this.state.itemsPerPage
|
|
133
|
-
});
|
|
134
|
-
_context.prev = 8;
|
|
135
|
-
_context.next = 11;
|
|
136
|
-
return _this.client.fetch(_this.query, newParams);
|
|
137
|
-
|
|
138
|
-
case 11:
|
|
139
|
-
newData = _context.sent;
|
|
140
|
-
|
|
141
|
-
if (_this.pointer && _this.pointerArray) newData = newData[pointerArray][pointer];
|
|
142
|
-
if (newData && newData.length > 0) {
|
|
143
|
-
_this.setState({
|
|
144
|
-
isDataLoading: false,
|
|
145
|
-
data: newData,
|
|
146
|
-
page: selectedPage
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
_context.next = 19;
|
|
150
|
-
break;
|
|
151
|
-
|
|
152
|
-
case 16:
|
|
153
|
-
_context.prev = 16;
|
|
154
|
-
_context.t0 = _context['catch'](8);
|
|
155
|
-
|
|
156
|
-
console.error(_context.t0);
|
|
157
|
-
|
|
158
|
-
case 19:
|
|
159
|
-
case 'end':
|
|
160
|
-
return _context.stop();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}, _callee, _this2, [[8, 16]]);
|
|
164
|
-
}));
|
|
165
|
-
|
|
166
|
-
return function (_x) {
|
|
167
|
-
return _ref2.apply(this, arguments);
|
|
168
|
-
};
|
|
169
|
-
}(), _this.renderAuthor = function (authorDetail, index, length) {
|
|
170
|
-
if (authorDetail) {
|
|
171
|
-
var _id = authorDetail._id,
|
|
172
|
-
displayName = authorDetail.displayName,
|
|
173
|
-
url = authorDetail.url;
|
|
174
|
-
|
|
175
|
-
if (displayName && url && url.current) {
|
|
176
|
-
return React__default.createElement(
|
|
177
|
-
'div',
|
|
178
|
-
{ key: _id },
|
|
179
|
-
index === 0 && React__default.createElement(
|
|
180
|
-
'span',
|
|
181
|
-
{ className: 'pr-1' },
|
|
182
|
-
'By'
|
|
183
|
-
),
|
|
184
|
-
React__default.createElement(
|
|
185
|
-
'a',
|
|
186
|
-
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
187
|
-
displayName,
|
|
188
|
-
length !== index + 1 && React__default.createElement('br', null)
|
|
189
|
-
)
|
|
190
|
-
);
|
|
191
|
-
} else if (displayName) {
|
|
192
|
-
return React__default.createElement(
|
|
193
|
-
'div',
|
|
194
|
-
{ key: _id },
|
|
195
|
-
index === 0 && React__default.createElement(
|
|
196
|
-
'span',
|
|
197
|
-
{ className: 'pr-1' },
|
|
198
|
-
'By'
|
|
199
|
-
),
|
|
200
|
-
React__default.createElement(
|
|
201
|
-
'span',
|
|
202
|
-
{ className: 'text-muted' },
|
|
203
|
-
displayName,
|
|
204
|
-
length !== index + 1 && React__default.createElement('br', null)
|
|
205
|
-
)
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
} else return null;
|
|
209
|
-
}, _this.cardLoader = function (page, columns, variant, showBI, brandInsight) {
|
|
210
|
-
var mode = variant && variant === 'bottom' ? 'column-reverse' : 'column';
|
|
211
|
-
|
|
212
|
-
var itemCounter = 0;
|
|
213
|
-
var lgVar = 12;
|
|
214
|
-
var numberOfItemsBeforeAd = 6;
|
|
215
|
-
|
|
216
|
-
var insert = function insert(arr, index, newElement) {
|
|
217
|
-
return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
|
|
218
|
-
};
|
|
219
|
-
var articles = [];
|
|
220
|
-
if (showBI) {
|
|
221
|
-
var data = _this.state.data;
|
|
222
|
-
articles = data;
|
|
223
|
-
var pos = 3;
|
|
224
|
-
for (var i = 1; pos < articles.length; i++) {
|
|
225
|
-
var inFeedAd = {
|
|
226
|
-
adUnit: brandInsight.adUnit,
|
|
227
|
-
className: brandInsight.className,
|
|
228
|
-
networkID: brandInsight.networkID,
|
|
229
|
-
sizes: brandInsight.sizes,
|
|
230
|
-
slotId: brandInsight.slotId + '_' + i,
|
|
231
|
-
targeting: {
|
|
232
|
-
pos: 'infeed',
|
|
233
|
-
content_placement: brandInsight.targeting.content_placement,
|
|
234
|
-
document_url: brandInsight.targeting.document_url
|
|
235
|
-
},
|
|
236
|
-
_type: 'BrandInsight',
|
|
237
|
-
/* Passing refresh flag */
|
|
238
|
-
refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
articles = insert(articles, pos, inFeedAd);
|
|
242
|
-
pos += brandInsight.interval + 1;
|
|
243
|
-
}
|
|
244
|
-
} else {
|
|
245
|
-
articles = _this.state.data;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
return React__default.createElement(
|
|
249
|
-
Row,
|
|
250
|
-
null,
|
|
251
|
-
articles && articles.map(function (row, index) {
|
|
252
|
-
if (columns === 'rotate' && itemCounter % 3 === 0) {
|
|
253
|
-
lgVar = 12;
|
|
254
|
-
} else if (columns && columns !== 'rotate') {
|
|
255
|
-
lgVar = Math.floor(12 / columns);
|
|
256
|
-
} else {
|
|
257
|
-
lgVar = 6;
|
|
258
|
-
}
|
|
259
|
-
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
260
|
-
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
261
|
-
} else {
|
|
262
|
-
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
263
|
-
return React__default.createElement(
|
|
264
|
-
React__default.Fragment,
|
|
265
|
-
{ key: itemCounter },
|
|
266
|
-
React__default.createElement(
|
|
267
|
-
Col,
|
|
268
|
-
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
269
|
-
React__default.createElement(
|
|
270
|
-
Card,
|
|
271
|
-
{ className: 'content-card', style: { flexDirection: mode } },
|
|
272
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
273
|
-
'a',
|
|
274
|
-
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
275
|
-
React__default.createElement(
|
|
276
|
-
LazyLoad,
|
|
277
|
-
{ height: _this.props.imageHeight },
|
|
278
|
-
React__default.createElement(Card.Img, { variant: 'top', src: _this.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
279
|
-
)
|
|
280
|
-
),
|
|
281
|
-
React__default.createElement(
|
|
282
|
-
Card.Body,
|
|
283
|
-
null,
|
|
284
|
-
React__default.createElement(
|
|
285
|
-
'a',
|
|
286
|
-
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
287
|
-
React__default.createElement(
|
|
288
|
-
Card.Title,
|
|
289
|
-
null,
|
|
290
|
-
row.title
|
|
291
|
-
)
|
|
292
|
-
),
|
|
293
|
-
_this.props.showPublished && row.published && React__default.createElement(
|
|
294
|
-
Card.Subtitle,
|
|
295
|
-
null,
|
|
296
|
-
moment(row.published).format('MMMM DD, YYYY')
|
|
297
|
-
),
|
|
298
|
-
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
299
|
-
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
300
|
-
}),
|
|
301
|
-
React__default.createElement(
|
|
302
|
-
Card.Text,
|
|
303
|
-
null,
|
|
304
|
-
clean_html_1(row.summary)
|
|
305
|
-
)
|
|
306
|
-
)
|
|
307
|
-
)
|
|
308
|
-
),
|
|
309
|
-
main_43 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
})
|
|
313
|
-
);
|
|
314
|
-
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd) {
|
|
315
|
-
var rightItems = _this.props.rightItems;
|
|
316
|
-
|
|
317
|
-
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
318
|
-
return React__default.createElement(
|
|
319
|
-
Col,
|
|
320
|
-
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
321
|
-
rightItems[i].component
|
|
322
|
-
);
|
|
323
|
-
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
_createClass(DeckContent, [{
|
|
327
|
-
key: 'componentDidUpdate',
|
|
328
|
-
value: function componentDidUpdate(prevProps, prevState) {
|
|
329
|
-
if (this.state.dataKeptToCompareNewDatarecord !== this.props.dataRecord) {
|
|
330
|
-
// eslint-disable-next-line react/no-did-update-set-state
|
|
331
|
-
this.setState({
|
|
332
|
-
data: this.props.dataRecord,
|
|
333
|
-
dataKeptToCompareNewDatarecord: this.props.dataRecord,
|
|
334
|
-
itemsPerPage: this.props.params ? this.props.params.to : 2,
|
|
335
|
-
page: 1,
|
|
336
|
-
from: this.props.params ? this.props.params.from : 0,
|
|
337
|
-
to: this.props.params ? this.props.params.to : 2,
|
|
338
|
-
total_pages: null,
|
|
339
|
-
query: this.props.query,
|
|
340
|
-
isDataLoading: false,
|
|
341
|
-
totalDataCount: this.props.totalDataCount
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}, {
|
|
346
|
-
key: 'render',
|
|
347
|
-
value: function render() {
|
|
348
|
-
var _props = this.props,
|
|
349
|
-
columns = _props.columns,
|
|
350
|
-
variant = _props.variant,
|
|
351
|
-
page = _props.page,
|
|
352
|
-
showBI = _props.showBI,
|
|
353
|
-
brandInsight = _props.brandInsight;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
return React__default.createElement(
|
|
357
|
-
'div',
|
|
358
|
-
{ className: 'contentDeck' },
|
|
359
|
-
this.state.isDataLoading ? React__default.createElement(
|
|
360
|
-
'div',
|
|
361
|
-
{ className: 'd-flex justify-content-center', style: { marginTop: '100px' } },
|
|
362
|
-
React__default.createElement(
|
|
363
|
-
Spinner,
|
|
364
|
-
{ animation: 'border', role: 'status' },
|
|
365
|
-
React__default.createElement(
|
|
366
|
-
'span',
|
|
367
|
-
{ className: 'sr-only' },
|
|
368
|
-
'Loading...'
|
|
369
|
-
)
|
|
370
|
-
)
|
|
371
|
-
) : React__default.createElement(
|
|
372
|
-
React__default.Fragment,
|
|
373
|
-
null,
|
|
374
|
-
React__default.createElement(
|
|
375
|
-
Container,
|
|
376
|
-
null,
|
|
377
|
-
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
378
|
-
),
|
|
379
|
-
React__default.createElement(
|
|
380
|
-
'div',
|
|
381
|
-
{ className: 'pagination-wrapper' },
|
|
382
|
-
React__default.createElement(Pagination, {
|
|
383
|
-
pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
|
|
384
|
-
pageRangeDisplayed: main_43 ? 3 : 9,
|
|
385
|
-
currentPage: this.state.currentPage,
|
|
386
|
-
onPageChange: this.handlePageChange,
|
|
387
|
-
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
388
|
-
}),
|
|
389
|
-
React__default.createElement(
|
|
390
|
-
'style',
|
|
391
|
-
{ jsx: 'true' },
|
|
392
|
-
'\n .pagination-wrapper {\n margin: 3rem 0 100px 0;\n }\n '
|
|
393
|
-
)
|
|
394
|
-
)
|
|
395
|
-
)
|
|
396
|
-
);
|
|
397
|
-
}
|
|
398
|
-
}]);
|
|
399
|
-
|
|
400
|
-
return DeckContent;
|
|
401
|
-
}(React__default.Component);
|
|
402
|
-
|
|
403
|
-
var ContentCardPaginated = withRouter(DeckContent);
|
|
404
|
-
|
|
405
|
-
export { ContentCardPaginated as default };
|