"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=({defaultType:t,steps:n,current:o,defaultCurrent:a})=>{const u=e.ref(a?.value),c=e.computed(()=>o?.value);e.watch(c,r=>{u.value=r??a?.value},{immediate:!0});const l=r=>{u.value=r},v=e.computed(()=>typeof u.value=="number"?n&&n.value?.[u.value]?.type:t?.value);return{currentMergedType:e.computed(()=>v.value??t?.value),updateInnerCurrent:l}};exports.default=d;
