Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/utils/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),n=require(`../validation-messages/validation-messages.cjs`),r=require(`../../common/mixins/input-group.cjs`);let i=require(`vue`);var a={compatConfig:{MODE:3},name:`DtInputGroup`,components:{DtValidationMessages:n.default},mixins:[r.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:e.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}`}}},o=[`data-qa`],s=[`data-qa`];function c(e,t,n,r,a,c){let l=(0,i.resolveComponent)(`dt-validation-messages`);return(0,i.openBlock)(),(0,i.createElementBlock)(`fieldset`,{class:`d-input-group__fieldset`,"data-qa":n.dataQaGroup},[a.hasSlotContent(e.$slots.legend)||e.legend?((0,i.openBlock)(),(0,i.createElementBlock)(`legend`,(0,i.mergeProps)({key:0,class:[`d-label`,e.legendClass]},e.legendChildProps,{"data-qa":n.dataQaGroupLegend}),[(0,i.renderSlot)(e.$slots,`legend`,{},()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.legend),1)])],16,s)):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(e.$slots,`default`),(0,i.createVNode)(l,(0,i.mergeProps)({"validation-messages":e.formattedMessages,"show-messages":e.showMessages,class:e.messagesClass,"data-qa":n.dataQaGroupMessages},e.messagesChildProps),null,16,[`validation-messages`,`show-messages`,`class`,`data-qa`])],8,o)}var l=t.t(a,[[`render`,c]]);exports.default=l;
//# sourceMappingURL=input-group.cjs.map