import{S as s}from"./Caret.19b10233.js";import{n as a}from"./_plugin-vue2_normalizer.61652a7c.js";const l={components:{SvgClose:s},props:{classes:{type:Array,default(){return[]}},noHeader:Boolean,isolate:Boolean,allowOverflow:Boolean,confirmation:Boolean},methods:{scrollToElement(){const t=this.$el.getElementsByClassName("component-wrapper")[0];setTimeout(()=>{t&&(t.firstChild.scrollTop=0)},10)},escapeListener(t){t.key==="Escape"&&!this.confirmation&&this.$emit("close")}},mounted(){document.addEventListener("keydown",this.escapeListener),this.scrollToElement(),this.isolate&&document.body.appendChild(this.$el)},beforeDestroy(){document.removeEventListener("click",this.escapeListener)}};var r=function(){var e=this,o=e._self._c;return o("transition",{attrs:{name:"modal"}},[o("div",{staticClass:"aioseo-modal",class:[{"aioseo-app":e.isolate,"allow-overflow":e.allowOverflow},...e.classes]},[o("div",{staticClass:"modal-mask"},[o("div",{staticClass:"modal-wrapper"},[o("div",{staticClass:"modal-container"},[e.noHeader?e._e():o("div",{staticClass:"modal-header"},[e._t("header",function(){return[e._t("headerTitle"),o("button",{staticClass:"close",on:{click:function(n){return n.stopPropagation(),e.$emit("close")}}},[o("svg-close",{on:{click:function(n){return e.$emit("close")}}})],1)]})],2),o("div",{staticClass:"modal-body"},[e._t("body")],2),e.$slots.footer?o("div",{staticClass:"modal-container__footer"},[e._t("footer")],2):e._e()])])])])])},i=[],c=a(l,r,i,!1,null,null,null,null);const d=c.exports;export{d as C};
