{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-mimikiy-mob-sms@1.2.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCHQ,kBAAoB,eAE5B,MAAM,OAAC,QAAU,cAEX,QAAW,IACiB,IAAzB,EAAI,QAAQ,QAGrB,OAAO,KAAK,GAEZ,MAAM,oBAAsB,CAAC,EAAa,EAAM,KAC9C,OAAO,4BAA4B,EAAG,EAAa,EAAM,MAAO,IAC9D,EAAG,QAAQ,EAAM,MAAM,GACvB,EAGE,uBAAyB,CAAC,EAAM,EAAa,EAAM,KACvD,OAAO,uBAAuB,EAAM,EAAa,GAAO,IACtD,EAAG,QAAQ,EAAM,MAAM,GACvB,gBAGW,CACb,wCACA","file":"/npm/react-native-mimikiy-mob-sms@1.2.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-mimikiy-mob-sms@1.2.1/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","/**\n * Created by youhan on 2017/1/11.\n */\nimport {NativeModules} from 'react-native';\n\nconst {MobSMS} = NativeModules;\n\nconst isError = (str) => {\n  return str.indexOf('null') === -1;\n};\n\nMobSMS.init(1);\n\nconst getVerificationCode = (phoneNumber, zone, cb) => {\n  MobSMS.getVerificationCodeByMethod(0, phoneNumber, zone, null, (error) => {\n    cb(isError(error.code));\n  });\n};\n\nconst commitVerificationCode = (code, phoneNumber, zone, cb) => {\n  MobSMS.commitVerificationCode(code, phoneNumber, zone, (error) => {\n    cb(isError(error.code));\n  });\n};\n\nexport default {\n  getVerificationCode,\n  commitVerificationCode\n};\n"]}