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-dNe6i2rS.js";import{r as y}from"./vendor-react-wBh_31cN.js";import{a as P}from"./index-DURBtSjL.js";import{a as v}from"./apply-CIuXDHQi.js";import{c as x}from"./concat-CTXo1gGM.js";import{s as a}from"./sortBy-COer1Ia5.js";import{j as I}from"./juxt-B5kKHsyp.js";import{i as h}from"./includes-ucXR_9jq.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};
