import { computed as o } from "vue";
import "../../config-provider/index.mjs";
import "../../utils/index.mjs";
import { useLocale as n } from "../../config-provider/hooks/use-locale.mjs";
import { isDef as c } from "../../utils/is.mjs";
const i = [
  "Select",
  "Date",
  "Cascader",
  "TreeSelect"
], a = [
  "Text",
  "TextArea",
  "Number",
  "TextPassword",
  "Second"
], m = (t, r) => {
  const { t: e } = n();
  return o(() => {
    if (c(r.placeholder))
      return r.placeholder;
    if (t === "DateRange")
      return [e("ap.field.startDateText"), e("ap.field.endDateText")];
    if (i.includes(t))
      return e("ap.common.chooseText");
    if (a.includes(t))
      return e("ap.common.inputText");
  });
};
export {
  m as useDefaultPlaceholder
};
