// tmp-babel/messages/web/AllChatRoomsList/ChatRoomItem/styled.js
import { Box, alpha } from "@mui/material";
import { styled } from "@mui/material/styles";
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 StyledChatCard = styled(Box)(function(_ref) {
  var theme = _ref.theme, _ref$showPointer = _ref.showPointer, showPointer = _ref$showPointer === void 0 ? false : _ref$showPointer, _ref$isCardSelected = _ref.isCardSelected, isCardSelected = _ref$isCardSelected === void 0 ? false : _ref$isCardSelected;
  return _defineProperty({
    display: "grid",
    alignItems: "center",
    height: "100%",
    width: "100%",
    maxWidth: "390px",
    gridTemplateColumns: "48px auto min-content",
    gap: theme.spacing(2.5),
    padding: theme.spacing(1.5, 3.5),
    cursor: showPointer ? "pointer" : "default",
    backgroundColor: isCardSelected ? alpha(theme.palette.primary.main, 0.08) : theme.palette.background["default"],
    borderRight: isCardSelected ? "2px solid ".concat(theme.palette.primary.light) : "none"
  }, theme.breakpoints.down("sm"), {
    maxWidth: "600px",
    padding: theme.spacing(1.5)
  });
});

export {
  StyledChatCard
};
//# sourceMappingURL=chunk-347ZWOGP.mjs.map