"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("@dialpad/dialtone-icons/vue2"),s=require("../../shared/sr_only_close_button.cjs"),i=require("../../localization/index.cjs"),c=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),l=require("../button/button.cjs"),r={name:"DtNoticeAction",components:{DtIconClose:n.DtIconClose,DtButton:l.default,SrOnlyCloseButton:s.default},props:{hideClose:{type:Boolean,default:!1},hideAction:{type:Boolean,default:!1}},emits:["close"],data(){return{i18n:new i.DialtoneLocalization}},computed:{noticeActionListeners(){return{...this.$listeners,click:e=>{this.close(),this.$emit("click",e)}}},closeButtonTitle(){return this.i18n.$t("DIALTONE_CLOSE_BUTTON")}},mounted(){this.hideClose||(this.lastFocusedElement=document.activeElement)},beforeDestroy(){var e;(e=this.lastFocusedElement)==null||e.focus()},methods:{close(){this.$emit("close")}}};var a=function(){var t=this,o=t._self._c;return o("div",{staticClass:"d-notice__actions",attrs:{"data-qa":"notice-content-actions"}},[t.hideAction?t._e():t._t("default"),t.hideClose?o("sr-only-close-button",{on:{close:t.close}}):o("dt-button",t._g({ref:"closeButton",attrs:{circle:"","data-qa":"dt-notice-action-close-button",importance:"clear",size:"sm","aria-label":t.closeButtonTitle,title:t.closeButtonTitle},scopedSlots:t._u([{key:"icon",fn:function(){return[o("dt-icon-close",{attrs:{size:"200"}})]},proxy:!0}],null,!1,4156074325)},t.noticeActionListeners))],2)},u=[],d=c.n(r,a,u);const _=d.exports;exports.default=_;
//# sourceMappingURL=notice-action.cjs.map
