-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path29.ea954112e4fa3ce7da0f.js
1 lines (1 loc) · 1.53 KB
/
29.ea954112e4fa3ce7da0f.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{pA8c:function(t,o,i){"use strict";i.r(o),i.d(o,"ion_backdrop",function(){return r});var n=i("VKG5"),a=(i("Ansa"),i("u3ma")),e=i("l1ru"),r=function(){function t(t){Object(n.l)(this,t),this.lastClick=-1e4,this.blocker=a.GESTURE_CONTROLLER.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0,this.ionBackdropTap=Object(n.d)(this,"ionBackdropTap",7)}return t.prototype.connectedCallback=function(){this.stopPropagation&&this.blocker.block()},t.prototype.disconnectedCallback=function(){this.blocker.unblock()},t.prototype.onTouchStart=function(t){this.lastClick=Object(e.i)(t),this.emitTap(t)},t.prototype.onMouseDown=function(t){this.lastClick<Object(e.i)(t)-2500&&this.emitTap(t)},t.prototype.emitTap=function(t){this.stopPropagation&&(t.preventDefault(),t.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()},t.prototype.render=function(){var t,o=Object(n.e)(this);return Object(n.i)(n.a,{tabindex:"-1",class:(t={},t[o]=!0,t["backdrop-hide"]=!this.visible,t["backdrop-no-tappable"]=!this.tappable,t)})},Object.defineProperty(t,"style",{get:function(){return":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:.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)}"},enumerable:!0,configurable:!0}),t}()}}]);