import { _ as _extends } from './extends-60e0e1c6.js';
import React from 'react';
import QueueDeckExpanded from './QueueDeckExpanded.js';
import Breadcrumbs from './Breadcrumbs.js';
import { B as BlockContent } from './BlockContent-52cf21c5.js';
import { g as getSerializers } from './index-1654b705.js';
import './_commonjsHelpers-0c4b6f40.js';
import './_to-object-b50e61c3.js';
import './_object-pie-133f504a.js';
import './slicedToArray-be2f7a22.js';
import './web.dom.iterable-4109ff68.js';
import './es6.string.iterator-bc33758b.js';
import './core.get-iterator-method-133dfacd.js';
import './toConsumableArray-6d9a4616.js';
import './_iter-detect-7e5e5ce2.js';
import 'react-bootstrap';
import './urlFor.js';
import './index-0dbff1d1.js';
import './index.es-c6222053.js';
import './moment-bc12cb97.js';
import './visibility-sensor-f40c2564.js';
import 'react-dom';
import './index-2446af28.js';
import './events-6c3a7a63.js';
import 'prop-types';
import 'next/router';
import './index-35bdcc81.js';
import './main-b5c5aac1.js';
import './entities-932b50cf.js';
import './ADInfeed-28b1e946.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-59c8f690.js';
import './asyncToGenerator-7f8f9219.js';
import './_library-528f1934.js';
import './Segment.js';
import './AuthorComponent-5ae7409f.js';
import './lodash-f97fd99a.js';
import './ADlgInfeed-0b474b02.js';
import './getContentCategory-15dcc413.js';
import './timeDifferenceCalc.js';
import 'react-bootstrap/Breadcrumb';
import './index-c7e2ac95.js';
import './util-3ab476bf.js';
import './typeof-a286cf0c.js';
import './_is-array-3e99e06e.js';
import './brightcove-react-player-loader.es-b43c695a.js';
import './GroupDeck.js';
import './smoothscroll-fa4e3f8c.js';
import './SocialShare.js';
import 'next/head';
import 'react-share';
import './_object-to-array-0f197f89.js';
import 'react-bootstrap/Pagination';
import 'react-bootstrap/Button';
import 'react-bootstrap/Row';
import 'react-bootstrap/Col';
import './inherits-a41fe93f.js';
import './_object-sap-f353c2a9.js';
import './define-property-fe54dc9f.js';
import './index.esm-3fdda599.js';
import './iconBase-602d52fe.js';
import 'react-bootstrap/Figure';

/* 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;
