// tmp-babel/messages/web/MessagesList/MessagesGroup/UserMessage/MessageItem/styled.js
import { Box, styled } from "@mui/material";
function _typeof(o) {
  "@babel/helpers - typeof";
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
    return typeof o2;
  } : function(o2) {
    return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
  }, _typeof(o);
}
function _defineProperty(e, r, t) {
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : 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 MessageItemContainer = styled(Box)(function(_ref) {
  var theme = _ref.theme, isOwnMessage = _ref.isOwnMessage, _ref$isFirstGroupedMe = _ref.isFirstGroupedMessage, isFirstGroupedMessage = _ref$isFirstGroupedMe === void 0 ? false : _ref$isFirstGroupedMe;
  var ownMessageRadius = isFirstGroupedMessage ? "12px 4px 12px 12px" : "12px";
  var otherMessageRadius = isFirstGroupedMessage ? "4px 12px 12px 12px" : "12px";
  return _defineProperty({
    display: "flex",
    padding: theme.spacing(1, 1.5),
    borderRadius: isOwnMessage ? ownMessageRadius : otherMessageRadius,
    flexDirection: "column",
    maxWidth: "60%",
    justifyContent: "center",
    alignSelf: isOwnMessage ? "flex-end" : "flex-start",
    alignItems: isOwnMessage ? "flex-end" : "flex-start",
    backgroundColor: isOwnMessage ? theme.palette.background["default"] : theme.palette.grey[800]
  }, theme.breakpoints.down("sm"), {
    maxWidth: "80%"
  });
});

export {
  MessageItemContainer
};
//# sourceMappingURL=chunk-AD2DJNJM.mjs.map