import { _objectSpread2 } from "../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import Input from "../../../../../input/index.js";
import React, { forwardRef } from "react";
import { SearchOutlined } from "@ant-design/icons";
import classNames from "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 = _objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ React.createElement(Input, _objectSpread2(_objectSpread2({}, others), {}, {
		value,
		style,
		prefix: /* @__PURE__ */ React.createElement(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: classNames(props.className)
	}));
};
var Edit_default = forwardRef(Edit);
//#endregion
export { Edit_default as default };
