{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-honeywell-scanner-v2@1.1.6/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,MAAM,eAAiB,QAAQ,iBACzB,iBAAE,kBAAqB,eAAe,cAMtC,qBAAuB,IAAI,eAAe,mBAAmB,kBACnE,IAAI,+BAAiC,KACjC,4BAA8B,KAClC,iBAAiB,qBAAwB,IACrC,sCAAgG,+BAA+B,SAC/H,+BAAiC,KACjC,+BAAiC,qBAAqB,YAAY,iBAAiB,qBAAsB,EAAQ,EAErH,iBAAiB,kBAAqB,IAClC,mCAA0F,4BAA4B,SACtH,4BAA8B,KAC9B,4BAA8B,qBAAqB,YAAY,iBAAiB,kBAAmB,EAAQ,EAO/G,iBAAiB,sBAAwB,KACrC,sCAAgG,+BAA+B,QAAQ,EAE3I,iBAAiB,mBAAqB,KAClC,mCAA0F,4BAA4B,QAAQ,EAElI,QAAQ,QAAU","file":"/npm/react-native-honeywell-scanner-v2@1.1.6/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-honeywell-scanner-v2@1.1.6/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\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nconst react_native_1 = require(\"react-native\");\r\nconst { HoneywellScanner } = react_native_1.NativeModules;\r\n/**\r\n * Listen for available events\r\n * @param  {String} eventName Name of event one of barcodeReadSuccess, barcodeReadFail\r\n * @param  {Function} handler Event handler\r\n */\r\nconst barcodeReaderEmitter = new react_native_1.NativeEventEmitter(HoneywellScanner);\r\nvar subscriptionBarcodeReadSuccess = null;\r\nvar subscriptionBarcodeReadFail = null;\r\nHoneywellScanner.onBarcodeReadSuccess = (handler) => {\r\n    subscriptionBarcodeReadSuccess === null || subscriptionBarcodeReadSuccess === void 0 ? void 0 : subscriptionBarcodeReadSuccess.remove();\r\n    subscriptionBarcodeReadSuccess = null;\r\n    subscriptionBarcodeReadSuccess = barcodeReaderEmitter.addListener(HoneywellScanner.BARCODE_READ_SUCCESS, handler);\r\n};\r\nHoneywellScanner.onBarcodeReadFail = (handler) => {\r\n    subscriptionBarcodeReadFail === null || subscriptionBarcodeReadFail === void 0 ? void 0 : subscriptionBarcodeReadFail.remove();\r\n    subscriptionBarcodeReadFail = null;\r\n    subscriptionBarcodeReadFail = barcodeReaderEmitter.addListener(HoneywellScanner.BARCODE_READ_FAIL, handler);\r\n};\r\n/**\r\n * Stop listening for event\r\n * @param  {String} eventName Name of event one of barcodeReadSuccess, barcodeReadFail\r\n * @param  {Function} handler Event handler\r\n */\r\nHoneywellScanner.offBarcodeReadSuccess = () => {\r\n    subscriptionBarcodeReadSuccess === null || subscriptionBarcodeReadSuccess === void 0 ? void 0 : subscriptionBarcodeReadSuccess.remove();\r\n};\r\nHoneywellScanner.offBarcodeReadFail = () => {\r\n    subscriptionBarcodeReadFail === null || subscriptionBarcodeReadFail === void 0 ? void 0 : subscriptionBarcodeReadFail.remove();\r\n};\r\nexports.default = HoneywellScanner;\r\n"]}