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AG,yBAAwD,EAC9J,KAAK,uBAAyB,CAClC,CAiEA,OA5DA,EAAsB,UAAU,kBAAoB,WAChD,OAAO,OAAO,kBAAkB,CAC5B,uBAAwB,KAAK,wBAErC,EAMA,EAAsB,UAAU,WAAa,WACzC,OAAO,OAAO,WAAW,CACrB,uBAAwB,KAAK,wBAErC,EAMA,EAAsB,UAAU,mBAAqB,WACjD,OAAO,OAAO,oBAClB,EAMA,EAAsB,UAAU,WAAa,WACzC,OAAO,OAAO,YAClB,EAUA,EAAsB,UAAU,gBAAkB,SAAU,GACxD,IAAI,EAEJ,OADA,EAAuB,iBAAmE,OAA/C,EAAK,EAAuB,kBAAkD,EAAK,SACvH,OAAO,gBAAgB,SAAS,CAAE,uBAAwB,KAAK,wBAA0B,GACpG,EAUA,EAAsB,UAAU,aAAe,SAAU,GACrD,IAAI,EAAI,EAGR,OAFA,EAAoB,iBAAgE,OAA5C,EAAK,EAAoB,kBAAkD,EAAK,SACxH,EAAoB,sBAA0E,OAAjD,EAAK,EAAoB,uBAAuD,EAAK,eAC3H,OAAO,aAAa,SAAS,CAAE,uBAAwB,KAAK,wBAA0B,GACjG,EACO,CACX,CA5E0C,GA6E1C,QAAQ,QAAU","file":"/npm/@taingo97/react-native-biometrics@3.0.1/build/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@taingo97/react-native-biometrics@3.0.1/build/cjs/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\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_native_1 = require(\"react-native\");\nvar bridge = react_native_1.NativeModules.ReactNativeBiometrics;\n/**\n * Enum for touch id sensor type\n */\nexports.TouchID = 'TouchID';\n/**\n * Enum for face id sensor type\n */\nexports.FaceID = 'FaceID';\n/**\n * Enum for generic biometrics (this is the only value available on android)\n */\nexports.Biometrics = 'Biometrics';\nexports.BiometryTypes = {\n    TouchID: exports.TouchID,\n    FaceID: exports.FaceID,\n    Biometrics: exports.Biometrics\n};\nvar ReactNativeBiometricsLegacy;\n(function (ReactNativeBiometricsLegacy) {\n    /**\n     * Returns promise that resolves to an object with object.biometryType = Biometrics | TouchID | FaceID\n     * @returns {Promise<Object>} Promise that resolves to an object with details about biometrics available\n     */\n    function isSensorAvailable() {\n        return new ReactNativeBiometrics().isSensorAvailable();\n    }\n    ReactNativeBiometricsLegacy.isSensorAvailable = isSensorAvailable;\n    /**\n     * Creates a public private key pair,returns promise that resolves to\n     * an object with object.publicKey, which is the public key of the newly generated key pair\n     * @returns {Promise<Object>}  Promise that resolves to object with details about the newly generated public key\n     */\n    function createKeys() {\n        return new ReactNativeBiometrics().createKeys();\n    }\n    ReactNativeBiometricsLegacy.createKeys = createKeys;\n    /**\n     * Returns promise that resolves to an object with object.keysExists = true | false\n     * indicating if the keys were found to exist or not\n     * @returns {Promise<Object>} Promise that resolves to object with details aobut the existence of keys\n     */\n    function biometricKeysExist() {\n        return new ReactNativeBiometrics().biometricKeysExist();\n    }\n    ReactNativeBiometricsLegacy.biometricKeysExist = biometricKeysExist;\n    /**\n     * Returns promise that resolves to an object with true | false\n     * indicating if the keys were properly deleted\n     * @returns {Promise<Object>} Promise that resolves to an object with details about the deletion\n     */\n    function deleteKeys() {\n        return new ReactNativeBiometrics().deleteKeys();\n    }\n    ReactNativeBiometricsLegacy.deleteKeys = deleteKeys;\n    /**\n     * Prompts user with biometrics dialog using the passed in prompt message and\n     * returns promise that resolves to an object with object.signature,\n     * which is cryptographic signature of the payload\n     * @param {Object} createSignatureOptions\n     * @param {string} createSignatureOptions.promptMessage\n     * @param {string} createSignatureOptions.payload\n     * @returns {Promise<Object>}  Promise that resolves to an object cryptographic signature details\n     */\n    function createSignature(createSignatureOptions) {\n        return new ReactNativeBiometrics().createSignature(createSignatureOptions);\n    }\n    ReactNativeBiometricsLegacy.createSignature = createSignature;\n    /**\n     * Prompts user with biometrics dialog using the passed in prompt message and\n     * returns promise that resolves to an object with object.success = true if the user passes,\n     * object.success = false if the user cancels, and rejects if anything fails\n     * @param {Object} simplePromptOptions\n     * @param {string} simplePromptOptions.promptMessage\n     * @param {string} simplePromptOptions.fallbackPromptMessage\n     * @returns {Promise<Object>}  Promise that resolves an object with details about the biometrics result\n     */\n    function simplePrompt(simplePromptOptions) {\n        return new ReactNativeBiometrics().simplePrompt(simplePromptOptions);\n    }\n    ReactNativeBiometricsLegacy.simplePrompt = simplePrompt;\n})(ReactNativeBiometricsLegacy = exports.ReactNativeBiometricsLegacy || (exports.ReactNativeBiometricsLegacy = {}));\nvar ReactNativeBiometrics = /** @class */ (function () {\n    /**\n     * @param {Object} rnBiometricsOptions\n     * @param {boolean} rnBiometricsOptions.allowDeviceCredentials\n     */\n    function ReactNativeBiometrics(rnBiometricsOptions) {\n        var _a, _b;\n        this.allowDeviceCredentials = false;\n        var allowDeviceCredentials = (_b = (_a = rnBiometricsOptions) === null || _a === void 0 ? void 0 : _a.allowDeviceCredentials, (_b !== null && _b !== void 0 ? _b : false));\n        this.allowDeviceCredentials = allowDeviceCredentials;\n    }\n    /**\n     * Returns promise that resolves to an object with object.biometryType = Biometrics | TouchID | FaceID\n     * @returns {Promise<Object>} Promise that resolves to an object with details about biometrics available\n     */\n    ReactNativeBiometrics.prototype.isSensorAvailable = function () {\n        return bridge.isSensorAvailable({\n            allowDeviceCredentials: this.allowDeviceCredentials\n        });\n    };\n    /**\n     * Creates a public private key pair,returns promise that resolves to\n     * an object with object.publicKey, which is the public key of the newly generated key pair\n     * @returns {Promise<Object>}  Promise that resolves to object with details about the newly generated public key\n     */\n    ReactNativeBiometrics.prototype.createKeys = function () {\n        return bridge.createKeys({\n            allowDeviceCredentials: this.allowDeviceCredentials\n        });\n    };\n    /**\n     * Returns promise that resolves to an object with object.keysExists = true | false\n     * indicating if the keys were found to exist or not\n     * @returns {Promise<Object>} Promise that resolves to object with details aobut the existence of keys\n     */\n    ReactNativeBiometrics.prototype.biometricKeysExist = function () {\n        return bridge.biometricKeysExist();\n    };\n    /**\n     * Returns promise that resolves to an object with true | false\n     * indicating if the keys were properly deleted\n     * @returns {Promise<Object>} Promise that resolves to an object with details about the deletion\n     */\n    ReactNativeBiometrics.prototype.deleteKeys = function () {\n        return bridge.deleteKeys();\n    };\n    /**\n     * Prompts user with biometrics dialog using the passed in prompt message and\n     * returns promise that resolves to an object with object.signature,\n     * which is cryptographic signature of the payload\n     * @param {Object} createSignatureOptions\n     * @param {string} createSignatureOptions.promptMessage\n     * @param {string} createSignatureOptions.payload\n     * @returns {Promise<Object>}  Promise that resolves to an object cryptographic signature details\n     */\n    ReactNativeBiometrics.prototype.createSignature = function (createSignatureOptions) {\n        var _a;\n        createSignatureOptions.cancelButtonText = (_a = createSignatureOptions.cancelButtonText, (_a !== null && _a !== void 0 ? _a : 'Cancel'));\n        return bridge.createSignature(__assign({ allowDeviceCredentials: this.allowDeviceCredentials }, createSignatureOptions));\n    };\n    /**\n     * Prompts user with biometrics dialog using the passed in prompt message and\n     * returns promise that resolves to an object with object.success = true if the user passes,\n     * object.success = false if the user cancels, and rejects if anything fails\n     * @param {Object} simplePromptOptions\n     * @param {string} simplePromptOptions.promptMessage\n     * @param {string} simplePromptOptions.fallbackPromptMessage\n     * @returns {Promise<Object>}  Promise that resolves an object with details about the biometrics result\n     */\n    ReactNativeBiometrics.prototype.simplePrompt = function (simplePromptOptions) {\n        var _a, _b;\n        simplePromptOptions.cancelButtonText = (_a = simplePromptOptions.cancelButtonText, (_a !== null && _a !== void 0 ? _a : 'Cancel'));\n        simplePromptOptions.fallbackPromptMessage = (_b = simplePromptOptions.fallbackPromptMessage, (_b !== null && _b !== void 0 ? _b : 'Use Passcode'));\n        return bridge.simplePrompt(__assign({ allowDeviceCredentials: this.allowDeviceCredentials }, simplePromptOptions));\n    };\n    return ReactNativeBiometrics;\n}());\nexports.default = ReactNativeBiometrics;\n"]}