import { ref as a, computed as c } from "vue";
const f = (i) => {
  const r = a("");
  function t(e) {
    return `${e}`.trim().toLowerCase();
  }
  const u = c(() => t(r.value));
  function o(e) {
    return u.value ? e.some((n) => t(n).includes(u.value)) : !0;
  }
  return { searchKey: r, filter: o };
};
export {
  f as u
};
