const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../locales/index.js");
const require_index$1 = require("../../iconfont/index.js");
const require_index$2 = require("../../button/index.js");
const require_index$3 = require("../../pisellInput/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
require("./index.less");
//#region src/components/pisellInformationEntry/Input/index.tsx
const PisellEntryInput = (props) => {
	const { onChange, searchDescribe } = props;
	const [value, setValue] = (0, react.useState)("");
	return /* @__PURE__ */ react.default.createElement("div", { className: "pisell-entry-input-wrap" }, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-entry-input-line" }, /* @__PURE__ */ react.default.createElement(require_index$3.default, {
		autoFocus: true,
		value,
		onChange: (e) => {
			setValue(e.target.value);
			if (!e.target.value) onChange(e.target.value);
		},
		onPressEnter: (e) => {
			onChange(value);
		},
		style: { flex: 1 },
		prefix: /* @__PURE__ */ react.default.createElement(require_index$1.default, {
			style: { color: "#667085" },
			type: "pisell2-search-lg"
		}),
		allowClear: true
	}), /* @__PURE__ */ react.default.createElement(require_index$2.default, {
		size: "large",
		onClick: () => onChange(value),
		disabled: !value
	}, require_index.getText("pisell-information-entry-input-search"))), /* @__PURE__ */ react.default.createElement("div", { className: "pisell-entry-input-describe" }, searchDescribe));
};
//#endregion
exports.default = PisellEntryInput;
