Ei kuvausta

841.bef26980.chunk.js.map 2.2KB

1
  1. {"version":3,"file":"static/js/841.bef26980.chunk.js","mappings":"+MAOMA,EAAiB,WACrB,IAAMC,EAAMC,OACZD,EAAIE,iBAAiB,aAAa,YAChCC,EAAAA,EAAAA,KAAS,WACP,IAAMC,EAAQJ,EAAIK,WACZC,EAASN,EAAIO,YACbC,EAAKC,SAASC,iBAAiBN,EAAQ,EAAGE,EAAS,GACzD,GAAKE,EAAL,CAGA,IAAMG,GAAYC,EAAAA,EAAAA,GAAsBJ,GACpCG,GACF,IAAIE,SAAQ,SAACC,GAAO,OAAKC,EAAAA,EAAAA,GAAiBJ,EAAWG,EAAQ,IAAEE,MAAK,YAClEC,EAAAA,EAAAA,KAAS,uBAAC,mFAQ4C,OAApDN,EAAUO,MAAMC,YAAY,aAAc,UAAU,UAC9CC,EAAAA,EAAAA,GAAYT,EAAW,KAAI,OACjCA,EAAUO,MAAMG,eAAe,cAAc,2CAEjD,GAhBF,CAkBF,GACF,GACF,C","sources":["../node_modules/@ionic/core/components/status-tap.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { readTask, writeTask } from '@stencil/core/internal/client';\nimport { a as findClosestIonContent, s as scrollToTop } from './index9.js';\nimport { c as componentOnReady } from './helpers.js';\n\nconst startStatusTap = () => {\n const win = window;\n win.addEventListener('statusTap', () => {\n readTask(() => {\n const width = win.innerWidth;\n const height = win.innerHeight;\n const el = document.elementFromPoint(width / 2, height / 2);\n if (!el) {\n return;\n }\n const contentEl = findClosestIonContent(el);\n if (contentEl) {\n new Promise((resolve) => componentOnReady(contentEl, resolve)).then(() => {\n writeTask(async () => {\n /**\n * If scrolling and user taps status bar,\n * only calling scrollToTop is not enough\n * as engines like WebKit will jump the\n * scroll position back down and complete\n * any in-progress momentum scrolling.\n */\n contentEl.style.setProperty('--overflow', 'hidden');\n await scrollToTop(contentEl, 300);\n contentEl.style.removeProperty('--overflow');\n });\n });\n }\n });\n });\n};\n\nexport { startStatusTap };\n"],"names":["startStatusTap","win","window","addEventListener","readTask","width","innerWidth","height","innerHeight","el","document","elementFromPoint","contentEl","findClosestIonContent","Promise","resolve","componentOnReady","then","writeTask","style","setProperty","scrollToTop","removeProperty"],"sourceRoot":""}