"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.StyledEntityProperty = exports.StyledEntityGroup = exports.StyledEntityCard = exports.StyledEntityActions = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _Card = require("../Card");
var _Styles = require("../Paper/Styles");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
var StyledEntityCard = exports.StyledEntityCard = (0, _styledComponents.default)(_Card.Card).withConfig({
  displayName: "Styles__StyledEntityCard",
  componentId: "sc-bjeea8-0"
})(["line-height:1.375;", " ", " ", " ", ""], function (_ref) {
  var $renderAs = _ref.$renderAs;
  return $renderAs === "list" && (0, _styledComponents.css)(["display:flex;flex-direction:row;align-items:center;min-height:48px;margin-bottom:4px;justify-content:space-between;padding:0 16px 0 16px;"]);
}, function (_ref2) {
  var $renderAs = _ref2.$renderAs;
  return $renderAs === "grid" && (0, _styledComponents.css)(["display:flex;flex-direction:column;position:relative;padding:20px 24px;height:280px;"]);
}, function (props) {
  return props.$background && (0, _styledComponents.css)(["background-color:", ";"], props.$background);
}, function (_ref3) {
  var $isCollection = _ref3.$isCollection,
    $background = _ref3.$background;
  return $isCollection && (0, _styledComponents.css)(["&::after{display:block;content:\"\";position:absolute;top:0;bottom:0;right:0;left:0;transform:rotate(-3deg);z-index:-1;", ";background-color:", ";}"], _Styles.PaperStyles, $background);
});
StyledEntityCard.displayName = "StyledEntityCard";
var StyledEntityProperty = exports.StyledEntityProperty = (0, _styledComponents.default)("div").withConfig({
  displayName: "Styles__StyledEntityProperty",
  componentId: "sc-bjeea8-1"
})(["", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (_ref4) {
  var $renderAs = _ref4.$renderAs,
    $width = _ref4.$width;
  return $renderAs === "list" && (0, _styledComponents.css)(["display:flex;align-items:center;min-width:24px;flex:", ";"], $width ? "initial" : 1);
}, function (props) {
  return props.$renderAs === "list" && props.$order && (0, _styledComponents.css)(["order:", ";"], props.$order);
}, function (props) {
  return props.$renderAs === "list" && props.$width && (0, _styledComponents.css)(["width:", ";"], props.$width);
}, function (_ref5) {
  var $visibleFromBreakpoint = _ref5.$visibleFromBreakpoint;
  return $visibleFromBreakpoint && (0, _styledComponents.css)(["", ""], {
    "display": "none"
  });
}, function (_ref6) {
  var $visibleFromBreakpoint = _ref6.$visibleFromBreakpoint;
  return $visibleFromBreakpoint === "sm" && (0, _styledComponents.css)(["", ""], {
    "@media (min-width: 640px)": {
      "display": "flex"
    }
  });
}, function (_ref7) {
  var $visibleFromBreakpoint = _ref7.$visibleFromBreakpoint;
  return $visibleFromBreakpoint === "md" && (0, _styledComponents.css)(["", ""], {
    "@media (min-width: 768px)": {
      "display": "flex"
    }
  });
}, function (_ref8) {
  var $visibleFromBreakpoint = _ref8.$visibleFromBreakpoint;
  return $visibleFromBreakpoint === "lg" && (0, _styledComponents.css)(["", ""], {
    "@media (min-width: 1024px)": {
      "display": "flex"
    }
  });
}, function (_ref9) {
  var $visibleFromBreakpoint = _ref9.$visibleFromBreakpoint;
  return $visibleFromBreakpoint === "xl" && (0, _styledComponents.css)(["", ""], {
    "@media (min-width: 1280px)": {
      "display": "flex"
    }
  });
}, function (_ref10) {
  var $visibleFromBreakpoint = _ref10.$visibleFromBreakpoint;
  return $visibleFromBreakpoint === "2xl" && (0, _styledComponents.css)(["", ""], {
    "@media (min-width: 1536px)": {
      "display": "flex"
    }
  });
});
StyledEntityProperty.displayName = "StyledEntityProperty";
var StyledEntityGroup = exports.StyledEntityGroup = (0, _styledComponents.default)("div").withConfig({
  displayName: "Styles__StyledEntityGroup",
  componentId: "sc-bjeea8-2"
})(["", " ", ""], function (_ref11) {
  var $renderAs = _ref11.$renderAs,
    $gap = _ref11.$gap;
  return $renderAs === "grid" && (0, _styledComponents.css)(["display:grid;grid-gap:", ";grid-template-columns:repeat(auto-fill,minmax(260px,1fr));"], $gap ? "".concat($gap, "px") : "initial");
}, function (props) {
  return props.$renderAs === "list" && (0, _styledComponents.css)(["display:flex;flex-direction:column;"]);
});
StyledEntityGroup.displayName = "StyledEntityGroup";
var StyledEntityActions = exports.StyledEntityActions = (0, _styledComponents.default)("div").withConfig({
  displayName: "Styles__StyledEntityActions",
  componentId: "sc-bjeea8-3"
})(["display:flex;flex-direction:column;align-items:center;", " ", ""], function (_ref12) {
  var $renderAs = _ref12.$renderAs;
  return $renderAs === "grid" && (0, _styledComponents.css)(["position:absolute;right:16px;top:20px;"]);
}, function (_ref13) {
  var $renderAs = _ref13.$renderAs;
  return $renderAs === "list" && (0, _styledComponents.css)(["justify-self:flex-end;"]);
});
//# sourceMappingURL=Styles.js.map