import{u as f,aS as m,dz as g,dA as G,v as I,r as d,c as D,b as p}from"./index-ea7817a2.js";import{p as F}from"./project-c611a3ec.js";const h=(r="",t=p.featureGroup.overview)=>{const{id:s,fsId:a}=f(),o=m(),e=g({pId:+s,fsId:+a,fgName:r},{skip:!r,selectFromResult:G({currentData:I(F(["version","id"]))})}),u=d.useCallback(l=>{var c,i;const n=(i=(c=e.currentData)==null?void 0:c.find(({version:v})=>v===+l))==null?void 0:i.id;n&&o(D(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{h as u};
