{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-fused-location@1.1.2/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAIA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,MAAM,eAAiB,QAAQ,gBACzB,cAAgB,eAAe,cAAc,cAC7C,gBAAkB,KACpB,GAAmC,YAA/B,eAAe,SAAS,GACxB,MAAM,IAAI,MAAM,oFACpB,EAEJ,QAAQ,QAAU,CACd,iBAAkB,CAAC,GAAmB,KAClC,kBACO,cAAc,iBAAiB,IAE1C,qBAAsB,KAClB,kBACO,cAAc,wBAEzB,oBAAqB,KACjB,kBACO,cAAc,uBAEzB,GAAI,CAAC,EAAW,KAEZ,GADA,kBACiB,iBAAb,GAA6C,sBAAb,EAChC,MAAM,IAAI,MAAM,uEAEpB,MAAO,CAAE,SAAU,eAAe,mBAAmB,YAAY,EAAW,GAAI,SAAU,YAAW,EAEzG,IAAM,IACF,kBACA,eAAe,mBAAmB,eAAe,EAAa,UAAW,EAAa,SAAS,EAEnG,oBAAsB,IAElB,GADA,kBACI,EAAW,GAAK,EAAW,EAC3B,MAAM,IAAI,MAAM,sCAEpB,OAAO,cAAc,oBAAoB,EAAS,EAEtD,oBAAsB,IAClB,kBACO,cAAc,oBAAoB,IAE7C,2BAA6B,IACzB,kBACO,cAAc,2BAA2B,IAEpD,wBAA0B,IACtB,kBACO,cAAc,wBAAwB,IAEjD,sBAAuB,KACnB,kBACO,cAAc,yBAEzB,UAAW,CACP,cAAe,EACf,SAAU,EACV,UAAW,EACX,SAAU","file":"/npm/react-native-fused-location@1.1.2/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/react-native-fused-location@1.1.2/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n/**\n * Created by M on 11/06/17. With ❤\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst react_native_1 = require(\"react-native\");\nconst FusedLocation = react_native_1.NativeModules.FusedLocation;\nconst checkforAndroid = () => {\n    if (react_native_1.Platform.OS !== 'android') {\n        throw new Error('react-native-fused-location cannot be used any other platform other than android.');\n    }\n};\nexports.default = {\n    getFusedLocation: (forceNewLocation = false) => {\n        checkforAndroid();\n        return FusedLocation.getFusedLocation(forceNewLocation);\n    },\n    startLocationUpdates: () => {\n        checkforAndroid();\n        return FusedLocation.startLocationUpdates();\n    },\n    stopLocationUpdates: () => {\n        checkforAndroid();\n        return FusedLocation.stopLocationUpdates();\n    },\n    on: (eventName, cb) => {\n        checkforAndroid();\n        if (eventName != 'fusedLocation' && eventName != 'fusedLocationError') {\n            throw new Error(\"Event name has to be one of 'fusedLocation' or 'fusedLocationError'\");\n        }\n        return { listener: react_native_1.DeviceEventEmitter.addListener(eventName, cb).listener, eventName };\n    },\n    off: (subscription) => {\n        checkforAndroid();\n        react_native_1.DeviceEventEmitter.removeListener(subscription.eventName, subscription.listener);\n    },\n    setLocationPriority: (priority) => {\n        checkforAndroid();\n        if (priority < 0 || priority > 3) {\n            throw new Error('Invalid priority set for fused api');\n        }\n        return FusedLocation.setLocationPriority(priority);\n    },\n    setLocationInterval: (intervalInMillis) => {\n        checkforAndroid();\n        return FusedLocation.setLocationInterval(intervalInMillis);\n    },\n    setFastestLocationInterval: (intervalInMillis) => {\n        checkforAndroid();\n        return FusedLocation.setFastestLocationInterval(intervalInMillis);\n    },\n    setSmallestDisplacement: (displacementInMeters) => {\n        checkforAndroid();\n        return FusedLocation.setSmallestDisplacement(displacementInMeters);\n    },\n    areProvidersAvailable: () => {\n        checkforAndroid();\n        return FusedLocation.areProvidersAvailable();\n    },\n    Constants: {\n        HIGH_ACCURACY: 0,\n        BALANCED: 1,\n        LOW_POWER: 2,\n        NO_POWER: 3,\n    },\n};\n"]}