@ionic/core
Version:
Base components for Ionic
4 lines • 2.42 kB
JavaScript
var __awaiter=this&&this.__awaiter||function(n,t,e,r){function i(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,u){function c(n){try{f(r.next(n))}catch(n){u(n)}}function o(n){try{f(r["throw"](n))}catch(n){u(n)}}function f(n){n.done?e(n.value):i(n.value).then(c,o)}f((r=r.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,c;return c={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function o(n){return function(t){return f([n,t])}}function f(o){if(r)throw new TypeError("Generator is already executing.");while(c&&(c=0,o[0]&&(e=0)),e)try{if(r=1,i&&(u=o[0]&2?i["return"]:o[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,o[1])).done)return u;if(i=0,u)o=[o[0]&2,u.value];switch(o[0]){case 0:case 1:u=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(u=e.trys,u=u.length>0&&u[u.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!u||o[1]>u[0]&&o[1]<u[3])){e.label=o[1];break}if(o[0]===6&&e.label<u[1]){e.label=u[1];u=o;break}if(u&&e.label<u[2]){e.label=u[2];e.ops.push(o);break}if(u[2])e.ops.pop();e.trys.pop();continue}o=t.call(n,e)}catch(n){o=[6,n];i=0}finally{r=u=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/System.register(["./p-f11a9436.system.js","./p-4b07c60a.system.js","./p-455cd7cc.system.js","./p-0ec5b7cf.system.js","./p-f201b53a.system.js"],(function(n){"use strict";var t,e,r,i,u;return{setters:[function(n){t=n.d;e=n.w},function(n){r=n.f;i=n.s},function(n){u=n.c},function(){},function(){}],execute:function(){var c=this;var o=n("startStatusTap",(function(){var n=window;n.addEventListener("statusTap",(function(){t((function(){var t=n.innerWidth;var o=n.innerHeight;var f=document.elementFromPoint(t/2,o/2);if(!f){return}var a=r(f);if(a){new Promise((function(n){return u(a,n)})).then((function(){e((function(){return __awaiter(c,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:a.style.setProperty("--overflow","hidden");return[4,i(a,300)];case 1:n.sent();a.style.removeProperty("--overflow");return[2]}}))}))}))}))}}))}))}))}}}));