const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../locales/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
require("./index.less");
let _pisell_icon_es_SearchLg = require("@pisell/icon/es/SearchLg");
_pisell_icon_es_SearchLg = require_runtime.__toESM(_pisell_icon_es_SearchLg);
//#region src/components/table/TableFilter/stringFilter.tsx
const getColumnStringProps = ({ dataIndex }) => ({
	filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters, close }) => /* @__PURE__ */ react.default.createElement("div", {
		onKeyDown: (e) => e.stopPropagation(),
		className: "pisell-table-filter-dropdown"
	}, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-table-filter-dropdown-top" }, /* @__PURE__ */ react.default.createElement(antd.Input, {
		prefix: /* @__PURE__ */ react.default.createElement(_pisell_icon_es_SearchLg.default, null),
		placeholder: require_index.getText("table-filter-search"),
		value: selectedKeys[0],
		onChange: (e) => setSelectedKeys(e.target.value ? [e.target.value] : []),
		onPressEnter: () => confirm(),
		style: { width: 240 }
	})), /* @__PURE__ */ react.default.createElement(antd.Space, {
		className: "pisell-table-filter-dropdown-bottom",
		styles: { item: { flex: 1 } }
	}, /* @__PURE__ */ react.default.createElement(antd.Button, {
		onClick: () => {
			clearFilters && clearFilters();
			confirm();
		},
		block: true,
		style: { flex: 1 }
	}, require_index.getText("table-filter-clear")), /* @__PURE__ */ react.default.createElement(antd.Button, {
		type: "primary",
		onClick: () => confirm(),
		block: true,
		style: { flex: 1 }
	}, require_index.getText("table-filter-filter")))),
	filterIcon: (filtered) => /* @__PURE__ */ react.default.createElement(_pisell_icon_es_SearchLg.default, { style: {
		color: filtered ? "#7f56d9" : void 0,
		fontSize: 16
	} })
});
//#endregion
exports.default = getColumnStringProps;
