"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DesignerAlignTarget = void 0;
var _Containers = require("../Creator/Containers");
var _styles = require("@material-ui/core/styles");
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
var styles = function styles(theme) {
  var _theme$orientation$po, _root;
  return {
    root: (_root = {
      marginTop: 46
    }, _defineProperty(_root, theme.breakpoints.down('xs'), {
      maxHeight: 'calc(100% - 216px)'
    }), _defineProperty(_root, theme.breakpoints.up('sm'), _defineProperty({}, theme.orientation.landscape, {
      marginTop: 0,
      maxHeight: 'calc(100% - 172px)'
    })), _defineProperty(_root, theme.orientation.landscape, {
      maxHeight: 'calc(100% - 136px)'
    }), _defineProperty(_root, theme.orientation.portrait, (_theme$orientation$po = {
      maxHeight: 'calc(100% - 216px)'
    }, _defineProperty(_theme$orientation$po, theme.breakpoints.up('sm'), {
      maxHeight: 'calc(100% - 216px)'
    }), _defineProperty(_theme$orientation$po, theme.breakpoints.up('md'), {
      maxHeight: 'calc(100% - 172px)',
      marginTop: 0
    }), _theme$orientation$po)), _defineProperty(_root, '@media (min-aspect-ratio: 13/9) and (min-height: 280px) and (max-width: 950px)', {
      maxHeight: '100%'
    }), _root)
  };
};
var DesignerAlignTarget = exports.DesignerAlignTarget = (0, _styles.withStyles)(styles, {
  name: 'DesignerAlignTarget'
})(_Containers.AlignTargetContainer);