Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),t=require(`./notice-constants.cjs`),n=require(`./notice-icon.cjs`),r=require(`./notice-content.cjs`),i=require(`./notice-action.cjs`);let a=require(`vue`);var o={compatConfig:{MODE:3},name:`DtNotice`,components:{DtNoticeIcon:n.default,DtNoticeContent:r.default,DtNoticeAction:i.default},props:{titleId:{type:String,default:void 0},contentId:{type:String,default:void 0},title:{type:String,default:``},role:{type:String,default:`status`,validate(e){return t.NOTICE_ROLES.includes(e)}},important:{type:Boolean,default:!1},kind:{type:String,default:`base`,validate(e){return t.NOTICE_KINDS.includes(e)}},hideClose:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1},hideAction:{type:Boolean,default:!1},truncateText:{type:Boolean,default:!1}},emits:[`close`,`click`],computed:{noticeClass(){return[`d-notice`,{error:`d-notice--error`,info:`d-notice--info`,success:`d-notice--success`,warning:`d-notice--warning`,base:`d-notice--base`}[this.kind],{"d-notice--important":this.important,"d-notice--truncate":this.truncateText}]}}};function s(e,t,n,r,i,o){let s=(0,a.resolveComponent)(`dt-notice-icon`),c=(0,a.resolveComponent)(`dt-notice-content`),l=(0,a.resolveComponent)(`dt-notice-action`);return(0,a.openBlock)(),(0,a.createElementBlock)(`aside`,{class:(0,a.normalizeClass)(o.noticeClass),"data-qa":`notice`},[n.hideIcon?(0,a.createCommentVNode)(``,!0):((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,kind:n.kind},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,`icon`)]),_:3},8,[`kind`])),(0,a.createVNode)(c,{"title-id":n.titleId,"content-id":n.contentId,title:n.title,role:n.role},{titleOverride:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,`titleOverride`)]),default:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,`default`)]),_:3},8,[`title-id`,`content-id`,`title`,`role`]),(0,a.createVNode)(l,{"hide-action":n.hideAction,"hide-close":n.hideClose,onClose:t[0]||(t[0]=t=>e.$emit(`close`))},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,`action`)]),_:3},8,[`hide-action`,`hide-close`])],2)}var c=e.t(o,[[`render`,s]]);exports.default=c;
//# sourceMappingURL=notice.cjs.map