"use strict";Object.defineProperty(exports, "__esModule", {value: true});



var _chunk4CV4JOE5js = require('./chunk-4CV4JOE5.js');

// __generated__/ChatRoomQuery.graphql.ts
var ChatRoomQuery_graphql_exports = {};
_chunk4CV4JOE5js.__export.call(void 0, ChatRoomQuery_graphql_exports, {
  default: () => ChatRoomQuery_graphql_default
});
var node, ChatRoomQuery_graphql_default;
var init_ChatRoomQuery_graphql = _chunk4CV4JOE5js.__esm.call(void 0, {
  "__generated__/ChatRoomQuery.graphql.ts"() {
    "use strict";
    node = /* @__PURE__ */ function() {
      var v0 = [
        {
          "defaultValue": null,
          "kind": "LocalArgument",
          "name": "roomId"
        }
      ], v1 = [
        {
          "kind": "Variable",
          "name": "id",
          "variableName": "roomId"
        }
      ], v2 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "id",
        "storageKey": null
      }, v3 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "isArchived",
        "storageKey": null
      }, v4 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "participantsCount",
        "storageKey": null
      }, v5 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "name",
        "storageKey": null
      }, v6 = [
        {
          "alias": null,
          "args": null,
          "kind": "ScalarField",
          "name": "url",
          "storageKey": null
        }
      ], v7 = [
        {
          "kind": "Literal",
          "name": "first",
          "value": 20
        }
      ];
      return {
        "fragment": {
          "argumentDefinitions": v0,
          "kind": "Fragment",
          "metadata": null,
          "name": "ChatRoomQuery",
          "selections": [
            {
              "alias": null,
              "args": v1,
              "concreteType": "ChatRoom",
              "kind": "LinkedField",
              "name": "chatRoom",
              "plural": false,
              "selections": [
                v2,
                v3,
                v4,
                {
                  "args": null,
                  "kind": "FragmentSpread",
                  "name": "TitleFragment"
                },
                {
                  "args": null,
                  "kind": "FragmentSpread",
                  "name": "MessagesListFragment"
                }
              ],
              "storageKey": null
            }
          ],
          "type": "Query",
          "abstractKey": null
        },
        "kind": "Request",
        "operation": {
          "argumentDefinitions": v0,
          "kind": "Operation",
          "name": "ChatRoomQuery",
          "selections": [
            {
              "alias": null,
              "args": v1,
              "concreteType": "ChatRoom",
              "kind": "LinkedField",
              "name": "chatRoom",
              "plural": false,
              "selections": [
                v2,
                v3,
                v4,
                {
                  "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": false,
                  "selections": [
                    {
                      "alias": null,
                      "args": null,
                      "concreteType": "ChatRoomParticipantEdge",
                      "kind": "LinkedField",
                      "name": "edges",
                      "plural": true,
                      "selections": [
                        {
                          "alias": null,
                          "args": null,
                          "concreteType": "ChatRoomParticipant",
                          "kind": "LinkedField",
                          "name": "node",
                          "plural": false,
                          "selections": [
                            {
                              "alias": null,
                              "args": null,
                              "concreteType": "Profile",
                              "kind": "LinkedField",
                              "name": "profile",
                              "plural": false,
                              "selections": [
                                v2,
                                v5,
                                {
                                  "alias": null,
                                  "args": [
                                    {
                                      "kind": "Literal",
                                      "name": "height",
                                      "value": 100
                                    },
                                    {
                                      "kind": "Literal",
                                      "name": "width",
                                      "value": 100
                                    }
                                  ],
                                  "concreteType": "File",
                                  "kind": "LinkedField",
                                  "name": "image",
                                  "plural": false,
                                  "selections": v6,
                                  "storageKey": "image(height:100,width:100)"
                                }
                              ],
                              "storageKey": null
                            },
                            {
                              "alias": null,
                              "args": null,
                              "kind": "ScalarField",
                              "name": "role",
                              "storageKey": null
                            },
                            v2
                          ],
                          "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": false,
                  "selections": v6,
                  "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": false,
                  "selections": [
                    {
                      "alias": null,
                      "args": null,
                      "kind": "ScalarField",
                      "name": "count",
                      "storageKey": null
                    },
                    {
                      "alias": null,
                      "args": null,
                      "kind": "ScalarField",
                      "name": "markedUnread",
                      "storageKey": null
                    },
                    v2
                  ],
                  "storageKey": null
                },
                {
                  "alias": null,
                  "args": v7,
                  "concreteType": "MessageConnection",
                  "kind": "LinkedField",
                  "name": "allMessages",
                  "plural": false,
                  "selections": [
                    {
                      "alias": null,
                      "args": null,
                      "kind": "ScalarField",
                      "name": "totalCount",
                      "storageKey": null
                    },
                    {
                      "alias": null,
                      "args": null,
                      "concreteType": "MessageEdge",
                      "kind": "LinkedField",
                      "name": "edges",
                      "plural": true,
                      "selections": [
                        {
                          "alias": null,
                          "args": null,
                          "concreteType": "Message",
                          "kind": "LinkedField",
                          "name": "node",
                          "plural": false,
                          "selections": [
                            v2,
                            {
                              "alias": null,
                              "args": null,
                              "kind": "ScalarField",
                              "name": "created",
                              "storageKey": null
                            },
                            {
                              "alias": null,
                              "args": null,
                              "concreteType": "Profile",
                              "kind": "LinkedField",
                              "name": "profile",
                              "plural": false,
                              "selections": [
                                v2,
                                v5,
                                {
                                  "alias": null,
                                  "args": [
                                    {
                                      "kind": "Literal",
                                      "name": "height",
                                      "value": 32
                                    },
                                    {
                                      "kind": "Literal",
                                      "name": "width",
                                      "value": 32
                                    }
                                  ],
                                  "concreteType": "File",
                                  "kind": "LinkedField",
                                  "name": "image",
                                  "plural": false,
                                  "selections": v6,
                                  "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": false,
                              "selections": [
                                v2
                              ],
                              "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": false,
                      "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": v7,
                  "filters": null,
                  "handle": "connection",
                  "key": "chatRoom_allMessages",
                  "kind": "LinkedHandle",
                  "name": "allMessages"
                }
              ],
              "storageKey": null
            }
          ]
        },
        "params": {
          "cacheID": "23f0d5d70a9deb3d467c360138e60151",
          "id": null,
          "metadata": {},
          "name": "ChatRoomQuery",
          "operationKind": "query",
          "text": "query ChatRoomQuery(\n  $roomId: ID!\n) {\n  chatRoom(id: $roomId) {\n    id\n    isArchived\n    participantsCount\n    ...TitleFragment\n    ...MessagesListFragment\n  }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n  id\n  image(width: 144, height: 144) {\n    url\n  }\n  title\n}\n\nfragment MessageItemFragment on Message {\n  id\n  content\n  created\n  deleted\n  extraData\n  inReplyTo {\n    id\n  }\n  isRead\n  pk\n  profile {\n    id\n  }\n  verb\n}\n\nfragment MessagesListFragment on ChatRoom {\n  id\n  isGroup\n  unreadMessages {\n    count\n    markedUnread\n    id\n  }\n  allMessages(first: 20) {\n    totalCount\n    edges {\n      node {\n        id\n        created\n        profile {\n          id\n          name\n          image(height: 32, width: 32) {\n            url\n          }\n        }\n        isRead\n        messageType\n        ...MessageItemFragment\n        __typename\n      }\n      cursor\n    }\n    pageInfo {\n      hasNextPage\n      endCursor\n    }\n  }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n  id\n  participants(first: 2) {\n    edges {\n      node {\n        profile {\n          id\n          name\n          image(width: 100, height: 100) {\n            url\n          }\n        }\n        role\n        id\n      }\n    }\n  }\n}\n\nfragment TitleFragment on ChatRoom {\n  id\n  isGroup\n  ...RoomTitleFragment\n  ...GroupTitleFragment\n}\n"
        }
      };
    }();
    node.hash = "bdead5c0e5a4b8c3dd471a39a52cb32e";
    ChatRoomQuery_graphql_default = node;
  }
});

// tmp-babel/messages/common/graphql/queries/ChatRoomQuery.js
var _reactrelay = require('react-relay');
var _ChatRoomQuery;
var ChatRoomQuery = _ChatRoomQuery !== void 0 ? _ChatRoomQuery : (_ChatRoomQuery = (init_ChatRoomQuery_graphql(), _chunk4CV4JOE5js.__toCommonJS.call(void 0, ChatRoomQuery_graphql_exports)), _ChatRoomQuery.hash && _ChatRoomQuery.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."), _ChatRoomQuery);



exports.ChatRoomQuery = ChatRoomQuery;
//# sourceMappingURL=chunk-CJYU5QIM.js.map