// Module ID: 17857 // Function ID: 17858 // Name: SocialRpcNetworkConfigManager // Dependencies: [17, 2025, 502, 1242, 1272, 7132, 1115, 2] // Module 17857 (SocialRpcNetworkConfigManager) import _mod17 from "module_17" /* 17 */; import PlatformUtils from "PlatformUtils" /* 1115 */; import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */; import HTTPUtils from "HTTPUtils" /* 1272 */; import LocaleStore from "LocaleStore" /* 2025 */; import AuthenticationStore from "AuthenticationStore" /* 502 */; import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7132 */; import size from "module_2" /* 2 */; function updateSocialRpcNetworkConfig() { const obj = { "X-Super-Properties": AnalyticsUtilsDefault.getSuperPropertiesBase64(), "X-Fingerprint": AuthenticationStore.getFingerprint(), "X-Installation-ID": AuthenticationStore.getInstallationForTracking(), "X-Discord-Locale": LocaleStore.locale }; const NativeCacheModule = NativeModules.NativeCacheModule; if (NativeCacheModule != null) { const _JSON = JSON; const obj3 = { apiBaseUrl: HTTPUtils.getAPIBaseURL(), headers: obj }; const result = NativeCacheModule.setItem("socialRpcNetworkRequest", JSON.stringify(obj3)); } } const NativeModules = _mod17.NativeModules; const prototype = function SocialRpcNetworkConfigManager() { const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target); applyArgumentsResult.handleUpdate = PlatformUtils.isAndroid() ? updateSocialRpcNetworkConfig : (() => { }); applyArgumentsResult.actions = { POST_CONNECTION_OPEN: applyArgumentsResult.handleUpdate }; return applyArgumentsResult; }.prototype; class prototype extends tmp2 { } const prototype1 = new prototype(); let result = size.fileFinishedImporting("modules/rpc/native/SocialRpcNetworkConfigManager.tsx"); export default prototype1;