{"ast":null,"code":"'use strict';\n\nexports.__esModule = true;\nexports.default = Page;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _Parser = require('./Parser');\n\nvar _Parser2 = _interopRequireDefault(_Parser);\n\nvar _getCurrentHref = require('./utils/getCurrentHref');\n\nvar _getCurrentHref2 = _interopRequireDefault(_getCurrentHref);\n\nfunction _interopRequireDefault(obj) {\n  return obj && obj.__esModule ? obj : {\n    default: obj\n  };\n}\n\nfunction Page(props) {\n  var className = props.className,\n      style = props.style,\n      _props$href = props.href,\n      href = _props$href === undefined ? (0, _getCurrentHref2.default)() : _props$href,\n      tabs = props.tabs,\n      hideCover = props.hideCover,\n      width = props.width,\n      height = props.height,\n      showFacepile = props.showFacepile,\n      hideCTA = props.hideCTA,\n      smallHeader = props.smallHeader,\n      adaptContainerWidth = props.adaptContainerWidth,\n      children = props.children,\n      onParse = props.onParse;\n  return _react2.default.createElement(_Parser2.default, {\n    className: className,\n    onParse: onParse\n  }, _react2.default.createElement('div', {\n    className: 'fb-page',\n    style: style,\n    'data-tabs': tabs,\n    'data-hide-cover': hideCover,\n    'data-show-facepile': showFacepile,\n    'data-hide-cta': hideCTA,\n    'data-href': href,\n    'data-small-header': smallHeader,\n    'data-adapt-container-width': adaptContainerWidth,\n    'data-height': height,\n    'data-width': width\n  }, children));\n}\n\nPage.propTypes = {\n  className: _propTypes2.default.string,\n  href: _propTypes2.default.string.isRequired,\n  tabs: _propTypes2.default.string,\n  hideCover: _propTypes2.default.bool,\n  height: _propTypes2.default.oneOfType([_propTypes2.default.number.isRequired, _propTypes2.default.string.isRequired]),\n  width: _propTypes2.default.oneOfType([_propTypes2.default.number.isRequired, _propTypes2.default.string.isRequired]),\n  showFacepile: _propTypes2.default.bool,\n  hideCTA: _propTypes2.default.bool,\n  smallHeader: _propTypes2.default.bool,\n  adaptContainerWidth: _propTypes2.default.bool,\n  children: _propTypes2.default.node,\n  onParse: _propTypes2.default.func\n};\nPage.defaultProps = {\n  width: 340,\n  height: 500,\n  tabs: 'timeline',\n  hideCover: false,\n  showFacepile: true,\n  hideCTA: false,\n  smallHeader: false,\n  adaptContainerWidth: true,\n  children: undefined,\n  className: undefined,\n  onParse: undefined\n};","map":null,"metadata":{},"sourceType":"script"}