"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),l=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),n=require("../input-group/input-group.cjs"),a={name:"DtCheckboxGroup",extends:n.default,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:e=>e?(u.util.warn("Component uses selectedValues to initialize the model, value 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"],data(){return{internalValue:this.selectedValues,provideObj:{selectedValues:this.selectedValues}}},watch:{selectedValues(e){this.internalValue=e},internalValue(e){this.provideObj.selectedValues=e}},methods:{setGroupValue(e,t){t?this.internalValue.includes(e)||this.internalValue.push(e):this.internalValue=this.internalValue.filter(s=>s!==e),this.$emit("input",this.internalValue)},getMessageKey(e,t){return`checkbox-group-message-${e}-${t}-${this.id}`}}},r=null,i=null;var o=l.n(a,r,i);const d=o.exports;exports.default=d;
//# sourceMappingURL=checkbox-group.cjs.map
