"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXD2OIZABjs = require('./chunk-XD2OIZAB.js');var _={};_chunkXD2OIZABjs.b.call(void 0, _,{default:()=>b});var C,b,F=_chunkXD2OIZABjs.a.call(void 0, ()=>{"use strict";C=function(){var n={defaultValue:5,kind:"LocalArgument",name:"count"},e={defaultValue:null,kind:"LocalArgument",name:"cursor"},t={defaultValue:null,kind:"LocalArgument",name:"id"},r={defaultValue:"-is_pinned,-created",kind:"LocalArgument",name:"orderBy"},i={defaultValue:null,kind:"LocalArgument",name:"q"},s=[{kind:"Variable",name:"id",variableName:"id"}],o={kind:"Variable",name:"orderBy",variableName:"orderBy"},m={kind:"Variable",name:"q",variableName:"q"},d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},u=[{alias:null,args:null,kind:"ScalarField",name:"total",storageKey:null}],c={alias:null,args:null,concreteType:"CommentsCount",kind:"LinkedField",name:"commentsCount",plural:!1,selections:u,storageKey:null},g=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},o,m],y={alias:null,args:null,kind:"ScalarField",name:"pk",storageKey:null};return{fragment:{argumentDefinitions:[n,e,t,r,i],kind:"Fragment",metadata:null,name:"CommentsListPaginationQuery",selections:[{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},o,m],kind:"FragmentSpread",name:"CommentsList_comments"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,e,r,i,t],kind:"Operation",name:"CommentsListPaginationQuery",selections:[{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,l,{kind:"InlineFragment",selections:[c,{alias:null,args:g,concreteType:"CommentConnection",kind:"LinkedField",name:"comments",plural:!1,selections:[{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,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:!0,selections:[{alias:null,args:null,concreteType:"Comment",kind:"LinkedField",name:"node",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},y,{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[l,y,{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:!1,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},c,{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")'},d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"ReactionsCount",kind:"LinkedField",name:"reactionsCount",plural:!1,selections:u,storageKey:null},{alias:null,args:null,concreteType:"Reaction",kind:"LinkedField",name:"myReaction",plural:!1,selections:[l,{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:g,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(
  $count: Int = 5
  $cursor: String
  $orderBy: String = "-is_pinned,-created"
  $q: String
  $id: ID!
) {
  node(id: $id) {
    __typename
    ...CommentsList_comments_40Ewnb
    id
  }
}

fragment CommentItem_comment on Comment {
  id
  pk
  body
  isPinned
  user {
    id
    pk
    fullName
    avatar(width: 50, height: 50) {
      url
    }
  }
  created
  commentsCount {
    total
  }
  canChange: hasPerm(perm: "change")
  canDelete: hasPerm(perm: "delete")
  canReport: hasPerm(perm: "report")
  canPin: hasPerm(perm: "pin")
  ...ReactionButton_target
  ...CommentItem_target
}

fragment CommentItem_target on CommentsInterface {
  __isCommentsInterface: __typename
  id
}

fragment CommentsList_comments_40Ewnb on CommentsInterface {
  __isCommentsInterface: __typename
  id
  commentsCount {
    total
  }
  comments(first: $count, after: $cursor, q: $q, orderBy: $orderBy) {
    pageInfo {
      endCursor
      hasNextPage
    }
    edges {
      node {
        id
        isPinned
        ...CommentItem_comment
        __typename
      }
      cursor
    }
  }
  ...CommentItem_target
}

fragment ReactionButton_target on ReactionsInterface {
  __isReactionsInterface: __typename
  id
  reactionsCount {
    total
  }
  myReaction {
    id
    reactionType
  }
}
`}}}();C.hash="873f3258ff0a18f046b689e6aafb00c9";b=C});var h={};_chunkXD2OIZABjs.b.call(void 0, h,{default:()=>v});var L,v,K=_chunkXD2OIZABjs.a.call(void 0, ()=>{"use strict";L=function(){var n=["comments"],e={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:n}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:n},fragmentPathInResult:["node"],operation:(F(),_chunkXD2OIZABjs.c.call(void 0, _)),identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"CommentsList_comments",selections:[e,{alias:null,args:null,concreteType:"CommentsCount",kind:"LinkedField",name:"commentsCount",plural:!1,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:!1,selections:[{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,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:!0,selections:[{alias:null,args:null,concreteType:"Comment",kind:"LinkedField",name:"node",plural:!1,selections:[e,{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"}}();L.hash="873f3258ff0a18f046b689e6aafb00c9";v=L});var _reactrelay = require('react-relay');var a,I= exports.a =(a!==void 0||(a=(K(),_chunkXD2OIZABjs.c.call(void 0, h)),a.hash&&a.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.")),a),$= exports.b =function(e){return _reactrelay.usePaginationFragment.call(void 0, I,e)};exports.a = I; exports.b = $;
//# sourceMappingURL=chunk-DMSSQ5DS.js.map