"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXD2OIZABjs = require('./chunk-XD2OIZAB.js');var F={};_chunkXD2OIZABjs.b.call(void 0, F,{default:()=>K});var h,K,R=_chunkXD2OIZABjs.a.call(void 0, ()=>{"use strict";h=function(){var a={defaultValue:!1,kind:"LocalArgument",name:"archived"},e={defaultValue:5,kind:"LocalArgument",name:"count"},r={defaultValue:null,kind:"LocalArgument",name:"cursor"},i={defaultValue:null,kind:"LocalArgument",name:"id"},t={defaultValue:"",kind:"LocalArgument",name:"q"},s={defaultValue:!1,kind:"LocalArgument",name:"unreadMessages"},o=[{kind:"Variable",name:"id",variableName:"id"}],d={kind:"Variable",name:"archived",variableName:"archived"},u={kind:"Variable",name:"q",variableName:"q"},m={kind:"Variable",name:"unreadMessages",variableName:"unreadMessages"},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},c=[{kind:"Variable",name:"after",variableName:"cursor"},d,{kind:"Variable",name:"first",variableName:"count"},u,m],f=[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}];return{fragment:{argumentDefinitions:[a,e,r,i,t,s],kind:"Fragment",metadata:null,name:"chatRoomsPaginationQuery",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[d,{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},u,m],kind:"FragmentSpread",name:"RoomsListFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,e,r,t,s,i],kind:"Operation",name:"chatRoomsPaginationQuery",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[g,n,{kind:"InlineFragment",selections:[{alias:null,args:c,concreteType:"ChatRoomConnection",kind:"LinkedField",name:"chatRooms",plural:!1,selections:[{alias:null,args:null,concreteType:"ChatRoomEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ChatRoom",kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"lastMessageTime",storageKey:null},{alias:null,args:null,concreteType:"Message",kind:"LinkedField",name:"lastMessage",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null}],storageKey:null},{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:[n,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:100},{kind:"Literal",name:"width",value:100}],concreteType:"File",kind:"LinkedField",name:"image",plural:!1,selections:f,storageKey:"image(height:100,width:100)"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"role",storageKey:null},n],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:f,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},n],storageKey:null},g],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:c,filters:["q","unreadMessages","archived"],handle:"connection",key:"roomsList_chatRooms",kind:"LinkedHandle",name:"chatRooms"}],type:"ChatRoomsInterface",abstractKey:"__isChatRoomsInterface"}],storageKey:null}]},params:{cacheID:"7ebe7a99706098bde0517d1d04caf7b8",id:null,metadata:{},name:"chatRoomsPaginationQuery",operationKind:"query",text:`query chatRoomsPaginationQuery(
  $archived: Boolean = false
  $count: Int = 5
  $cursor: String
  $q: String = ""
  $unreadMessages: Boolean = false
  $id: ID!
) {
  node(id: $id) {
    __typename
    ...RoomsListFragment_3I5PKK
    id
  }
}

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

fragment LastMessageFragment on ChatRoom {
  id
  lastMessageTime
  lastMessage {
    id
    content
  }
}

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

fragment RoomsListFragment_3I5PKK on ChatRoomsInterface {
  __isChatRoomsInterface: __typename
  chatRooms(first: $count, after: $cursor, q: $q, unreadMessages: $unreadMessages, archived: $archived) {
    edges {
      node {
        id
        ...LastMessageFragment
        ...TitleFragment
        ...UnreadMessagesCountFragment
        __typename
      }
      cursor
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
  id
}

fragment TitleFragment on ChatRoom {
  id
  isGroup
  ...RoomTitleFragment
  ...GroupTitleFragment
}

fragment UnreadMessagesCountFragment on ChatRoom {
  id
  unreadMessages {
    count
    markedUnread
    id
  }
}
`}}}();h.hash="3a66898cb96bbf4ce999aa5ad9822ca0";K=h});var v={};_chunkXD2OIZABjs.b.call(void 0, v,{default:()=>C});var L,C,b=_chunkXD2OIZABjs.a.call(void 0, ()=>{"use strict";L=function(){var a=["chatRooms"],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"archived"},{defaultValue:5,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:"",kind:"LocalArgument",name:"q"},{defaultValue:!1,kind:"LocalArgument",name:"unreadMessages"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:a}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:a},fragmentPathInResult:["node"],operation:(R(),_chunkXD2OIZABjs.c.call(void 0, F)),identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"RoomsListFragment",selections:[{alias:"chatRooms",args:[{kind:"Variable",name:"archived",variableName:"archived"},{kind:"Variable",name:"q",variableName:"q"},{kind:"Variable",name:"unreadMessages",variableName:"unreadMessages"}],concreteType:"ChatRoomConnection",kind:"LinkedField",name:"__roomsList_chatRooms_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ChatRoomEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ChatRoom",kind:"LinkedField",name:"node",plural:!1,selections:[e,{args:null,kind:"FragmentSpread",name:"LastMessageFragment"},{args:null,kind:"FragmentSpread",name:"TitleFragment"},{args:null,kind:"FragmentSpread",name:"UnreadMessagesCountFragment"},{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},e],type:"ChatRoomsInterface",abstractKey:"__isChatRoomsInterface"}}();L.hash="3a66898cb96bbf4ce999aa5ad9822ca0";C=L});var _reactrelay = require('react-relay');var l,S= exports.a =(l!==void 0||(l=(b(),_chunkXD2OIZABjs.c.call(void 0, v)),l.hash&&l.hash!=="3a66898cb96bbf4ce999aa5ad9822ca0"&&console.error("The definition of 'RoomsListFragment' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data.")),l),$= exports.b =function(e){return _reactrelay.usePaginationFragment.call(void 0, S,e)};exports.a = S; exports.b = $;
//# sourceMappingURL=chunk-62TMIDT4.js.map