mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
1 line
4.0 KiB
JSON
1 line
4.0 KiB
JSON
|
|
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { f as readTask, c as writeTask } from './index-7a8b7a1c.js';\nimport { c as componentOnReady } from './helpers-1457892a.js';\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 = el.closest('ion-content');\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 contentEl.scrollToTop(300);\n contentEl.style.removeProperty('--overflow');\n }));\n });\n }\n });\n });\n};\nexport { startStatusTap };","map":{"version":3,"names":["f","readTask","c","writeTask","componentOnReady","startStatusTap","win","window","addEventListener","width","innerWidth","height","innerHeight","el","document","elementFromPoint","contentEl","closest","Promise","resolve","then","_asyncToGenerator","style","setProperty","scrollToTop","removeProperty"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@ionic/core/dist/esm/status-tap-9cb487b1.js"],"sourcesContent":["import { f as readTask, c as writeTask } from './index-7a8b7a1c.js';\nimport { c as componentOnReady } from './helpers-1457892a.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 = el.closest('ion-content');\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 contentEl.scrollToTop(300);\n contentEl.style.removeProperty('--overflow');\n });\n });\n }\n });\n });\n};\n\nexport { startStatusTap };\n"],"mappings":";AAAA,SAASA,CAAC,IAAIC,QAAQ,EAAEC,CAAC,IAAIC,SAAS,QAAQ,qBAAqB;AACnE,SAASD,CAAC,IAAIE,gBAAgB,QAAQ,uBAAuB;AAE7D,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAC3B,MAAMC,GAAG,GAAGC,MAAM;EAClBD,GAAG,CAACE,gBAAgB,CAAC,WAAW,EAAE,MAAM;IACtCP,QAAQ,CAAC,MAAM;MACb,MAAMQ,KAAK,GAAGH,GAAG,CAACI,UAAU;MAC5B,MAAMC,MAAM,GAAGL,GAAG,CAACM,WAAW;MAC9B,MAAMC,EAAE,GAAGC,QAAQ,CAACC,gBAAgB,CAACN,KAAK,GAAG,CAAC,EAAEE,MAAM,GAAG,CAAC,CAAC;MAC3D,IAAI,CAACE,EAAE,EAAE;QACP;MACF;MACA,MAAMG,SAAS,GAAGH,EAAE,CAACI,OAAO,CAAC,aAAa,CAAC;MAC3C,IAAID,SAAS,EAAE;QACb,IAAIE,OAAO,CAACC,OAAO,IAAIf,gBAAgB,CAACY,SAAS,EAAEG,OAAO,CAAC,CAAC,CAACC,IAAI,CAAC,MAAM;UACtEjB,SAAS,eAAAkB,iBAAA,CAAC,aAAY;YACpB;AACZ;AACA;AACA;AACA;AACA;AACA;YACYL,SAAS,CAACM,KAAK,CAACC,WAAW,CAAC,YAAY,EAAE,QAAQ,CAAC;YACnD,MAAMP,SAAS,CAACQ,WAAW,CAAC,GAAG,CAAC;YAChCR,SAAS,CAACM,KAAK,CAACG,cAAc,CAAC,YAAY,CAAC;UAC9C,CAAC,EAAC;QACJ,CAAC,CAAC;MACJ;IACF,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAASpB,cAAc"},"metadata":{},"sourceType":"module"}
|