import { j as r } from "../../node_modules/react/jsx-runtime.mjs";
import u from "../../node_modules/antd/es/input-number/index.mjs";
const x = ({ sort: n = 999, id: a, changeEmit: s = () => {
}, sortUrl: c, ...l }) => {
  const i = async (t) => {
    try {
      const e = {
        id: a,
        sort: t
      };
      if (t) {
        const m = await c(e);
        console.log("res", m), s("success");
        return;
      }
    } catch (e) {
      s("fail"), console.log("e", e);
    }
  }, o = (t) => {
    setTimeout(() => {
      i(t);
    }, 1500);
  };
  return r.jsx("div", { className: "bitzTableSortBlock", ...l, children: r.jsx(u, { defaultValue: n, min: 1, max: 999, onChange: (t) => {
    o(t);
  }, onPressEnter: (t) => {
    o(t);
  } }) });
};
export {
  x as default
};
