{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-filesystem@0.1.0/modules/FileSystem.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,gBAAiB,eAGxB,MAAM,aAAe,YAAY,cAAc,4BAEhC,MAAM,WAEnB,eAAiB,CACf,SAAU,YACV,UAAW,YACX,UAAW,YACX,UAAW,aAGb,wBAAa,CAAY,EAAM,EAAU,EAAU,WAAW,QAAQ,UACpE,aAAa,aAAa,YAAY,EAAM,EAAU,EACxD,CAEA,qBAAa,CAAS,EAAM,EAAU,WAAW,QAAQ,UACvD,aAAa,aAAa,SAAS,EAAM,EAC3C,CAEA,mBAAa,CAAO,EAAM,EAAU,WAAW,QAAQ,UACrD,aAAa,aAAa,OAAO,EAAM,EACzC,CAEA,uBAAa,CAAW,EAAM,EAAU,WAAW,QAAQ,UACzD,aAAa,aAAa,WAAW,EAAM,EAC7C,CAEA,4BAAa,CAAgB,EAAM,EAAU,WAAW,QAAQ,UAC9D,aAAa,aAAa,gBAAgB,EAAM,EAClD,CAEA,mBAAO,CAAa,EAAM,EAAU,WAAW,QAAQ,UACrD,OAAO,aAAa,GAAW,IAAM,CACvC","file":"/npm/react-native-filesystem@0.1.0/modules/FileSystem.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-filesystem@0.1.0/modules/FileSystem.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 ReactNative from 'react-native';\n\n// noinspection JSUnresolvedVariable\nconst RNFileSystem = ReactNative.NativeModules.RNFileSystem;\n\nexport default class FileSystem {\n\n  static storage = {\n    backedUp: 'BACKED_UP',\n    important: 'IMPORTANT',\n    auxiliary: 'AUXILIARY',\n    temporary: 'TEMPORARY',\n  };\n\n  static async writeToFile(path, contents, storage = FileSystem.storage.backedUp) {\n    return await RNFileSystem.writeToFile(path, contents, storage);\n  }\n\n  static async readFile(path, storage = FileSystem.storage.backedUp) {\n    return await RNFileSystem.readFile(path, storage);\n  }\n\n  static async delete(path, storage = FileSystem.storage.backedUp) {\n    return await RNFileSystem.delete(path, storage);\n  }\n\n  static async fileExists(path, storage = FileSystem.storage.backedUp) {\n    return await RNFileSystem.fileExists(path, storage);\n  }\n\n  static async directoryExists(path, storage = FileSystem.storage.backedUp) {\n    return await RNFileSystem.directoryExists(path, storage);\n  }\n\n  static absolutePath(path, storage = FileSystem.storage.backedUp) {\n    return RNFileSystem[storage] + '/' + path;\n  }\n}\n"]}