"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVY6SH5RSjs = require('./chunk-VY6SH5RS.js');var _chunk33FY6WRMjs = require('./chunk-33FY6WRM.js');var _chunkDELKUM36js = require('./chunk-DELKUM36.js');var _chunkSI2H3DU6js = require('./chunk-SI2H3DU6.js');var _chunkJD3EW6VPjs = require('./chunk-JD3EW6VP.js');var _react = require('react');var _displays = require('@baseapp-frontend/design-system/components/web/displays');var _material = require('@mui/material');var _reactrelay = require('react-relay');var _jsxruntime = require('react/jsx-runtime');function s(o){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(o)}function h(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,t)}return r}function p(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(t){M(o,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))})}return o}function M(o,e,r){return(e=D(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function D(o){var e=L(o,"string");return s(e)=="symbol"?e:e+""}function L(o,e){if(s(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var t=r.call(o,e||"default");if(s(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}var x=function(e){var r=e.roomId,t=e.MessagesList,a=t===void 0?_chunk33FY6WRMjs.a:t,u=e.MessagesListProps,P=u===void 0?{}:u,c=e.SendMessage,S=c===void 0?_chunkDELKUM36js.a:c,m=e.SendMessageProps,j=m===void 0?{}:m,O=e.onDisplayGroupDetailsClicked,C=_reactrelay.useLazyLoadQuery.call(void 0, _chunkJD3EW6VPjs.a,{roomId:r},{fetchPolicy:"store-and-network",fetchKey:r}),i=C.chatRoom;return i?_jsxruntime.jsxs.call(void 0, _chunkSI2H3DU6js.a,{children:[_jsxruntime.jsx.call(void 0, _chunkVY6SH5RSjs.a,{isArchived:!!i.isArchived,participantsCount:i.participantsCount,roomTitleRef:i,onDisplayGroupDetailsClicked:O,roomId:r}),_jsxruntime.jsxs.call(void 0, _chunkSI2H3DU6js.b,{children:[_jsxruntime.jsx.call(void 0, a,p({roomRef:i},P)),_jsxruntime.jsx.call(void 0, _material.Box,{paddingRight:2,children:_jsxruntime.jsx.call(void 0, S,p({roomId:r},j))})]})]}):_jsxruntime.jsx.call(void 0, "div",{children:"Chat room not found"})},I=function(e){return _jsxruntime.jsx.call(void 0, _react.Suspense,{fallback:_jsxruntime.jsx.call(void 0, _displays.LoadingState,{}),children:_jsxruntime.jsx.call(void 0, x,p({},e))})},N= exports.a =I;exports.a = N;
//# sourceMappingURL=chunk-BJGYVXRO.js.map