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



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

// __generated__/CommentsListPaginationQuery.graphql.ts
var node, CommentsListPaginationQuery_graphql_default;
var init_CommentsListPaginationQuery_graphql = _chunk4CV4JOE5js.__esm.call(void 0, {
  "__generated__/CommentsListPaginationQuery.graphql.ts"() {
    "use strict";
    node = /* @__PURE__ */ function() {
      var v0 = {
        "defaultValue": 5,
        "kind": "LocalArgument",
        "name": "count"
      }, v1 = {
        "defaultValue": null,
        "kind": "LocalArgument",
        "name": "cursor"
      }, v2 = {
        "defaultValue": null,
        "kind": "LocalArgument",
        "name": "id"
      }, v3 = {
        "defaultValue": "-is_pinned,-created",
        "kind": "LocalArgument",
        "name": "orderBy"
      }, v4 = {
        "defaultValue": null,
        "kind": "LocalArgument",
        "name": "q"
      }, v5 = [
        {
          "kind": "Variable",
          "name": "id",
          "variableName": "id"
        }
      ], v6 = {
        "kind": "Variable",
        "name": "orderBy",
        "variableName": "orderBy"
      }, v7 = {
        "kind": "Variable",
        "name": "q",
        "variableName": "q"
      }, v8 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "__typename",
        "storageKey": null
      }, v9 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "id",
        "storageKey": null
      }, v10 = [
        {
          "alias": null,
          "args": null,
          "kind": "ScalarField",
          "name": "total",
          "storageKey": null
        }
      ], v11 = {
        "alias": null,
        "args": null,
        "concreteType": "CommentsCount",
        "kind": "LinkedField",
        "name": "commentsCount",
        "plural": false,
        "selections": v10,
        "storageKey": null
      }, v12 = [
        {
          "kind": "Variable",
          "name": "after",
          "variableName": "cursor"
        },
        {
          "kind": "Variable",
          "name": "first",
          "variableName": "count"
        },
        v6,
        v7
      ], v13 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "pk",
        "storageKey": null
      };
      return {
        "fragment": {
          "argumentDefinitions": [
            v0,
            v1,
            v2,
            v3,
            v4
          ],
          "kind": "Fragment",
          "metadata": null,
          "name": "CommentsListPaginationQuery",
          "selections": [
            {
              "alias": null,
              "args": v5,
              "concreteType": null,
              "kind": "LinkedField",
              "name": "node",
              "plural": false,
              "selections": [
                {
                  "args": [
                    {
                      "kind": "Variable",
                      "name": "count",
                      "variableName": "count"
                    },
                    {
                      "kind": "Variable",
                      "name": "cursor",
                      "variableName": "cursor"
                    },
                    v6,
                    v7
                  ],
                  "kind": "FragmentSpread",
                  "name": "CommentsList_comments"
                }
              ],
              "storageKey": null
            }
          ],
          "type": "Query",
          "abstractKey": null
        },
        "kind": "Request",
        "operation": {
          "argumentDefinitions": [
            v0,
            v1,
            v3,
            v4,
            v2
          ],
          "kind": "Operation",
          "name": "CommentsListPaginationQuery",
          "selections": [
            {
              "alias": null,
              "args": v5,
              "concreteType": null,
              "kind": "LinkedField",
              "name": "node",
              "plural": false,
              "selections": [
                v8,
                v9,
                {
                  "kind": "InlineFragment",
                  "selections": [
                    v11,
                    {
                      "alias": null,
                      "args": v12,
                      "concreteType": "CommentConnection",
                      "kind": "LinkedField",
                      "name": "comments",
                      "plural": false,
                      "selections": [
                        {
                          "alias": null,
                          "args": null,
                          "concreteType": "PageInfo",
                          "kind": "LinkedField",
                          "name": "pageInfo",
                          "plural": false,
                          "selections": [
                            {
                              "alias": null,
                              "args": null,
                              "kind": "ScalarField",
                              "name": "endCursor",
                              "storageKey": null
                            },
                            {
                              "alias": null,
                              "args": null,
                              "kind": "ScalarField",
                              "name": "hasNextPage",
                              "storageKey": null
                            }
                          ],
                          "storageKey": null
                        },
                        {
                          "alias": null,
                          "args": null,
                          "concreteType": "CommentEdge",
                          "kind": "LinkedField",
                          "name": "edges",
                          "plural": true,
                          "selections": [
                            {
                              "alias": null,
                              "args": null,
                              "concreteType": "Comment",
                              "kind": "LinkedField",
                              "name": "node",
                              "plural": false,
                              "selections": [
                                v9,
                                {
                                  "alias": null,
                                  "args": null,
                                  "kind": "ScalarField",
                                  "name": "isPinned",
                                  "storageKey": null
                                },
                                v13,
                                {
                                  "alias": null,
                                  "args": null,
                                  "kind": "ScalarField",
                                  "name": "body",
                                  "storageKey": null
                                },
                                {
                                  "alias": null,
                                  "args": null,
                                  "concreteType": "User",
                                  "kind": "LinkedField",
                                  "name": "user",
                                  "plural": false,
                                  "selections": [
                                    v9,
                                    v13,
                                    {
                                      "alias": null,
                                      "args": null,
                                      "kind": "ScalarField",
                                      "name": "fullName",
                                      "storageKey": null
                                    },
                                    {
                                      "alias": null,
                                      "args": [
                                        {
                                          "kind": "Literal",
                                          "name": "height",
                                          "value": 50
                                        },
                                        {
                                          "kind": "Literal",
                                          "name": "width",
                                          "value": 50
                                        }
                                      ],
                                      "concreteType": "File",
                                      "kind": "LinkedField",
                                      "name": "avatar",
                                      "plural": false,
                                      "selections": [
                                        {
                                          "alias": null,
                                          "args": null,
                                          "kind": "ScalarField",
                                          "name": "url",
                                          "storageKey": null
                                        }
                                      ],
                                      "storageKey": "avatar(height:50,width:50)"
                                    }
                                  ],
                                  "storageKey": null
                                },
                                {
                                  "alias": null,
                                  "args": null,
                                  "kind": "ScalarField",
                                  "name": "created",
                                  "storageKey": null
                                },
                                v11,
                                {
                                  "alias": "canChange",
                                  "args": [
                                    {
                                      "kind": "Literal",
                                      "name": "perm",
                                      "value": "change"
                                    }
                                  ],
                                  "kind": "ScalarField",
                                  "name": "hasPerm",
                                  "storageKey": 'hasPerm(perm:"change")'
                                },
                                {
                                  "alias": "canDelete",
                                  "args": [
                                    {
                                      "kind": "Literal",
                                      "name": "perm",
                                      "value": "delete"
                                    }
                                  ],
                                  "kind": "ScalarField",
                                  "name": "hasPerm",
                                  "storageKey": 'hasPerm(perm:"delete")'
                                },
                                {
                                  "alias": "canReport",
                                  "args": [
                                    {
                                      "kind": "Literal",
                                      "name": "perm",
                                      "value": "report"
                                    }
                                  ],
                                  "kind": "ScalarField",
                                  "name": "hasPerm",
                                  "storageKey": 'hasPerm(perm:"report")'
                                },
                                {
                                  "alias": "canPin",
                                  "args": [
                                    {
                                      "kind": "Literal",
                                      "name": "perm",
                                      "value": "pin"
                                    }
                                  ],
                                  "kind": "ScalarField",
                                  "name": "hasPerm",
                                  "storageKey": 'hasPerm(perm:"pin")'
                                },
                                v8,
                                {
                                  "kind": "InlineFragment",
                                  "selections": [
                                    {
                                      "alias": null,
                                      "args": null,
                                      "concreteType": "ReactionsCount",
                                      "kind": "LinkedField",
                                      "name": "reactionsCount",
                                      "plural": false,
                                      "selections": v10,
                                      "storageKey": null
                                    },
                                    {
                                      "alias": null,
                                      "args": null,
                                      "concreteType": "Reaction",
                                      "kind": "LinkedField",
                                      "name": "myReaction",
                                      "plural": false,
                                      "selections": [
                                        v9,
                                        {
                                          "alias": null,
                                          "args": null,
                                          "kind": "ScalarField",
                                          "name": "reactionType",
                                          "storageKey": null
                                        }
                                      ],
                                      "storageKey": null
                                    }
                                  ],
                                  "type": "ReactionsInterface",
                                  "abstractKey": "__isReactionsInterface"
                                },
                                {
                                  "kind": "TypeDiscriminator",
                                  "abstractKey": "__isCommentsInterface"
                                }
                              ],
                              "storageKey": null
                            },
                            {
                              "alias": null,
                              "args": null,
                              "kind": "ScalarField",
                              "name": "cursor",
                              "storageKey": null
                            }
                          ],
                          "storageKey": null
                        }
                      ],
                      "storageKey": null
                    },
                    {
                      "alias": null,
                      "args": v12,
                      "filters": [],
                      "handle": "connection",
                      "key": "CommentsList_comments",
                      "kind": "LinkedHandle",
                      "name": "comments"
                    }
                  ],
                  "type": "CommentsInterface",
                  "abstractKey": "__isCommentsInterface"
                }
              ],
              "storageKey": null
            }
          ]
        },
        "params": {
          "cacheID": "de4d3ba673b6bcb9b4d69c8a90a02017",
          "id": null,
          "metadata": {},
          "name": "CommentsListPaginationQuery",
          "operationKind": "query",
          "text": 'query CommentsListPaginationQuery(\n  $count: Int = 5\n  $cursor: String\n  $orderBy: String = "-is_pinned,-created"\n  $q: String\n  $id: ID!\n) {\n  node(id: $id) {\n    __typename\n    ...CommentsList_comments_40Ewnb\n    id\n  }\n}\n\nfragment CommentItem_comment on Comment {\n  id\n  pk\n  body\n  isPinned\n  user {\n    id\n    pk\n    fullName\n    avatar(width: 50, height: 50) {\n      url\n    }\n  }\n  created\n  commentsCount {\n    total\n  }\n  canChange: hasPerm(perm: "change")\n  canDelete: hasPerm(perm: "delete")\n  canReport: hasPerm(perm: "report")\n  canPin: hasPerm(perm: "pin")\n  ...ReactionButton_target\n  ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n  __isCommentsInterface: __typename\n  id\n}\n\nfragment CommentsList_comments_40Ewnb on CommentsInterface {\n  __isCommentsInterface: __typename\n  id\n  commentsCount {\n    total\n  }\n  comments(first: $count, after: $cursor, q: $q, orderBy: $orderBy) {\n    pageInfo {\n      endCursor\n      hasNextPage\n    }\n    edges {\n      node {\n        id\n        isPinned\n        ...CommentItem_comment\n        __typename\n      }\n      cursor\n    }\n  }\n  ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n  __isReactionsInterface: __typename\n  id\n  reactionsCount {\n    total\n  }\n  myReaction {\n    id\n    reactionType\n  }\n}\n'
        }
      };
    }();
    node.hash = "873f3258ff0a18f046b689e6aafb00c9";
    CommentsListPaginationQuery_graphql_default = node;
  }
});

// __generated__/CommentsList_comments.graphql.ts
var CommentsList_comments_graphql_exports = {};
_chunk4CV4JOE5js.__export.call(void 0, CommentsList_comments_graphql_exports, {
  default: () => CommentsList_comments_graphql_default
});
var node2, CommentsList_comments_graphql_default;
var init_CommentsList_comments_graphql = _chunk4CV4JOE5js.__esm.call(void 0, {
  "__generated__/CommentsList_comments.graphql.ts"() {
    "use strict";
    init_CommentsListPaginationQuery_graphql();
    node2 = /* @__PURE__ */ function() {
      var v0 = [
        "comments"
      ], v1 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "id",
        "storageKey": null
      };
      return {
        "argumentDefinitions": [
          {
            "defaultValue": 5,
            "kind": "LocalArgument",
            "name": "count"
          },
          {
            "defaultValue": null,
            "kind": "LocalArgument",
            "name": "cursor"
          },
          {
            "defaultValue": "-is_pinned,-created",
            "kind": "LocalArgument",
            "name": "orderBy"
          },
          {
            "defaultValue": null,
            "kind": "LocalArgument",
            "name": "q"
          }
        ],
        "kind": "Fragment",
        "metadata": {
          "connection": [
            {
              "count": "count",
              "cursor": "cursor",
              "direction": "forward",
              "path": v0
            }
          ],
          "refetch": {
            "connection": {
              "forward": {
                "count": "count",
                "cursor": "cursor"
              },
              "backward": null,
              "path": v0
            },
            "fragmentPathInResult": [
              "node"
            ],
            "operation": CommentsListPaginationQuery_graphql_default,
            "identifierInfo": {
              "identifierField": "id",
              "identifierQueryVariableName": "id"
            }
          }
        },
        "name": "CommentsList_comments",
        "selections": [
          v1,
          {
            "alias": null,
            "args": null,
            "concreteType": "CommentsCount",
            "kind": "LinkedField",
            "name": "commentsCount",
            "plural": false,
            "selections": [
              {
                "alias": null,
                "args": null,
                "kind": "ScalarField",
                "name": "total",
                "storageKey": null
              }
            ],
            "storageKey": null
          },
          {
            "alias": "comments",
            "args": null,
            "concreteType": "CommentConnection",
            "kind": "LinkedField",
            "name": "__CommentsList_comments_connection",
            "plural": false,
            "selections": [
              {
                "alias": null,
                "args": null,
                "concreteType": "PageInfo",
                "kind": "LinkedField",
                "name": "pageInfo",
                "plural": false,
                "selections": [
                  {
                    "alias": null,
                    "args": null,
                    "kind": "ScalarField",
                    "name": "endCursor",
                    "storageKey": null
                  },
                  {
                    "alias": null,
                    "args": null,
                    "kind": "ScalarField",
                    "name": "hasNextPage",
                    "storageKey": null
                  }
                ],
                "storageKey": null
              },
              {
                "alias": null,
                "args": null,
                "concreteType": "CommentEdge",
                "kind": "LinkedField",
                "name": "edges",
                "plural": true,
                "selections": [
                  {
                    "alias": null,
                    "args": null,
                    "concreteType": "Comment",
                    "kind": "LinkedField",
                    "name": "node",
                    "plural": false,
                    "selections": [
                      v1,
                      {
                        "alias": null,
                        "args": null,
                        "kind": "ScalarField",
                        "name": "isPinned",
                        "storageKey": null
                      },
                      {
                        "args": null,
                        "kind": "FragmentSpread",
                        "name": "CommentItem_comment"
                      },
                      {
                        "alias": null,
                        "args": null,
                        "kind": "ScalarField",
                        "name": "__typename",
                        "storageKey": null
                      }
                    ],
                    "storageKey": null
                  },
                  {
                    "alias": null,
                    "args": null,
                    "kind": "ScalarField",
                    "name": "cursor",
                    "storageKey": null
                  }
                ],
                "storageKey": null
              }
            ],
            "storageKey": null
          },
          {
            "args": null,
            "kind": "FragmentSpread",
            "name": "CommentItem_target"
          }
        ],
        "type": "CommentsInterface",
        "abstractKey": "__isCommentsInterface"
      };
    }();
    node2.hash = "873f3258ff0a18f046b689e6aafb00c9";
    CommentsList_comments_graphql_default = node2;
  }
});

// tmp-babel/comments/common/graphql/queries/CommentsList.js
var _reactrelay = require('react-relay');
var _CommentsList_comments;
var CommentsListFragmentQuery = _CommentsList_comments !== void 0 ? _CommentsList_comments : (_CommentsList_comments = (init_CommentsList_comments_graphql(), _chunk4CV4JOE5js.__toCommonJS.call(void 0, CommentsList_comments_graphql_exports)), _CommentsList_comments.hash && _CommentsList_comments.hash !== "873f3258ff0a18f046b689e6aafb00c9" && console.error("The definition of 'CommentsList_comments' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CommentsList_comments);
var useCommentList = function useCommentList2(targetRef) {
  return _reactrelay.usePaginationFragment.call(void 0, CommentsListFragmentQuery, targetRef);
};




exports.CommentsListFragmentQuery = CommentsListFragmentQuery; exports.useCommentList = useCommentList;
//# sourceMappingURL=chunk-M3BOYEO4.js.map