/*! * (C) Ionic http://ionicframework.com - MIT License */ import{r as registerInstance,d as createEvent,h,f as Host}from"./index-6e4709ff.js";import{b as getIonMode}from"./ionic-global-c4e0c089.js";var backdropIosCss=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}";var IonBackdropIosStyle0=backdropIosCss;var backdropMdCss=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}";var IonBackdropMdStyle0=backdropMdCss;var Backdrop=function(){function o(o){registerInstance(this,o);this.ionBackdropTap=createEvent(this,"ionBackdropTap",7);this.visible=true;this.tappable=true;this.stopPropagation=true}o.prototype.onMouseDown=function(o){this.emitTap(o)};o.prototype.emitTap=function(o){if(this.stopPropagation){o.preventDefault();o.stopPropagation()}if(this.tappable){this.ionBackdropTap.emit()}};o.prototype.render=function(){var o;var t=getIonMode(this);return h(Host,{key:"edc9b82940adbb5fa740107bd2d12d02955606fa",tabindex:"-1","aria-hidden":"true",class:(o={},o[t]=true,o["backdrop-hide"]=!this.visible,o["backdrop-no-tappable"]=!this.tappable,o)})};return o}();Backdrop.style={ios:IonBackdropIosStyle0,md:IonBackdropMdStyle0};export{Backdrop as ion_backdrop};