import { isArray as E } from "lodash-unified";
import { ref as L, watch as i } from "vue";
const u = "SELECTABLE_ALL_VALUE_KEY", a = (o) => {
  const r = L(o?.options || []);
  function e(t) {
    !t || !E(t) || (r.value = [...t]);
  }
  return i(
    () => o.options,
    (t) => {
      e(t);
    },
    {
      deep: !0
    }
  ), {
    options: r,
    updateOptions: e
  };
};
export {
  u as SELECT_ALL_VALUE_KEY,
  a as default,
  a as useSelectOptions
};
