import { defineComponent, createVNode } from 'vue';
import { SearchOutlined } from '@ant-design/icons-vue';
import '../../../../utils/index.mjs';
import { Input } from '../../../input/index.mjs';
import { stringType, functionType, someType, objectType } from '../../../../utils/vue/propType.mjs';

var FilterSearch = /* @__PURE__ */ defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "FilterSearch",
  inheritAttrs: false,
  props: {
    value: stringType(),
    onChange: functionType(),
    filterSearch: someType([Boolean, Function]),
    tablePrefixCls: stringType(),
    locale: objectType()
  },
  setup(props) {
    return () => {
      const {
        value,
        onChange,
        filterSearch,
        tablePrefixCls,
        locale
      } = props;
      if (!filterSearch)
        return null;
      return createVNode("div", {
        "class": `${tablePrefixCls}-filter-dropdown-search`
      }, [createVNode(Input, {
        "placeholder": locale.filterSearchPlaceholder,
        "onChange": onChange,
        "value": value,
        "htmlSize": 1,
        "class": `${tablePrefixCls}-filter-dropdown-search-input`
      }, {
        prefix: () => createVNode(SearchOutlined, null, null)
      })]);
    };
  }
});

export { FilterSearch as default };
//# sourceMappingURL=FilterSearch.mjs.map
