"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk3AAPTCO3js = require('./chunk-3AAPTCO3.js');var _chunk2QL2RIUWjs = require('./chunk-2QL2RIUW.js');var _avatars = require('@baseapp-frontend/design-system/components/web/avatars');var _buttons = require('@baseapp-frontend/design-system/components/web/buttons');var _icons = require('@baseapp-frontend/design-system/components/web/icons');var _material = require('@mui/material');var _reactrelay = require('react-relay');var _jsxruntime = require('react/jsx-runtime');var v=function(i){var t=i.profile,l=i.handleRemoveMember,r=_reactrelay.useFragment.call(void 0, _chunk2QL2RIUWjs.a,t),d=r.id,o=r.image,s=r.name;return _jsxruntime.jsxs.call(void 0, _chunk3AAPTCO3js.a,{children:[_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{position:"relative"},children:[_jsxruntime.jsx.call(void 0, _buttons.IconButton,{size:"small",sx:{position:"absolute",top:0,right:0,zIndex:1},onClick:function(){return l(t)},children:_jsxruntime.jsx.call(void 0, _icons.FilledCloseIcon,{})}),_jsxruntime.jsx.call(void 0, _avatars.AvatarWithPlaceholder,{width:64,height:64,src:_optionalChain([o, 'optionalAccess', _ => _.url]),sx:{alignSelf:"center",justifySelf:"center"}})]}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"64px"},children:s})]},"chat-room-item-".concat(d))},W= exports.a =v;exports.a = W;
//# sourceMappingURL=chunk-WPQ3YJU3.js.map