{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-device-kit@0.1.1/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,MAAM,SAAW,QAAQ,UACnB,eAAiB,QAAQ,gBACzB,gBAAkB,eAAe,cAAc,YAC/C,aAAe,IAAI,eAAe,mBAAmB,kBACrD,OAAE,QAAW,gBACnB,MAAM,kBAAkB,SAAS,aAC7B,WAAA,GACI,QACA,IAAK,MAAM,KAAK,OACZ,aAAa,YAAY,GAAG,IAClB,OAAN,EAAa,KAAK,KAAK,EAAG,GAAK,KAAK,KAAK,EAAE,GAGvD,CACA,QAAA,CAAS,GACL,OAAO,gBAAgB,WAAW,EACtC,CACA,SAAA,GACI,OAAO,gBAAgB,WAC3B,CACA,QAAA,GACI,OAAO,gBAAgB,UAC3B,CACA,SAAA,CAAU,GACN,OAAO,gBAAgB,UAAU,EAAO,GAC5C,CACA,YAAA,CAAa,GACT,OAAO,gBAAgB,aAAa,EAAO,QAC/C,CACA,YAAA,GACI,OAAO,gBAAgB,aAC3B,CACA,cAAA,GACI,OAAO,gBAAgB,gBAC3B,CACA,eAAA,GACI,OAAO,gBAAgB,iBAC3B,CACA,cAAA,GACI,OAAO,gBAAgB,gBAC3B,EAEJ,QAAQ,QAAU","file":"/npm/react-native-device-kit@0.1.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-device-kit@0.1.1/dist/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\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst events_1 = require(\"events\");\nconst react_native_1 = require(\"react-native\");\nconst deviceKitModule = react_native_1.NativeModules.RNDeviceKit;\nconst eventEmitter = new react_native_1.NativeEventEmitter(deviceKitModule);\nconst { EVENTS } = deviceKitModule;\nclass DeviceKit extends events_1.EventEmitter {\n    constructor() {\n        super();\n        for (const e of EVENTS) {\n            eventEmitter.addListener(e, d => {\n                d !== null ? this.emit(e, d) : this.emit(e);\n            });\n        }\n    }\n    register(key) {\n        return deviceKitModule.initialize(key);\n    }\n    startScan() {\n        return deviceKitModule.startScan();\n    }\n    stopScan() {\n        return deviceKitModule.stopScan();\n    }\n    addDevice(device) {\n        return deviceKitModule.addDevice(device.id);\n    }\n    removeDevice(device) {\n        return deviceKitModule.removeDevice(device.address);\n    }\n    fetchDevices() {\n        return deviceKitModule.listDevices();\n    }\n    cancelPairings() {\n        return deviceKitModule.cancelPairings();\n    }\n    startCollection() {\n        return deviceKitModule.startCollection();\n    }\n    stopCollection() {\n        return deviceKitModule.stopCollection();\n    }\n}\nexports.default = DeviceKit;\n"]}