"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
;/* empty css                                               */
;/* empty css                                                         */
;/* empty css                                                */
;/* empty css                                               */
;/* empty css                                                   */
const Vue = require("vue");
;/* empty css                    */
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
const index = require("../../../../node_modules/vant/es/checkbox-group/index.js");
const index$1 = require("../../../../node_modules/vant/es/checkbox/index.js");
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 = index$1.Checkbox;
      const _component_van_checkbox_group = index.CheckboxGroup;
      return Vue.openBlock(), Vue.createBlock(_component_van_checkbox_group, Vue.mergeProps(_ctx.$attrs, {
        shape: "square",
        class: "fec-m-checkbox"
      }), {
        default: Vue.withCtx(() => [
          (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.options, (item) => {
            return Vue.openBlock(), Vue.createBlock(_component_van_checkbox, {
              name: item[__props.fieldNames.value],
              disabled: item[__props.fieldNames.disabled]
            }, {
              default: Vue.withCtx(() => [
                Vue.createTextVNode(Vue.toDisplayString(item[__props.fieldNames.text]), 1)
              ]),
              _: 2
            }, 1032, ["name", "disabled"]);
          }), 256))
        ]),
        _: 1
      }, 16);
    };
  }
};
const _CheckboxGroup = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2c682ffe"]]);
exports.default = _CheckboxGroup;
