import { defineComponent as P, computed as m, openBlock as t, createBlock as n, unref as p, normalizeProps as l, guardReactiveProps as u, withCtx as a, createVNode as b, createElementBlock as d, Fragment as I, renderList as k } from "vue";
import "../../confirm-button/index.mjs";
import "../../count-down-button/index.mjs";
import "../../ellipsis/index.mjs";
import "../../rich-text-editor/index.mjs";
import "../index.mjs";
import { WetProFormItem as v } from "../../pro-form/index.mjs";
import "../../pro-table/index.mjs";
import "../../pro-descriptions/index.mjs";
import "../../layout/index.mjs";
import "../../page/index.mjs";
import "../../guide/index.mjs";
import { ElCheckboxGroup as _, ElCheckbox as x } from "element-plus";
import h from "../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs";
import { wetProFormItemProps as C } from "../../pro-form/src/types.mjs";
const q = /* @__PURE__ */ P({
  name: "WetFormCheckbox",
  __name: "checkbox",
  props: {
    ...C,
    formInputProps: {
      type: Object
    }
  },
  setup(s) {
    const o = s, c = m(() => o.formInputProps && o.formInputProps.options ? o.formInputProps.options.map((r) => h(r) ? r : {
      label: r,
      value: r,
      disabled: !1
    }) : []), i = m(() => {
      const r = { ...o };
      return delete r.formInputProps, r;
    });
    return (r, F) => (t(), n(p(v), l(u(i.value)), {
      default: a(({ modelValue: f }) => [
        b(p(_), l(u({
          ...f,
          ...o.formInputProps
        })), {
          default: a(() => [
            (t(!0), d(I, null, k(c.value, (e) => (t(), n(p(x), {
              label: e.label,
              value: e.value,
              key: `${e.value}`
            }, null, 8, ["label", "value"]))), 128))
          ]),
          _: 2
        }, 1040)
      ]),
      _: 1
    }, 16));
  }
});
export {
  q as default
};
