import{r as t,c as o,h as s,H as a}from"./p-7d0be017.js";import{G as r}from"./p-a879909c.js";const c=class{constructor(s){t(this,s),this.gascoBackdropTap=o(this,"gascoBackdropTap",7),this.blocker=r.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(t){this.emitTap(t)}emitTap(t){this.stopPropagation&&(t.preventDefault(),t.stopPropagation()),this.tappable&&this.gascoBackdropTap.emit()}render(){return s(a,{tabindex:"-1","aria-hidden":"true",class:{"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}};c.style=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--gasco-backdrop-color, #000)}";export{c as gasco_backdrop}