1 line
4.4 KiB
JSON
1 line
4.4 KiB
JSON
{"ast":null,"code":"import _asyncToGenerator from \"D:/MobileDev/WRB/WrenchBoard2023a/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n\n/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { f as readTask, c as writeTask } from './index-1a99aeb7.js';\nimport { f as findClosestIonContent, s as scrollToTop } from './index-3413f7be.js';\nimport { c as componentOnReady } from './helpers-4d272360.js';\nimport './index-c4b11676.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\n if (!el) {\n return;\n }\n\n const contentEl = findClosestIonContent(el);\n\n if (contentEl) {\n new Promise(resolve => componentOnReady(contentEl, resolve)).then(() => {\n writeTask( /*#__PURE__*/_asyncToGenerator(function* () {\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 yield scrollToTop(contentEl, 300);\n contentEl.style.removeProperty('--overflow');\n }));\n });\n }\n });\n });\n};\n\nexport { startStatusTap };","map":{"version":3,"names":["f","readTask","c","writeTask","findClosestIonContent","s","scrollToTop","componentOnReady","startStatusTap","win","window","addEventListener","width","innerWidth","height","innerHeight","el","document","elementFromPoint","contentEl","Promise","resolve","then","style","setProperty","removeProperty"],"sources":["D:/MobileDev/WRB/WrenchBoard2023a/node_modules/@ionic/core/dist/esm/status-tap-6e5168a1.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { f as readTask, c as writeTask } from './index-1a99aeb7.js';\nimport { f as findClosestIonContent, s as scrollToTop } from './index-3413f7be.js';\nimport { c as componentOnReady } from './helpers-4d272360.js';\nimport './index-c4b11676.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"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,CAAC,IAAIC,QAAd,EAAwBC,CAAC,IAAIC,SAA7B,QAA8C,qBAA9C;AACA,SAASH,CAAC,IAAII,qBAAd,EAAqCC,CAAC,IAAIC,WAA1C,QAA6D,qBAA7D;AACA,SAASJ,CAAC,IAAIK,gBAAd,QAAsC,uBAAtC;AACA,OAAO,qBAAP;;AAEA,MAAMC,cAAc,GAAG,MAAM;EAC3B,MAAMC,GAAG,GAAGC,MAAZ;EACAD,GAAG,CAACE,gBAAJ,CAAqB,WAArB,EAAkC,MAAM;IACtCV,QAAQ,CAAC,MAAM;MACb,MAAMW,KAAK,GAAGH,GAAG,CAACI,UAAlB;MACA,MAAMC,MAAM,GAAGL,GAAG,CAACM,WAAnB;MACA,MAAMC,EAAE,GAAGC,QAAQ,CAACC,gBAAT,CAA0BN,KAAK,GAAG,CAAlC,EAAqCE,MAAM,GAAG,CAA9C,CAAX;;MACA,IAAI,CAACE,EAAL,EAAS;QACP;MACD;;MACD,MAAMG,SAAS,GAAGf,qBAAqB,CAACY,EAAD,CAAvC;;MACA,IAAIG,SAAJ,EAAe;QACb,IAAIC,OAAJ,CAAaC,OAAD,IAAad,gBAAgB,CAACY,SAAD,EAAYE,OAAZ,CAAzC,EAA+DC,IAA/D,CAAoE,MAAM;UACxEnB,SAAS,iCAAC,aAAY;YACpB;AACZ;AACA;AACA;AACA;AACA;AACA;YACYgB,SAAS,CAACI,KAAV,CAAgBC,WAAhB,CAA4B,YAA5B,EAA0C,QAA1C;YACA,MAAMlB,WAAW,CAACa,SAAD,EAAY,GAAZ,CAAjB;YACAA,SAAS,CAACI,KAAV,CAAgBE,cAAhB,CAA+B,YAA/B;UACD,CAXQ,EAAT;QAYD,CAbD;MAcD;IACF,CAxBO,CAAR;EAyBD,CA1BD;AA2BD,CA7BD;;AA+BA,SAASjB,cAAT"},"metadata":{},"sourceType":"module"} |