1 line
1.7 KiB
Plaintext
1 line
1.7 KiB
Plaintext
{"version":3,"sources":["webpack:///node_modules/@ionic/core/dist/esm/status-tap-0b3e89c4.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;AACzB,YAAMC,GAAG,GAAGC,MAAZ;AACAD,WAAG,CAACE,gBAAJ,CAAqB,WAArB,EAAkC,YAAM;AACpC,uEAAS,YAAM;AACX,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;AACL;AACH;;AACD,gBAAMG,SAAS,GAAGH,EAAE,CAACI,OAAH,CAAW,aAAX,CAAlB;;AACA,gBAAID,SAAJ,EAAe;AACXA,uBAAS,CAACE,gBAAV,GAA6BC,IAA7B,CAAkC,YAAM;AACpC,6EAAU;AAAA,yBAAMH,SAAS,CAACI,WAAV,CAAsB,GAAtB,CAAN;AAAA,iBAAV;AACH,eAFD;AAGH;AACJ,WAbD;AAcH,SAfD;AAgBH,OAlBD","file":"status-tap-0b3e89c4-js-es5.js","sourcesContent":["import { f as readTask, c as writeTask } from './index-92848855.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"]} |