@mjhls/mjh-framework 1.0.98 → 1.0.99-0.next-12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -172
- package/dist/cjs/AD.js +32 -0
- package/dist/cjs/AD300x250.js +95 -0
- package/dist/cjs/AD300x250x600.js +112 -0
- package/dist/cjs/AD728x90.js +109 -0
- package/dist/cjs/ADFloatingFooter.js +143 -0
- package/dist/cjs/ADFooter.js +53 -0
- package/dist/cjs/ADGutter.js +115 -0
- package/dist/cjs/ADInfeed-cf54cb8a.js +66 -0
- package/dist/cjs/ADSkyscraper.js +117 -0
- package/dist/cjs/ADSponsoredResources.js +114 -0
- package/dist/cjs/ADWebcast.js +119 -0
- package/dist/cjs/ADWelcome.js +166 -0
- package/dist/cjs/ADlgInfeed-d06624d8.js +60 -0
- package/dist/cjs/AccordionPanel.js +94 -0
- package/dist/cjs/AdSlot.js +251 -0
- package/dist/cjs/AdSlotsProvider.js +183 -0
- package/dist/cjs/AlgoliaSearch.js +195 -0
- package/dist/cjs/AlphabeticList.js +135 -0
- package/dist/cjs/ArticleCarousel.js +46 -0
- package/dist/cjs/ArticleProgramLandingPage.js +184 -0
- package/dist/cjs/ArticleSeriesLandingPage.js +162 -0
- package/dist/cjs/ArticleSeriesListing.js +315 -0
- package/dist/cjs/AuthWrapper.js +720 -0
- package/dist/cjs/AuthorComponent-39b37d84.js +96 -0
- package/dist/cjs/Beam.js +350 -0
- package/dist/cjs/BlockContent-36e54d77.js +916 -0
- package/dist/cjs/Breadcrumbs.js +107 -0
- package/dist/cjs/CMEDeck.js +443 -0
- package/dist/cjs/Column1.js +39 -0
- package/dist/cjs/Column2.js +75 -0
- package/dist/cjs/Column3.js +144 -0
- package/dist/cjs/ConferenceArticleCard.js +93 -0
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/ContentCardPaginated.js +417 -0
- package/dist/cjs/DeckContent.js +507 -0
- package/dist/cjs/DeckQueue.js +403 -0
- package/dist/cjs/DeckQueuePaginated.js +348 -0
- package/dist/cjs/Dfp-94f8ccdf.js +103 -0
- package/dist/cjs/EventsDeck.js +857 -0
- package/dist/cjs/ExternalResources.js +217 -0
- package/dist/cjs/Feature.js +129 -0
- package/dist/cjs/ForbesHero.js +137 -0
- package/dist/cjs/GridContent.js +828 -0
- package/dist/cjs/GridContentPaginated.js +704 -0
- package/dist/cjs/GridHero.js +147 -0
- package/dist/cjs/GroupDeck.js +314 -0
- package/dist/cjs/HamMagazine.js +602 -0
- package/dist/cjs/Header.js +39 -0
- package/dist/cjs/HealthCareProfessionalModal.js +78 -0
- package/dist/cjs/Hero.js +48 -0
- package/dist/cjs/HighlightenVideo.js +69 -0
- package/dist/cjs/HorizontalArticleListing.js +165 -0
- package/dist/cjs/HorizontalHero.js +111 -0
- package/dist/cjs/ImageSlider-a7fb6218.js +182 -0
- package/dist/cjs/IssueContentDeck.js +241 -0
- package/dist/cjs/IssueDeck.js +268 -0
- package/dist/cjs/IssueLanding.js +172 -0
- package/dist/cjs/KMTracker.js +27 -0
- package/dist/cjs/LeftNav.js +145 -0
- package/dist/cjs/MasterDeck.js +555 -0
- package/dist/cjs/MasterDeckPaginated.js +469 -0
- package/dist/cjs/MediaSeriesCard-36eab8b7.js +9502 -0
- package/dist/cjs/MediaSeriesLanding.js +503 -0
- package/dist/cjs/MediaSeriesLandingPaginated.js +529 -0
- package/dist/cjs/NavDvm.js +245 -0
- package/dist/cjs/NavFooter-3dcd99a8.js +66 -0
- package/dist/cjs/NavMagazine.js +595 -0
- package/dist/cjs/NavNative.js +861 -0
- package/dist/cjs/OncliveHero.js +79 -0
- package/dist/cjs/OncliveLargeHero.js +241 -0
- package/dist/cjs/PageFilter.js +72 -0
- package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +326 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +318 -0
- package/dist/cjs/PdfDownload.js +28 -0
- package/dist/cjs/PixelTracking.js +165 -0
- package/dist/cjs/PopUpModal.js +58 -0
- package/dist/cjs/PtceDeck.js +149 -0
- package/dist/cjs/PubSection.js +120 -0
- package/dist/cjs/PubToc.js +87 -0
- package/dist/cjs/PublicationDeck.js +183 -0
- package/dist/cjs/PublicationFeature-be5f3503.js +130 -0
- package/dist/cjs/PublicationLanding.js +853 -0
- package/dist/cjs/QueueDeckExpanded.js +1540 -0
- package/dist/cjs/QueueDeckExpandedPaginated.js +1388 -0
- package/dist/cjs/RecentNews.js +91 -0
- package/dist/cjs/RelatedContent.js +114 -0
- package/dist/cjs/RelatedTopicsDropdown.js +90 -0
- package/dist/cjs/RolesDeck.js +94 -0
- package/dist/cjs/Schema.js +101 -0
- package/dist/cjs/Search.js +66 -0
- package/dist/cjs/Segment.js +403 -0
- package/dist/cjs/SeriesListingDeck.js +248 -0
- package/dist/cjs/SeriesSlider-b94f1dd5.js +332 -0
- package/dist/cjs/SetCookie.js +10 -0
- package/dist/cjs/SideFooter.js +151 -0
- package/dist/cjs/SocialIcons.js +103 -0
- package/dist/cjs/SocialSearchComponent-b7faaedc.js +213 -0
- package/dist/cjs/SocialShare.js +74 -0
- package/dist/cjs/TaxonomyCard.js +253 -0
- package/dist/cjs/TaxonomyDescription.js +205 -0
- package/dist/cjs/TemplateNormal.js +204 -0
- package/dist/cjs/ThumbnailCard.js +59 -0
- package/dist/cjs/Ustream.js +156 -0
- package/dist/cjs/VerticalHero.js +74 -0
- package/dist/cjs/VideoProgramLandingPage.js +260 -0
- package/dist/cjs/VideoSeriesCard.js +88 -0
- package/dist/cjs/VideoSeriesFilter.js +128 -0
- package/dist/cjs/VideoSeriesLandingPage.js +178 -0
- package/dist/cjs/VideoSeriesListing.js +422 -0
- package/dist/cjs/View.js +2601 -0
- package/dist/cjs/YahooHero.js +126 -0
- package/dist/cjs/YoutubeGroup.js +371 -0
- package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
- package/dist/cjs/_is-array-54228b29.js +74 -0
- package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
- package/dist/cjs/_library-dd23b178.js +5 -0
- package/dist/cjs/_object-pie-083f2dd6.js +16 -0
- package/dist/cjs/_object-sap-d1978572.js +16 -0
- package/dist/cjs/_object-to-array-ce86cae7.js +25 -0
- package/dist/cjs/asyncToGenerator-77821af0.js +1395 -0
- package/dist/cjs/brightcove-react-player-loader.es-a195642e.js +2232 -0
- package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
- package/dist/cjs/debounce-d4a2369b.js +216 -0
- package/dist/cjs/define-property-e8404b64.js +20 -0
- package/dist/cjs/defineProperty-9673846a.js +34 -0
- package/dist/cjs/entities-3f9d0f2f.js +506 -0
- package/dist/cjs/eq-5fc26c07.js +79 -0
- package/dist/cjs/extends-7c86182f.js +87 -0
- package/dist/cjs/faundadb.js +644 -0
- package/dist/cjs/get-5839e5b5.js +920 -0
- package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
- package/dist/cjs/getKeywords.js +46 -0
- package/dist/cjs/getPtceActivities.js +89 -0
- package/dist/cjs/getQuery.js +28 -0
- package/dist/cjs/getRelatedArticle.js +747 -0
- package/dist/cjs/getRootDocGroup.js +62 -0
- package/dist/cjs/getSerializers.js +64 -0
- package/dist/cjs/getSeriesDetail.js +40 -0
- package/dist/cjs/getTargeting-4439c99d.js +164 -0
- package/dist/cjs/getTargeting.js +13 -0
- package/dist/cjs/iconBase-be4097c0.js +106 -0
- package/dist/cjs/index-0e4427c8.js +1683 -0
- package/dist/cjs/index-187c967e.js +54 -0
- package/dist/cjs/index-7361fa72.js +11305 -0
- package/dist/cjs/index-eadd5035.js +613 -0
- package/dist/cjs/index-efca863c.js +556 -0
- package/dist/cjs/index-f86bb269.js +1571 -0
- package/dist/cjs/index.es-f3e47207.js +445 -0
- package/dist/cjs/index.esm-2bb721c8.js +96 -0
- package/dist/cjs/index.esm-c1e16606.js +13 -0
- package/dist/cjs/index.esm-d51c9ac6.js +25 -0
- package/dist/cjs/index.esm-d81454e7.js +19 -0
- package/dist/cjs/index.js +635 -0
- package/dist/cjs/inherits-de66ea16.js +188 -0
- package/dist/cjs/isSymbol-03abbdf0.js +209 -0
- package/dist/cjs/js.cookie-a511c430.js +160 -0
- package/dist/cjs/keys-e982b3fa.js +25 -0
- package/dist/cjs/lodash-f0783643.js +17195 -0
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/moment-aca40de1.js +5669 -0
- package/dist/cjs/react-social-icons-af932527.js +616 -0
- package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
- package/dist/cjs/smoothscroll-99df7f93.js +438 -0
- package/dist/cjs/stringify-f7a37a8d.js +17 -0
- package/dist/cjs/style-inject.es-dcee06b6.js +30 -0
- package/dist/cjs/timeDifferenceCalc.js +39 -0
- package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
- package/dist/cjs/toNumber-5e1fac58.js +104 -0
- package/dist/cjs/typeof-567e31ff.js +382 -0
- package/dist/cjs/urlFor.js +65 -0
- package/dist/cjs/urlForFile-29d3815a.js +24 -0
- package/dist/cjs/ustream-api-3819e4aa.js +106 -0
- package/dist/cjs/visibility-sensor-eb2c5b69.js +597 -0
- package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
- package/dist/esm/AD.js +26 -0
- package/dist/esm/AD300x250.js +89 -0
- package/dist/esm/AD300x250x600.js +106 -0
- package/dist/esm/AD728x90.js +103 -0
- package/dist/esm/ADFloatingFooter.js +137 -0
- package/dist/esm/ADFooter.js +47 -0
- package/dist/esm/ADGutter.js +109 -0
- package/dist/esm/ADInfeed-f684cac9.js +59 -0
- package/dist/esm/ADSkyscraper.js +111 -0
- package/dist/esm/ADSponsoredResources.js +108 -0
- package/dist/esm/ADWebcast.js +113 -0
- package/dist/esm/ADWelcome.js +160 -0
- package/dist/esm/ADlgInfeed-8c438cee.js +54 -0
- package/dist/esm/AccordionPanel.js +87 -0
- package/dist/esm/AdSlot.js +244 -0
- package/dist/esm/AdSlotsProvider.js +176 -0
- package/dist/esm/AlgoliaSearch.js +188 -0
- package/dist/esm/AlphabeticList.js +129 -0
- package/dist/esm/ArticleCarousel.js +40 -0
- package/dist/esm/ArticleProgramLandingPage.js +178 -0
- package/dist/esm/ArticleSeriesLandingPage.js +156 -0
- package/dist/esm/ArticleSeriesListing.js +308 -0
- package/dist/esm/AuthWrapper.js +714 -0
- package/dist/esm/AuthorComponent-defe68b6.js +90 -0
- package/dist/esm/Beam.js +348 -0
- package/dist/esm/BlockContent-c99c9a8d.js +909 -0
- package/dist/esm/Breadcrumbs.js +100 -0
- package/dist/esm/CMEDeck.js +437 -0
- package/dist/esm/Column1.js +29 -0
- package/dist/esm/Column2.js +65 -0
- package/dist/esm/Column3.js +134 -0
- package/dist/esm/ConferenceArticleCard.js +87 -0
- package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
- package/dist/esm/ContentCardPaginated.js +406 -0
- package/dist/esm/DeckContent.js +497 -0
- package/dist/esm/DeckQueue.js +393 -0
- package/dist/esm/DeckQueuePaginated.js +337 -0
- package/dist/esm/Dfp-4b99f79d.js +96 -0
- package/dist/esm/EventsDeck.js +844 -0
- package/dist/esm/ExternalResources.js +210 -0
- package/dist/esm/Feature.js +122 -0
- package/dist/esm/ForbesHero.js +131 -0
- package/dist/esm/GridContent.js +818 -0
- package/dist/esm/GridContentPaginated.js +693 -0
- package/dist/esm/GridHero.js +141 -0
- package/dist/esm/GroupDeck.js +308 -0
- package/dist/esm/HamMagazine.js +590 -0
- package/dist/esm/Header.js +30 -0
- package/dist/esm/HealthCareProfessionalModal.js +70 -0
- package/dist/esm/Hero.js +42 -0
- package/dist/esm/HighlightenVideo.js +63 -0
- package/dist/esm/HorizontalArticleListing.js +159 -0
- package/dist/esm/HorizontalHero.js +105 -0
- package/dist/esm/ImageSlider-eab2fe41.js +176 -0
- package/dist/esm/IssueContentDeck.js +231 -0
- package/dist/esm/IssueDeck.js +258 -0
- package/dist/esm/IssueLanding.js +166 -0
- package/dist/esm/KMTracker.js +25 -0
- package/dist/esm/LeftNav.js +136 -0
- package/dist/esm/MasterDeck.js +548 -0
- package/dist/esm/MasterDeckPaginated.js +461 -0
- package/dist/esm/MediaSeriesCard-99048e65.js +9492 -0
- package/dist/esm/MediaSeriesLanding.js +496 -0
- package/dist/esm/MediaSeriesLandingPaginated.js +522 -0
- package/dist/esm/NavDvm.js +233 -0
- package/dist/esm/NavFooter-e27bd93b.js +60 -0
- package/dist/esm/NavMagazine.js +583 -0
- package/dist/esm/NavNative.js +846 -0
- package/dist/esm/OncliveHero.js +73 -0
- package/dist/esm/OncliveLargeHero.js +235 -0
- package/dist/esm/PageFilter.js +66 -0
- package/dist/esm/Pagination-cd21f8c2.js +82 -0
- package/dist/esm/PartnerDetailListing.js +320 -0
- package/dist/esm/PartnerDetailListingPaginated.js +312 -0
- package/dist/esm/PdfDownload.js +22 -0
- package/dist/esm/PixelTracking.js +156 -0
- package/dist/esm/PopUpModal.js +51 -0
- package/dist/esm/PtceDeck.js +143 -0
- package/dist/esm/PubSection.js +114 -0
- package/dist/esm/PubToc.js +81 -0
- package/dist/esm/PublicationDeck.js +173 -0
- package/dist/esm/PublicationFeature-03500094.js +121 -0
- package/dist/esm/PublicationLanding.js +843 -0
- package/dist/esm/QueueDeckExpanded.js +1534 -0
- package/dist/esm/QueueDeckExpandedPaginated.js +1382 -0
- package/dist/esm/RecentNews.js +85 -0
- package/dist/esm/RelatedContent.js +108 -0
- package/dist/esm/RelatedTopicsDropdown.js +82 -0
- package/dist/esm/RolesDeck.js +84 -0
- package/dist/esm/Schema.js +95 -0
- package/dist/esm/Search.js +57 -0
- package/dist/esm/Segment.js +401 -0
- package/dist/esm/SeriesListingDeck.js +242 -0
- package/dist/esm/SeriesSlider-609f9d94.js +326 -0
- package/dist/esm/SetCookie.js +8 -0
- package/dist/esm/SideFooter.js +145 -0
- package/dist/esm/SocialIcons.js +97 -0
- package/dist/esm/SocialSearchComponent-1d8a9f59.js +204 -0
- package/dist/esm/SocialShare.js +67 -0
- package/dist/esm/TaxonomyCard.js +243 -0
- package/dist/esm/TaxonomyDescription.js +198 -0
- package/dist/esm/TemplateNormal.js +197 -0
- package/dist/esm/ThumbnailCard.js +52 -0
- package/dist/esm/Ustream.js +150 -0
- package/dist/esm/VerticalHero.js +68 -0
- package/dist/esm/VideoProgramLandingPage.js +251 -0
- package/dist/esm/VideoSeriesCard.js +82 -0
- package/dist/esm/VideoSeriesFilter.js +122 -0
- package/dist/esm/VideoSeriesLandingPage.js +172 -0
- package/dist/esm/VideoSeriesListing.js +415 -0
- package/dist/esm/View.js +2590 -0
- package/dist/esm/YahooHero.js +120 -0
- package/dist/esm/YoutubeGroup.js +365 -0
- package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
- package/dist/esm/_is-array-893ab020.js +71 -0
- package/dist/esm/_iter-detect-f089461c.js +48 -0
- package/dist/esm/_library-528f1934.js +3 -0
- package/dist/esm/_object-pie-133f504a.js +13 -0
- package/dist/esm/_object-sap-169d6272.js +14 -0
- package/dist/esm/_object-to-array-50a6b9a3.js +23 -0
- package/dist/esm/asyncToGenerator-9716ae8d.js +1387 -0
- package/dist/esm/brightcove-react-player-loader.es-57a70a56.js +2226 -0
- package/dist/esm/core.get-iterator-method-e903ff31.js +547 -0
- package/dist/esm/debounce-533d9748.js +214 -0
- package/dist/esm/define-property-99e66838.js +18 -0
- package/dist/esm/defineProperty-8fa0bc8d.js +32 -0
- package/dist/esm/entities-932b50cf.js +503 -0
- package/dist/esm/eq-bdcbf886.js +76 -0
- package/dist/esm/extends-dc6a71fd.js +83 -0
- package/dist/esm/faundadb.js +636 -0
- package/dist/esm/get-3c308da4.js +918 -0
- package/dist/esm/getContentCategory-15dcc413.js +9 -0
- package/dist/esm/getKeywords.js +44 -0
- package/dist/esm/getPtceActivities.js +87 -0
- package/dist/esm/getQuery.js +26 -0
- package/dist/esm/getRelatedArticle.js +745 -0
- package/dist/esm/getRootDocGroup.js +60 -0
- package/dist/esm/getSerializers.js +58 -0
- package/dist/esm/getSeriesDetail.js +38 -0
- package/dist/esm/getTargeting-db566006.js +161 -0
- package/dist/esm/getTargeting.js +7 -0
- package/dist/esm/iconBase-ccc56b97.js +81 -0
- package/dist/esm/index-0dbff1d1.js +553 -0
- package/dist/esm/index-5cc7b406.js +1674 -0
- package/dist/esm/index-755f2cc2.js +605 -0
- package/dist/esm/index-79cfd25c.js +1569 -0
- package/dist/esm/index-c60f3bb6.js +11284 -0
- package/dist/esm/index-c7e2ac95.js +52 -0
- package/dist/esm/index.es-a6137319.js +439 -0
- package/dist/esm/index.esm-1bd8a0a8.js +18 -0
- package/dist/esm/index.esm-37268dca.js +89 -0
- package/dist/esm/index.esm-9b042655.js +10 -0
- package/dist/esm/index.esm-eb1e8e80.js +14 -0
- package/dist/esm/index.js +529 -0
- package/dist/esm/inherits-8a801a18.js +179 -0
- package/dist/esm/isSymbol-a7e9aafe.js +203 -0
- package/dist/esm/js.cookie-6874175c.js +158 -0
- package/dist/esm/keys-425c8ab0.js +23 -0
- package/dist/esm/lodash-f97fd99a.js +17193 -0
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/moment-bc12cb97.js +5667 -0
- package/dist/esm/react-social-icons-9be47857.js +609 -0
- package/dist/esm/slicedToArray-ca2c8b8d.js +92 -0
- package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
- package/dist/esm/stringify-c21932b3.js +15 -0
- package/dist/esm/style-inject.es-1f59c1d0.js +28 -0
- package/dist/esm/timeDifferenceCalc.js +37 -0
- package/dist/esm/toConsumableArray-7b1c0e23.js +71 -0
- package/dist/esm/toNumber-5aeba6e7.js +102 -0
- package/dist/esm/typeof-83d9eb10.js +378 -0
- package/dist/esm/urlFor.js +63 -0
- package/dist/esm/urlForFile-413f5ddb.js +22 -0
- package/dist/esm/ustream-api-41166338.js +104 -0
- package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
- package/dist/esm/web.dom.iterable-fdf034f5.js +48 -0
- package/package.json +115 -83
- package/dist/index.es.js +0 -12784
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -12819
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
export { default as DeckContent } from './DeckContent.js';
|
|
2
|
+
export { default as GridContent } from './GridContent.js';
|
|
3
|
+
export { default as DeckQueue } from './DeckQueue.js';
|
|
4
|
+
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
5
|
+
export { default as TaxonomyCard } from './TaxonomyCard.js';
|
|
6
|
+
export { default as RolesDeck } from './RolesDeck.js';
|
|
7
|
+
export { default as GroupDeck } from './GroupDeck.js';
|
|
8
|
+
export { default as YoutubeGroup } from './YoutubeGroup.js';
|
|
9
|
+
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
10
|
+
export { default as VideoSeriesListing } from './VideoSeriesListing.js';
|
|
11
|
+
export { default as ArticleSeriesListing } from './ArticleSeriesListing.js';
|
|
12
|
+
export { default as HorizontalArticleListing } from './HorizontalArticleListing.js';
|
|
13
|
+
export { default as MasterDeck } from './MasterDeck.js';
|
|
14
|
+
export { default as PublicationDeck } from './PublicationDeck.js';
|
|
15
|
+
export { default as IssueDeck } from './IssueDeck.js';
|
|
16
|
+
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
17
|
+
export { default as EventsDeck } from './EventsDeck.js';
|
|
18
|
+
export { default as CMEDeck } from './CMEDeck.js';
|
|
19
|
+
export { default as ExternalResources } from './ExternalResources.js';
|
|
20
|
+
export { default as AlgoliaSearch } from './AlgoliaSearch.js';
|
|
21
|
+
export { Column1 } from './Column1.js';
|
|
22
|
+
export { Column2 } from './Column2.js';
|
|
23
|
+
export { Column3 } from './Column3.js';
|
|
24
|
+
export { default as Header } from './Header.js';
|
|
25
|
+
export { default as LeftNav } from './LeftNav.js';
|
|
26
|
+
export { default as AccordionPanel } from './AccordionPanel.js';
|
|
27
|
+
export { default as SocialShare } from './SocialShare.js';
|
|
28
|
+
export { default as PageFilter } from './PageFilter.js';
|
|
29
|
+
export { default as VideoSeriesFilter } from './VideoSeriesFilter.js';
|
|
30
|
+
export { default as NavMagazine } from './NavMagazine.js';
|
|
31
|
+
export { NavNative } from './NavNative.js';
|
|
32
|
+
export { NavDvm } from './NavDvm.js';
|
|
33
|
+
export { HamMagazine } from './HamMagazine.js';
|
|
34
|
+
export { default as TemplateNormal } from './TemplateNormal.js';
|
|
35
|
+
export { default as AD } from './AD.js';
|
|
36
|
+
export { default as AD300x250 } from './AD300x250.js';
|
|
37
|
+
export { default as AD300x250x600 } from './AD300x250x600.js';
|
|
38
|
+
export { default as AD728x90 } from './AD728x90.js';
|
|
39
|
+
export { default as ADFooter } from './ADFooter.js';
|
|
40
|
+
export { default as AdSlot } from './AdSlot.js';
|
|
41
|
+
export { default as AdSlotsProvider } from './AdSlotsProvider.js';
|
|
42
|
+
export { default as ADFloatingFooter } from './ADFloatingFooter.js';
|
|
43
|
+
export { default as ADGutter } from './ADGutter.js';
|
|
44
|
+
export { default as ADWelcome } from './ADWelcome.js';
|
|
45
|
+
export { default as ADSponsoredResources } from './ADSponsoredResources.js';
|
|
46
|
+
export { default as ADWebcast } from './ADWebcast.js';
|
|
47
|
+
export { default as ADSkyscraper } from './ADSkyscraper.js';
|
|
48
|
+
export { default as Search } from './Search.js';
|
|
49
|
+
export { default as Feature } from './Feature.js';
|
|
50
|
+
import React__default from 'react';
|
|
51
|
+
import urlFor from './urlFor.js';
|
|
52
|
+
export { default as urlFor } from './urlFor.js';
|
|
53
|
+
import Row from 'react-bootstrap/Row';
|
|
54
|
+
import Col from 'react-bootstrap/Col';
|
|
55
|
+
import 'react-bootstrap/Badge';
|
|
56
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
57
|
+
export { default as Breadcrumbs } from './Breadcrumbs.js';
|
|
58
|
+
export { default as Hero } from './Hero.js';
|
|
59
|
+
export { default as AlphabeticList } from './AlphabeticList.js';
|
|
60
|
+
export { default as PdfDownload } from './PdfDownload.js';
|
|
61
|
+
export { default as RelatedTopicsDropdown } from './RelatedTopicsDropdown.js';
|
|
62
|
+
export { default as Ustream } from './Ustream.js';
|
|
63
|
+
export { default as SideFooter } from './SideFooter.js';
|
|
64
|
+
export { default as HighlightenVideo } from './HighlightenVideo.js';
|
|
65
|
+
export { default as PublicationLanding } from './PublicationLanding.js';
|
|
66
|
+
export { default as IssueLanding } from './IssueLanding.js';
|
|
67
|
+
export { default as PopUpModal } from './PopUpModal.js';
|
|
68
|
+
export { default as RelatedContent } from './RelatedContent.js';
|
|
69
|
+
export { default as SocialIcons } from './SocialIcons.js';
|
|
70
|
+
export { default as ArticleCarousel } from './ArticleCarousel.js';
|
|
71
|
+
export { default as TaxonomyDescription } from './TaxonomyDescription.js';
|
|
72
|
+
export { default as PubToc } from './PubToc.js';
|
|
73
|
+
export { default as PubSection } from './PubSection.js';
|
|
74
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-9716ae8d.js';
|
|
75
|
+
import { _ as _JSON$stringify } from './stringify-c21932b3.js';
|
|
76
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
77
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
78
|
+
import PropTypes from 'prop-types';
|
|
79
|
+
import { m as momentTimezone } from './index-79cfd25c.js';
|
|
80
|
+
import ProgressBar from 'react-bootstrap/ProgressBar';
|
|
81
|
+
export { PixelTrackingArticle, PixelTrackingLandingPages } from './PixelTracking.js';
|
|
82
|
+
export { default as ForbesHero } from './ForbesHero.js';
|
|
83
|
+
export { default as HorizontalHero } from './HorizontalHero.js';
|
|
84
|
+
export { default as OncliveHero } from './OncliveHero.js';
|
|
85
|
+
export { default as OncliveLargeHero } from './OncliveLargeHero.js';
|
|
86
|
+
export { default as VerticalHero } from './VerticalHero.js';
|
|
87
|
+
export { default as YahooHero } from './YahooHero.js';
|
|
88
|
+
export { default as GridHero } from './GridHero.js';
|
|
89
|
+
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
90
|
+
export { g as getSerializers } from './index-c60f3bb6.js';
|
|
91
|
+
export { default as Beam } from './Beam.js';
|
|
92
|
+
export { default as Segment } from './Segment.js';
|
|
93
|
+
export { default as KMTracker } from './KMTracker.js';
|
|
94
|
+
export { default as getSeriesDetail } from './getSeriesDetail.js';
|
|
95
|
+
export { default as SetCookie } from './SetCookie.js';
|
|
96
|
+
export { default as getRelatedArticle } from './getRelatedArticle.js';
|
|
97
|
+
export { default as View } from './View.js';
|
|
98
|
+
export { default as PartnerDetailListing } from './PartnerDetailListing.js';
|
|
99
|
+
export { default as VideoProgramLandingPage } from './VideoProgramLandingPage.js';
|
|
100
|
+
export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
101
|
+
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
102
|
+
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
103
|
+
export { default as Schema } from './Schema.js';
|
|
104
|
+
export { g as getTargeting } from './getTargeting-db566006.js';
|
|
105
|
+
export { default as getKeywords } from './getKeywords.js';
|
|
106
|
+
export { default as getQuery } from './getQuery.js';
|
|
107
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
108
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
109
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
110
|
+
import './_iter-detect-f089461c.js';
|
|
111
|
+
import './inherits-8a801a18.js';
|
|
112
|
+
import './_object-sap-169d6272.js';
|
|
113
|
+
import './define-property-99e66838.js';
|
|
114
|
+
import './typeof-83d9eb10.js';
|
|
115
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
116
|
+
import './_is-array-893ab020.js';
|
|
117
|
+
import './_object-pie-133f504a.js';
|
|
118
|
+
import './_library-528f1934.js';
|
|
119
|
+
import './index-5cc7b406.js';
|
|
120
|
+
import 'react-bootstrap/Container';
|
|
121
|
+
import 'react-bootstrap/Card';
|
|
122
|
+
import './moment-bc12cb97.js';
|
|
123
|
+
import 'next/router';
|
|
124
|
+
import './debounce-533d9748.js';
|
|
125
|
+
import './isSymbol-a7e9aafe.js';
|
|
126
|
+
import './toNumber-5aeba6e7.js';
|
|
127
|
+
import './index.es-a6137319.js';
|
|
128
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
129
|
+
import 'react-dom';
|
|
130
|
+
import './main-1894c974.js';
|
|
131
|
+
import './entities-932b50cf.js';
|
|
132
|
+
import './ADInfeed-f684cac9.js';
|
|
133
|
+
import './lodash-f97fd99a.js';
|
|
134
|
+
import './ADlgInfeed-8c438cee.js';
|
|
135
|
+
import './getContentCategory-15dcc413.js';
|
|
136
|
+
import './get-3c308da4.js';
|
|
137
|
+
import './eq-bdcbf886.js';
|
|
138
|
+
import './AuthorComponent-defe68b6.js';
|
|
139
|
+
import './PublicationFeature-03500094.js';
|
|
140
|
+
import 'react-bootstrap/Button';
|
|
141
|
+
import 'react-bootstrap/Media';
|
|
142
|
+
import './BlockContent-c99c9a8d.js';
|
|
143
|
+
import './index-0dbff1d1.js';
|
|
144
|
+
import './react-social-icons-9be47857.js';
|
|
145
|
+
import './index-c7e2ac95.js';
|
|
146
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
147
|
+
import 'react-bootstrap';
|
|
148
|
+
import './timeDifferenceCalc.js';
|
|
149
|
+
import './index.esm-eb1e8e80.js';
|
|
150
|
+
import './iconBase-ccc56b97.js';
|
|
151
|
+
import './defineProperty-8fa0bc8d.js';
|
|
152
|
+
import './_object-to-array-50a6b9a3.js';
|
|
153
|
+
import 'react-bootstrap/Spinner';
|
|
154
|
+
import 'react-bootstrap/Form';
|
|
155
|
+
import './js.cookie-6874175c.js';
|
|
156
|
+
import 'react-instantsearch-dom';
|
|
157
|
+
import './ConferenceBanner-8792ebd2.js';
|
|
158
|
+
import 'next/head';
|
|
159
|
+
import 'react-bootstrap/ListGroup';
|
|
160
|
+
import 'react-bootstrap/Accordion';
|
|
161
|
+
import 'react-bootstrap/AccordionToggle';
|
|
162
|
+
import 'react-share';
|
|
163
|
+
import 'react-bootstrap/Nav';
|
|
164
|
+
import 'react-bootstrap/Navbar';
|
|
165
|
+
import 'react-bootstrap/NavDropdown';
|
|
166
|
+
import './index.esm-9b042655.js';
|
|
167
|
+
import './NavFooter-e27bd93b.js';
|
|
168
|
+
import './index.esm-37268dca.js';
|
|
169
|
+
import './SocialSearchComponent-1d8a9f59.js';
|
|
170
|
+
import 'react-bootstrap/FormControl';
|
|
171
|
+
import 'react-ga';
|
|
172
|
+
import 'react-bootstrap/Carousel';
|
|
173
|
+
import 'react-bootstrap/Breadcrumb';
|
|
174
|
+
import './keys-425c8ab0.js';
|
|
175
|
+
import 'react-bootstrap/DropdownButton';
|
|
176
|
+
import 'react-bootstrap/Dropdown';
|
|
177
|
+
import './index.esm-1bd8a0a8.js';
|
|
178
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
179
|
+
import './urlForFile-413f5ddb.js';
|
|
180
|
+
import 'react-bootstrap/Modal';
|
|
181
|
+
import 'react-bootstrap/Pagination';
|
|
182
|
+
import 'react-bootstrap/Figure';
|
|
183
|
+
import 'react-bootstrap/OverlayTrigger';
|
|
184
|
+
import 'react-bootstrap/Tooltip';
|
|
185
|
+
import 'react-bootstrap/Popover';
|
|
186
|
+
import './SeriesSlider-609f9d94.js';
|
|
187
|
+
import './style-inject.es-1f59c1d0.js';
|
|
188
|
+
import 'disqus-react';
|
|
189
|
+
import 'file-saver';
|
|
190
|
+
import 'react-twitter-embed';
|
|
191
|
+
import 'react-facebook';
|
|
192
|
+
import './ImageSlider-eab2fe41.js';
|
|
193
|
+
import './VideoSeriesCard.js';
|
|
194
|
+
|
|
195
|
+
//Feature query to be used
|
|
196
|
+
// const featureQuery = `*[_type == 'feature' && is_active == true && feature_url == "/"] | order(_updatedAt asc)[0..5]{
|
|
197
|
+
// ...,
|
|
198
|
+
// feature_img { asset-> {url} }
|
|
199
|
+
// }`
|
|
200
|
+
|
|
201
|
+
//Update* Added control toggle for features. Will default to off -
|
|
202
|
+
//<Feature controls dataset={props.features} /></div>
|
|
203
|
+
|
|
204
|
+
var FeatureArticles = function FeatureArticles(props) {
|
|
205
|
+
var data = props.dataset;
|
|
206
|
+
|
|
207
|
+
var client = props.client,
|
|
208
|
+
_props$imageWidth = props.imageWidth,
|
|
209
|
+
imageWidth = _props$imageWidth === undefined ? 200 : _props$imageWidth,
|
|
210
|
+
imageHeight = props.imageHeight,
|
|
211
|
+
defaultImage = props.defaultImage,
|
|
212
|
+
_props$styles = props.styles,
|
|
213
|
+
styles = _props$styles === undefined ? null : _props$styles;
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
return React__default.createElement(
|
|
217
|
+
'div',
|
|
218
|
+
{ className: 'featured-articles-wrapper' },
|
|
219
|
+
data.map(function (article, index) {
|
|
220
|
+
return React__default.createElement(
|
|
221
|
+
React__default.Fragment,
|
|
222
|
+
null,
|
|
223
|
+
React__default.createElement(
|
|
224
|
+
Row,
|
|
225
|
+
{ className: 'article-wrap' },
|
|
226
|
+
React__default.createElement(
|
|
227
|
+
Col,
|
|
228
|
+
{ className: 'mb-4 m-fl-center deck', xs: 12, sm: 4, md: 4, lg: 3, xl: 3 },
|
|
229
|
+
React__default.createElement(
|
|
230
|
+
'a',
|
|
231
|
+
{ href: '' + article.feature_link },
|
|
232
|
+
React__default.createElement(
|
|
233
|
+
'figure',
|
|
234
|
+
{ style: { marginTop: '1rem' } },
|
|
235
|
+
React__default.createElement(
|
|
236
|
+
LazyLoad,
|
|
237
|
+
{ height: imageHeight },
|
|
238
|
+
React__default.createElement('img', { style: { width: '100%', borderRadius: '10px' }, src: article.feature_img ? urlFor({ client: client, source: article.feature_img, imageWidth: imageWidth, imageHeight: imageHeight }) : defaultImage })
|
|
239
|
+
)
|
|
240
|
+
)
|
|
241
|
+
)
|
|
242
|
+
),
|
|
243
|
+
React__default.createElement(
|
|
244
|
+
Col,
|
|
245
|
+
{ className: 'article-wrap-body', xs: 12, sm: 8, md: 8, lg: 9, xl: 9, style: { paddingTop: '10px' } },
|
|
246
|
+
React__default.createElement(
|
|
247
|
+
'a',
|
|
248
|
+
{ href: '' + article.feature_link },
|
|
249
|
+
React__default.createElement(
|
|
250
|
+
'h4',
|
|
251
|
+
{ className: 'mb-1', style: { fontWeight: '600', fontSize: '22px' } },
|
|
252
|
+
article.feature_title
|
|
253
|
+
),
|
|
254
|
+
React__default.createElement(
|
|
255
|
+
'p',
|
|
256
|
+
{ style: { fontSize: '1.1em' } },
|
|
257
|
+
article.feature_body
|
|
258
|
+
)
|
|
259
|
+
)
|
|
260
|
+
),
|
|
261
|
+
index !== data.length - 1 && React__default.createElement('hr', null)
|
|
262
|
+
),
|
|
263
|
+
React__default.createElement(
|
|
264
|
+
'style',
|
|
265
|
+
{ jsx: 'true' },
|
|
266
|
+
'\n .featured-articles-wrapper {\n background: ' + props.backgroundColor + ';\n padding: 1rem;\n border-radius: 10px;\n box-shadow: #0000002b 1px 3px 3px 3px;\n }\n hr {\n width: 100%;\n height: 1px;\n margin-left: 15px;\n margin-right: 15px;\n }\n ' + styles + '\n '
|
|
267
|
+
)
|
|
268
|
+
);
|
|
269
|
+
})
|
|
270
|
+
);
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
var _this = undefined;
|
|
274
|
+
|
|
275
|
+
var Survey = function Survey(_ref) {
|
|
276
|
+
var surveyData = _ref.surveyData,
|
|
277
|
+
handleEndSurvey = _ref.handleEndSurvey,
|
|
278
|
+
eventData = _ref.eventData,
|
|
279
|
+
takenQuestions = _ref.takenQuestions,
|
|
280
|
+
showLoading = _ref.showLoading,
|
|
281
|
+
colors = _ref.colors;
|
|
282
|
+
|
|
283
|
+
var _React$useState = React__default.useState('begin'),
|
|
284
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
285
|
+
progressState = _React$useState2[0],
|
|
286
|
+
setProgressState = _React$useState2[1];
|
|
287
|
+
|
|
288
|
+
var _React$useState3 = React__default.useState(0),
|
|
289
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
290
|
+
questionIndex = _React$useState4[0],
|
|
291
|
+
setQuestionIndex = _React$useState4[1];
|
|
292
|
+
|
|
293
|
+
var _React$useState5 = React__default.useState(100 / (surveyData.questions.length + 2)),
|
|
294
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
295
|
+
progressBarState = _React$useState6[0],
|
|
296
|
+
setProgressBarState = _React$useState6[1];
|
|
297
|
+
|
|
298
|
+
var _React$useState7 = React__default.useState(false),
|
|
299
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
300
|
+
buttonActive = _React$useState8[0],
|
|
301
|
+
setButtonActive = _React$useState8[1];
|
|
302
|
+
|
|
303
|
+
var _React$useState9 = React__default.useState(eventData),
|
|
304
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
305
|
+
data = _React$useState10[0],
|
|
306
|
+
setData = _React$useState10[1];
|
|
307
|
+
|
|
308
|
+
var handleAnswer = function handleAnswer(a, qi) {
|
|
309
|
+
setData(_extends({}, data, {
|
|
310
|
+
type: surveyData.type,
|
|
311
|
+
time: momentTimezone().utc().format(),
|
|
312
|
+
question: surveyData.questions[qi].question,
|
|
313
|
+
answer: a
|
|
314
|
+
}));
|
|
315
|
+
setButtonActive(true);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
var handleSurvey = function () {
|
|
319
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(i) {
|
|
320
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
321
|
+
while (1) {
|
|
322
|
+
switch (_context.prev = _context.next) {
|
|
323
|
+
case 0:
|
|
324
|
+
if (i === 0) {
|
|
325
|
+
updateStates(i + takenQuestions.length);
|
|
326
|
+
} else {
|
|
327
|
+
// Send question data to the api
|
|
328
|
+
handleAnswer(_JSON$stringify(data));
|
|
329
|
+
// Set states for the next question
|
|
330
|
+
updateStates(i);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
case 1:
|
|
334
|
+
case 'end':
|
|
335
|
+
return _context.stop();
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}, _callee, _this);
|
|
339
|
+
}));
|
|
340
|
+
|
|
341
|
+
return function handleSurvey(_x) {
|
|
342
|
+
return _ref2.apply(this, arguments);
|
|
343
|
+
};
|
|
344
|
+
}();
|
|
345
|
+
|
|
346
|
+
var updateStates = function updateStates(i) {
|
|
347
|
+
if (i === surveyData.questions.length) {
|
|
348
|
+
setProgressState('complete');
|
|
349
|
+
setProgressBarState(100);
|
|
350
|
+
} else {
|
|
351
|
+
setProgressState('question ' + (i + 1) + '/' + surveyData.questions.length);
|
|
352
|
+
setProgressBarState(100 / (surveyData.questions.length + 2) * (i + 2));
|
|
353
|
+
setQuestionIndex(i);
|
|
354
|
+
setButtonActive(false);
|
|
355
|
+
setData(eventData);
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
React__default.useEffect(function () {
|
|
360
|
+
if (takenQuestions.length !== 0) updateStates(takenQuestions.length);
|
|
361
|
+
}, [takenQuestions]);
|
|
362
|
+
|
|
363
|
+
return React__default.createElement(
|
|
364
|
+
'div',
|
|
365
|
+
null,
|
|
366
|
+
React__default.createElement(
|
|
367
|
+
'style',
|
|
368
|
+
{ jsx: true },
|
|
369
|
+
'\n .font-family-georgia {\n font-family: Georgia, \'Times New Roman\', Times, serif;\n }\n .font-family-markw1g {\n font-family: \'MarkW1G\';\n }\n .survey-header {\n background-color: ' + colors.secondary + ';\n padding-left: 24px;\n padding-right: 24px;\n min-height: 50px;\n }\n .survey-title {\n color: ' + colors.headerText + ';\n font-size: 20px;\n text-align: center;\n font-weight: 600;\n }\n .survey-state {\n color: ' + colors.primary + ';\n text-align: center;\n font-size: 15px;\n font-weight: 600;\n }\n .survey-content {\n min-height: 322px;\n background-color: ' + colors.primary + ';\n padding: 25px 28px 20px;\n }\n .survey-button {\n box-shadow: 0px 3px 6px #00000029;\n background-color: ' + colors.button + ';\n color: ' + colors.secondary + ';\n font-size: 14px;\n line-height: 20px;\n border-radius: 0;\n }\n .survey-option {\n background-color: ' + colors.answer + ';\n padding: 20px;\n height: 100%;\n }\n .big-text {\n font-size: 30px;\n line-height: 30px;\n text-align: center;\n margin-bottom: 0;\n }\n .normal-text {\n font-size: 18px;\n line-height: 22px;\n text-align: center;\n margin-bottom: 0;\n }\n .small-text {\n font-size: 12px;\n line-height: 14px;\n text-align: center;\n margin-bottom: 0;\n }\n '
|
|
370
|
+
),
|
|
371
|
+
showLoading ? React__default.createElement(
|
|
372
|
+
'div',
|
|
373
|
+
{ className: 'd-flex align-items-center justify-content-center' },
|
|
374
|
+
React__default.createElement(
|
|
375
|
+
'h2',
|
|
376
|
+
{ className: 'font-family-georgia' },
|
|
377
|
+
'Loading...'
|
|
378
|
+
)
|
|
379
|
+
) : React__default.createElement(
|
|
380
|
+
React__default.Fragment,
|
|
381
|
+
null,
|
|
382
|
+
React__default.createElement(
|
|
383
|
+
'div',
|
|
384
|
+
{ className: 'survey-header d-flex flex-column flex-md-row align-items-center justify-content-between' },
|
|
385
|
+
React__default.createElement(
|
|
386
|
+
'p',
|
|
387
|
+
{ className: 'survey-title text-uppercase font-family-markw1g' },
|
|
388
|
+
surveyData.title
|
|
389
|
+
),
|
|
390
|
+
React__default.createElement(
|
|
391
|
+
'p',
|
|
392
|
+
{ className: 'survey-state text-uppercase font-family-markw1g' },
|
|
393
|
+
progressState
|
|
394
|
+
)
|
|
395
|
+
),
|
|
396
|
+
React__default.createElement(ProgressBar, { now: progressBarState }),
|
|
397
|
+
React__default.createElement(
|
|
398
|
+
'div',
|
|
399
|
+
{ className: 'survey-content' },
|
|
400
|
+
progressState === 'begin' && takenQuestions.length === 0 && React__default.createElement(
|
|
401
|
+
'div',
|
|
402
|
+
{ className: 'd-flex align-items-center justify-content-center flex-column', style: { minHeight: 322 } },
|
|
403
|
+
React__default.createElement(
|
|
404
|
+
'p',
|
|
405
|
+
{ className: 'font-family-georgia big-text', style: { color: colors.contentText } },
|
|
406
|
+
surveyData.beforeSurveyText
|
|
407
|
+
),
|
|
408
|
+
surveyData.beforeSurveyButtonLabel && React__default.createElement(
|
|
409
|
+
'button',
|
|
410
|
+
{ onClick: function onClick() {
|
|
411
|
+
return handleSurvey(0);
|
|
412
|
+
}, className: 'btn survey-button font-family-markw1g mt-3' },
|
|
413
|
+
surveyData.beforeSurveyButtonLabel
|
|
414
|
+
)
|
|
415
|
+
),
|
|
416
|
+
progressState !== 'begin' && progressState !== 'complete' && React__default.createElement(
|
|
417
|
+
React__default.Fragment,
|
|
418
|
+
null,
|
|
419
|
+
React__default.createElement(
|
|
420
|
+
'p',
|
|
421
|
+
{ className: 'font-family-georgia normal-text', style: { color: colors.contentText } },
|
|
422
|
+
surveyData.questions[questionIndex].question
|
|
423
|
+
),
|
|
424
|
+
React__default.createElement(
|
|
425
|
+
Row,
|
|
426
|
+
{ className: 'my-4' },
|
|
427
|
+
surveyData.questions[questionIndex].answers.map(function (a, i) {
|
|
428
|
+
return React__default.createElement(
|
|
429
|
+
Col,
|
|
430
|
+
{ sm: 12, md: 6, key: i, className: 'my-2' },
|
|
431
|
+
React__default.createElement(
|
|
432
|
+
'div',
|
|
433
|
+
{
|
|
434
|
+
className: 'd-flex align-items-center justify-content-center survey-option',
|
|
435
|
+
onClick: function onClick() {
|
|
436
|
+
return handleAnswer(a, questionIndex);
|
|
437
|
+
},
|
|
438
|
+
style: data.answer && data.answer === a ? { background: colors.selectedAnswer } : null },
|
|
439
|
+
React__default.createElement(
|
|
440
|
+
'p',
|
|
441
|
+
{ className: 'font-family-georgia small-text', style: { color: colors.contentText } },
|
|
442
|
+
a
|
|
443
|
+
)
|
|
444
|
+
)
|
|
445
|
+
);
|
|
446
|
+
})
|
|
447
|
+
),
|
|
448
|
+
React__default.createElement(
|
|
449
|
+
'div',
|
|
450
|
+
{ className: 'd-flex justify-content-end' },
|
|
451
|
+
React__default.createElement(
|
|
452
|
+
'button',
|
|
453
|
+
{
|
|
454
|
+
onClick: buttonActive ? function () {
|
|
455
|
+
return handleSurvey(questionIndex + 1);
|
|
456
|
+
} : function () {},
|
|
457
|
+
className: 'btn survey-button font-family-markw1g',
|
|
458
|
+
style: !buttonActive ? { opacity: 0.5 } : null,
|
|
459
|
+
disabled: !buttonActive },
|
|
460
|
+
'next question'
|
|
461
|
+
)
|
|
462
|
+
)
|
|
463
|
+
),
|
|
464
|
+
progressState === 'complete' && React__default.createElement(
|
|
465
|
+
'div',
|
|
466
|
+
{ className: 'd-flex align-items-center justify-content-center flex-column', style: { minHeight: 322 } },
|
|
467
|
+
React__default.createElement(
|
|
468
|
+
'p',
|
|
469
|
+
{ className: 'font-family-georgia big-text', style: { color: colors.contentText } },
|
|
470
|
+
surveyData.afterSurveyText
|
|
471
|
+
),
|
|
472
|
+
surveyData.afterSurveyButtonLabel && React__default.createElement(
|
|
473
|
+
'button',
|
|
474
|
+
{ onClick: handleEndSurvey, className: 'btn survey-button font-family-markw1g mt-3' },
|
|
475
|
+
surveyData.afterSurveyButtonLabel
|
|
476
|
+
)
|
|
477
|
+
)
|
|
478
|
+
)
|
|
479
|
+
)
|
|
480
|
+
);
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
Survey.propTypes = {
|
|
484
|
+
showLoading: PropTypes.bool.isRequired,
|
|
485
|
+
colors: PropTypes.shape({
|
|
486
|
+
primary: PropTypes.string,
|
|
487
|
+
secondary: PropTypes.string,
|
|
488
|
+
contentText: PropTypes.string,
|
|
489
|
+
headerText: PropTypes.string,
|
|
490
|
+
button: PropTypes.string,
|
|
491
|
+
answer: PropTypes.string,
|
|
492
|
+
selectedAnswer: PropTypes.string
|
|
493
|
+
}).isRequired,
|
|
494
|
+
eventData: PropTypes.shape({
|
|
495
|
+
url: PropTypes.string,
|
|
496
|
+
email: PropTypes.string
|
|
497
|
+
}).isRequired,
|
|
498
|
+
surveyData: PropTypes.shape({
|
|
499
|
+
type: PropTypes.oneOf(['pre', 'post']),
|
|
500
|
+
title: PropTypes.string,
|
|
501
|
+
beforeSurveyText: PropTypes.string,
|
|
502
|
+
beforeSurveyButtonLabel: PropTypes.string,
|
|
503
|
+
afterSurveyText: PropTypes.string,
|
|
504
|
+
afterSurveyButtonLabel: PropTypes.string,
|
|
505
|
+
questions: PropTypes.arrayOf(PropTypes.shape({
|
|
506
|
+
question: PropTypes.string,
|
|
507
|
+
answers: PropTypes.arrayOf(PropTypes.string)
|
|
508
|
+
}))
|
|
509
|
+
}).isRequired,
|
|
510
|
+
takenQuestions: PropTypes.arrayOf(PropTypes.string),
|
|
511
|
+
handleAnswer: PropTypes.func.isRequired,
|
|
512
|
+
handleEndSurvey: PropTypes.func.isRequired
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
Survey.defaultProps = {
|
|
516
|
+
showLoading: false,
|
|
517
|
+
colors: {
|
|
518
|
+
primary: '#6ED4C8',
|
|
519
|
+
secondary: '#26292D',
|
|
520
|
+
contentText: '#FF009D',
|
|
521
|
+
headerText: '#FFF',
|
|
522
|
+
button: '#EBE9AC',
|
|
523
|
+
answer: '#FFF',
|
|
524
|
+
selectedAnswer: '#EBE9AC'
|
|
525
|
+
},
|
|
526
|
+
takenQuestions: []
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
export { FeatureArticles, Survey };
|