'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var iconsVue = require('@ant-design/icons-vue');
require('../../../../utils/index.cjs');
var index = require('../../../input/index.cjs');
var propType = require('../../../../utils/vue/propType.cjs');

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

exports.default = FilterSearch;
//# sourceMappingURL=FilterSearch.cjs.map
