import{proxyCustomElement as e,HTMLElement as t,createEvent as a,h as i,Host as c,transformTag as o}from"@stencil/core/internal/client";import{i as n}from"./i18next.js";import{d as s}from"./ezp-icon2.js";import{d}from"./ezp-icon-button2.js";import{d as r}from"./ezp-label2.js";import{d as l}from"./ezp-text-button2.js";const p=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dialogClose=a(this,"dialogClose",7),this.dialogAction=a(this,"dialogAction",7),this.action=n.t("button_actions.close"),this.iconSize="large",this.iconFramed=!0,this.handleClose=()=>{this.dialogClose.emit(this.instance)},this.handleAction=()=>{this.dialogAction.emit(this.instance)}}componentWillLoad(){}render(){return i(c,{key:"e73ad3d56827d5ecf36f92052599bfeb3bc463f6"},i("div",{key:"3c71c2a729a1c2b0afa50778b0195961e788e1e9",id:"box"},i("div",{key:"350b2daeaf8e6fcdc9194c5355358ba117158d3d",id:"header"},i("ezp-icon-button",{key:"d9a23a475ef6c88270add722cf97ec7b32510f7f",level:"tertiary",icon:"close",type:"button",onClick:this.handleClose})),i("div",{key:"d14762d7b761244428c2903c9efce1a0b9130adf",id:"body"},this.iconName&&i("ezp-icon",{key:"cd77a5e3f99aad37adb74bc0a3e824dcc498ccd4",name:this.iconName,size:this.iconSize,framed:this.iconFramed}),i("div",{key:"8c9ad16c863d1ca02658d9c2d1c50d4b5ee487f5",id:"text"},i("ezp-label",{key:"97d2ff06ca2b73e1729b0abb441bca42384dcb07",text:this.heading,weight:"heavy"}),i("ezp-label",{key:"0f77905b89ecd61489e1019568bbcba8a8345eb2",text:this.description}))),i("div",{key:"6143abdde9159ac3df1f76511f617e0ad2b7f9fe",id:"footer"},i("ezp-text-button",{key:"12cb509c048b6a9e2c9df34c0abc25e094e6f3f9",type:"button",level:"primary",onClick:this.handleAction,label:this.action}))))}static get style(){return":host{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-line-pack:center;align-content:center;background:var(--ezp-core-backdrop);display:grid;grid-template:auto/minmax(auto, 280px);height:100%;-ms-flex-pack:center;justify-content:center;left:0;position:fixed;top:0;width:100%}#box{background:var(--ezp-core-surface-tertiary);border-radius:6px;-webkit-box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10))}#header{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding:var(--ezp-spacing-2) var(--ezp-spacing-3)}#body{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-5);padding:0 var(--ezp-spacing-5);text-align:center}#text{color:var(--ezp-core-foreground-primary);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4)}#footer{display:grid;grid-template:auto/minmax(144px, auto);-ms-flex-pack:center;justify-content:center;padding:var(--ezp-spacing-5)}"}},[1,"ezp-dialog",{heading:[1],description:[1],action:[1],iconName:[1,"icon-name"],iconSize:[1,"icon-size"],iconFramed:[4,"icon-framed"],instance:[1]}]);function b(){"undefined"!=typeof customElements&&["ezp-dialog","ezp-icon","ezp-icon-button","ezp-label","ezp-text-button"].forEach((e=>{switch(e){case"ezp-dialog":customElements.get(o(e))||customElements.define(o(e),p);break;case"ezp-icon":customElements.get(o(e))||s();break;case"ezp-icon-button":customElements.get(o(e))||d();break;case"ezp-label":customElements.get(o(e))||r();break;case"ezp-text-button":customElements.get(o(e))||l()}}))}export{p as E,b as d}