import{a as i,b as t,c as d}from"./chunk-XEHBQAFR.mjs";var o={};t(o,{default:()=>p});var u,p,g=i(()=>{"use strict";u=function(){var n=[{defaultValue:20,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],e=[{kind:"Variable",name:"id",variableName:"id"}],s={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}];return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ChatRoomMessagesListPaginationQuery",selections:[{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"MessagesListFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ChatRoomMessagesListPaginationQuery",selections:[{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[s,l,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"isGroup",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},l],storageKey:null},{alias:null,args:r,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:[l,{alias:null,args:null,kind:"ScalarField",name:"created",storageKey:null},{alias:null,args:null,concreteType:"Profile",kind:"LinkedField",name:"profile",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Literal",name:"width",value:32}],concreteType:"File",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],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:[l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pk",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"verb",storageKey:null},s],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:null},{alias:null,args:r,filters:null,handle:"connection",key:"chatRoom_allMessages",kind:"LinkedHandle",name:"allMessages"}],type:"ChatRoom",abstractKey:null}],storageKey:null}]},params:{cacheID:"4a10782f4d99f578a4791eedc9d33c03",id:null,metadata:{},name:"ChatRoomMessagesListPaginationQuery",operationKind:"query",text:`query ChatRoomMessagesListPaginationQuery(
  $count: Int = 20
  $cursor: String
  $id: ID!
) {
  node(id: $id) {
    __typename
    ...MessagesListFragment_1G22uz
    id
  }
}

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

fragment MessagesListFragment_1G22uz on ChatRoom {
  id
  isGroup
  unreadMessages {
    count
    markedUnread
    id
  }
  allMessages(first: $count, after: $cursor) {
    totalCount
    edges {
      node {
        id
        created
        profile {
          id
          name
          image(height: 32, width: 32) {
            url
          }
        }
        isRead
        messageType
        ...MessageItemFragment
        __typename
      }
      cursor
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
`}}}();u.hash="9a3c1fd2e9507a24075ab2654972c7cf";p=u});var c={};t(c,{default:()=>k});var m,k,y=i(()=>{"use strict";m=function(){var n=["allMessages"],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:20,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:n}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:n},fragmentPathInResult:["node"],operation:(g(),d(o)),identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"MessagesListFragment",selections:[e,{alias:null,args:null,kind:"ScalarField",name:"isGroup",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}],storageKey:null},{alias:"allMessages",args:null,concreteType:"MessageConnection",kind:"LinkedField",name:"__chatRoom_allMessages_connection",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,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Literal",name:"width",value:32}],concreteType:"File",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],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},{args:null,kind:"FragmentSpread",name:"MessageItemFragment"},{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:null}],type:"ChatRoom",abstractKey:null}}();m.hash="9a3c1fd2e9507a24075ab2654972c7cf";k=m});import"react-relay";var a,h=(a!==void 0||(a=(y(),d(c)),a.hash&&a.hash!=="9a3c1fd2e9507a24075ab2654972c7cf"&&console.error("The definition of 'MessagesListFragment' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data.")),a);export{h as a};
//# sourceMappingURL=chunk-4LJMYL4Z.mjs.map