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