/* empty css                                               */
/* empty css                                                         */
/* empty css                                                */
/* empty css                                               */
/* empty css                                                   */
import { createBlock, openBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
/* empty css                    */
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
import { CheckboxGroup } from "../../../../node_modules/vant/es/checkbox-group/index.mjs";
import { Checkbox } from "../../../../node_modules/vant/es/checkbox/index.mjs";
const _sfc_main = {
  __name: "CheckboxGroup",
  props: {
    options: {
      type: Array,
      default: []
    },
    fieldNames: {
      type: Object,
      default: {
        text: "label",
        value: "value",
        disabled: "disabled"
      }
    }
  },
  setup(__props) {
    return (_ctx, _cache) => {
      const _component_van_checkbox = Checkbox;
      const _component_van_checkbox_group = CheckboxGroup;
      return openBlock(), createBlock(_component_van_checkbox_group, mergeProps(_ctx.$attrs, {
        shape: "square",
        class: "fec-m-checkbox"
      }), {
        default: withCtx(() => [
          (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
            return openBlock(), createBlock(_component_van_checkbox, {
              name: item[__props.fieldNames.value],
              disabled: item[__props.fieldNames.disabled]
            }, {
              default: withCtx(() => [
                createTextVNode(toDisplayString(item[__props.fieldNames.text]), 1)
              ]),
              _: 2
            }, 1032, ["name", "disabled"]);
          }), 256))
        ]),
        _: 1
      }, 16);
    };
  }
};
const _CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2c682ffe"]]);
export {
  _CheckboxGroup as default
};
