1import{_ as t,g as I}from"./index-D_FcI0Qj.js";import{i as d,l as L,a as F}from"./Localized.re-Bh0p4_o-.js";import{s as V,G as o,H as T,o as n,b as m,z as f,e as x,C as O,D as p,I as S,y as W}from"./vendor-CmRaWcmi.js";import{B as h,m as q}from"./NotificationRow.re-DP9Yfn89.js";import{m as Q}from"./WaitForMessages.re-DhjQntw0.js";import{u as z}from"./RescriptRelay_Query.re-BFBSiSDH.js";import{u as B}from"./RescriptRelay_Mutation.re-BiUkIpEA.js";import"./LangProvider.re-BkkNuf-C.js";import"./caml_obj-Dh_aXkJX.js";import"./proxy-BSRyeGA_.js";import"./index-8JwjhRSi.js";import"./appContext-CgtNZuLI.js";import"./DirectMessage.re-Ce5s0XJT.js";import"./createLucideIcon-DtZQNVd0.js";import"./differenceInMinutes-DbtE2xi4.js";import"./constants-CLuGQ4AZ.js";import"./Core__JSON.re-DXjVjuhz.js";import"./Core__String.re-BVqY3rrL.js";import"./belt_internalSetString-BVEaRnwV.js";import"./calendar-DV0fK7Ms.js";import"./x-B0brVKFK.js";import"./users-CkLSIgpj.js";import"./user-plus-DVGXYpuJ.js";import"./mail-BwlcfKkl.js";import"./circle-check-CV79auaP.js";import"./Layout.re-ByLOV7H9.js";import"./RescriptRelay_Internal.re-Bq57EFdX.js";var w={};function M(e){return o(e,w,void 0,void 0)}var C={};function b(e){return o(e,C,void 0,null)}var N={};function k(e){return o(e,N,void 0,void 0)}var G={variablesConverter:w,variablesConverterMap:void 0,convertVariables:M,wrapResponseConverter:C,wrapResponseConverterMap:void 0,convertWrapResponse:b,responseConverter:N,responseConverterMap:void 0,convertResponse:k,convertWrapRawResponse:b,convertRawResponse:k},j=function(){var e=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"first",value:50}],concreteType:"EventMessageConnection",kind:"LinkedField",name:"inbox",plural:!1,selections:[{alias:null,args:null,concreteType:"EventMessageEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Message",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"topic",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payload",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRead",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:"inbox(first:50)"}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"NotificationsPageQuery",selections:e,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"NotificationsPageQuery",selections:e},params:{cacheID:"f50209d51f1d501b7620e507f9f04dfc",id:null,metadata:{},name:"NotificationsPageQuery",operationKind:"query",text:`query NotificationsPageQuery { 2 viewer { 3 inbox(first: 50) { 4 edges { 5 node { 6 id 7 topic 8 payload 9 createdAt 10 isRead 11 } 12 } 13 } 14 } 15} 16`}}}();function H(e,r,s,u,c){return V.loadQuery(e,j,M(r),{fetchKey:u,fetchPolicy:s,networkCacheConfig:c})}var E={};function Y(e){return o(e,E,void 0,void 0)}var $={};function R(e){return o(e,$,void 0,null)}var P={};function _(e){return o(e,P,void 0,void 0)}var v={variablesConverter:E,variablesConverterMap:void 0,convertVariables:Y,wrapResponseConverter:$,wrapResponseConverterMap:void 0,convertWrapResponse:R,responseConverter:P,responseConverterMap:void 0,convertResponse:_,convertWrapRawResponse:R,convertRawResponse:_},Z=function(){var e=[{alias:null,args:null,concreteType:"MarkInboxReadResult",kind:"LinkedField",name:"markAllInboxRead",plural:!1,selections:[{alias:null,args:null,concreteType:"ViewerMetadata",kind:"LinkedField",name:"viewerMetadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unreadInboxCount",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"NotificationsPageMarkAllReadMutation",selections:e,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"NotificationsPageMarkAllReadMutation",selections:e}
16,params:{cacheID:"051736f8976cdb1a4d05ab2643ddfe14",id:null,metadata:{},name:"NotificationsPageMarkAllReadMutation",operationKind:"mutation",text:`mutation NotificationsPageMarkAllReadMutation { 17 markAllInboxRead { 18 viewerMetadata { 19 id 20 unreadInboxCount 21 } 22 } 23} 24`}}}(),J=G.convertResponse,U=z(j,J,function(e){return e}),X=v.convertVariables,ee=v.convertResponse,ne=v.convertWrapRawResponse,ae=B(X,Z,ee,ne);function re(e){var r=U(e.queryRef),s=x(O(p(r.viewer,function(a){return a.inbox}),function(a){return x(a.edges,[])}),[]),u=ae(),c=u[0];m.useEffect(function(){c(void 0,void 0,void 0,void 0,void 0,void 0,void 0)},[]);var g=m.useState(function(){return[]}),K=g[1],A=g[0],D=s.filter(function(a){var i=p(a,function(l){return l.node});return i!==void 0?!A.some(function(l){return l===i.id}):!1}),y=S(D,function(a){return p(a,function(i){return i.node})});return y.length===0?n.jsxs("div",{children:[n.jsx("div",{children:n.jsx(h,{className:"w-[18px] h-[18px] text-gray-400 dark:text-gray-500"}),className:"w-12 h-12 rounded-full bg-gray-100 dark:bg-[#2a2b30] flex items-center justify-center mb-3"}),n.jsx("h3",{children:d._({id:"HsCdy8"}),className:"text-sm font-medium text-gray-900 dark:text-gray-100"}),n.jsx("p",{children:d._({id:"PK3+Q2"}),className:"text-xs text-gray-500 dark:text-gray-400 mt-1 font-mono"})],className:"border border-dashed border-gray-200 dark:border-[#3a3b40] rounded-lg py-16 flex flex-col items-center justify-center text-center"}):n.jsx("div",{children:y.map(function(a){return n.jsx(q,{topic:a.topic,payload:a.payload,createdAt:a.createdAt,onDismiss:function(){var i=a.id;K(function(l){return l.concat([i])})}},a.id)}),className:"border border-gray-200 dark:border-[#2a2b30] rounded-lg overflow-hidden divide-y divide-gray-100 dark:divide-[#2a2b30] bg-white dark:bg-[#1e1f23]"})}function te(e){var r=T();return n.jsx(Q,{children:function(){return n.jsx("div",{children:n.jsxs("div",{children:[n.jsxs("div",{children:[n.jsx("div",{children:d._({id:"Gp4Yi6"}),className:"font-mono text-[10px] tracking-wider text-gray-400 dark:text-gray-500 uppercase mb-1"}),n.jsx("h1",{children:d._({id:"iDNBZe"}),className:"text-2xl font-semibold text-gray-900 dark:text-gray-100 leading-tight"})],className:"mb-5"}),n.jsx(m.Suspense,{children:f(n.jsx(re,{queryRef:r.data})),fallback:f(n.jsx("div",{children:n.jsx(h,{className:"w-[18px] h-[18px] text-gray-400 dark:text-gray-500 mb-3"}),className:"border border-dashed border-gray-200 dark:border-[#3a3b40] rounded-lg py-16 flex flex-col items-center justify-center"}))})],className:"max-w-3xl mx-auto px-4 md:px-6 py-6 pb-24 md:pb-10"}),className:"flex-1 overflow-y-auto bg-white dark:bg-[#222326]"})}})}var ie=te,oe=L({en:t(()=>import("./en-D-wPh6M6.js"),[]),ja:t(()=>import("./ja-DzziixDj.js"),[]),th:t(()=>import("./th-VnlS9trL.js"),[]),zhTW:t(()=>import("./zh-TW--kB330PX.js"),[]),zhCN:t(()=>import("./zh-CN-B0yV72St.js"),[]),ko:t(()=>import("./ko-BFLu4fTS.js"),[]),vi:t(()=>import("./vi-gmkieDKt.js"),[])});async function se(e){var r=e.params,s=H(I(e.context,!1),void 0,"store-or-network",void 0,void 0);return W({data:s,i18nLoaders:f(F(r.lang,oe))})}var le=ie;const Le=le,Fe=se;export{Le as Component,Fe as loader}; 25//# sourceMappingURL=NotificationsRoute.gen-P5zD8pzS.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.