{"version":3,"sources":["webpack:///./node_modules/@capacitor/geolocation/dist/esm/web.js"],"names":["GeolocationWeb","options","Promise","resolve","reject","navigator","geolocation","getCurrentPosition","pos","err","Object","assign","enableHighAccuracy","timeout","maximumAge","callback","id","watchPosition","window","clearWatch","parseInt","permissions","this","unavailable","permission","query","name","location","state","coarseLocation","unimplemented","Geolocation"],"mappings":"gHAAA,kHACO,MAAMA,UAAuB,OAChC,yBAAyBC,GACrB,OAAO,IAAIC,QAAQ,CAACC,EAASC,KACzBC,UAAUC,YAAYC,mBAAmBC,IACrCL,EAAQK,IACTC,IACCL,EAAOK,IACRC,OAAOC,OAAO,CAAEC,oBAAoB,EAAOC,QAAS,IAAOC,WAAY,GAAKb,MAGvF,oBAAoBA,EAASc,GACzB,MAAMC,EAAKX,UAAUC,YAAYW,cAAcT,IAC3CO,EAASP,IACVC,IACCM,EAAS,KAAMN,IAChBC,OAAOC,OAAO,CAAEC,oBAAoB,EAAOC,QAAS,IAAOC,WAAY,GAAKb,IAC/E,MAAO,GAAGe,EAEd,iBAAiBf,GACbiB,OAAOb,UAAUC,YAAYa,WAAWC,SAASnB,EAAQe,GAAI,KAEjE,yBACI,GAAyB,qBAAdX,YAA8BA,UAAUgB,YAC/C,MAAMC,KAAKC,YAAY,iDAE3B,MAAMC,QAAmBN,OAAOb,UAAUgB,YAAYI,MAAM,CACxDC,KAAM,gBAEV,MAAO,CAAEC,SAAUH,EAAWI,MAAOC,eAAgBL,EAAWI,OAEpE,2BACI,MAAMN,KAAKQ,cAAc,4BAGjC,MAAMC,EAAc,IAAI/B","file":"js/chunk-2d230c96.cadc2f53.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//# sourceMappingURL=web.js.map"],"sourceRoot":""}