@mjhls/mjh-framework 1.0.108 → 1.0.109-8.1
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 +1 -5
- package/dist/cjs/AD.js +32 -0
- package/dist/cjs/AD300x250.js +95 -0
- package/dist/cjs/AD300x250x600.js +112 -0
- package/dist/cjs/AD728x90.js +109 -0
- package/dist/cjs/ADFloatingFooter.js +151 -0
- package/dist/cjs/ADFooter.js +53 -0
- package/dist/cjs/ADGutter.js +123 -0
- package/dist/cjs/ADInfeed-7c075eda.js +75 -0
- package/dist/cjs/ADSkyscraper.js +125 -0
- package/dist/cjs/ADSponsoredResources.js +122 -0
- package/dist/cjs/ADWebcast.js +127 -0
- package/dist/cjs/ADWelcome.js +166 -0
- package/dist/cjs/ADlgInfeed-d4f556bd.js +69 -0
- package/dist/cjs/AccordionPanel.js +94 -0
- package/dist/cjs/AdSlot.js +283 -0
- package/dist/cjs/AdSlotsProvider.js +184 -0
- package/dist/cjs/AlgoliaSearch.js +15221 -0
- package/dist/cjs/AlphabeticList.js +134 -0
- package/dist/cjs/ArticleCarousel.js +45 -0
- package/dist/cjs/ArticleProgramLandingPage.js +186 -0
- package/dist/cjs/ArticleSeriesLandingPage.js +162 -0
- package/dist/cjs/ArticleSeriesListing.js +314 -0
- package/dist/cjs/AuthWrapper.js +1526 -0
- package/dist/cjs/AuthorComponent-7d00f6d5.js +96 -0
- package/dist/cjs/Beam.js +405 -0
- package/dist/cjs/BlockContent-96b44364.js +916 -0
- package/dist/cjs/Breadcrumbs.js +107 -0
- package/dist/cjs/CEDeckSupabase.js +444 -0
- package/dist/cjs/CMEDeck.js +444 -0
- package/dist/cjs/Column1.js +36 -0
- package/dist/cjs/Column2.js +73 -0
- package/dist/cjs/Column3.js +140 -0
- package/dist/cjs/ConferenceArticleCard.js +94 -0
- package/dist/cjs/ConferenceBanner-213003ce.js +24 -0
- package/dist/cjs/ContentCardPaginated.js +416 -0
- package/dist/cjs/DeckContent.js +507 -0
- package/dist/cjs/DeckQueue.js +402 -0
- package/dist/cjs/DeckQueuePaginated.js +347 -0
- package/dist/cjs/Dfp-67646058.js +103 -0
- package/dist/cjs/EventsDeck.js +856 -0
- package/dist/cjs/ExternalResources.js +220 -0
- package/dist/cjs/Feature.js +132 -0
- package/dist/cjs/ForbesHero.js +138 -0
- package/dist/cjs/GridContent.js +828 -0
- package/dist/cjs/GridContentPaginated.js +703 -0
- package/dist/cjs/GridHero.js +148 -0
- package/dist/cjs/GroupDeck.js +314 -0
- package/dist/cjs/HamMagazine.js +664 -0
- package/dist/cjs/Header.js +65 -0
- package/dist/cjs/HealthCareProfessionalModal.js +78 -0
- package/dist/cjs/Hero.js +49 -0
- package/dist/cjs/HighlightenVideo.js +69 -0
- package/dist/cjs/HorizontalArticleListing.js +167 -0
- package/dist/cjs/HorizontalHero.js +112 -0
- package/dist/cjs/ImageSlider-7c995858.js +2808 -0
- package/dist/cjs/IssueContentDeck.js +242 -0
- package/dist/cjs/IssueDeck.js +267 -0
- package/dist/cjs/IssueLanding.js +176 -0
- package/dist/cjs/KMTracker.js +27 -0
- package/dist/cjs/LeftNav.js +153 -0
- package/dist/cjs/MasterDeck.js +555 -0
- package/dist/cjs/MasterDeckPaginated.js +468 -0
- package/dist/cjs/MediaSeriesCard.js +134 -0
- package/dist/cjs/MediaSeriesLanding.js +507 -0
- package/dist/cjs/MediaSeriesLandingPaginated.js +532 -0
- package/dist/cjs/NavDvm.js +278 -0
- package/dist/cjs/NavFooter-b7b16d48.js +72 -0
- package/dist/cjs/NavMagazine.js +615 -0
- package/dist/cjs/NavNative.js +880 -0
- package/dist/cjs/OncliveHero.js +80 -0
- package/dist/cjs/OncliveLargeHero.js +242 -0
- package/dist/cjs/PageFilter.js +72 -0
- package/dist/cjs/Pagination-6359861a.js +97 -0
- package/dist/cjs/PartnerDetailListing.js +374 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +365 -0
- package/dist/cjs/PdfDownload.js +28 -0
- package/dist/cjs/PixelTracking.js +191 -0
- package/dist/cjs/PodcastsLanding.js +234 -0
- package/dist/cjs/PopUpModal.js +58 -0
- package/dist/cjs/PtceDeck.js +150 -0
- package/dist/cjs/PubSection.js +120 -0
- package/dist/cjs/PubToc.js +88 -0
- package/dist/cjs/PublicationDeck.js +184 -0
- package/dist/cjs/PublicationFeature-4b68e0db.js +130 -0
- package/dist/cjs/PublicationLanding.js +826 -0
- package/dist/cjs/QueueDeckExpanded.js +1540 -0
- package/dist/cjs/QueueDeckExpandedPaginated.js +1387 -0
- package/dist/cjs/RecentNews.js +91 -0
- package/dist/cjs/RelatedContent.js +115 -0
- package/dist/cjs/RelatedTopicsDropdown.js +90 -0
- package/dist/cjs/RolesDeck.js +94 -0
- package/dist/cjs/Schema.js +102 -0
- package/dist/cjs/Search.js +66 -0
- package/dist/cjs/Segment.js +458 -0
- package/dist/cjs/SeriesListingDeck.js +247 -0
- package/dist/cjs/SeriesSlider-086a8319.js +332 -0
- package/dist/cjs/SetCookie.js +10 -0
- package/dist/cjs/SideFooter.js +152 -0
- package/dist/cjs/SocialIcons.js +103 -0
- package/dist/cjs/SocialSearchComponent-d7e5d3a6.js +213 -0
- package/dist/cjs/SocialShare.js +74 -0
- package/dist/cjs/TaxonomyCard.js +256 -0
- package/dist/cjs/TaxonomyDescription.js +208 -0
- package/dist/cjs/TemplateNormal.js +204 -0
- package/dist/cjs/ThumbnailCard.js +60 -0
- package/dist/cjs/Tooltip-b8516cbf.js +9541 -0
- package/dist/cjs/Ustream.js +157 -0
- package/dist/cjs/VerticalHero.js +75 -0
- package/dist/cjs/VideoProgramLandingPage.js +262 -0
- package/dist/cjs/VideoSeriesCard.js +88 -0
- package/dist/cjs/VideoSeriesFilter.js +129 -0
- package/dist/cjs/VideoSeriesLandingPage.js +178 -0
- package/dist/cjs/VideoSeriesListing.js +421 -0
- package/dist/cjs/View.js +2841 -0
- package/dist/cjs/YahooHero.js +127 -0
- package/dist/cjs/YoutubeGroup.js +372 -0
- package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
- package/dist/cjs/_is-array-54228b29.js +74 -0
- package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
- package/dist/cjs/_library-dd23b178.js +5 -0
- package/dist/cjs/_object-sap-d1978572.js +16 -0
- package/dist/cjs/_object-to-array-9337ba83.js +25 -0
- package/dist/cjs/_set-species-0c7864a2.js +55 -0
- package/dist/cjs/asyncToGenerator-65df6bf8.js +1347 -0
- package/dist/cjs/brightcove-react-player-loader.es-35faab67.js +2232 -0
- package/dist/cjs/checkSisterSite-c3a4ac98.js +19 -0
- package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
- package/dist/cjs/debounce-d4a2369b.js +216 -0
- package/dist/cjs/define-property-e8404b64.js +20 -0
- package/dist/cjs/defineProperty-19580e93.js +71 -0
- package/dist/cjs/defineProperty-9673846a.js +34 -0
- package/dist/cjs/entities-df1aed86.js +510 -0
- package/dist/cjs/eq-5fc26c07.js +79 -0
- package/dist/cjs/extends-be0d85bc.js +100 -0
- package/dist/cjs/faundadb.js +765 -0
- package/dist/cjs/get-5839e5b5.js +920 -0
- package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
- package/dist/cjs/getKeywords.js +46 -0
- package/dist/cjs/getPtceActivities.js +90 -0
- package/dist/cjs/getQuery.js +27 -0
- package/dist/cjs/getRelatedArticle.js +766 -0
- package/dist/cjs/getRootDocGroup.js +63 -0
- package/dist/cjs/getSerializers.js +66 -0
- package/dist/cjs/getSeriesDetail.js +40 -0
- package/dist/cjs/getTIData.js +93 -0
- package/dist/cjs/getTargeting-7ce7037b.js +166 -0
- package/dist/cjs/getTargeting.js +12 -0
- package/dist/cjs/iconBase-be4097c0.js +104 -0
- package/dist/cjs/index-187c967e.js +54 -0
- package/dist/cjs/index-3177f564.js +1573 -0
- package/dist/cjs/index-65621b6c.js +613 -0
- package/dist/cjs/index-7435b964.js +1683 -0
- package/dist/cjs/index-a26637a3.js +11764 -0
- package/dist/cjs/index-d48b231c.js +556 -0
- package/dist/cjs/index-ff83a88b.js +104 -0
- package/dist/cjs/index.es-1ab8dda7.js +445 -0
- package/dist/cjs/index.esm-2ea9e9ff.js +98 -0
- package/dist/cjs/index.esm-c1e16606.js +13 -0
- package/dist/cjs/index.esm-d51c9ac6.js +25 -0
- package/dist/cjs/index.esm-d81454e7.js +19 -0
- package/dist/cjs/index.js +638 -0
- package/dist/cjs/inherits-e47b5342.js +188 -0
- package/dist/cjs/isSymbol-03abbdf0.js +209 -0
- package/dist/cjs/js.cookie-a511c430.js +160 -0
- package/dist/cjs/keys-e982b3fa.js +25 -0
- package/dist/cjs/lodash-f0783643.js +17195 -0
- package/dist/cjs/main-ae8472f3.js +969 -0
- package/dist/cjs/moment-f730814d.js +5684 -0
- package/dist/cjs/react-social-icons-2c5c389a.js +616 -0
- package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
- package/dist/cjs/smoothscroll-99df7f93.js +438 -0
- package/dist/cjs/stringify-f7a37a8d.js +17 -0
- package/dist/cjs/style-inject.es-dcee06b6.js +30 -0
- package/dist/cjs/timeDifferenceCalc.js +39 -0
- package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
- package/dist/cjs/toNumber-5e1fac58.js +104 -0
- package/dist/cjs/typeof-220bbf73.js +382 -0
- package/dist/cjs/urlFor.js +66 -0
- package/dist/cjs/urlForFile-5084fc48.js +29 -0
- package/dist/cjs/ustream-api-3819e4aa.js +106 -0
- package/dist/cjs/visibility-sensor-56020df6.js +597 -0
- package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
- package/dist/esm/AD.js +26 -0
- package/dist/esm/AD300x250.js +89 -0
- package/dist/esm/AD300x250x600.js +106 -0
- package/dist/esm/AD728x90.js +103 -0
- package/dist/esm/ADFloatingFooter.js +145 -0
- package/dist/esm/ADFooter.js +47 -0
- package/dist/esm/ADGutter.js +117 -0
- package/dist/esm/ADInfeed-3442c999.js +68 -0
- package/dist/esm/ADSkyscraper.js +119 -0
- package/dist/esm/ADSponsoredResources.js +116 -0
- package/dist/esm/ADWebcast.js +121 -0
- package/dist/esm/ADWelcome.js +160 -0
- package/dist/esm/ADlgInfeed-30649360.js +63 -0
- package/dist/esm/AccordionPanel.js +87 -0
- package/dist/esm/AdSlot.js +276 -0
- package/dist/esm/AdSlotsProvider.js +177 -0
- package/dist/esm/AlgoliaSearch.js +15214 -0
- package/dist/esm/AlphabeticList.js +128 -0
- package/dist/esm/ArticleCarousel.js +39 -0
- package/dist/esm/ArticleProgramLandingPage.js +180 -0
- package/dist/esm/ArticleSeriesLandingPage.js +156 -0
- package/dist/esm/ArticleSeriesListing.js +307 -0
- package/dist/esm/AuthWrapper.js +1520 -0
- package/dist/esm/AuthorComponent-d9653ae5.js +90 -0
- package/dist/esm/Beam.js +403 -0
- package/dist/esm/BlockContent-1e73bd2c.js +909 -0
- package/dist/esm/Breadcrumbs.js +100 -0
- package/dist/esm/CEDeckSupabase.js +438 -0
- package/dist/esm/CMEDeck.js +438 -0
- package/dist/esm/Column1.js +28 -0
- package/dist/esm/Column2.js +65 -0
- package/dist/esm/Column3.js +132 -0
- package/dist/esm/ConferenceArticleCard.js +88 -0
- package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
- package/dist/esm/ContentCardPaginated.js +405 -0
- package/dist/esm/DeckContent.js +497 -0
- package/dist/esm/DeckQueue.js +392 -0
- package/dist/esm/DeckQueuePaginated.js +336 -0
- package/dist/esm/Dfp-3b6eb620.js +96 -0
- package/dist/esm/EventsDeck.js +843 -0
- package/dist/esm/ExternalResources.js +213 -0
- package/dist/esm/Feature.js +125 -0
- package/dist/esm/ForbesHero.js +132 -0
- package/dist/esm/GridContent.js +818 -0
- package/dist/esm/GridContentPaginated.js +692 -0
- package/dist/esm/GridHero.js +142 -0
- package/dist/esm/GroupDeck.js +308 -0
- package/dist/esm/HamMagazine.js +651 -0
- package/dist/esm/Header.js +54 -0
- package/dist/esm/HealthCareProfessionalModal.js +70 -0
- package/dist/esm/Hero.js +43 -0
- package/dist/esm/HighlightenVideo.js +63 -0
- package/dist/esm/HorizontalArticleListing.js +161 -0
- package/dist/esm/HorizontalHero.js +106 -0
- package/dist/esm/ImageSlider-75f7b81a.js +2799 -0
- package/dist/esm/IssueContentDeck.js +232 -0
- package/dist/esm/IssueDeck.js +257 -0
- package/dist/esm/IssueLanding.js +170 -0
- package/dist/esm/KMTracker.js +25 -0
- package/dist/esm/LeftNav.js +143 -0
- package/dist/esm/MasterDeck.js +548 -0
- package/dist/esm/MasterDeckPaginated.js +460 -0
- package/dist/esm/MediaSeriesCard.js +128 -0
- package/dist/esm/MediaSeriesLanding.js +500 -0
- package/dist/esm/MediaSeriesLandingPaginated.js +525 -0
- package/dist/esm/NavDvm.js +265 -0
- package/dist/esm/NavFooter-4bcffccb.js +66 -0
- package/dist/esm/NavMagazine.js +602 -0
- package/dist/esm/NavNative.js +864 -0
- package/dist/esm/OncliveHero.js +74 -0
- package/dist/esm/OncliveLargeHero.js +236 -0
- package/dist/esm/PageFilter.js +66 -0
- package/dist/esm/Pagination-9fe9f61d.js +90 -0
- package/dist/esm/PartnerDetailListing.js +368 -0
- package/dist/esm/PartnerDetailListingPaginated.js +359 -0
- package/dist/esm/PdfDownload.js +22 -0
- package/dist/esm/PixelTracking.js +182 -0
- package/dist/esm/PodcastsLanding.js +227 -0
- package/dist/esm/PopUpModal.js +51 -0
- package/dist/esm/PtceDeck.js +144 -0
- package/dist/esm/PubSection.js +114 -0
- package/dist/esm/PubToc.js +82 -0
- package/dist/esm/PublicationDeck.js +174 -0
- package/dist/esm/PublicationFeature-6c334891.js +121 -0
- package/dist/esm/PublicationLanding.js +816 -0
- package/dist/esm/QueueDeckExpanded.js +1534 -0
- package/dist/esm/QueueDeckExpandedPaginated.js +1381 -0
- package/dist/esm/RecentNews.js +85 -0
- package/dist/esm/RelatedContent.js +109 -0
- package/dist/esm/RelatedTopicsDropdown.js +82 -0
- package/dist/esm/RolesDeck.js +84 -0
- package/dist/esm/Schema.js +96 -0
- package/dist/esm/Search.js +57 -0
- package/dist/esm/Segment.js +456 -0
- package/dist/esm/SeriesListingDeck.js +241 -0
- package/dist/esm/SeriesSlider-acbdf4c9.js +326 -0
- package/dist/esm/SetCookie.js +8 -0
- package/dist/esm/SideFooter.js +146 -0
- package/dist/esm/SocialIcons.js +97 -0
- package/dist/esm/SocialSearchComponent-9e65c8d6.js +204 -0
- package/dist/esm/SocialShare.js +67 -0
- package/dist/esm/TaxonomyCard.js +246 -0
- package/dist/esm/TaxonomyDescription.js +201 -0
- package/dist/esm/TemplateNormal.js +197 -0
- package/dist/esm/ThumbnailCard.js +53 -0
- package/dist/esm/Tooltip-fe0ed92d.js +9532 -0
- package/dist/esm/Ustream.js +151 -0
- package/dist/esm/VerticalHero.js +69 -0
- package/dist/esm/VideoProgramLandingPage.js +253 -0
- package/dist/esm/VideoSeriesCard.js +82 -0
- package/dist/esm/VideoSeriesFilter.js +123 -0
- package/dist/esm/VideoSeriesLandingPage.js +172 -0
- package/dist/esm/VideoSeriesListing.js +414 -0
- package/dist/esm/View.js +2831 -0
- package/dist/esm/YahooHero.js +121 -0
- package/dist/esm/YoutubeGroup.js +366 -0
- package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
- package/dist/esm/_is-array-68c79b29.js +71 -0
- package/dist/esm/_iter-detect-2f89237f.js +48 -0
- package/dist/esm/_library-528f1934.js +3 -0
- package/dist/esm/_object-sap-14bd8e96.js +14 -0
- package/dist/esm/_object-to-array-9dfdfb29.js +23 -0
- package/dist/esm/_set-species-7d3317b7.js +50 -0
- package/dist/esm/asyncToGenerator-1ebeb135.js +1343 -0
- package/dist/esm/brightcove-react-player-loader.es-a2422c4b.js +2226 -0
- package/dist/esm/checkSisterSite-a7218fda.js +17 -0
- package/dist/esm/core.get-iterator-method-95db387d.js +547 -0
- package/dist/esm/debounce-533d9748.js +214 -0
- package/dist/esm/define-property-433c51d3.js +18 -0
- package/dist/esm/defineProperty-e5afb9eb.js +32 -0
- package/dist/esm/defineProperty-e8022d1e.js +66 -0
- package/dist/esm/entities-6d9154b4.js +507 -0
- package/dist/esm/eq-bdcbf886.js +76 -0
- package/dist/esm/extends-2f4448b8.js +94 -0
- package/dist/esm/faundadb.js +754 -0
- package/dist/esm/get-3c308da4.js +918 -0
- package/dist/esm/getContentCategory-15dcc413.js +9 -0
- package/dist/esm/getKeywords.js +44 -0
- package/dist/esm/getPtceActivities.js +88 -0
- package/dist/esm/getQuery.js +25 -0
- package/dist/esm/getRelatedArticle.js +764 -0
- package/dist/esm/getRootDocGroup.js +61 -0
- package/dist/esm/getSerializers.js +60 -0
- package/dist/esm/getSeriesDetail.js +38 -0
- package/dist/esm/getTIData.js +91 -0
- package/dist/esm/getTargeting-301942ae.js +163 -0
- package/dist/esm/getTargeting.js +6 -0
- package/dist/esm/iconBase-ccc56b97.js +81 -0
- package/dist/esm/index-3f5c03b2.js +553 -0
- package/dist/esm/index-4550ef23.js +1571 -0
- package/dist/esm/index-5cc7b406.js +1674 -0
- package/dist/esm/index-755f2cc2.js +605 -0
- package/dist/esm/index-a68bfe70.js +11743 -0
- package/dist/esm/index-c7e2ac95.js +52 -0
- package/dist/esm/index-c8d5e72b.js +99 -0
- package/dist/esm/index.es-a6137319.js +439 -0
- package/dist/esm/index.esm-1bd8a0a8.js +18 -0
- package/dist/esm/index.esm-9508070a.js +91 -0
- package/dist/esm/index.esm-9b042655.js +10 -0
- package/dist/esm/index.esm-eb1e8e80.js +14 -0
- package/dist/esm/index.js +531 -0
- package/dist/esm/inherits-96c84cbd.js +179 -0
- package/dist/esm/isSymbol-a7e9aafe.js +203 -0
- package/dist/esm/js.cookie-6874175c.js +158 -0
- package/dist/esm/keys-185288f4.js +23 -0
- package/dist/esm/lodash-f97fd99a.js +17193 -0
- package/dist/esm/main-754d4992.js +956 -0
- package/dist/esm/moment-48faeb9c.js +5682 -0
- package/dist/esm/react-social-icons-9be47857.js +609 -0
- package/dist/esm/slicedToArray-72ed566b.js +92 -0
- package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
- package/dist/esm/stringify-1e2a5946.js +15 -0
- package/dist/esm/style-inject.es-1f59c1d0.js +28 -0
- package/dist/esm/timeDifferenceCalc.js +37 -0
- package/dist/esm/toConsumableArray-e6f28e5c.js +71 -0
- package/dist/esm/toNumber-5aeba6e7.js +102 -0
- package/dist/esm/typeof-3ab7d3b6.js +378 -0
- package/dist/esm/urlFor.js +64 -0
- package/dist/esm/urlForFile-2e523b67.js +27 -0
- package/dist/esm/ustream-api-63a164b3.js +104 -0
- package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
- package/dist/esm/web.dom.iterable-3fffc027.js +48 -0
- package/package.json +55 -26
- package/dist/index.es.js +0 -20497
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -20535
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
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 };
|
|
@@ -0,0 +1,18 @@
|
|
|
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 };
|
|
@@ -0,0 +1,405 @@
|
|
|
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 };
|