import { b9 as a, V as t, gH as i, gI as u, P as p, bh as d, a0 as r, gJ as m, cn as h, bv as g, gu as c, cD as b } from "./684d2f28.js";
import { C as x } from "./9869e60a.js";
import { ColumnValueTooltip as w } from "./d404aae1.js";
import { ProgressStyled as f } from "./8e06f4ed.js";
import "react";
import "react-dom";
import "./b1144c16.js";
import "./926d8ea1.js";
import "./d6402597.js";
const y = a(f)`
  display: flex;
  align-items: center;
  .ant-progress-outer {
    height: 22px;
    display: flex;
    align-items: center;
  }
  .ant-progress-text {
    margin-left: 6px;
  }
`, V = a(m)`
  background: transparent !important;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  .ant-input-number-input-wrap {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .ant-input-number-handler-wrap {
    top: 1.5px;
    right: 1.5px;
    height: calc(100% - 3px);
    border-radius: 0;
  }
  .ant-input-number-handler-up {
    border-bottom: 1px solid #d7d9e0;
  }
  .ant-input-number-handler-up,
  .ant-input-number-handler-down {
    display: flex;
    align-items: center;
    justify-content: center;
    > span {
      width: 16px;
      height: 16px;
      margin-top: 0;
      position: unset;
      transform: none;
    }
    &:hover {
      &:not(.ant-input-number-handler-up-disabled):not(.ant-input-number-handler-down-disabled)
        path {
        fill: #315efb;
      }
    }
  }
`, C = {
  text: h,
  showValue: g
}, o = (e) => e.text, M = function() {
  return new x(C, (e, n) => {
    const s = e.changeValue ?? o(e);
    return /* @__PURE__ */ t(() => {
      const l = c(b);
      return /* @__PURE__ */ t(y, {
        percent: Math.round(s),
        showInfo: e.showValue,
        $style: l
      });
    }, {});
  }, (e) => e.text.value, o).setEditViewFn((e) => /* @__PURE__ */ t(V, {
    min: 0,
    max: 100,
    defaultValue: e.value,
    autoFocus: !0,
    variant: "borderless",
    controls: {
      upIcon: /* @__PURE__ */ t(i, {}),
      downIcon: /* @__PURE__ */ t(u, {})
    },
    onChange: (n) => {
      e.onChange(Number(n));
    },
    onBlur: e.onChangeEnd,
    onPressEnter: e.onChangeEnd
  })).setPropertyViewFn((e) => /* @__PURE__ */ p(d, {
    children: [e.text.propertyView({
      label: r("table.columnValue"),
      tooltip: w
    }), e.showValue.propertyView({
      label: r("table.showValue")
    })]
  })).build();
}();
export {
  M as ProgressComp
};
