import{r as s,h as r,H as t}from"./p-f11b4246.js";const o=class{constructor(r){s(this,r),this.colors={success:"red",info:"blue",warning:"orange",error:"red"}}flashEvent(s){this.flash=s.detail}render(){return r(t,null,this.flash&&r("corejam-box",{p:3,bWidth:1,rounded:"md",bColor:`${this.colors[this.flash.type]}-700`,bg:`${this.colors[this.flash.type]}-300`,m:3,w:"12",h:"100%",onClick:()=>this.flash=null},this.flash.msg))}};export{o as corejam_flash}