import{a as m,b as c,c as p}from"./chunk-XEHBQAFR.mjs";var u={};c(u,{default:()=>y});var d,y,g=m(()=>{"use strict";d=function(){var l=[{defaultValue:null,kind:"LocalArgument",name:"roomId"}],i=[{kind:"Variable",name:"id",variableName:"roomId"}],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"isArchived",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"participantsCount",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},n=[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],o=[{kind:"Literal",name:"first",value:20}];return{fragment:{argumentDefinitions:l,kind:"Fragment",metadata:null,name:"ChatRoomQuery",selections:[{alias:null,args:i,concreteType:"ChatRoom",kind:"LinkedField",name:"chatRoom",plural:!1,selections:[e,r,s,{args:null,kind:"FragmentSpread",name:"TitleFragment"},{args:null,kind:"FragmentSpread",name:"MessagesListFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:l,kind:"Operation",name:"ChatRoomQuery",selections:[{alias:null,args:i,concreteType:"ChatRoom",kind:"LinkedField",name:"chatRoom",plural:!1,selections:[e,r,s,{alias:null,args:null,kind:"ScalarField",name:"isGroup",storageKey:null},{alias:null,args:[{kind:"Literal",name:"first",value:2}],concreteType:"ChatRoomParticipantConnection",kind:"LinkedField",name:"participants",plural:!1,selections:[{alias:null,args:null,concreteType:"ChatRoomParticipantEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ChatRoomParticipant",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:"Profile",kind:"LinkedField",name:"profile",plural:!1,selections:[e,t,{alias:null,args:[{kind:"Literal",name:"height",value:100},{kind:"Literal",name:"width",value:100}],concreteType:"File",kind:"LinkedField",name:"image",plural:!1,selections:n,storageKey:"image(height:100,width:100)"}],storageKey:null},e],storageKey:null}],storageKey:null}],storageKey:"participants(first:2)"},{alias:null,args:[{kind:"Literal",name:"height",value:144},{kind:"Literal",name:"width",value:144}],concreteType:"File",kind:"LinkedField",name:"image",plural:!1,selections:n,storageKey:"image(height:144,width:144)"},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"UnreadMessageCount",kind:"LinkedField",name:"unreadMessages",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"markedUnread",storageKey:null},e],storageKey:null},{alias:null,args:o,concreteType:"MessageConnection",kind:"LinkedField",name:"allMessages",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},{alias:null,args:null,concreteType:"MessageEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Message",kind:"LinkedField",name:"node",plural:!1,selections:[e,{alias:null,args:null,kind:"ScalarField",name:"created",storageKey:null},{alias:null,args:null,concreteType:"Profile",kind:"LinkedField",name:"profile",plural:!1,selections:[e,t,{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Literal",name:"width",value:32}],concreteType:"File",kind:"LinkedField",name:"image",plural:!1,selections:n,storageKey:"image(height:32,width:32)"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRead",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"messageType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deleted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"extraData",storageKey:null},{alias:null,args:null,concreteType:"Message",kind:"LinkedField",name:"inReplyTo",plural:!1,selections:[e],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pk",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"verb",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null}],storageKey:null}],storageKey:"allMessages(first:20)"},{alias:null,args:o,filters:null,handle:"connection",key:"chatRoom_allMessages",kind:"LinkedHandle",name:"allMessages"}],storageKey:null}]},params:{cacheID:"233bbe44ce8cee0525a67ea6e6c7a199",id:null,metadata:{},name:"ChatRoomQuery",operationKind:"query",text:`query ChatRoomQuery(
  $roomId: ID!
) {
  chatRoom(id: $roomId) {
    id
    isArchived
    participantsCount
    ...TitleFragment
    ...MessagesListFragment
  }
}

fragment GroupTitleFragment on ChatRoom {
  id
  image(width: 144, height: 144) {
    url
  }
  title
}

fragment MessageItemFragment on Message {
  id
  content
  created
  deleted
  extraData
  inReplyTo {
    id
  }
  isRead
  pk
  profile {
    id
  }
  verb
}

fragment MessagesListFragment on ChatRoom {
  id
  isGroup
  unreadMessages {
    count
    markedUnread
    id
  }
  allMessages(first: 20) {
    totalCount
    edges {
      node {
        id
        created
        profile {
          id
          name
          image(height: 32, width: 32) {
            url
          }
        }
        isRead
        messageType
        ...MessageItemFragment
        __typename
      }
      cursor
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

fragment RoomTitleFragment on ChatRoom {
  id
  participants(first: 2) {
    edges {
      node {
        profile {
          id
          name
          image(width: 100, height: 100) {
            url
          }
        }
        id
      }
    }
  }
}

fragment TitleFragment on ChatRoom {
  id
  isGroup
  ...RoomTitleFragment
  ...GroupTitleFragment
}
`}}}();d.hash="bdead5c0e5a4b8c3dd471a39a52cb32e";y=d});import"react-relay";var a,F=(a!==void 0||(a=(g(),p(u)),a.hash&&a.hash!=="bdead5c0e5a4b8c3dd471a39a52cb32e"&&console.error("The definition of 'ChatRoomQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data.")),a);export{F as a};
//# sourceMappingURL=chunk-H5J2GKDJ.mjs.map