import{a as i,b as m,c as s}from"./chunk-XEHBQAFR.mjs";var K={};m(K,{default:()=>Q});var R,Q,b=i(()=>{"use strict";R=function(){var a={defaultValue:null,kind:"LocalArgument",name:"id"},t={defaultValue:!1,kind:"LocalArgument",name:"isRepliesExpanded"},o=[{kind:"Variable",name:"id",variableName:"id"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"pk",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},g={alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[l,r,{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},p={alias:null,args:null,kind:"ScalarField",name:"created",storageKey:null},y=[{alias:null,args:null,kind:"ScalarField",name:"total",storageKey:null}],f={alias:null,args:null,concreteType:"CommentsCount",kind:"LinkedField",name:"commentsCount",plural:!1,selections:y,storageKey:null},k={alias:"canChange",args:[{kind:"Literal",name:"perm",value:"change"}],kind:"ScalarField",name:"hasPerm",storageKey:'hasPerm(perm:"change")'},h={alias:"canDelete",args:[{kind:"Literal",name:"perm",value:"delete"}],kind:"ScalarField",name:"hasPerm",storageKey:'hasPerm(perm:"delete")'},C={alias:"canReport",args:[{kind:"Literal",name:"perm",value:"report"}],kind:"ScalarField",name:"hasPerm",storageKey:'hasPerm(perm:"report")'},F={alias:"canPin",args:[{kind:"Literal",name:"perm",value:"pin"}],kind:"ScalarField",name:"hasPerm",storageKey:'hasPerm(perm:"pin")'},_=[{kind:"Literal",name:"first",value:5},{kind:"Literal",name:"orderBy",value:"-is_pinned,-created"}],I={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"ReactionsCount",kind:"LinkedField",name:"reactionsCount",plural:!1,selections:y,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"},v={kind:"TypeDiscriminator",abstractKey:"__isCommentsInterface"};return{fragment:{argumentDefinitions:[a,t],kind:"Fragment",metadata:null,name:"CommentItemRefetchQuery",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"isRepliesExpanded",variableName:"isRepliesExpanded"}],kind:"FragmentSpread",name:"CommentItem_comment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,a],kind:"Operation",name:"CommentItemRefetchQuery",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,l,{kind:"InlineFragment",selections:[r,u,c,g,p,f,k,h,C,F,{condition:"isRepliesExpanded",kind:"Condition",passingValue:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:_,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,c,r,u,g,p,f,k,h,C,F,d,I,v],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:_,filters:[],handle:"connection",key:"CommentsList_comments",kind:"LinkedHandle",name:"comments"}],type:"CommentsInterface",abstractKey:"__isCommentsInterface"}]},I,v],type:"Comment",abstractKey:null}],storageKey:null}]},params:{cacheID:"df527927045fb9f7719d99ca6e66ec58",id:null,metadata:{},name:"CommentItemRefetchQuery",operationKind:"query",text:`query CommentItemRefetchQuery(
  $isRepliesExpanded: Boolean = false
  $id: ID!
) {
  node(id: $id) {
    __typename
    ...CommentItem_comment_2aaWJ5
    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_comment_2aaWJ5 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")
  ...CommentsList_comments @include(if: $isRepliesExpanded)
  ...ReactionButton_target
  ...CommentItem_target
}

fragment CommentItem_target on CommentsInterface {
  __isCommentsInterface: __typename
  id
}

fragment CommentsList_comments on CommentsInterface {
  __isCommentsInterface: __typename
  id
  commentsCount {
    total
  }
  comments(first: 5, orderBy: "-is_pinned,-created") {
    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
  }
}
`}}}();R.hash="6b85079a50a9d42f07d0859fcf536a61";Q=R});var S={};m(S,{default:()=>D});var P,D,L=i(()=>{"use strict";P=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"pk",storageKey:null};return{argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"isRepliesExpanded"}],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:["node"],operation:(b(),s(K)),identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"CommentItem_comment",selections:[a,t,{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:!1,selections:[a,t,{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},{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:"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:!0,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}}();P.hash="6b85079a50a9d42f07d0859fcf536a61";D=P});var T={};m(T,{default:()=>E});var x,E,$=i(()=>{"use strict";x={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CommentItem_target",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"CommentsInterface",abstractKey:"__isCommentsInterface"};x.hash="6b7c78ab34a5b8f4ef45b6facdfadf6b";E=x});import"react-relay";var e,n,B=(e!==void 0||(e=(L(),s(S)),e.hash&&e.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.")),e),V=(n!==void 0||(n=($(),s(T)),n.hash&&n.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.")),n);export{B as a,V as b};
//# sourceMappingURL=chunk-X332F2ZY.mjs.map