import{H as c,n as i,J as p,cx as m,e as t,u,h as o,p as n,cy as f,o as d,m as j,a_ as l}from"./index-BKr2rJhV.js";import{r as y}from"./vendor-react-wBh_31cN.js";import{a as P}from"./index-BeaoFlb1.js";import{a as v}from"./apply-BmJxqxKH.js";import{c as x}from"./concat-AxOj0lUI.js";import{s as a}from"./sortBy-DS9fyPwj.js";import{j as I}from"./juxt-BvCFisbd.js";import{i as h}from"./includes-D04d5Ytc.js";var H=I([c,i]);const F=()=>{const{data:{id:s}={}}=p();return y.useMemo(()=>m.getHistory(s),[s])},E=s=>{const e=F().map(r=>+r.project);return P(void 0,{refetchOnFocus:!0,selectFromResult:t({data:u(o(H(r=>h(r.projectId,e)),t({0:o(a(r=>f(d(r.projectId),e)),j(l("recent",!0))),1:a(n("projectName"))}),v(x)))}),...s})};export{E as u};
