const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_index = require("../../../../../input/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _ant_design_icons = require("@ant-design/icons");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
//#region src/components/table/Table/fields/search/Edit/index.tsx
const _excluded = [
	"onChange",
	"value",
	"onPressEnter",
	"onBlur",
	"style",
	"bordered",
	"trigger"
];
const Edit = (props, ref) => {
	const { onChange, value, onPressEnter, onBlur, style, bordered, trigger = ["onPressEnter"] } = props, others = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ react.default.createElement(require_index.default, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, others), {}, {
		value,
		style,
		prefix: /* @__PURE__ */ react.default.createElement(_ant_design_icons.SearchOutlined, null),
		onChange: (e) => {
			if (trigger === null || trigger === void 0 ? void 0 : trigger.includes("onChange")) onChange === null || onChange === void 0 || onChange(e.target.value);
		},
		onPressEnter: (e) => {
			if (trigger === null || trigger === void 0 ? void 0 : trigger.includes("onPressEnter")) onChange === null || onChange === void 0 || onChange(e.target.value);
		},
		className: (0, classnames.default)(props.className)
	}));
};
var Edit_default = (0, react.forwardRef)(Edit);
//#endregion
exports.default = Edit_default;
