import{_ as i,aP as c,o as s,N as m,d as f,c as d,O as a,U as l,a as u,a9 as h,r as p}from"./config-98DzVabT.js";const _={name:"Modal",components:{VueFinalModal:c},props:{modalClass:{type:[String,Array],default:""},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0}},data(){return{id:this.$id("modal"),focusTrapOptions:{allowOutsideClick:!0}}},methods:{showModal(){setTimeout(()=>{this.$vfm.open(this.id)},10)},zIndexFn({index:e}){return 100+2*e},close(){setTimeout(()=>{this.$vfm.close(this.id)},10)}}},y={key:0,id:"modalTitle",class:"fui-modal-header"},v={id:"modalDescription",class:"fui-modal-body"},w={key:1,class:"fui-modal-footer"};function k(e,B,o,C,t,r){const n=p("vue-final-modal");return s(),m(n,h({"modal-id":t.id},e.$attrs,{"z-index-fn":r.zIndexFn,"esc-to-close":!0,class:["fui-modal",o.modalClass],"content-class":"fui-modal-wrap","overlay-class":"fui-modal-overlay","content-transition":"vfm-fade","overlay-transition":"vfm-fade","focus-trap":t.focusTrapOptions}),{default:f(()=>[o.showHeader?(s(),d("header",y,[a(e.$slots,"header")])):l("",!0),u("section",v,[a(e.$slots,"body")]),o.showFooter?(s(),d("footer",w,[a(e.$slots,"footer")])):l("",!0)]),_:3},16,["modal-id","z-index-fn","class","focus-trap"])}const M=i(_,[["render",k]]);export{M};
//# sourceMappingURL=Modal-tRvZdQEx.js.map
