import { uuid } from '@openuxkit/utils';
import BaseEditableHolder from '@openvue/core/baseeditableholder';
import CheckboxGroupStyle from 'openvue/checkboxgroup/style';
import { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';

var script$1 = {
  name: 'BaseCheckboxGroup',
  "extends": BaseEditableHolder,
  style: CheckboxGroupStyle,
  provide: function provide() {
    return {
      $pcCheckboxGroup: this,
      $parentInstance: this
    };
  }
};

var script = {
  name: 'CheckboxGroup',
  "extends": script$1,
  inheritAttrs: false,
  data: function data() {
    return {
      groupName: this.name
    };
  },
  watch: {
    name: function name(newValue) {
      this.groupName = newValue || uuid('checkbox-group-');
    }
  },
  mounted: function mounted() {
    this.groupName = this.groupName || uuid('checkbox-group-');
  }
};

function render(_ctx, _cache, $props, $setup, $data, $options) {
  return openBlock(), createElementBlock("div", mergeProps({
    "class": _ctx.cx('root')
  }, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, "default")], 16);
}

script.render = render;

export { script as default };
//# sourceMappingURL=index.mjs.map
