{"version":3,"sources":["webpack:///./node_modules/@ionic/core/dist/esm/legacy/ion-backdrop-ios.entry.js"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6G;AAChF;AAC4B;AACV;AAC/C;AACA;AACA,QAAQ,4DAAgB;AACxB;AACA,uBAAuB,qEAAkB;AACzC;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,4DAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,4DAAG;AAC5B;AACA;AACA;AACA,6BAA6B,4DAAG;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,4DAAU;AAC7B;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,QAAQ,4DAAC,CAAC,oDAAI,mBAAmB;AAC9E;AACA,0BAA0B,eAAe,OAAO,QAAQ,MAAM,SAAS,cAAc,kBAAkB,gCAAgC,wBAAwB,eAAe,eAAe,YAAY,sBAAsB,kBAAkB,UAAU,sBAAsB,uBAAuB,6BAA6B,YAAY,MAAM,gDAAgD,EAAE,EAAE;AAC3Y;AACA;AACA,KAAK;AACL;AACA,CAAC;AACmC","file":"23.js","sourcesContent":["import { r as registerInstance, d as createEvent, c as getIonMode, h, H as Host } from './chunk-09ec7fc0.js';\nimport './chunk-1074393c.js';\nimport { GESTURE_CONTROLLER } from './index-3a9dcfed.js';\nimport { n as now } from './chunk-c90aaa66.js';\nvar Backdrop = /** @class */ (function () {\n function Backdrop(hostRef) {\n registerInstance(this, hostRef);\n this.lastClick = -10000;\n this.blocker = GESTURE_CONTROLLER.createBlocker({\n disableScroll: true\n });\n /**\n * If `true`, the backdrop will be visible.\n */\n this.visible = true;\n /**\n * If `true`, the backdrop will can be clicked and will emit the `ionBackdropTap` event.\n */\n this.tappable = true;\n /**\n * If `true`, the backdrop will stop propagation on tap.\n */\n this.stopPropagation = true;\n this.ionBackdropTap = createEvent(this, \"ionBackdropTap\", 7);\n }\n Backdrop.prototype.componentDidLoad = function () {\n if (this.stopPropagation) {\n this.blocker.block();\n }\n };\n Backdrop.prototype.componentDidUnload = function () {\n this.blocker.destroy();\n };\n Backdrop.prototype.onTouchStart = function (ev) {\n this.lastClick = now(ev);\n this.emitTap(ev);\n };\n Backdrop.prototype.onMouseDown = function (ev) {\n if (this.lastClick < now(ev) - 2500) {\n this.emitTap(ev);\n }\n };\n Backdrop.prototype.emitTap = function (ev) {\n if (this.stopPropagation) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n if (this.tappable) {\n this.ionBackdropTap.emit();\n }\n };\n Backdrop.prototype.hostData = function () {\n var _a;\n var mode = getIonMode(this);\n return {\n tabindex: '-1',\n class: (_a = {},\n _a[mode] = true,\n _a['backdrop-hide'] = !this.visible,\n _a['backdrop-no-tappable'] = !this.tappable,\n _a)\n };\n };\n Backdrop.prototype.render = function () { return h(Host, this.hostData()); };\n Object.defineProperty(Backdrop, \"style\", {\n 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)}\"; },\n enumerable: true,\n configurable: true\n });\n return Backdrop;\n}());\nexport { Backdrop as ion_backdrop };\n"],"sourceRoot":""}