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