aiber-test/www/status-tap-b46a1b02-js-es5.js.map
2020-12-18 09:30:04 +00:00

1 line
1.6 KiB
Plaintext

{"version":3,"sources":["webpack:///node_modules/@ionic/core/dist/esm/status-tap-b46a1b02.js"],"names":["startStatusTap","win","window","addEventListener","width","innerWidth","height","innerHeight","el","document","elementFromPoint","contentEl","closest","componentOnReady","then","scrollToTop"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;;AAEA,UAAMA,cAAc,GAAG,SAAjBA,cAAiB,GAAM;AAC3B,YAAMC,GAAG,GAAGC,MAAZ;AACAD,WAAG,CAACE,gBAAJ,CAAqB,WAArB,EAAkC,YAAM;AACtC,uEAAS,YAAM;AACb,gBAAMC,KAAK,GAAGH,GAAG,CAACI,UAAlB;AACA,gBAAMC,MAAM,GAAGL,GAAG,CAACM,WAAnB;AACA,gBAAMC,EAAE,GAAGC,QAAQ,CAACC,gBAAT,CAA0BN,KAAK,GAAG,CAAlC,EAAqCE,MAAM,GAAG,CAA9C,CAAX;;AACA,gBAAI,CAACE,EAAL,EAAS;AACP;AACD;;AACD,gBAAMG,SAAS,GAAGH,EAAE,CAACI,OAAH,CAAW,aAAX,CAAlB;;AACA,gBAAID,SAAJ,EAAe;AACbA,uBAAS,CAACE,gBAAV,GAA6BC,IAA7B,CAAkC,YAAM;AACtC,6EAAU;AAAA,yBAAMH,SAAS,CAACI,WAAV,CAAsB,GAAtB,CAAN;AAAA,iBAAV;AACD,eAFD;AAGD;AACF,WAbD;AAcD,SAfD;AAgBD,OAlBD","file":"status-tap-b46a1b02-js-es5.js","sourcesContent":["import { f as readTask, c as writeTask } from './index-e806d1f6.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 contentEl.componentOnReady().then(() => {\n writeTask(() => contentEl.scrollToTop(300));\n });\n }\n });\n });\n};\n\nexport { startStatusTap };\n"]}