decord/source/components_native/App.tsx
2026-08-14 17:33:39 +00:00

203 lines
7.8 KiB
TypeScript

// Module ID: 13737
// Function ID: 13738
// Name: App
// Dependencies: [19, 17, 13738, 1218, 9216, 13033, 13042, 13059, 7410, 4414, 13739, 13740, 13741, 7173, 4013, 4334, 13742, 8542, 13743, 13744, 21, 13745, 2007, 13778, 4762, 13784, 13785, 13786, 13787, 7283, 13796, 7286, 13797, 13800, 7443, 13861, 10591, 10968, 8915, 13869, 13871, 13875, 13877, 13878, 13879, 13880, 4522, 13881, 500, 4945, 10951, 589, 5888, 13883, 9, 13022, 502, 13885, 10993, 13887, 15158, 2]
// Exports: default
// Module 13737 (App)
import closure_3 from "ApexExperiment";
import { NativeModules } from "handleSetLocationMetadata";
import checkForNewerBuild from "checkForNewerBuild";
import fetchFingerprint from "fetchFingerprint";
import nativeEventEmitter from "nativeEventEmitter";
import updateState from "updateState";
import showReviewRequestModal from "showReviewRequestModal";
import set from "set";
import createEmptyPromotionsByType from "createEmptyPromotionsByType";
import bitrate from "bitrate";
import handleTokenUpdated from "handleTokenUpdated";
import handleUpdateVADPermission from "handleUpdateVADPermission";
import getModalState from "getModalState";
import appDatabaseManager from "appDatabaseManager";
import reset from "reset";
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme";
import initialize from "initialize";
import handleSetLocationMetadata from "handleSetLocationMetadata";
import "map";
import ApexExperiment from "ApexExperiment";
import { jsx } from "reactNativeCorePlugins";
import set from "checkForNewerBuild";
const require = arg1;
if (global.__DEV__) {
require("reactNativeCorePlugins");
}
let result = set.fileFinishedImporting("components_native/App.tsx");
export default function App() {
const renderApp = importDefault(9).renderApp;
renderApp.record();
const effect = React.useEffect(() => {
callback(13778).init();
let obj = callback(13778);
const tmp = callback;
callback(4762).initialize();
let obj2 = callback(4762);
callback(13784).initialize();
let obj3 = callback(13784);
callback(13785).initialize();
let obj4 = callback(13785);
callback(13786).initialize();
let obj5 = callback(13786);
callback(13787).initialize();
let obj6 = callback(13787);
callback(7283).initialize();
let obj7 = callback(7283);
callback(13796).initialize();
let obj8 = callback(13796);
callback(7286).init();
let obj9 = callback(7286);
callback(13797).init();
let obj10 = callback(13797);
callback(13800).init();
let obj11 = callback(13800);
callback(7443).initialize();
let obj12 = callback(7443);
callback(13861).initialize();
let obj13 = callback(13861);
callback(10591).initialize();
let obj14 = callback(10591);
callback(10968).initialize();
let obj15 = callback(10968);
callback(8915).initialize();
const obj16 = callback(8915);
callback(13869).initialize();
const obj17 = callback(13869);
callback(13871).initialize();
const obj18 = callback(13871);
callback(13875).initialize();
checkForNewerBuild.ensureInitialized();
const obj19 = callback(13875);
callback(13877).initialize();
const obj20 = callback(13877);
callback(13878).initialize();
const obj21 = callback(13878);
callback(13879).initialize();
const obj22 = callback(13879);
callback(13880).initialize();
const obj23 = callback(13880);
callback(4522).initialize();
const obj24 = callback(4522);
callback(13881).initialize();
const obj25 = callback(13881);
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
tmp(4945).initialize();
const tmpResult = tmp(4945);
}
obj26 = shouldUseAltGateway(500);
const result = tmp29(10951).initializeRouteManagerIfNeeded();
return () => {
callback2(13786).terminate();
const obj = callback2(13786);
callback2(4762).terminate();
const obj2 = callback2(4762);
callback2(7443).terminate();
const obj3 = callback2(7443);
callback2(13861).terminate();
const obj4 = callback2(13861);
callback(10951).cleanupRouteManager();
const obj5 = callback(10951);
callback2(13881).terminate();
const obj6 = callback2(13881);
callback2(13869).terminate();
const obj7 = callback2(13869);
callback2(8915).terminate();
const obj8 = callback2(8915);
callback2(13800).terminate();
const obj9 = callback2(13800);
callback2(13784).terminate();
const obj10 = callback2(13784);
callback2(13875).terminate();
const obj11 = callback2(13875);
callback2(13877).terminate();
const obj12 = callback2(13877);
callback2(13878).terminate();
const obj13 = callback2(13878);
callback2(13880).terminate();
const obj14 = callback2(13880);
callback2(4522).terminate();
const obj15 = callback2(4522);
callback2(13796).terminate();
};
}, []);
let shouldUseAltGateway;
let obj = shouldUseAltGateway(589);
const items = [fetchFingerprint];
const stateFromStores = obj.useStateFromStores(items, () => fetchFingerprint.isAuthenticated());
shouldUseAltGateway = stateFromStores;
const items1 = [stateFromStores];
const effect1 = React.useEffect(() => {
if (shouldUseAltGateway) {
const token = outer1_6.getToken();
if (null == token) {
const _Error = Error;
const error = new Error("Authenticated without a token");
throw error;
} else {
outer1_1(outer1_2[52]).startSession(token);
const obj = outer1_1(outer1_2[52]);
outer1_1(outer1_2[53]).initialize();
const obj2 = outer1_1(outer1_2[53]);
if (obj3.isAndroid()) {
const NativePermissionManager = outer1_4.NativePermissionManager;
const notificationAuthorization = NativePermissionManager.requestNotificationAuthorization();
}
return () => {
callback(table[53]).terminate();
};
}
}
}, items1);
const effect2 = React.useEffect(() => {
callback(9).wasAuthenticated = fetchFingerprint.isAuthenticated();
}, []);
shouldUseAltGateway = undefined;
const isChannelMetadataObfuscationEnabled = shouldUseAltGateway(13022).useIsChannelMetadataObfuscationEnabled("App");
shouldUseAltGateway = isChannelMetadataObfuscationEnabled;
const items2 = [isChannelMetadataObfuscationEnabled];
const effect3 = React.useEffect(() => {
if (obj.isAndroid()) {
const result = outer1_1(outer1_2[56]).setUseChannelObfuscation(shouldUseAltGateway);
const obj2 = outer1_1(outer1_2[56]);
} else {
const DCDFastConnectManager = outer1_4.DCDFastConnectManager;
const result1 = DCDFastConnectManager.setUseChannelObfuscation(shouldUseAltGateway);
}
}, items2);
shouldUseAltGateway = undefined;
let obj2 = shouldUseAltGateway(13022);
shouldUseAltGateway = shouldUseAltGateway(13885).useShouldUseAltGateway("App");
const items3 = [shouldUseAltGateway];
const effect4 = React.useEffect(() => {
if (obj.isAndroid()) {
outer1_1(outer1_2[56]).setUseAltGateway(shouldUseAltGateway);
const obj2 = outer1_1(outer1_2[56]);
} else {
const DCDFastConnectManager = outer1_4.DCDFastConnectManager;
DCDFastConnectManager.setUseAltGateway(shouldUseAltGateway);
}
}, items3);
const effect5 = React.useEffect(() => {
const renderAppEffect = callback(9).renderAppEffect;
return renderAppEffect.record();
}, []);
obj = { profile: null, children: null };
let obj3 = shouldUseAltGateway(13885);
obj[0] = shouldUseAltGateway(10993).Profiles.App;
obj = { appEntryKey: "main", children: null };
const tmp11 = importDefault(10993);
obj[1] = jsx(importDefault(15158), {});
obj[1] = jsx(importDefault(13887), { appEntryKey: "main", children: null });
return <tmp11 appEntryKey="main">{null}</tmp11>;
};