import{r as t,c as e,h as s,H as i}from"./p-2b0a6102.js";const o=".bs-modal{background-color:var(--bs-bg-base-elevated);border-radius:4px;box-shadow:var(--bs-shadow-contentHigh);left:1.5rem;max-height:calc(100% - 3rem);opacity:0;overflow:auto;padding:1.5rem;position:fixed;right:1.5rem;top:50%;transform:translateY(-50%);transition-duration:75ms;transition-property:opacity;transition-timing-function:ease-in-out;z-index:9999}.bs-modal:where([data-shown]){opacity:1}@media (min-width: 752px){.bs-modal{left:50%;margin:0;max-height:40.625rem;transform:translate(-50%, -50%);width:35rem}}bs-modal{display:block}.close-button-container{display:flex;justify-content:flex-end;margin-bottom:1.5rem}.close-button{cursor:pointer}";const a=class{constructor(s){t(this,s);this.close=e(this,"close",7);this.enterend=e(this,"enterend",3);this.leaveend=e(this,"leaveend",3);this.isVisible=false;this.alert=false;this.closeButton=true;this.enterControlled=false;this.enterTrigger=false;this.leaveTrigger=false}handleEscape(t){if(this.isVisible&&t.key==="Escape"){this.close.emit()}}handleEnterEnd(){this.isVisible=true;this.enterend.emit()}render(){return s(i,null,s("bs-overlay",{enterControlled:this.enterControlled,enterTrigger:this.enterTrigger,leaveTrigger:this.leaveTrigger}),s("bs-transition",{enterAttribute:"data-shown",enterDuration:75,enterControlled:this.enterControlled,enterTrigger:this.enterTrigger,leaveTrigger:this.leaveTrigger,onEnterend:()=>this.handleEnterEnd(),onLeaveend:()=>this.leaveend.emit()},s("div",{class:"bs-modal",role:this.alert?"alertdialog":"dialog","aria-modal":"true"},this.closeButton&&s("div",{class:"close-button-container"},s("button",{type:"button",title:"Close","aria-label":"Close",onClick:()=>this.close.emit()},s("bs-icon-close",{class:"close-button"}))),s("slot",null))))}};a.style=o;export{a as bs_modal};
//# sourceMappingURL=p-5b850f4c.entry.js.map