{"version":3,"file":"static/js/551.f7125d0a.chunk.js","mappings":"0IAIM,MAAOA,UAAeC,EAAAA,GAC1BC,WAAAA,GACEC,QA4BM,KAAAC,uBAAyB,KAC/B,MAAMC,EAAO,CACXC,UAA8B,IAApBC,SAASC,QAGrBC,KAAKC,gBAAgB,iBAAkBL,GACnCE,SAASC,OACXC,KAAKC,gBAAgB,QAAS,MAE9BD,KAAKC,gBAAgB,SAAU,K,EApCjCH,SAASI,iBACP,mBACAF,KAAKL,wBACL,EAEJ,CAEAQ,OAAAA,GACE,MAAMH,KAAKI,cAAc,0BAC3B,CAEA,aAAMC,GACJ,MAAML,KAAKI,cAAc,0BAC3B,CAEA,kBAAME,GACJ,MAAO,CAAEC,IAAK,GAChB,CAEA,cAAMC,GACJ,MAAO,CAAEX,UAA8B,IAApBC,SAASC,OAC9B,CAEA,iBAAMU,GACJ,MAAMT,KAAKI,cAAc,0BAC3B,E","sources":["../node_modules/@capacitor/app/src/web.ts"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { AppInfo, AppPlugin, AppLaunchUrl, AppState } from './definitions';\n\nexport class AppWeb extends WebPlugin implements AppPlugin {\n constructor() {\n super();\n document.addEventListener(\n 'visibilitychange',\n this.handleVisibilityChange,\n false,\n );\n }\n\n exitApp(): Promise {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async getInfo(): Promise {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async getLaunchUrl(): Promise {\n return { url: '' };\n }\n\n async getState(): Promise {\n return { isActive: document.hidden !== true };\n }\n\n async minimizeApp(): Promise {\n throw this.unimplemented('Not implemented on web.');\n }\n\n private handleVisibilityChange = () => {\n const data = {\n isActive: document.hidden !== true,\n };\n\n this.notifyListeners('appStateChange', data);\n if (document.hidden) {\n this.notifyListeners('pause', null);\n } else {\n this.notifyListeners('resume', null);\n }\n };\n}\n"],"names":["AppWeb","WebPlugin","constructor","super","handleVisibilityChange","data","isActive","document","hidden","this","notifyListeners","addEventListener","exitApp","unimplemented","getInfo","getLaunchUrl","url","getState","minimizeApp"],"sourceRoot":""}