-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path29-es2015.2e17b5ee81a2331f53ea.js
More file actions
1 lines (1 loc) · 1.51 KB
/
29-es2015.2e17b5ee81a2331f53ea.js
File metadata and controls
1 lines (1 loc) · 1.51 KB
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{uJLv:function(o,t,a){"use strict";a.r(t),a.d(t,"ion_backdrop",(function(){return i}));var r=a("QX1p"),n=a("u799"),s=a("rxGk");class i{constructor(o){Object(r.l)(this,o),this.blocker=s.a.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0,this.ionBackdropTap=Object(r.e)(this,"ionBackdropTap",7)}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.j)(r.b,{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)}"}}}]);