import e from"../../vc-util/warning.mjs";import{computed as t}from"vue";function n(n,r){return t(()=>n?.value?n.value:r?.value?(e(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(r.value).map(e=>{let t=r.value[e];return{label:e,value:typeof t==`function`?t():t}})):[])}export{n as default};