"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPXVCBJQPjs = require('./chunk-PXVCBJQP.js');var _chunkXD2OIZABjs = require('./chunk-XD2OIZAB.js');var b={};_chunkXD2OIZABjs.b.call(void 0, b,{default:()=>K});var N,K,F=_chunkXD2OIZABjs.a.call(void 0, ()=>{"use strict";N=function(){var l=[{defaultValue:null,kind:"LocalArgument",name:"connections"}],a={args:null,kind:"FragmentSpread",name:"NotificationItemFragment"},n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"deletedNotificationId",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"pk",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"unread",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"level",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"verb",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"data",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[g,n,{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"height",value:48},{kind:"Literal",name:"width",value:48}],concreteType:"File",kind:"LinkedField",name:"avatar",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:"avatar(height:48,width:48)"},{alias:null,args:null,kind:"ScalarField",name:"fullName",storageKey:null}],type:"User",abstractKey:null}],storageKey:null},m=[n,g,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null}],type:"Comment",abstractKey:null}],p={alias:null,args:null,concreteType:null,kind:"LinkedField",name:"target",plural:!1,selections:m,storageKey:null},y={alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actionObject",plural:!1,selections:m,storageKey:null};return{fragment:{argumentDefinitions:l,kind:"Fragment",metadata:null,name:"useNotificationsSubscription",selections:[{alias:null,args:null,concreteType:"OnNotificationChange",kind:"LinkedField",name:"onNotificationChange",plural:!1,selections:[{alias:null,args:null,concreteType:"NotificationEdge",kind:"LinkedField",name:"createdNotification",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"recipient",plural:!1,selections:[n,{args:null,kind:"FragmentSpread",name:"NotificationUserMenuFragment"}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"updatedNotification",plural:!1,selections:[n,a],storageKey:null},i],storageKey:null}],type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:l,kind:"Operation",name:"useNotificationsSubscription",selections:[{alias:null,args:null,concreteType:"OnNotificationChange",kind:"LinkedField",name:"onNotificationChange",plural:!1,selections:[{alias:null,args:null,concreteType:"NotificationEdge",kind:"LinkedField",name:"createdNotification",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"node",plural:!1,selections:[n,t,o,r,s,d,u,c,f,p,y,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"recipient",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"notificationsUnreadCount",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,filters:null,handle:"prependEdge",key:"",kind:"LinkedHandle",name:"createdNotification",handleArgs:[{kind:"Variable",name:"connections",variableName:"connections"}]},{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"updatedNotification",plural:!1,selections:[n,t,o,r,s,d,u,c,f,p,y],storageKey:null},i,{alias:null,args:null,filters:null,handle:"deleteRecord",key:"",kind:"ScalarHandle",name:"deletedNotificationId"}],storageKey:null}]},params:{cacheID:"dba91e538812ad2152bd5fb5c1284af4",id:null,metadata:{},name:"useNotificationsSubscription",operationKind:"subscription",text:`subscription useNotificationsSubscription {
  onNotificationChange {
    createdNotification {
      node {
        ...NotificationItemFragment
        recipient {
          id
          ...NotificationUserMenuFragment
        }
        id
      }
    }
    updatedNotification {
      id
      ...NotificationItemFragment
    }
    deletedNotificationId
  }
}

fragment NotificationItemFragment on Notification {
  id
  pk
  unread
  timestamp
  level
  verb
  description
  data
  actor {
    __typename
    id
    ... on User {
      avatar(width: 48, height: 48) {
        url
      }
      fullName
    }
  }
  target {
    id
    __typename
    ... on Comment {
      id
      body
    }
  }
  actionObject {
    id
    __typename
    ... on Comment {
      id
      body
    }
  }
}

fragment NotificationUserMenuFragment on User {
  id
  notificationsUnreadCount
}
`}}}();N.hash="1bca63a0d3abbb5c3d3ca3fbfa6e7d37";K=N});var _react = require('react');var _reactrelay = require('react-relay');var e,C=(e!==void 0||(e=(F(),_chunkXD2OIZABjs.c.call(void 0, b)),e.hash&&e.hash!=="1bca63a0d3abbb5c3d3ca3fbfa6e7d37"&&console.error("The definition of 'useNotificationsSubscription' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data.")),e),O= exports.a =function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=_react.useMemo.call(void 0, function(){var i=_reactrelay.ConnectionHandler.getConnectionID(a,_chunkPXVCBJQPjs.b);return{subscription:C,variables:{connections:[i]},onError:console.error}},[a]);return _reactrelay.useSubscription.call(void 0, n)};exports.a = O;
//# sourceMappingURL=chunk-C3IDIQ6Z.js.map