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