import{d as g,ar as k,A as i,bn as v,bo as f,bp as _,h as b,a9 as t,br as y}from"../../../../common/preload-helper.BAt0wiQU.js";import{p as A}from"../../index.CwVZreOu.js";/* empty css                                                                                      */import"../../../../common/DnDDataTableControl.vue_vue_type_style_index_0_scoped_0b913e4f_lang.CI1SyTf2.js";/* empty css                                                                                                 */import{_ as B}from"../../../../common/LabelControl.vue_vue_type_script_setup_true_lang.8NM1WLzi.js";/* empty css                                                                                        */import{A as D}from"../../../../common/index.C74CZaRi.js";import"../../../../common/index.Bkgl5HZD.js";import"../../../../common/motion.DDNFslEg.js";import"../../../../common/DownOutlined.DGkCTtd_.js";import"../../../../common/isMobile.DycClExL.js";import"../../../../common/warning.Dss1f44C.js";import"../../../../common/KeyCode.D63Tfrq7.js";import"../../../../common/FormItemContext.B-agHi0o.js";import"../../../../common/createContext.DKLY0CB7.js";import"../../../../common/statusUtils.-yEA-Gfk.js";import"../../../../common/index.C2RKq64j.js";import"../../../../common/compact-item.CKdY6bQm.js";const H={class:"wwp-row-handle"},M={class:"wwp-left-content"},I={class:"wwp-right-content"},L=["innerHTML"],ee=g({__name:"NumberControl",props:{params:{type:Object,required:!0}},emits:["input","fieldData"],setup(h,{emit:w}){var p,l,m;const x=h,{params:C}=k(x),e=C.value,a=i((p=e.default)!=null?p:""),N=i((l=e.step)!=null?l:1),s=i((m=e.disabled)!=null?m:!1),r=w,o=i([]);a.value!==""&&!s.value&&(o.value[e.id]=a.value,r("fieldData",o.value));const n=()=>{a.value=Math.abs(a.value),o.value[e.id]=a,r("fieldData",o.value)};return(T,d)=>{var u,c;return v(),f("div",H,[_("div",M,[b(t(B),{params:t(e)},null,8,["params"])]),_("div",I,[b(t(D),{id:t(e).id,value:a.value,"onUpdate:value":d[0]||(d[0]=V=>a.value=V),name:t(e).id,placeholder:t(e).placeholder,min:t(e).min,max:t(e).max,step:N.value,disabled:s.value,onInput:n,onChange:n},null,8,["id","value","name","placeholder","min","max","step","disabled"]),t(e).description!=="undefined"?(v(),f("p",{key:0,innerHTML:t(A)((c=(u=t(e))==null?void 0:u.description)!=null?c:"")},null,8,L)):y("",!0)])])}}});export{ee as default};
