"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../common/mixins/input-group.cjs"),r=require("../../common/utils/index.cjs"),a=require("vue"),i=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),d=require("../validation-messages/validation-messages.cjs"),u={compatConfig:{MODE:3},name:"DtInputGroup",components:{DtValidationMessages:d.default},mixins:[l.InputGroupMixin],props:{dataQaGroup:{type:String,default:"input-group"},dataQaGroupLegend:{type:String,default:"input-group-legend"},dataQaGroupMessages:{type:String,default:"input-group-messages"}},data(){return{internalValue:this.value,hasSlotContent:r.hasSlotContent}},watch:{value(e){this.internalValue=e},internalValue:{immediate:!0,handler(e){this.provideObj.value=e}}},methods:{getMessageKey(e,t){return`input-group-message-${e}-${t}-${this.id}`}}},g=["data-qa"],p=["data-qa"];function m(e,t,s,h,n,_){const o=a.resolveComponent("dt-validation-messages");return a.openBlock(),a.createElementBlock("fieldset",{class:"d-input-group__fieldset","data-qa":s.dataQaGroup},[n.hasSlotContent(e.$slots.legend)||e.legend?(a.openBlock(),a.createElementBlock("legend",a.mergeProps({key:0,class:["d-label",e.legendClass]},e.legendChildProps,{"data-qa":s.dataQaGroupLegend}),[a.renderSlot(e.$slots,"legend",{},()=>[a.createTextVNode(a.toDisplayString(e.legend),1)])],16,p)):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"default"),a.createVNode(o,a.mergeProps({"validation-messages":e.formattedMessages,"show-messages":e.showMessages,class:e.messagesClass,"data-qa":s.dataQaGroupMessages},e.messagesChildProps),null,16,["validation-messages","show-messages","class","data-qa"])],8,g)}const c=i._(u,[["render",m]]);exports.default=c;
//# sourceMappingURL=input-group.cjs.map
