import './_commonjsHelpers-0c4b6f40.js';
import './core.get-iterator-method-86d4db69.js';
import './_library-528f1934.js';
import './_iter-detect-130ee549.js';
import './toConsumableArray-32282905.js';
import './_object-pie-33c40e79.js';
import { _ as _extends } from './extends-a4230287.js';
import './_object-sap-8b8ea5a9.js';
import './inherits-91a2c374.js';
import './define-property-6d26cb48.js';
import './web.dom.iterable-f8f967cd.js';
import './typeof-f1b7564e.js';
import './_is-array-4df618a6.js';
import React from 'react';
import './index-1819118a.js';
import 'prop-types';
import 'react-bootstrap/Row';
import 'react-bootstrap/Col';
import 'react-bootstrap/Card';
import './moment-b6f49411.js';
import 'next/router';
import './isSymbol-1981418f.js';
import './debounce-9207d8ee.js';
import './toNumber-2f7a84cd.js';
import './index.es-c6222053.js';
import 'react-dom';
import './visibility-sensor-f40c2564.js';
import './slicedToArray-67a08c9c.js';
import './index-51a80699.js';
import './urlFor.js';
import './index-6c12bdd5.js';
import './main-43ca42fe.js';
import './entities-7cc3bf45.js';
import './stringify-70b72959.js';
import './asyncToGenerator-64812e90.js';
import './Segment.js';
import './Beam.js';
import './AdSlot.js';
import './ADInfeed-f3a93040.js';
import './lodash-ec8c6b48.js';
import './ADlgInfeed-c4814c4e.js';
import './getContentCategory-15dcc413.js';
import './AuthorComponent-37ebc2bd.js';
import 'react-bootstrap/Button';
import { B as BlockContent } from './BlockContent-d05b5b23.js';
import './index-c7e2ac95.js';
import './smoothscroll-0cd4c7a6.js';
import './GroupDeck.js';
import 'react-bootstrap';
import './timeDifferenceCalc.js';
import QueueDeckExpanded from './QueueDeckExpanded.js';
import './iconBase-602d52fe.js';
import './index.esm-55f22b35.js';
import { g as getSerializers } from './index-85bb0372.js';
import './util-7700fc59.js';
import './urlForFile-d2a27665.js';
import './brightcove-react-player-loader.es-4abff0b1.js';
import 'react-bootstrap/Modal';
import 'react-bootstrap/Form';
import 'next/head';
import 'react-share';
import './SocialShare.js';
import './_object-to-array-c54dd835.js';
import 'react-bootstrap/Pagination';
import 'react-bootstrap/Figure';
import 'react-bootstrap/OverlayTrigger';
import 'react-bootstrap/Tooltip';
import 'react-bootstrap/Popover';
import 'react-script-tag';
import 'react-bootstrap/Breadcrumb';
import Breadcrumbs from './Breadcrumbs.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;

  return React.createElement(
    'div',
    { id: 'issueLanding' },
    React.createElement(Breadcrumbs, null),
    pubIssue.issue.source && React.createElement(
      'p',
      { className: 'badge badge-primary' },
      pubIssue.issue.source
    ),
    pubIssue.issue.description && React.createElement(
      React.Fragment,
      null,
      React.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: pubIssue.issue.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
      React.createElement('div', { style: { clear: 'both' } })
    ),
    React.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 : []
    })
  );
};

export default IssueLanding;
