import{aD as t,aE as o,aF as e,b1 as i,b8 as r,b2 as s,a$ as a,b0 as c,bq as n,b3 as l}from"./p-BTBbFFOR.js";import{s as b}from"./p-C2rs7Hxy.js";import{I as p,V as d}from"./p-ULeawcYN.js";var h=function(t,o,e,i){var r,s=arguments.length,a=s<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,o,e,i);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(s<3?r(a):s>3?r(o,e,a):r(o,e))||a);return s>3&&a&&Object.defineProperty(o,e,a),a};class v extends e{constructor(){super()}componentDidLoad(){this.updateBackdropStyle()}watchVisible(){this.updateBackdropStyle()}updateBackdropStyle(){this.visible?(this.host.style.display="block",setTimeout((()=>{this.host.style.opacity="1"}))):(this.host.style.opacity="0",setTimeout((()=>{this.visible||(this.host.style.display="none")}),this.duration))}}h([t()],v.prototype,"host",void 0),h([t()],v.prototype,"visible",void 0),h([t()],v.prototype,"duration",void 0),h([o("componentDidLoad")],v.prototype,"componentDidLoad",null),h([o("watchVisible")],v.prototype,"watchVisible",null);var u=function(t,o,e,i){var r,s=arguments.length,a=s<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,o,e,i);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(s<3?r(a):s>3?r(o,e,a):r(o,e))||a);return s>3&&a&&Object.defineProperty(o,e,a),a};class f extends e{constructor(){super()}render(){const{duration:t=0,color:o}=this;return i(s,{style:{transitionDuration:t?`${t}ms`:""},class:r([o]),onClick:()=>this.vegaClick.emit(),"aria-hidden":!0})}}u([t()],f.prototype,"visible",void 0),u([t()],f.prototype,"color",void 0),u([t()],f.prototype,"duration",void 0),u([t()],f.prototype,"vegaClick",void 0);var g=function(t,o,e,i){var r,s=arguments.length,a=s<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,o,e,i);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(a=(s<3?r(a):s>3?r(o,e,a):r(o,e))||a);return s>3&&a&&Object.defineProperty(o,e,a),a};const m=class{constructor(t){c(this,t),this.vegaClick=n(this,"vegaClick",7),this.globalSlimmers={},this.vegaBackdropVisibleController=new v,this.vegaBackdropRenderer=new f,this.vegaComponentUsageRuntimeMetricsSlimmer=new d,this.color="bg-backdrop-modal",this.visible=!1}watchVisible(){}render(){return b(this.vegaBackdropRenderer.render(),this.host)}get host(){return l(this)}static get watchers(){return{visible:[{watchVisible:0}]}}};g([p()],m.prototype,"globalSlimmers",void 0),g([a()],m.prototype,"vegaBackdropVisibleController",void 0),g([a()],m.prototype,"vegaBackdropRenderer",void 0),g([a()],m.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),m.style=":host{position:fixed;top:0px;left:0px;right:0px;bottom:0px;opacity:0;display:none;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:opacity}:host(.bg-backdrop-modal){background-color:rgba(var(--v-bg-backdrop-modal, 18, 18, 39, 0.85))}:host(.bg-backdrop-popover){background-color:rgba(var(--v-bg-backdrop-popover, 32, 54, 69, 0.16))}:host(.bg-transparent){background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}";export{m as vega_backdrop}