import{computed as e,ref as t,watch as n}from"vue";var r=({defaultType:r,steps:i,current:a,defaultCurrent:o})=>{let s=t(o?.value);n(e(()=>a?.value),e=>{s.value=e??o?.value},{immediate:!0});let c=e=>{s.value=e},l=e(()=>typeof s.value==`number`?i&&i.value?.[s.value]?.type:r?.value);return{currentMergedType:e(()=>l.value??r?.value),updateInnerCurrent:c}};export{r as default};