'use strict';

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

var vue = require('vue');
var CloseOutlined = require('@ant-design/icons-vue');
require('../../../input/index.js');
var type = require('../../../_util/type.js');
var Input = require('../../../input/Input.js');

var FilterSearch = /* @__PURE__ */ vue.defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "FilterSearch",
  inheritAttrs: false,
  props: {
    value: type.stringType(),
    onChange: type.functionType(),
    filterSearch: type.someType([Boolean, Function]),
    tablePrefixCls: type.stringType(),
    locale: type.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(Input.default, {
        "placeholder": locale.filterSearchPlaceholder,
        "onChange": onChange,
        "value": value,
        "htmlSize": 1,
        "class": `${tablePrefixCls}-filter-dropdown-search-input`
      }, {
        prefix: () => vue.createVNode(CloseOutlined.SearchOutlined, null, null)
      })]);
    };
  }
});

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