function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import React from 'react';
import PropTypes from 'prop-types';
import Header from '../player/slides/header';
import CMPopin from '../../../molecule/cm-popin';
import Summary from './summary';
import style from './style.css';
const Content = props => {
  const {
    mode = 'default'
  } = props;
  return /*#__PURE__*/React.createElement("div", {
    className: mode !== 'scorm' ? style.popinWrapper : null
  }, /*#__PURE__*/React.createElement(Summary, props));
};
Content.propTypes = process.env.NODE_ENV !== "production" ? {
  mode: PropTypes.oneOf(['scorm', 'default'])
} : {};
const PopinEnd = props => {
  const {
    header,
    summary,
    mode = 'default',
    popinError
  } = props;
  return /*#__PURE__*/React.createElement("div", {
    "data-name": "popinEnd",
    className: style.wrapper
  }, popinError ? /*#__PURE__*/React.createElement(CMPopin, popinError) : null, /*#__PURE__*/React.createElement("div", {
    className: style.slidesHeader
  }, /*#__PURE__*/React.createElement(Header, header)), /*#__PURE__*/React.createElement(Content, _extends({}, summary, {
    mode: mode
  })));
};
PopinEnd.propTypes = process.env.NODE_ENV !== "production" ? {
  header: PropTypes.shape(Header.propTypes),
  summary: PropTypes.shape(Summary.propTypes),
  mode: PropTypes.oneOf(['scorm', 'default']),
  popinError: PropTypes.shape(CMPopin.propTypes)
} : {};
export default PopinEnd;
//# sourceMappingURL=index.js.map