import{__awaiter,__generator}from"tslib";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */import{h as readTask,e as writeTask}from"./index-6f1cee27.js";import{c as componentOnReady}from"./helpers-cdb61eae.js";var startStatusTap=function(){var e=window;e.addEventListener("statusTap",(function(){readTask((function(){var t=e.innerWidth;var r=e.innerHeight;var n=document.elementFromPoint(t/2,r/2);if(!n){return}var o=n.closest("ion-content");if(o){new Promise((function(e){return componentOnReady(o,e)})).then((function(){writeTask((function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:o.style.setProperty("--overflow","hidden");return[4,o.scrollToTop(300)];case 1:e.sent();o.style.removeProperty("--overflow");return[2]}}))}))}))}))}}))}))};export{startStatusTap};