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