import{t as p,u as m,bo as v,ef as g,w as G,x as I,r as d,s as j}from"./index-_eM6l4Nf.js";import{p as x}from"./project-CRArgp9U.js";const N=(r="",t=p.project.featureGroup.overview)=>{const{id:s,fsId:a}=m(),o=v(),e=g({pId:+s,fsId:+a,fgName:r},{skip:!r,selectFromResult:G({currentData:I(x(["version","id"]))})}),u=d.useCallback(f=>{var c,i;const n=(i=(c=e.currentData)==null?void 0:c.find(({version:l})=>l===+f))==null?void 0:i.id;n&&o(j(t,p.project.value,{id:s,fsId:a,fgId:n}))},[e.currentData,o,t,s,a]);return d.useMemo(()=>({...e,handleVersionChange:u}),[e,u])};export{N as u};
