import{r as t,h as o,H as e,c as s,a as r}from"./p-f11b4246.js";const i=class{constructor(o){t(this,o),this.grid=!0}async componentWillLoad(){await this.computeStyles()}componentShouldUpdate(t,o){return t!=o}async computeStyles(){const t=await(await import("./p-9d94fbef.js").then((function(t){return t.s}))).calculateStyles(this);this.hash=t}render(){return o(e,{class:this.hash},o("slot",null))}},a=class{constructor(o){t(this,o),this.corejamModalClose=s(this,"corejam:modal:close",7),this.type="success",this.colorMap={error:"red-600",warning:"orange-500",success:"green-600"}}closeModal(){this.modalInstance.remove(),this.corejamModalClose.emit()}render(){return o(e,null,o("corejam-box",{position:"fixed",z:1e3,top:0,right:0,bottom:0,left:0,style:{background:"rgba(255,255,255, 0.6",backdropFilter:"blur(2px)"}},o("corejam-grid",{h:"100%",style:{placeItems:"center"}},o("corejam-box",{bWidth:1,bColor:"gray-400",rounded:"md",shadow:"lg",flex:!0,items:"center",position:"relative",justify:"center",direction:"col",p:4,h:"200px",w:"3",bg:"white"},o("corejam-box",{onClick:()=>this.closeModal(),top:10,position:"absolute",right:10},"X"),o("corejam-type",{weight:"bold",as:"h3",color:this.colorMap[this.type]},this.type.toUpperCase()),o("corejam-type",null,this.message)))))}get modalInstance(){return r(this)}};export{i as corejam_grid,a as corejam_modal}