File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/3243.05b148b5385b3381.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3243],{33243:(l,a,i)=>{i.r(a),i.d(a,{Geolocation:()=>u,GeolocationWeb:()=>s});var t=i(73308),c=i(22126);class s extends c.E_{getCurrentPosition(e){return(0,t.A)(function*(){return new Promise((n,r)=>{navigator.geolocation.getCurrentPosition(o=>{n(o)},o=>{r(o)},Object.assign({enableHighAccuracy:!1,timeout:1e4,maximumAge:0},e))})})()}watchPosition(e,n){return(0,t.A)(function*(){return`${navigator.geolocation.watchPosition(o=>{n(o)},o=>{n(null,o)},Object.assign({enableHighAccuracy:!1,timeout:1e4,maximumAge:0,minimumUpdateInterval:5e3},e))}`})()}clearWatch(e){return(0,t.A)(function*(){window.navigator.geolocation.clearWatch(parseInt(e.id,10))})()}checkPermissions(){var e=this;return(0,t.A)(function*(){if(typeof navigator>"u"||!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,t.A)(function*(){throw e.unimplemented("Not implemented on web.")})()}}const u=new s}}]);