"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),l=require("../input-group/input-group.cjs"),s={compatConfig:{MODE:3},name:"DtCheckboxGroup",extends:l.default,props:{modelValue:{type:[],default:null,validator:e=>e?(u.warn("Component uses selectedValues to initialize the model, modelValue is not supported by this component",void 0),!1):!0},selectedValues:{type:Array,default(){return[]}},dataQaGroup:{type:String,default:"checkbox-group"},dataQaGroupLegend:{type:String,default:"checkbox-group-legend"},dataQaGroupMessages:{type:String,default:"checkbox-group-messages"}},emits:["input","update:selectedValues"],data(){return{internalValue:this.selectedValues}},watch:{selectedValues(e){this.internalValue=e},internalValue:{immediate:!0,handler(e){this.provideObj.selectedValues=e}}},methods:{setGroupValue(e,t){t?this.internalValue.includes(e)||this.internalValue.push(e):this.internalValue=this.internalValue.filter(a=>a!==e),this.$emit("input",this.internalValue),this.$emit("update:selectedValues",this.internalValue)},getMessageKey(e,t){return`checkbox-group-message-${e}-${t}-${this.id}`}}};exports.default=s;
//# sourceMappingURL=checkbox-group.cjs.map
