import{d as R,ar as k,A as n,bn as r,bo as l,bp as b,h as y,a9 as e,bu as w,aa as D,by as N,bq as A,bv as H,a4 as L,bs as S,br as T,r as q}from"../../../../common/preload-helper.BAt0wiQU.js";import{p as M}from"../../index.CwVZreOu.js";/* empty css                                                                                      */import"../../../../common/DnDDataTableControl.vue_vue_type_style_index_0_scoped_0b913e4f_lang.CI1SyTf2.js";/* empty css                                                                                                 */import{_ as j}from"../../../../common/LabelControl.vue_vue_type_script_setup_true_lang.8NM1WLzi.js";/* empty css                                                                                        */import{R as z,A as E}from"../../../../common/index.BflG9txR.js";import"../../../../common/index.Bkgl5HZD.js";import"../../../../common/motion.DDNFslEg.js";import"../../../../common/Checkbox.B6t5acdU.js";import"../../../../common/FormItemContext.B-agHi0o.js";import"../../../../common/createContext.DKLY0CB7.js";const F={class:"wwp-row-handle"},G={class:"wwp-left-content"},I={class:"wwp-right-content"},O=["innerHTML"],se=R({__name:"RadioControl",props:{params:{type:Object,required:!0}},emits:["input","fieldData"],setup(g,{emit:h}){var m;const V=g,{params:u}=k(V),a=u.value,x=q({marginBottom:"10px"}),s=n(u.value.default),d=n((m=a.disabled)!=null?m:!1),p=h,o=n([]);s.value!==""&&!d.value&&(o.value[a.id]=s.value,p("fieldData",o.value));const B=c=>{const t=c;o.value[a.id]=t.target.value,p("fieldData",o.value)};return(c,t)=>{var v,f;return r(),l("div",F,[b("div",G,[y(e(j),{params:e(a)},null,8,["params"])]),b("div",I,[y(e(E),{value:s.value,"onUpdate:value":t[1]||(t[1]=i=>s.value=i)},{default:w(()=>[(r(!0),l(D,null,N(e(a).options,(i,_)=>(r(),A(e(z),{key:_,name:e(a).id,style:H(x),value:_,disabled:d.value,onInput:t[0]||(t[0]=C=>B(C))},{default:w(()=>[L(S(i),1)]),_:2},1032,["name","style","value","disabled"]))),128))]),_:1},8,["value"]),e(a).description!=="undefined"?(r(),l("p",{key:0,innerHTML:e(M)((f=(v=e(a))==null?void 0:v.description)!=null?f:"")},null,8,O)):T("",!0)])])}}});export{se as default};
