{"version":3,"sources":["jsdelivr-header.js","/npm/fidel-react-native@3.0.7/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,mBAAoB,kBAAqB,sBACzC,YAAe,iBAExB,MAAM,kBAAE,mBAAsB,6BAEf,MAAM,MACnB,eAAiB,IAAI,mBAAmB,mBACxC,eAAiB,kBAAkB,QACnC,kBAAoB,kBAAkB,WACtC,mBAAqB,kBAAkB,YACvC,iBAAmB,kBAAkB,UACrC,2BAA6B,kBAAkB,oBAE/C,YAAO,CAAM,EAAQ,GACW,MAA1B,KAAK,mBACP,KAAK,kBAAkB,SAGX,MAAZ,GACY,MAAZ,GACoB,mBAAb,IAEP,KAAK,kBAAoB,MAAM,QAAQ,YACrC,mBACC,GAAW,EAAS,MAGzB,kBAAkB,MAAM,EAC1B,CAEA,YAAO,GACL,MAAM,4BACN,kBAAkB,OACpB,CAEA,gCAAO,GACL,kBAAkB,0BAA0B,KAAM,QACpD,SAGK,MAAM,kBAAoB,kBAAkB,WAAW,wBACvD,MAAM,MAAQ,kBAAkB,WAAW","file":"/npm/fidel-react-native@3.0.7/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/fidel-react-native@3.0.7/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","import { NativeEventEmitter, NativeModules } from \"react-native\";\nimport { version } from \"./package.json\";\n\nconst { NativeFidelBridge } = NativeModules;\n\nexport default class Fidel {\n  static emitter = new NativeEventEmitter(NativeFidelBridge);\n  static Country = NativeFidelBridge.Country;\n  static CardScheme = NativeFidelBridge.CardScheme;\n  static ProgramType = NativeFidelBridge.ProgramType;\n  static ErrorType = NativeFidelBridge.ErrorType;\n  static EnrollmentErrorType = NativeFidelBridge.EnrollmentErrorType;\n\n  static setup(params, callback) {\n    if (this.eventSubscription != null) {\n      this.eventSubscription.remove();\n    }\n    if (\n      callback != null &&\n      callback != undefined &&\n      typeof callback === \"function\"\n    ) {\n      this.eventSubscription = Fidel.emitter.addListener(\n        \"ResultAvailable\",\n        (result) => callback(result)\n      );\n    }\n    NativeFidelBridge.setup(params);\n  }\n\n  static start() {\n    Fidel.identifyMetricsDataSource()\n    NativeFidelBridge.start();\n  }\n\n  static identifyMetricsDataSource() {\n    NativeFidelBridge.identifyMetricsDataSource(\"rn\", version);\n  }\n}\n\nexport const ENROLLMENT_RESULT = NativeFidelBridge.ResultType.EnrollmentResult;\nexport const ERROR = NativeFidelBridge.ResultType.Error;\n"]}