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 React from "react";
import { Input } from "antd";
import { locales } from "@pisell/utils";
import SearchLg from "@pisell/icon/es/SearchLg";
//#region src/components/schedules/components/Search/index.tsx
const _excluded = [
	"value",
	"onChange",
	"style"
];
const Search = (props) => {
	const { value, onChange, style } = props, others = _objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ React.createElement(Input, _objectSpread2(_objectSpread2({}, others), {}, {
		prefix: /* @__PURE__ */ React.createElement(SearchLg, null),
		style: _objectSpread2(_objectSpread2({}, style || {}), {}, { height: 44 }),
		placeholder: locales.getText("pisell2.text.search"),
		allowClear: true,
		value,
		onChange: (e) => {
			onChange(e.target.value);
		}
	}));
};
//#endregion
export { Search as default };
