"use strict";Object.defineProperty(exports, "__esModule", {value: true});



var _chunkKFT46T5Tjs = require('./chunk-KFT46T5T.js');


var _chunkUYBEH4KAjs = require('./chunk-UYBEH4KA.js');

// tmp-babel/messages/web/GroupChatDetails/Body/index.js
var _avatars = require('@baseapp-frontend/design-system/components/web/avatars');
var _typographies = require('@baseapp-frontend/design-system/components/web/typographies');
var _material = require('@mui/material');
var _jsxruntime = require('react/jsx-runtime');
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 ownKeys(e, r) {
  var t = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    r && (o = o.filter(function(r2) {
      return Object.getOwnPropertyDescriptor(e, r2).enumerable;
    })), t.push.apply(t, o);
  }
  return t;
}
function _objectSpread(e) {
  for (var r = 1; r < arguments.length; r++) {
    var t = null != arguments[r] ? arguments[r] : {};
    r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
      _defineProperty(e, r2, t[r2]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
      Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
    });
  }
  return e;
}
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 Body = function Body2(_ref) {
  var avatar = _ref.avatar, _ref$avatarSize = _ref.avatarSize, avatarSize = _ref$avatarSize === void 0 ? 144 : _ref$avatarSize, children = _ref.children, participantsCount = _ref.participantsCount, _ref$participantsCoun = _ref.participantsCountStyle, participantsCountStyle = _ref$participantsCoun === void 0 ? {} : _ref$participantsCoun, title = _ref.title, _ref$titleProps = _ref.titleProps, titleProps = _ref$titleProps === void 0 ? {} : _ref$titleProps;
  var theme = _material.useTheme.call(void 0, );
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, {
    sx: {
      display: "grid",
      gridTemplateRows: "auto 1fr"
    },
    children: [/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKFT46T5Tjs.GroupHeaderContainer, {
      children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _avatars.CircledAvatar, {
        src: avatar,
        width: avatarSize,
        height: avatarSize,
        hasError: false
      }), /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKFT46T5Tjs.GroupTitleContainer, {
        children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _typographies.TypographyWithEllipsis, _objectSpread(_objectSpread({
          variant: "subtitle1",
          color: "text.primary"
        }, titleProps), {}, {
          children: title
        })), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, _objectSpread(_objectSpread({
          variant: "body2",
          color: "text.secondary"
        }, participantsCountStyle), {}, {
          children: _chunkUYBEH4KAjs.getParticipantCountString.call(void 0, participantsCount)
        }))]
      })]
    }), /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, {
      sx: {
        display: "grid",
        gridTemplateRows: "auto 1fr"
      },
      children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, {
        role: "list",
        "aria-label": "group members",
        children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, {
          variant: "subtitle2",
          color: "text.primary",
          sx: {
            padding: theme.spacing(2),
            borderBottom: "1px solid ".concat(theme.palette.divider)
          },
          children: "Members"
        })
      }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKFT46T5Tjs.MembersContainer, {
        children
      })]
    })]
  });
};
var Body_default = Body;



exports.Body_default = Body_default;
//# sourceMappingURL=chunk-3JQONFGG.js.map