import { jsx } from "react/jsx-runtime";
import "react";
import { connect, mapReadPretty } from "@tachybase/schema";
import { InputNumber } from "antd";
import { ReadPretty } from "./ReadPretty.mjs";
const InputNumber_InputNumber = connect((props)=>{
    const { onChange, ...others } = props;
    const handleChange = (v)=>{
        const result = parseFloat(v);
        onChange(Number.isNaN(result) ? null : result);
    };
    return /*#__PURE__*/ jsx(InputNumber, {
        onChange: handleChange,
        ...others
    });
}, mapReadPretty(ReadPretty));
InputNumber_InputNumber.ReadPretty = ReadPretty;
const input_number_InputNumber = InputNumber_InputNumber;
export { InputNumber_InputNumber as InputNumber, input_number_InputNumber as default };
