"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.PickerStandaloneLayout = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _mobxReactLite = require("mobx-react-lite");
var _react = _interopRequireDefault(require("react"));
var _PickerStandaloneLayoutHeader = require("./PickerStandaloneLayoutHeader");
var _designSystem = require("@wix/design-system");
var _PickerStandaloneLayoutFooter = require("./PickerStandaloneLayoutFooter");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/PickerStandaloneLayout/PickerStandaloneLayout.tsx";
function _PickerStandaloneLayout(props) {
  const {
    children,
    state,
    height,
    maxHeight = '100vh',
    width = '618px',
    createNewAction,
    ...rest
  } = props;
  const {
    isMobileView
  } = state;
  const containerProps = isMobileView ? {
    height: '100%',
    width: '100%'
  } : {
    height,
    width,
    maxHeight,
    borderRadius: '8px',
    boxShadow: 'rgba(22, 45, 61, 0.12) 0px 8px 8px 0px, rgba(22, 45, 61, 0.18) 0px 3px 24px 0px'
  };
  return /*#__PURE__*/_react.default.createElement(_designSystem.Box, (0, _extends2.default)({
    direction: "vertical",
    backgroundColor: "D80",
    overflowY: "auto"
  }, containerProps, rest, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 54,
      columnNumber: 5
    }
  }), /*#__PURE__*/_react.default.createElement(_PickerStandaloneLayoutHeader.PickerStandaloneLayoutHeader, (0, _extends2.default)({}, props, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 61,
      columnNumber: 7
    }
  })), children, createNewAction && /*#__PURE__*/_react.default.createElement(_PickerStandaloneLayoutFooter.PickerStandaloneLayoutFooter, {
    state: state,
    createNewAction: createNewAction,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 64,
      columnNumber: 9
    }
  }));
}
const PickerStandaloneLayout = exports.PickerStandaloneLayout = (0, _mobxReactLite.observer)(_PickerStandaloneLayout);
//# sourceMappingURL=PickerStandaloneLayout.js.map