"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _react = _interopRequireDefault(require("react"));
var _constants = require("./constants");
var _MobilePreviewWidgetSt = require("./MobilePreviewWidget.st.css.js");
var _PreviewWidget = _interopRequireDefault(require("../PreviewWidget"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/MobilePreviewWidget/MobilePreviewWidget.jsx";
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
/** Mobile preview widget */
var MobilePreviewWidget = /*#__PURE__*/function (_React$PureComponent) {
  function MobilePreviewWidget() {
    (0, _classCallCheck2["default"])(this, MobilePreviewWidget);
    return _callSuper(this, MobilePreviewWidget, arguments);
  }
  (0, _inherits2["default"])(MobilePreviewWidget, _React$PureComponent);
  return (0, _createClass2["default"])(MobilePreviewWidget, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
        dataHook = _this$props.dataHook,
        skin = _this$props.skin,
        backgroundColor = _this$props.backgroundColor,
        height = _this$props.height,
        width = _this$props.width,
        children = _this$props.children;
      return /*#__PURE__*/_react["default"].createElement(_PreviewWidget["default"], {
        className: (0, _MobilePreviewWidgetSt.st)(_MobilePreviewWidgetSt.classes.root),
        dataHook: dataHook,
        skin: skin,
        backgroundColor: backgroundColor,
        height: height,
        width: width,
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 21,
          columnNumber: 7
        }
      }, /*#__PURE__*/_react["default"].createElement("div", {
        "data-hook": _constants.dataHooks.mobileHeader,
        className: _MobilePreviewWidgetSt.classes.header,
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 29,
          columnNumber: 9
        }
      }, /*#__PURE__*/_react["default"].createElement("div", {
        className: _MobilePreviewWidgetSt.classes.speaker,
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 30,
          columnNumber: 11
        }
      }), /*#__PURE__*/_react["default"].createElement("div", {
        className: _MobilePreviewWidgetSt.classes.camera,
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 31,
          columnNumber: 11
        }
      })), /*#__PURE__*/_react["default"].createElement("div", {
        "data-hook": _constants.dataHooks.mobileContent,
        className: _MobilePreviewWidgetSt.classes.content,
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 33,
          columnNumber: 9
        }
      }, children), /*#__PURE__*/_react["default"].createElement("div", {
        "data-hook": _constants.dataHooks.mobileFooter,
        className: _MobilePreviewWidgetSt.classes.footer,
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 36,
          columnNumber: 9
        }
      }));
    }
  }]);
}(_react["default"].PureComponent);
MobilePreviewWidget.displayName = 'MobilePreviewWidget';
MobilePreviewWidget.defaultProps = {
  skin: 'neutral',
  height: '100%',
  width: '100%'
};
var _default = exports["default"] = MobilePreviewWidget;