import { _ as _extends } from './extends-2f4448b8.js';
import React__default from 'react';
import QueueDeckExpanded from './QueueDeckExpanded.js';
import Breadcrumbs from './Breadcrumbs.js';
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
import { g as getSerializers } from './index-cf4b8124.js';
import { PixelTrackingLandingPages } from './PixelTracking.js';
import './_commonjsHelpers-0c4b6f40.js';
import './core.get-iterator-method-95db387d.js';
import './slicedToArray-72ed566b.js';
import './web.dom.iterable-3fffc027.js';
import './toConsumableArray-e6f28e5c.js';
import './_iter-detect-2f89237f.js';
import 'react-bootstrap';
import './urlFor.js';
import './index-3f5c03b2.js';
import './index.es-a6137319.js';
import './moment-bc12cb97.js';
import './visibility-sensor-72fd8f8b.js';
import 'react-dom';
import './index-5cc7b406.js';
import 'prop-types';
import 'next/router';
import './index-755f2cc2.js';
import './main-754d4992.js';
import './entities-6d9154b4.js';
import './ADInfeed-ca4bb13c.js';
import 'react-bootstrap/Card';
import './AdSlot.js';
import './debounce-533d9748.js';
import './isSymbol-a7e9aafe.js';
import './toNumber-5aeba6e7.js';
import './Beam.js';
import './stringify-1e2a5946.js';
import './asyncToGenerator-1ebeb135.js';
import './_library-528f1934.js';
import './_set-species-7d3317b7.js';
import './Segment.js';
import './AuthorComponent-d9653ae5.js';
import './lodash-f97fd99a.js';
import './ADlgInfeed-142ddf4d.js';
import './getContentCategory-15dcc413.js';
import './timeDifferenceCalc.js';
import 'react-bootstrap/Breadcrumb';
import './index-c7e2ac95.js';
import './urlForFile-2e523b67.js';
import './typeof-3ab7d3b6.js';
import './_is-array-68c79b29.js';
import './brightcove-react-player-loader.es-57a70a56.js';
import './_object-to-array-9dfdfb29.js';
import './keys-185288f4.js';
import './_object-sap-14bd8e96.js';
import 'react-bootstrap/Modal';
import 'react-bootstrap/Button';
import 'react-bootstrap/Form';
import 'react-ga';
import './GroupDeck.js';
import './smoothscroll-fa4e3f8c.js';
import './SocialShare.js';
import 'next/head';
import 'react-share';
import 'react-bootstrap/Pagination';
import 'react-bootstrap/Row';
import 'react-bootstrap/Col';
import './inherits-96c84cbd.js';
import './define-property-433c51d3.js';
import './index.esm-eb1e8e80.js';
import './iconBase-ccc56b97.js';
import 'react-bootstrap/Figure';
import 'react-bootstrap/OverlayTrigger';
import 'react-bootstrap/Tooltip';
import 'react-bootstrap/Popover';
import './checkSisterSite-a7218fda.js';

/* usage
import Settings, { Ads } from '../../../../settings'
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
import client from '../../../../client'
import moment from 'moment'
import Shell from '../../../../components/2.0/Shell'
import { pageview } from '../../../../utilities/gtag'

const Issue = (props) => {
  const { pubIssue, cache } = props
  const targeting = {
    content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
    document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
  }
  return (
    <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
      <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
    </Shell>
  )
}

Issue.getInitialProps = async (ctx) => {
  const { query } = ctx
  const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
  )
  return { pubIssue }
}

export default Issue
*/

var IssueLanding = function IssueLanding(props) {
  var pubIssue = props.pubIssue,
      client = props.client,
      settings = props.settings,
      pageview = props.pageview,
      rightItems = props.rightItems,
      _props$showCategory = props.showCategory,
      showCategory = _props$showCategory === undefined ? true : _props$showCategory,
      _props$showPublished = props.showPublished,
      showPublished = _props$showPublished === undefined ? true : _props$showPublished,
      _props$seoPaginate = props.seoPaginate,
      seoPaginate = _props$seoPaginate === undefined ? true : _props$seoPaginate,
      _props$autoScroll = props.autoScroll,
      autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll,
      _props$showAuthor = props.showAuthor,
      showAuthor = _props$showAuthor === undefined ? false : _props$showAuthor,
      _props$showPubInfo = props.showPubInfo,
      showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo,
      _props$imageHeight = props.imageHeight,
      imageHeight = _props$imageHeight === undefined ? 270 : _props$imageHeight,
      _props$imageWidth = props.imageWidth,
      imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth,
      _props$nextPagePostsC = props.nextPagePostsCount,
      nextPagePostsCount = _props$nextPagePostsC === undefined ? 1 : _props$nextPagePostsC;

  return React__default.createElement(
    'div',
    { id: 'issueLanding' },
    React__default.createElement(Breadcrumbs, null),
    pubIssue.issue.source && React__default.createElement(
      'p',
      { className: 'badge badge-primary' },
      pubIssue.issue.source
    ),
    pubIssue.issue.description && React__default.createElement(
      React__default.Fragment,
      null,
      React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: pubIssue.issue.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
      React__default.createElement('div', { style: { clear: 'both' } })
    ),
    pubIssue.issue.pixelTrackingCode && React__default.createElement(PixelTrackingLandingPages, { pixelTracking: pubIssue.issue.pixelTrackingCode }),
    React__default.createElement(QueueDeckExpanded, {
      client: client,
      mapping: settings.mapping,
      dataRecord: pubIssue.issue.articles,
      seoPaginate: seoPaginate,
      pageview: pageview,
      showAuthor: showAuthor,
      autoScroll: autoScroll,
      defaultImage: settings.logo,
      showPublished: showPublished,
      showCategory: showCategory,
      imageHeight: imageHeight,
      imageWidth: imageWidth,
      rightItems: rightItems,
      showPubInfo: showPubInfo,
      columns: 'rotate',
      variant: 'top',
      contentCategoryMapping: settings.contentCategoryMapping ? settings.contentCategoryMapping : [],
      nextPagePostsCount: nextPagePostsCount
    })
  );
};

export { IssueLanding as default };
