import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as s,Host as a,transformTag as r}from"@stencil/core/internal/client";import{i as o}from"./i18next.js";import{d as n}from"./ezp-icon2.js";import{d as c}from"./ezp-label2.js";import{d as l}from"./ezp-text-button2.js";const d=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.statusCancel=i(this,"statusCancel",7),this.statusClose=i(this,"statusClose",7),this.statusRetry=i(this,"statusRetry",7),this.description="Description",this.processing=!1,this.handleCancel=()=>{this.statusCancel.emit(this.instance)},this.handleClose=()=>{this.statusClose.emit(this.instance)},this.handleRetry=()=>{this.statusRetry.emit(this.instance)}}componentWillLoad(){}render(){return s(a,{key:"e04ad6bd97cdcc28cd5b0bdf2d2ff6a33ceab129"},s("div",{key:"4f725c25965dc80f1d1e68c0a6611e6b654853e4",id:"box"},this.processing?s("svg",{id:"indicator",viewBox:"0 0 42 42",xmlns:"http://www.w3.org/2000/svg"},s("circle",{id:"track",cx:"21",cy:"21",r:"18"}),s("circle",{id:"value",cx:"21",cy:"21",r:"18"})):this.icon?s("ezp-icon",{name:this.icon,framed:!0}):null,s("ezp-label",{key:"7ec34d3592bee4684d4907f630ae0b8220d87f5f",id:"description",level:"tertiary",weight:"strong",text:this.description}),(this.cancel||this.close||this.retry)&&s("div",{key:"d726baeb1e9c7b3e8fa60a2801183e33fbaccc03",id:"footer"},this.cancel&&s("ezp-text-button",{key:"c2d85e5dd6506298e444691bd90644bc29fcbcc3",level:"secondary",small:!0,onClick:this.handleCancel,label:"string"==typeof this.cancel?this.cancel:o.t("button_actions.cancel")}),this.close&&s("ezp-text-button",{key:"ac07d54b361c71d1bc2697f4b3477056a6d81cf3",level:this.retry?"secondary":"primary",small:!0,onClick:this.handleClose,label:"string"==typeof this.close?this.close:o.t("button_actions.close")}),this.retry&&s("ezp-text-button",{key:"4deb60cd315e298b822bb0ba74eed94776f20c82",level:"primary",small:!0,onClick:this.handleRetry,label:"string"==typeof this.retry?this.retry:o.t("button_actions.retry")}))))}static get style(){return":host{-ms-flex-align:center;align-items:center;background:var(--ezp-core-backdrop);border-radius:var(--ezp-status-border-radius, 6px);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;left:0;padding:var(--ezp-spacing-6);position:absolute;top:0;width:100%;z-index:9999}@media (prefers-color-scheme: dark){:host{--box-separator-position:inset 0 0 0 var(--hairline-width-positive)}}#box{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-align:center;align-items:center;background:var(--ezp-core-surface-tertiary);border-radius:3px;-webkit-box-shadow:var(--ezp-status-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-status-box-boxShadow, 0 0 0 1px var(--ezp-black-10));display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4);padding:var(--ezp-spacing-4) var(--ezp-spacing-5)}#indicator{-webkit-animation:rotate var(--ezp-duration-6) linear infinite;animation:rotate var(--ezp-duration-6) linear infinite;display:block;height:42px;-webkit-transform:rotate(0);transform:rotate(0);width:42px}#track{fill:none;stroke:var(--ezp-core-outline);stroke-width:4px}#value{-webkit-animation:offset var(--ezp-duration-6) linear alternate infinite;animation:offset var(--ezp-duration-6) linear alternate infinite;fill:none;stroke:var(--ezp-theme-solid);stroke-dasharray:110;stroke-dashoffset:110;stroke-linecap:round;stroke-width:4px}#description{color:var(--ezp-core-foreground-primary)}#footer{display:-ms-flexbox;display:flex;gap:var(--ezp-spacing-2)}@-webkit-keyframes offset{100%{stroke-dashoffset:55}}@keyframes offset{100%{stroke-dashoffset:55}}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"}},[1,"ezp-status",{description:[1],processing:[4],instance:[1],icon:[1],cancel:[8],close:[8],retry:[8]}]);function p(){"undefined"!=typeof customElements&&["ezp-status","ezp-icon","ezp-label","ezp-text-button"].forEach((e=>{switch(e){case"ezp-status":customElements.get(r(e))||customElements.define(r(e),d);break;case"ezp-icon":customElements.get(r(e))||n();break;case"ezp-label":customElements.get(r(e))||c();break;case"ezp-text-button":customElements.get(r(e))||l()}}))}export{d as E,p as d}