'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var DeckContent = require('./DeckContent.js');
var GridContent = require('./GridContent.js');
var DeckQueue = require('./DeckQueue.js');
var ThumbnailCard = require('./ThumbnailCard.js');
var TaxonomyCard = require('./TaxonomyCard.js');
var RolesDeck = require('./RolesDeck.js');
var GroupDeck = require('./GroupDeck.js');
var YoutubeGroup = require('./YoutubeGroup.js');
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
var VideoSeriesListing = require('./VideoSeriesListing.js');
var ArticleSeriesListing = require('./ArticleSeriesListing.js');
var HorizontalArticleListing = require('./HorizontalArticleListing.js');
var MasterDeck = require('./MasterDeck.js');
var PublicationDeck = require('./PublicationDeck.js');
var IssueDeck = require('./IssueDeck.js');
var IssueContentDeck = require('./IssueContentDeck.js');
var EventsDeck = require('./EventsDeck.js');
var CMEDeck = require('./CMEDeck.js');
var ExternalResources = require('./ExternalResources.js');
var AlgoliaSearch = require('./AlgoliaSearch.js');
var Column1 = require('./Column1.js');
var Column2 = require('./Column2.js');
var Column3 = require('./Column3.js');
var Header = require('./Header.js');
var LeftNav = require('./LeftNav.js');
var AccordionPanel = require('./AccordionPanel.js');
var SocialShare = require('./SocialShare.js');
var PageFilter = require('./PageFilter.js');
var VideoSeriesFilter = require('./VideoSeriesFilter.js');
var NavMagazine = require('./NavMagazine.js');
var NavNative = require('./NavNative.js');
var NavNormal = require('./NavNormal.js');
var NavDvm = require('./NavDvm.js');
var HamMagazine = require('./HamMagazine.js');
var TemplateNormal = require('./TemplateNormal.js');
var AD = require('./AD.js');
var AD300x250 = require('./AD300x250.js');
var AD300x250x600 = require('./AD300x250x600.js');
var AD728x90 = require('./AD728x90.js');
var ADFooter = require('./ADFooter.js');
var AdSlot = require('./AdSlot.js');
var AdSlotsProvider = require('./AdSlotsProvider.js');
var ADFloatingFooter = require('./ADFloatingFooter.js');
var ADGutter = require('./ADGutter.js');
var ADWelcome = require('./ADWelcome.js');
var ADSponsoredResources = require('./ADSponsoredResources.js');
var ADWebcast = require('./ADWebcast.js');
var ADSkyscraper = require('./ADSkyscraper.js');
var Search = require('./Search.js');
var Feature = require('./Feature.js');
var React = require('react');
var urlFor = require('./urlFor.js');
var Row = require('react-bootstrap/Row');
var Col = require('react-bootstrap/Col');
require('react-bootstrap/Badge');
var index = require('./index-eadd5035.js');
var Breadcrumbs = require('./Breadcrumbs.js');
var Hero = require('./Hero.js');
var AlphabeticList = require('./AlphabeticList.js');
var PdfDownload = require('./PdfDownload.js');
var RelatedTopicsDropdown = require('./RelatedTopicsDropdown.js');
var Ustream = require('./Ustream.js');
var SideFooter = require('./SideFooter.js');
var HighlightenVideo = require('./HighlightenVideo.js');
var PublicationLanding = require('./PublicationLanding.js');
var IssueLanding = require('./IssueLanding.js');
var PopUpModal = require('./PopUpModal.js');
var RelatedContent = require('./RelatedContent.js');
var SocialIcons = require('./SocialIcons.js');
var ArticleCarousel = require('./ArticleCarousel.js');
var TaxonomyDescription = require('./TaxonomyDescription.js');
var PubToc = require('./PubToc.js');
var PubSection = require('./PubSection.js');
var ForbesHero = require('./ForbesHero.js');
var HorizontalHero = require('./HorizontalHero.js');
var OncliveHero = require('./OncliveHero.js');
var OncliveLargeHero = require('./OncliveLargeHero.js');
var VerticalHero = require('./VerticalHero.js');
var YahooHero = require('./YahooHero.js');
var GridHero = require('./GridHero.js');
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
var getSerializers = require('./index-6741b269.js');
var Beam = require('./Beam.js');
var Segment = require('./Segment.js');
var KMTracker = require('./KMTracker.js');
var getSeriesDetail = require('./getSeriesDetail.js');
var SetCookie = require('./SetCookie.js');
var getRelatedArticle = require('./getRelatedArticle.js');
var Auth = require('./Auth.js');
var View = require('./View.js');
var PartnerDetailListing = require('./PartnerDetailListing.js');
var VideoProgramLandingPage = require('./VideoProgramLandingPage.js');
var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
var getTargeting = require('./getTargeting-be6168ad.js');
var getKeywords = require('./getKeywords.js');
var getQuery = require('./getQuery.js');
require('./toConsumableArray-ddb70795.js');
require('./_commonjsHelpers-06173234.js');
require('./es6.string.iterator-c2573ffd.js');
require('./_to-object-6de10e57.js');
require('./_iter-detect-55a5657a.js');
require('./core.get-iterator-method-f474eacc.js');
require('./extends-29bdbc6d.js');
require('./_object-pie-083f2dd6.js');
require('./inherits-c2065b95.js');
require('./_object-sap-a175b4a9.js');
require('./define-property-c88be878.js');
require('./typeof-88a668c5.js');
require('./web.dom.iterable-46657b5c.js');
require('./_is-array-6128bd56.js');
require('./_library-dd23b178.js');
require('./index-fc2f1ca2.js');
require('./events-1b438fe7.js');
require('prop-types');
require('react-bootstrap/Container');
require('react-bootstrap/Card');
require('./moment-aca40de1.js');
require('next/router');
require('./debounce-d4a2369b.js');
require('./isSymbol-03abbdf0.js');
require('./toNumber-5e1fac58.js');
require('./index.es-f3e47207.js');
require('./visibility-sensor-eb2c5b69.js');
require('react-dom');
require('./main-025fdc78.js');
require('./entities-3f9d0f2f.js');
require('./ADInfeed-1ac86856.js');
require('./slicedToArray-5d1bc3b3.js');
require('./lodash-f0783643.js');
require('./ADlgInfeed-2ee46b09.js');
require('./getContentCategory-f38a4c00.js');
require('./get-5839e5b5.js');
require('./eq-5fc26c07.js');
require('./AuthorComponent-c21aac7f.js');
require('react-bootstrap/Media');
require('./BlockContent-36e54d77.js');
require('./index-efca863c.js');
require('./react-social-icons-af932527.js');
require('./index-187c967e.js');
require('./smoothscroll-99df7f93.js');
require('react-bootstrap');
require('./timeDifferenceCalc.js');
require('./index.esm-974f47d9.js');
require('./iconBase-68959171.js');
require('./asyncToGenerator-58c289d9.js');
require('react-bootstrap/Button');
require('./defineProperty-0cb76d99.js');
require('./_object-to-array-8fe5a54f.js');
require('./stringify-c9ac1214.js');
require('react-bootstrap/Spinner');
require('react-bootstrap/Form');
require('./index-f86bb269.js');
require('./js.cookie-a511c430.js');
require('./index-8041a4eb.js');
require('./ConferenceBanner-6c9e718a.js');
require('next/head');
require('react-bootstrap/ListGroup');
require('react-bootstrap/Accordion');
require('react-bootstrap/AccordionToggle');
require('react-share');
require('react-bootstrap/Nav');
require('react-bootstrap/Navbar');
require('react-bootstrap/NavDropdown');
require('./index.esm-3b9b8952.js');
require('./NavFooter-3dcd99a8.js');
require('./index.esm-8123cf40.js');
require('./SocialSearchComponent-ecb4f972.js');
require('react-bootstrap/FormControl');
require('react-ga');
require('react-bootstrap/Carousel');
require('react-bootstrap/Breadcrumb');
require('./keys-7f2c2108.js');
require('react-bootstrap/DropdownButton');
require('react-bootstrap/Dropdown');
require('./index.esm-05850a2f.js');
require('./brightcove-react-player-loader.es-a195642e.js');
require('react-bootstrap/Modal');
require('./util-6f784d85.js');
require('react-bootstrap/Pagination');
require('react-bootstrap/Figure');
require('./index-bd6c9f56.js');
require('swr');
require('passport-local');
require('mysql');
require('./md5-e1ca5797.js');
require('./SeriesSlider-4862d8c4.js');
require('./style-inject.es-dcee06b6.js');
require('disqus-react');
require('react-twitter-embed');
require('./VideoSeriesCard.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);

//Feature query to be used
// const featureQuery = `*[_type == 'feature' && is_active == true && feature_url == "/"] | order(_updatedAt asc)[0..5]{
//     ...,
//      feature_img { asset-> {url} }
//    }`

//Update*  Added control toggle for features.  Will default to off -
//<Feature controls dataset={props.features} /></div>

var FeatureArticles = function FeatureArticles(props) {
  var data = props.dataset;

  var client = props.client,
      _props$imageWidth = props.imageWidth,
      imageWidth = _props$imageWidth === undefined ? 200 : _props$imageWidth,
      imageHeight = props.imageHeight,
      defaultImage = props.defaultImage,
      _props$styles = props.styles,
      styles = _props$styles === undefined ? null : _props$styles;


  return React__default['default'].createElement(
    'div',
    { className: 'featured-articles-wrapper' },
    data.map(function (article, index$1) {
      return React__default['default'].createElement(
        React__default['default'].Fragment,
        null,
        React__default['default'].createElement(
          Row__default['default'],
          { className: 'article-wrap' },
          React__default['default'].createElement(
            Col__default['default'],
            { className: 'mb-4 m-fl-center deck', xs: 12, sm: 4, md: 4, lg: 3, xl: 3 },
            React__default['default'].createElement(
              'a',
              { href: '' + article.feature_link },
              React__default['default'].createElement(
                'figure',
                { style: { marginTop: '1rem' } },
                React__default['default'].createElement(
                  index.LazyLoad,
                  { height: imageHeight },
                  React__default['default'].createElement('img', { style: { width: '100%', borderRadius: '10px' }, src: article.feature_img ? urlFor({ client: client, source: article.feature_img, imageWidth: imageWidth, imageHeight: imageHeight }) : defaultImage })
                )
              )
            )
          ),
          React__default['default'].createElement(
            Col__default['default'],
            { className: 'article-wrap-body', xs: 12, sm: 8, md: 8, lg: 9, xl: 9, style: { paddingTop: '10px' } },
            React__default['default'].createElement(
              'a',
              { href: '' + article.feature_link },
              React__default['default'].createElement(
                'h4',
                { className: 'mb-1', style: { fontWeight: '600', fontSize: '22px' } },
                article.feature_title
              ),
              React__default['default'].createElement(
                'p',
                { style: { fontSize: '1.1em' } },
                article.feature_body
              )
            )
          ),
          index$1 !== data.length - 1 && React__default['default'].createElement('hr', null)
        ),
        React__default['default'].createElement(
          'style',
          { jsx: 'true' },
          '\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            '
        )
      );
    })
  );
};

exports.DeckContent = DeckContent;
exports.GridContent = GridContent;
exports.DeckQueue = DeckQueue;
exports.ThumbnailCard = ThumbnailCard;
exports.TaxonomyCard = TaxonomyCard;
exports.RolesDeck = RolesDeck;
exports.GroupDeck = GroupDeck;
exports.YoutubeGroup = YoutubeGroup;
exports.QueueDeckExpanded = QueueDeckExpanded;
exports.VideoSeriesListing = VideoSeriesListing;
exports.ArticleSeriesListing = ArticleSeriesListing;
exports.HorizontalArticleListing = HorizontalArticleListing;
exports.MasterDeck = MasterDeck;
exports.PublicationDeck = PublicationDeck;
exports.IssueDeck = IssueDeck;
exports.IssueContentDeck = IssueContentDeck;
exports.EventsDeck = EventsDeck;
exports.CMEDeck = CMEDeck;
exports.ExternalResources = ExternalResources;
exports.AlgoliaSearch = AlgoliaSearch;
exports.Column1 = Column1.Column1;
exports.Column2 = Column2.Column2;
exports.Column3 = Column3.Column3;
exports.Header = Header['default'];
exports.LeftNav = LeftNav['default'];
exports.AccordionPanel = AccordionPanel;
exports.SocialShare = SocialShare;
exports.PageFilter = PageFilter;
exports.VideoSeriesFilter = VideoSeriesFilter;
exports.NavMagazine = NavMagazine['default'];
exports.NavNative = NavNative.NavNative;
exports.NavNormal = NavNormal.NavNormal;
exports.NavDvm = NavDvm.NavDvm;
exports.HamMagazine = HamMagazine.HamMagazine;
exports.TemplateNormal = TemplateNormal;
exports.AD = AD;
exports.AD300x250 = AD300x250;
exports.AD300x250x600 = AD300x250x600;
exports.AD728x90 = AD728x90;
exports.ADFooter = ADFooter;
exports.AdSlot = AdSlot;
exports.AdSlotsProvider = AdSlotsProvider;
exports.ADFloatingFooter = ADFloatingFooter;
exports.ADGutter = ADGutter;
exports.ADWelcome = ADWelcome;
exports.ADSponsoredResources = ADSponsoredResources;
exports.ADWebcast = ADWebcast;
exports.ADSkyscraper = ADSkyscraper;
exports.Search = Search;
exports.Feature = Feature;
exports.urlFor = urlFor;
exports.Breadcrumbs = Breadcrumbs;
exports.Hero = Hero;
exports.AlphabeticList = AlphabeticList;
exports.PdfDownload = PdfDownload;
exports.RelatedTopicsDropdown = RelatedTopicsDropdown;
exports.Ustream = Ustream;
exports.SideFooter = SideFooter;
exports.HighlightenVideo = HighlightenVideo;
exports.PublicationLanding = PublicationLanding;
exports.IssueLanding = IssueLanding;
exports.PopUpModal = PopUpModal;
exports.RelatedContent = RelatedContent;
exports.SocialIcons = SocialIcons;
exports.ArticleCarousel = ArticleCarousel;
exports.TaxonomyDescription = TaxonomyDescription;
exports.PubToc = PubToc;
exports.PubSection = PubSection;
exports.ForbesHero = ForbesHero;
exports.HorizontalHero = HorizontalHero;
exports.OncliveHero = OncliveHero;
exports.OncliveLargeHero = OncliveLargeHero;
exports.VerticalHero = VerticalHero;
exports.YahooHero = YahooHero;
exports.GridHero = GridHero;
exports.ConferenceArticleCard = ConferenceArticleCard;
exports.getSerializers = getSerializers.getSerializers;
exports.Beam = Beam;
exports.Segment = Segment;
exports.KMTracker = KMTracker;
exports.getSeriesDetail = getSeriesDetail;
exports.SetCookie = SetCookie;
exports.getRelatedArticle = getRelatedArticle;
exports.Auth = Auth['default'];
exports.View = View;
exports.PartnerDetailListing = PartnerDetailListing;
exports.VideoProgramLandingPage = VideoProgramLandingPage;
exports.VideoSeriesLandingPage = VideoSeriesLandingPage;
exports.ArticleProgramLandingPage = ArticleProgramLandingPage;
exports.ArticleSeriesLandingPage = ArticleSeriesLandingPage;
exports.getTargeting = getTargeting.getTargeting;
exports.getKeywords = getKeywords;
exports.getQuery = getQuery;
exports.FeatureArticles = FeatureArticles;
