import{u as m,bp as v,dV as g,x as G,z as I,r as p,q as x,s as d}from"./index-C1DmWO_C.js";import{p as D}from"./project-VxxpMOY0.js";const V=(r="",t=d.featureGroup.overview)=>{const{id:s,fsId:a}=m(),o=v(),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:f})=>f===+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{V as u};
