import{x as p,u as m,bx as v,ec as g,A as x,B as G,r as d,t as I}from"./index-DNBEEyYo.js";import{p as j}from"./project-BliS-g3U.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:x({currentData:G(j(["version","id"]))})}),u=d.useCallback(l=>{var c,i;const n=(i=(c=e.currentData)==null?void 0:c.find(({version:f})=>f===+l))==null?void 0:i.id;n&&o(I(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};
