-
Notifications
You must be signed in to change notification settings - Fork 0
/
24-es2015.32d9b754e1b60243b094.js
1 lines (1 loc) · 1.52 KB
/
24-es2015.32d9b754e1b60243b094.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{Q2Bp:function(o,t,a){"use strict";a.r(t),a.d(t,"ion_backdrop",(function(){return i}));var r=a("OVxw"),n=a("vO0Z"),s=a("rxGk");const i=class{constructor(o){Object(r.q)(this,o),this.ionBackdropTap=Object(r.i)(this,"ionBackdropTap",7),this.blocker=s.a.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(o){this.emitTap(o)}emitTap(o){this.stopPropagation&&(o.preventDefault(),o.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const o=Object(n.b)(this);return Object(r.l)(r.c,{tabindex:"-1",class:{[o]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}};i.style={ios:":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)}",md:":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)}"}}}]);