"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../confirm-button/index.js");require("../../count-down-button/index.js");require("../../ellipsis/index.js");require("../../rich-text-editor/index.js");require("../index.js");const c=require("../../pro-form/index.js");require("../../pro-table/index.js");require("../../pro-descriptions/index.js");require("../../layout/index.js");require("../../page/index.js");require("../../guide/index.js");const n=require("element-plus"),d=require("../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js"),m=require("../../pro-form/src/types.js"),f=e.defineComponent({name:"WetFormRadio",__name:"radio",props:{...m.wetProFormItemProps,formInputProps:{type:Object}},setup(l){const o=l,s=e.computed(()=>{var r;return(r=o.formInputProps)!=null&&r.options?o.formInputProps.options.map(t=>d.default(t)?t:{label:t,value:t,disabled:!1}):[]}),a=e.computed(()=>{var r;return((r=o.formInputProps)==null?void 0:r.type)==="button"?n.ElRadioButton:n.ElRadio}),p=e.computed(()=>{const r={...o};return delete r.formInputProps,r});return(r,t)=>(e.openBlock(),e.createBlock(e.unref(c.WetProFormItem),e.normalizeProps(e.guardReactiveProps(p.value)),{default:e.withCtx(({modelValue:i})=>[e.createVNode(e.unref(n.ElRadioGroup),e.normalizeProps(e.guardReactiveProps({...i,...o.formInputProps})),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,u=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{value:u.value,key:`${u.value}`,label:u.label},null,8,["value","label"]))),128))]),_:2},1040)]),_:1},16))}});exports.default=f;
