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QAAQ,iBACzD,YAAc,IAAM,0BAA0B,QAAQ,cACtD,IAAM,MAAO,EAAK,EAAM,KACtB,IACE,OAAQ,GACN,KAAK,OAAO,SAAS,OAEjB,aAAa,0BAA0B,QAAQ,UAAU,EAAK,GAAG,GAAgB,MAErF,KAAK,OAAO,SAAS,IAEjB,aAAa,0BAA0B,QAAQ,OAAO,EAAK,OAAO,GAAgB,IAEtF,KAAK,OAAO,SAAS,OAEjB,aAAa,0BAA0B,QAAQ,UAAU,EAAK,OAAO,GAAgB,IAEzF,KAAK,OAAO,SAAS,KAEjB,aAAa,0BAA0B,QAAQ,QAAQ,EAAK,QAAQ,IAAgB,IAG5F,CAAE,MAAO,GACP,MAAM,CACR,GAGJ,MAAM,mBAAqB,QAAQ,mBAAqB,IAAI","file":"/npm/@beletsky/react-native-yandex-remote-config@1.0.1/lib/commonjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@beletsky/react-native-yandex-remote-config@1.0.1/lib/commonjs/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\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nvar _exportNames = {\n  YandexRemoteConfig: true\n};\nexports.YandexRemoteConfig = void 0;\nvar _types = require(\"./types.js\");\nObject.keys(_types).forEach(function (key) {\n  if (key === \"default\" || key === \"__esModule\") return;\n  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n  if (key in exports && exports[key] === _types[key]) return;\n  Object.defineProperty(exports, key, {\n    enumerable: true,\n    get: function () {\n      return _types[key];\n    }\n  });\n});\nvar _NativeYandexRemoteConfig = _interopRequireDefault(require(\"./specs/NativeYandexRemoteConfig.js\"));\nvar _index = require(\"./utils/index.js\");\nObject.keys(_index).forEach(function (key) {\n  if (key === \"default\" || key === \"__esModule\") return;\n  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n  if (key in exports && exports[key] === _index[key]) return;\n  Object.defineProperty(exports, key, {\n    enumerable: true,\n    get: function () {\n      return _index[key];\n    }\n  });\n});\nvar _index2 = require(\"./hooks/index.js\");\nObject.keys(_index2).forEach(function (key) {\n  if (key === \"default\" || key === \"__esModule\") return;\n  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n  if (key in exports && exports[key] === _index2[key]) return;\n  Object.defineProperty(exports, key, {\n    enumerable: true,\n    get: function () {\n      return _index2[key];\n    }\n  });\n});\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nclass YandexRemoteConfigClass {\n  getDeviceId = () => _NativeYandexRemoteConfig.default.getDeviceId();\n  init = (apiKey, config) => _NativeYandexRemoteConfig.default.initialize(apiKey, config || {});\n  activateConfig = () => _NativeYandexRemoteConfig.default.activateConfig();\n  fetchConfig = () => _NativeYandexRemoteConfig.default.fetchConfig();\n  get = async (key, type, defaultValue) => {\n    try {\n      switch (type) {\n        case _types.FlagType.string:\n          {\n            return await _NativeYandexRemoteConfig.default.getString(key, `${defaultValue ?? ''}`);\n          }\n        case _types.FlagType.int:\n          {\n            return await _NativeYandexRemoteConfig.default.getInt(key, Number(defaultValue ?? 0));\n          }\n        case _types.FlagType.double:\n          {\n            return await _NativeYandexRemoteConfig.default.getDouble(key, Number(defaultValue ?? 0));\n          }\n        case _types.FlagType.bool:\n          {\n            return await _NativeYandexRemoteConfig.default.getBool(key, Boolean(defaultValue ?? false));\n          }\n      }\n    } catch (e) {\n      throw e;\n    }\n  };\n}\nconst YandexRemoteConfig = exports.YandexRemoteConfig = new YandexRemoteConfigClass();\n"]}