{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-flag-secure-android@1.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCDO,OAAS,cAAiB,eACxB,kBAAqB,8BAEf,MAAM,mBAAmB,UAEtC,iBAAkB,EAElB,eAAO,GACA,WAAW,WACd,cAAc,WAAW,WACzB,WAAW,UAAW,EAE1B,CAEA,iBAAO,GACD,WAAW,WACb,cAAc,WAAW,aACzB,WAAW,UAAW,EAE1B,CAEA,kBAAA,GACE,WAAW,UACb,CAEA,oBAAA,GACE,WAAW,YACb,CAEA,MAAA,GACE,OAAO,KAAK,MAAM,UAAY,IAChC","file":"/npm/react-native-flag-secure-android@1.0.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-flag-secure-android@1.0.3/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","/* @flow */\n\n// Adapted from\n// https://github.com/corbt/react-native-keep-awake\n\nimport React, { Component } from 'react'\nimport { NativeModules } from 'react-native'\n\nexport default class FlagSecure extends Component {\n\n  static isActive = false\n\n  static activate () {\n    if (!FlagSecure.isActive) {\n      NativeModules.FlagSecure.activate()\n      FlagSecure.isActive = true\n    }\n  }\n\n  static deactivate () {\n    if (FlagSecure.isActive) {\n      NativeModules.FlagSecure.deactivate()\n      FlagSecure.isActive = false\n    }\n  }\n\n  componentWillMount () {\n    FlagSecure.activate()\n  }\n\n  componentWillUnmount () {\n    FlagSecure.deactivate()\n  }\n\n  render () {\n    return this.props.children || null\n  }\n}\n"]}