const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let ahooks = require("ahooks");
//#region src/components/input-number-range/index.tsx
const defaultValue = {
	max: 0,
	min: 0
};
const InputNumberRange = (props) => {
	const { minInputNumberProps, maxInputNumberProps, separator = "-" } = props;
	const [state, setState] = (0, ahooks.useControllableValue)(props, { defaultValue });
	return /* @__PURE__ */ react.default.createElement(antd.Space, null, /* @__PURE__ */ react.default.createElement(antd.InputNumber, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, minInputNumberProps), {}, {
		value: state === null || state === void 0 ? void 0 : state.min,
		onChange: (val) => {
			setState(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, state), {}, { min: val }));
		}
	})), separator, /* @__PURE__ */ react.default.createElement(antd.InputNumber, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, maxInputNumberProps), {}, {
		value: state === null || state === void 0 ? void 0 : state.max,
		onChange: (val) => {
			setState(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, state), {}, { max: val }));
		}
	})));
};
//#endregion
exports.default = InputNumberRange;
