"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 u=require("element-plus"),p=require("../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js"),i=require("../../pro-form/src/types.js"),m=e.defineComponent({name:"WetFormCheckbox",__name:"checkbox",props:{...i.wetProFormItemProps,formInputProps:{type:Object}},setup(n){const o=n,l=e.computed(()=>o.formInputProps&&o.formInputProps.options?o.formInputProps.options.map(r=>p.default(r)?r:{label:r,value:r,disabled:!1}):[]),s=e.computed(()=>{const r={...o};return delete r.formInputProps,r});return(r,f)=>(e.openBlock(),e.createBlock(e.unref(c.WetProFormItem),e.normalizeProps(e.guardReactiveProps(s.value)),{default:e.withCtx(({modelValue:a})=>[e.createVNode(e.unref(u.ElCheckboxGroup),e.normalizeProps(e.guardReactiveProps({...a,...o.formInputProps})),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,t=>(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{label:t.label,value:t.value,key:`${t.value}`},null,8,["label","value"]))),128))]),_:2},1040)]),_:1},16))}});exports.default=m;
