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