1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d141-a118-72b1-b3e7-d4d8f4356483")}catch(e){}}();import{f as e,r as t}from"./react-query-helpers-C8jLwNbo.js";import{n,r,t as i,x as a}from"./live-query-Cd6tVY8X.js";var o=n(`scholar-import`,{applyEventToCache({prev:e,next:t}){return e&&{rows:e.rows.map((e,n)=>n===t.index?t.row:e)}}});function s(e){return r(e?o(e):i)}var c=t(e=>[`admin-paper-metrics`,e],async({queryKey:[,t]})=>(await e(`GET /v2/papers/{paperId}/admin-metrics`,{paperId:t,credentials:`include`}).unwrap()).data),l=t(e=>[`admin-card-preview`,e],async({queryKey:[,t]})=>{let{preview:n}=await e(`GET /papers/v3/{paperGroupId}/card-preview`,{paperGroupId:t}).unwrap();return n}),u=t(e=>[`admin-authorship-links`,e],async({queryKey:[,t]})=>(await e(`GET /papers/v3/{paperGroupId}/authorship-links`,{paperGroupId:t,credentials:`include`}).unwrap()).data),d=t(e=>[`admin-paper-affiliations`,e],async({queryKey:[,t]})=>(await e(`GET /papers/v3/{paperGroupId}/affiliations`,{paperGroupId:t,credentials:`include`}).unwrap()).data.affiliations),f=t(e=>[`admin-users`,`search`,e],async({queryKey:[,,t]})=>(await e(`GET /admin/v1/users`,{query:{q:t},credentials:`include`}).unwrap()).users),p=t(e=>[`admin-users`,e],({queryKey:[,t]})=>e(`GET /admin/v1/users/{user}`,{user:t,credentials:`include`}).unwrap()),m=t(e=>[`admin-users`,e,`chats`],({queryKey:[,t]})=>e(`GET /admin/v1/users/{user}/chats`,{user:t,query:{},credentials:`include`}).unwrap()),h=t(e=>[`admin-researcher-search`,e],async({queryKey:[,t]})=>(await e(`GET /researchers/v1/admin-search`,{query:{q:t},credentials:`include`}).unwrap()).data.researchers),g=t(e=>[`admin-user-lookup`,e],async({queryKey:[,t]})=>await e(`GET /admin/v1/lookup-user-by-email`,{query:{email:t}}).unwrap()),_=t(e=>[`admin-scholar-status`,e],async({queryKey:[,t]})=>await e(`GET /admin/v1/scholar-status`,{query:{userId:t},credentials:`include`}).unwrap()),v=t((e,t,n,r,i)=>[`admin-digest-preview`,e,t,n,r,i],({queryKey:[,t,n,r,i,a]})=>e(`POST /admin/v1/emails/preview-digest`,{body:{user:t,variant:n,subject:r||void 0,introText:i||void 0,events:a.length>0?a:void 0},credentials:`include`}).unwrap()),y=t(e=>[`admin-welcome-preview`,e],({queryKey:[,t]})=>e(`POST /admin/v1/emails/test-welcome`,{body:{user:t},credentials:`include`}).unwrap());function b(e){return{...e.variant==null?{}:{filterVariant:e.variant},...e.model==null?{}:{filterModel:e.model},...e.messageType==null?{}:{filterMessageType:e.messageType}}}var x=t(e=>[`admin-assistant-histogram`,e],async({queryKey:[,t]})=>await e(`GET /admin/v1/assistant-metrics`,{query:{histogramMetric:t.histogramMetric,histogramDays:t.histogramDays.toString(),...t.histogramMin==null?{}:{histogramMin:t.histogramMin.toString()},...t.histogramMax==null?{}:{histogramMax:t.histogramMax.toString()},splitBy:t.splitBy,...b(t.filters),includeHistogram:`true`,includeSummary:`true`,includeAverage:`false`},credentials:`include`}).unwrap()),S=t(e=>[`admin-assistant-average`,e],async({queryKey:[,t]})=>await e(`GET /admin/v1/assistant-metrics`,{query:{includeHistogram:`false`,includeSummary:`false`,averageMetric:t.averageMetric,averageDays:t.averageDays.toString(),averageResolution:t.averageResolution,splitBy:t.splitBy,...b(t.filters),includeAverage:`true`},credentials:`include`}).unwrap()),C=t(e=>[`admin-assistant-runs`,e],async({queryKey:[,t]})=>await e(`GET /admin/v1/assistant-runs`,{query:{metric:t.metric,days:t.days.toString(),bucketStart:t.bucketStart.toString(),bucketEnd:t.bucketEnd.toString(),...b(t.filters)},credentials:`include`}).unwrap()),w=10,T=({pageNum:t,feedType:n})=>({queryKey:[`admin-moderator-feed`,n],queryFn:async({pageParam:t})=>({data:{recentActivity:await e(`GET /admin/v1/moderator-feed`,{query:{page:t.toString(),pageSize:w.toString(),feedType:n}}).unwrap()??[],page:t}}),initialPageParam:t,getNextPageParam:e=>{if(e.data?.recentActivity?.length===w)return e.data.page+1}});function E({pageNum:e,feedType:t}){return a(T({pageNum:e,feedType:t}))}export{s as _,c as a,p as c,f as d,v as f,E as g,y as h,l as i,m as l,u as m,x as n,h as o,d as p,C as r,_ as s,S as t,g as u}; 2//# sourceMappingURL=admin-CxLkJDth.js.map 3//# chunkId=01a0d141-a118-72b1-b3e7-d4d8f4356483
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.