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, { forwardRef } from "react";
import { AutoComplete, InputNumber } from "antd";
//#region src/components/auto-complete-number/index.tsx
const _excluded = ["autoCompleteProps", "inputNumberProps"];
const InputNumber$1 = forwardRef((props, ref) => {
	const onChange = (e) => {
		let _val = e === null || e === void 0 ? "" : e + "";
		props.onChange && props.onChange({ target: { value: _val } });
	};
	return /* @__PURE__ */ React.createElement(InputNumber, _objectSpread2(_objectSpread2({}, props), {}, {
		onChange,
		ref
	}));
});
const AutoCompleteNumber = (props) => {
	const { autoCompleteProps, inputNumberProps } = props, resetProps = _objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ React.createElement(AutoComplete, _objectSpread2(_objectSpread2({}, resetProps), autoCompleteProps), /* @__PURE__ */ React.createElement(InputNumber$1, inputNumberProps));
};
//#endregion
export { AutoCompleteNumber as default };
