"use strict";(self.webpackChunkrestaurantordering=self.webpackChunkrestaurantordering||[]).push([[561],{64561:(l,r,i)=>{i.r(r),i.d(r,{Geolocation:()=>u,GeolocationWeb:()=>a});var o=i(15861),c=i(47423);class a extends c.Uw{getCurrentPosition(e){return(0,o.Z)(function*(){return new Promise((n,s)=>{navigator.geolocation.getCurrentPosition(t=>{n(t)},t=>{s(t)},Object.assign({enableHighAccuracy:!1,timeout:1e4,maximumAge:0},e))})})()}watchPosition(e,n){return(0,o.Z)(function*(){return`${navigator.geolocation.watchPosition(t=>{n(t)},t=>{n(null,t)},Object.assign({enableHighAccuracy:!1,timeout:1e4,maximumAge:0},e))}`})()}clearWatch(e){return(0,o.Z)(function*(){window.navigator.geolocation.clearWatch(parseInt(e.id,10))})()}checkPermissions(){var e=this;return(0,o.Z)(function*(){if("undefined"==typeof navigator||!navigator.permissions)throw e.unavailable("Permissions API not available in this browser");const n=yield window.navigator.permissions.query({name:"geolocation"});return{location:n.state,coarseLocation:n.state}})()}requestPermissions(){var e=this;return(0,o.Z)(function*(){throw e.unimplemented("Not implemented on web.")})()}}const u=new a}}]);