import { customRef as i } from "vue";
function f(e, o = 500) {
  let t;
  return i((r, u) => ({
    get() {
      return r(), e;
    },
    set(n) {
      clearTimeout(t), t = window.setTimeout(() => {
        e = n, u();
      }, o);
    }
  }));
}
export {
  f as default,
  f as useDelayDebouncedRef
};
