import {
  __esm,
  __export,
  __toCommonJS
} from "./chunk-NFEGQTCC.mjs";

// __generated__/CommentItemRefetchQuery.graphql.ts
var node, CommentItemRefetchQuery_graphql_default;
var init_CommentItemRefetchQuery_graphql = __esm({
  "__generated__/CommentItemRefetchQuery.graphql.ts"() {
    "use strict";
    node = /* @__PURE__ */ function() {
      var v0 = {
        "defaultValue": null,
        "kind": "LocalArgument",
        "name": "id"
      }, v1 = {
        "defaultValue": false,
        "kind": "LocalArgument",
        "name": "isRepliesExpanded"
      }, v2 = [
        {
          "kind": "Variable",
          "name": "id",
          "variableName": "id"
        }
      ], v3 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "__typename",
        "storageKey": null
      }, v4 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "id",
        "storageKey": null
      }, v5 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "pk",
        "storageKey": null
      }, v6 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "body",
        "storageKey": null
      }, v7 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "isPinned",
        "storageKey": null
      }, v8 = {
        "alias": null,
        "args": null,
        "concreteType": "User",
        "kind": "LinkedField",
        "name": "user",
        "plural": false,
        "selections": [
          v4,
          v5,
          {
            "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
      }, v9 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "created",
        "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 = {
        "alias": "canChange",
        "args": [
          {
            "kind": "Literal",
            "name": "perm",
            "value": "change"
          }
        ],
        "kind": "ScalarField",
        "name": "hasPerm",
        "storageKey": 'hasPerm(perm:"change")'
      }, v13 = {
        "alias": "canDelete",
        "args": [
          {
            "kind": "Literal",
            "name": "perm",
            "value": "delete"
          }
        ],
        "kind": "ScalarField",
        "name": "hasPerm",
        "storageKey": 'hasPerm(perm:"delete")'
      }, v14 = {
        "alias": "canReport",
        "args": [
          {
            "kind": "Literal",
            "name": "perm",
            "value": "report"
          }
        ],
        "kind": "ScalarField",
        "name": "hasPerm",
        "storageKey": 'hasPerm(perm:"report")'
      }, v15 = {
        "alias": "canPin",
        "args": [
          {
            "kind": "Literal",
            "name": "perm",
            "value": "pin"
          }
        ],
        "kind": "ScalarField",
        "name": "hasPerm",
        "storageKey": 'hasPerm(perm:"pin")'
      }, v16 = [
        {
          "kind": "Literal",
          "name": "first",
          "value": 5
        },
        {
          "kind": "Literal",
          "name": "orderBy",
          "value": "-is_pinned,-created"
        }
      ], v17 = {
        "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": [
              v4,
              {
                "alias": null,
                "args": null,
                "kind": "ScalarField",
                "name": "reactionType",
                "storageKey": null
              }
            ],
            "storageKey": null
          }
        ],
        "type": "ReactionsInterface",
        "abstractKey": "__isReactionsInterface"
      }, v18 = {
        "kind": "TypeDiscriminator",
        "abstractKey": "__isCommentsInterface"
      };
      return {
        "fragment": {
          "argumentDefinitions": [
            v0,
            v1
          ],
          "kind": "Fragment",
          "metadata": null,
          "name": "CommentItemRefetchQuery",
          "selections": [
            {
              "alias": null,
              "args": v2,
              "concreteType": null,
              "kind": "LinkedField",
              "name": "node",
              "plural": false,
              "selections": [
                {
                  "args": [
                    {
                      "kind": "Variable",
                      "name": "isRepliesExpanded",
                      "variableName": "isRepliesExpanded"
                    }
                  ],
                  "kind": "FragmentSpread",
                  "name": "CommentItem_comment"
                }
              ],
              "storageKey": null
            }
          ],
          "type": "Query",
          "abstractKey": null
        },
        "kind": "Request",
        "operation": {
          "argumentDefinitions": [
            v1,
            v0
          ],
          "kind": "Operation",
          "name": "CommentItemRefetchQuery",
          "selections": [
            {
              "alias": null,
              "args": v2,
              "concreteType": null,
              "kind": "LinkedField",
              "name": "node",
              "plural": false,
              "selections": [
                v3,
                v4,
                {
                  "kind": "InlineFragment",
                  "selections": [
                    v5,
                    v6,
                    v7,
                    v8,
                    v9,
                    v11,
                    v12,
                    v13,
                    v14,
                    v15,
                    {
                      "condition": "isRepliesExpanded",
                      "kind": "Condition",
                      "passingValue": true,
                      "selections": [
                        {
                          "kind": "InlineFragment",
                          "selections": [
                            {
                              "alias": null,
                              "args": v16,
                              "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": [
                                        v4,
                                        v7,
                                        v5,
                                        v6,
                                        v8,
                                        v9,
                                        v11,
                                        v12,
                                        v13,
                                        v14,
                                        v15,
                                        v3,
                                        v17,
                                        v18
                                      ],
                                      "storageKey": null
                                    },
                                    {
                                      "alias": null,
                                      "args": null,
                                      "kind": "ScalarField",
                                      "name": "cursor",
                                      "storageKey": null
                                    }
                                  ],
                                  "storageKey": null
                                }
                              ],
                              "storageKey": 'comments(first:5,orderBy:"-is_pinned,-created")'
                            },
                            {
                              "alias": null,
                              "args": v16,
                              "filters": [],
                              "handle": "connection",
                              "key": "CommentsList_comments",
                              "kind": "LinkedHandle",
                              "name": "comments"
                            }
                          ],
                          "type": "CommentsInterface",
                          "abstractKey": "__isCommentsInterface"
                        }
                      ]
                    },
                    v17,
                    v18
                  ],
                  "type": "Comment",
                  "abstractKey": null
                }
              ],
              "storageKey": null
            }
          ]
        },
        "params": {
          "cacheID": "df527927045fb9f7719d99ca6e66ec58",
          "id": null,
          "metadata": {},
          "name": "CommentItemRefetchQuery",
          "operationKind": "query",
          "text": 'query CommentItemRefetchQuery(\n  $isRepliesExpanded: Boolean = false\n  $id: ID!\n) {\n  node(id: $id) {\n    __typename\n    ...CommentItem_comment_2aaWJ5\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_comment_2aaWJ5 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  ...CommentsList_comments @include(if: $isRepliesExpanded)\n  ...ReactionButton_target\n  ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n  __isCommentsInterface: __typename\n  id\n}\n\nfragment CommentsList_comments on CommentsInterface {\n  __isCommentsInterface: __typename\n  id\n  commentsCount {\n    total\n  }\n  comments(first: 5, orderBy: "-is_pinned,-created") {\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 = "6b85079a50a9d42f07d0859fcf536a61";
    CommentItemRefetchQuery_graphql_default = node;
  }
});

// __generated__/CommentItem_comment.graphql.ts
var CommentItem_comment_graphql_exports = {};
__export(CommentItem_comment_graphql_exports, {
  default: () => CommentItem_comment_graphql_default
});
var node2, CommentItem_comment_graphql_default;
var init_CommentItem_comment_graphql = __esm({
  "__generated__/CommentItem_comment.graphql.ts"() {
    "use strict";
    init_CommentItemRefetchQuery_graphql();
    node2 = /* @__PURE__ */ function() {
      var v0 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "id",
        "storageKey": null
      }, v1 = {
        "alias": null,
        "args": null,
        "kind": "ScalarField",
        "name": "pk",
        "storageKey": null
      };
      return {
        "argumentDefinitions": [
          {
            "defaultValue": false,
            "kind": "LocalArgument",
            "name": "isRepliesExpanded"
          }
        ],
        "kind": "Fragment",
        "metadata": {
          "refetch": {
            "connection": null,
            "fragmentPathInResult": [
              "node"
            ],
            "operation": CommentItemRefetchQuery_graphql_default,
            "identifierInfo": {
              "identifierField": "id",
              "identifierQueryVariableName": "id"
            }
          }
        },
        "name": "CommentItem_comment",
        "selections": [
          v0,
          v1,
          {
            "alias": null,
            "args": null,
            "kind": "ScalarField",
            "name": "body",
            "storageKey": null
          },
          {
            "alias": null,
            "args": null,
            "kind": "ScalarField",
            "name": "isPinned",
            "storageKey": null
          },
          {
            "alias": null,
            "args": null,
            "concreteType": "User",
            "kind": "LinkedField",
            "name": "user",
            "plural": false,
            "selections": [
              v0,
              v1,
              {
                "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
          },
          {
            "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": "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")'
          },
          {
            "condition": "isRepliesExpanded",
            "kind": "Condition",
            "passingValue": true,
            "selections": [
              {
                "args": null,
                "kind": "FragmentSpread",
                "name": "CommentsList_comments"
              }
            ]
          },
          {
            "args": null,
            "kind": "FragmentSpread",
            "name": "ReactionButton_target"
          },
          {
            "args": null,
            "kind": "FragmentSpread",
            "name": "CommentItem_target"
          }
        ],
        "type": "Comment",
        "abstractKey": null
      };
    }();
    node2.hash = "6b85079a50a9d42f07d0859fcf536a61";
    CommentItem_comment_graphql_default = node2;
  }
});

// __generated__/CommentItem_target.graphql.ts
var CommentItem_target_graphql_exports = {};
__export(CommentItem_target_graphql_exports, {
  default: () => CommentItem_target_graphql_default
});
var node3, CommentItem_target_graphql_default;
var init_CommentItem_target_graphql = __esm({
  "__generated__/CommentItem_target.graphql.ts"() {
    "use strict";
    node3 = {
      "argumentDefinitions": [],
      "kind": "Fragment",
      "metadata": null,
      "name": "CommentItem_target",
      "selections": [
        {
          "alias": null,
          "args": null,
          "kind": "ScalarField",
          "name": "id",
          "storageKey": null
        }
      ],
      "type": "CommentsInterface",
      "abstractKey": "__isCommentsInterface"
    };
    node3.hash = "6b7c78ab34a5b8f4ef45b6facdfadf6b";
    CommentItem_target_graphql_default = node3;
  }
});

// tmp-babel/comments/common/graphql/queries/CommentItem.js
import { graphql } from "react-relay";
var _CommentItem_comment;
var _CommentItem_target;
var CommentItemFragmentQuery = _CommentItem_comment !== void 0 ? _CommentItem_comment : (_CommentItem_comment = (init_CommentItem_comment_graphql(), __toCommonJS(CommentItem_comment_graphql_exports)), _CommentItem_comment.hash && _CommentItem_comment.hash !== "6b85079a50a9d42f07d0859fcf536a61" && console.error("The definition of 'CommentItem_comment' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CommentItem_comment);
var CommentItemTargetFragmentQuery = _CommentItem_target !== void 0 ? _CommentItem_target : (_CommentItem_target = (init_CommentItem_target_graphql(), __toCommonJS(CommentItem_target_graphql_exports)), _CommentItem_target.hash && _CommentItem_target.hash !== "6b7c78ab34a5b8f4ef45b6facdfadf6b" && console.error("The definition of 'CommentItem_target' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CommentItem_target);

export {
  CommentItemFragmentQuery,
  CommentItemTargetFragmentQuery
};
//# sourceMappingURL=chunk-3YAAIMU3.mjs.map