import{r as t,c as e,h as r}from"./p-BIwHMk6j.js";const o=class{constructor(r){t(this,r),this.dismiss=e(this,"dismiss"),this.type="note",this.open=!1,this.handleClose=()=>{this.dismiss.emit()}}render(){return r("limel-dialog",{key:"3f5f48a6d69f5d5d987a83496ea3a4689a871d40",open:this.open,onClose:this.handleClose},r("div",{key:"f24667a0dcaa1d983ac8d1cb1c4dda5542f9316f",class:"dialog-content"},r("div",{key:"1dca7c8e353f51a17db6a2567c950e8f4848719e",class:"icon-slot"},r("limel-icon",{key:"bafe113f1af3cec70a519ab019acc1ceb738b20c",name:this.getIconName(),"aria-hidden":"true"})),r("h1",{key:"cf98256b973e3d0955d11085d76a47559745dc09",id:"alert-dialog-title"},this.heading),this.renderSubheading()),r("div",{key:"956139621f95e0011e4ecfb40b4b6ecc9a66765d",slot:"button"},r("slot",{key:"a92104ece4fd7998c45adb05e143880f541f3aab",name:"button"})))}renderSubheading(){return this.subheading?r("h2",{id:"alert-dialog-content"},this.subheading):null}getIconName(){return this.icon?this.icon:{note:"information",success:"check_mark",caution:"error_(14)",warning:"multiply"}[this.type]}};o.style='@charset "UTF-8";:host(limebb-alert-dialog){--dialog-width:20rem;overflow:hidden}:host([type=note]){--alert-type-background:var(--color-sky-lighter);--alert-type-color:var(--color-sky-dark)}:host([type=success]){--alert-type-background:var(--color-lime-lighter);--alert-type-color:var(--color-lime-dark)}:host([type=caution]){--alert-type-background:var(--color-orange-lighter);--alert-type-color:var(--color-orange-dark)}:host([type=warning]){--alert-type-background:var(--color-coral-lighter);--alert-type-color:var(--color-coral-dark)}.dialog-content{display:flex;flex-direction:column;align-items:center}.icon-slot{display:flex;justify-content:center;align-items:center;height:7rem;width:7rem;border-radius:50%;margin:1.5rem 0;background:rgb(var(--alert-type-background))}limel-icon{height:3.5rem;width:3.5rem;color:rgb(var(--alert-type-color))}h1{color:rgb(var(--contrast-1500));font-size:1.5rem}h2{text-align:center;color:rgb(var(--contrast-1200));margin:0 0 0.25rem 0;font-size:0.9rem;font-weight:500;line-height:1.2rem}div[slot=button]{display:flex;flex-direction:column;align-items:center;gap:0.5rem;width:100%}::slotted(limel-button){display:block;width:100%}::slotted(limel-button[primary]){color:rgb(var(--contrast-100));--lime-primary-color:rgb(var(--alert-type-color))}::slotted(limel-button:not([primary])){--lime-primary-color:rgb(var(--contrast-1000))}::slotted(button){appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit}::slotted(a){all:unset}::slotted(button),::slotted(a){color:rgb(var(--contrast-1000));border-bottom:1px solid rgb(var(--contrast-800));text-align:center;width:fit-content;cursor:pointer}::slotted(button:focus-visible),::slotted(a:focus-visible){outline:none;box-shadow:var(--shadow-depth-8-focused)}';export{o as limebb_alert_dialog}