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A,IAAAC,KAAA;IAAA,OAAApB,2LAAA;MACrB,IAAI,OAAOI,SAAS,KAAK,WAAW,IAAI,CAACA,SAAS,CAACiB,WAAW,EAAE;QAC5D,MAAMD,KAAI,CAACE,WAAW,CAAC,+CAA+C,CAAC;MAC3E;MACA,MAAMC,UAAU,SAASN,MAAM,CAACb,SAAS,CAACiB,WAAW,CAACG,KAAK,CAAC;QACxDC,IAAI,EAAE;MACV,CAAC,CAAC;MACF,OAAO;QAAEC,QAAQ,EAAEH,UAAU,CAACI,KAAK;QAAEC,cAAc,EAAEL,UAAU,CAACI;MAAM,CAAC;IAAC;EAC5E;EACME,kBAAkBA,CAAA,EAAG;IAAA,IAAAC,MAAA;IAAA,OAAA9B,2LAAA;MACvB,MAAM8B,MAAI,CAACC,aAAa,CAAC,yBAAyB,CAAC;IAAC;EACxD;AACJ;AACA,MAAMC,WAAW,GAAG,IAAInC,cAAc,CAAC,CAAC","sources":["./node_modules/@capacitor/geolocation/dist/esm/web.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class GeolocationWeb extends WebPlugin {\n async getCurrentPosition(options) {\n return new Promise((resolve, reject) => {\n navigator.geolocation.getCurrentPosition(pos => {\n resolve(pos);\n }, err => {\n reject(err);\n }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));\n });\n }\n async watchPosition(options, callback) {\n const id = navigator.geolocation.watchPosition(pos => {\n callback(pos);\n }, err => {\n callback(null, err);\n }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));\n return `${id}`;\n }\n async clearWatch(options) {\n window.navigator.geolocation.clearWatch(parseInt(options.id, 10));\n }\n async checkPermissions() {\n if (typeof navigator === 'undefined' || !navigator.permissions) {\n throw this.unavailable('Permissions API not available in this browser');\n }\n const permission = await window.navigator.permissions.query({\n name: 'geolocation',\n });\n return { location: permission.state, coarseLocation: permission.state };\n }\n async requestPermissions() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\nconst Geolocation = new GeolocationWeb();\nexport { Geolocation };\n"],"names":["WebPlugin","GeolocationWeb","getCurrentPosition","options","_asyncToGenerator","Promise","resolve","reject","navigator","geolocation","pos","err","Object","assign","enableHighAccuracy","timeout","maximumAge","watchPosition","callback","id","clearWatch","window","parseInt","checkPermissions","_this","permissions","unavailable","permission","query","name","location","state","coarseLocation","requestPermissions","_this2","unimplemented","Geolocation"],"sourceRoot":"webpack:///","x_google_ignoreList":[0]}