decord/source/components_native/App.tsx

204 lines
7.8 KiB
TypeScript
Raw Normal View History

2026-08-10 06:55:34 +00:00
// Module ID: 13668
// Function ID: 13669
2026-07-20 16:05:17 +00:00
// Name: App
2026-08-10 06:55:34 +00:00
// Dependencies: [19, 17, 13669, 1218, 9152, 12951, 12960, 12977, 7344, 4373, 13670, 13671, 13672, 7105, 3953, 4295, 13673, 8471, 13674, 13675, 21, 13676, 1988, 13709, 4699, 13715, 13716, 13717, 13718, 7216, 13727, 7219, 13728, 13731, 7377, 13792, 10601, 10978, 8852, 13800, 13802, 13806, 13808, 13809, 13810, 13811, 4481, 13812, 500, 4882, 10961, 589, 5827, 13814, 9, 12940, 502, 13816, 11003, 13818, 15078, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-10 06:55:34 +00:00
// Module 13668 (App)
2026-07-29 08:29:29 +00:00
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";
2026-07-23 10:11:24 +00:00
import set from "set";
2026-07-29 08:29:29 +00:00
import createEmptyPromotionsByType from "createEmptyPromotionsByType";
import bitrate from "bitrate";
import handleTokenUpdated from "handleTokenUpdated";
import handleUpdateVADPermission from "handleUpdateVADPermission";
import getModalState from "getModalState";
2026-07-23 10:11:24 +00:00
import appDatabaseManager from "appDatabaseManager";
2026-07-29 08:29:29 +00:00
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";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
if (global.__DEV__) {
2026-07-29 08:29:29 +00:00
require("reactNativeCorePlugins");
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let result = set.fileFinishedImporting("components_native/App.tsx");
2026-07-20 16:05:17 +00:00
export default function App() {
2026-07-29 08:29:29 +00:00
const renderApp = importDefault(9).renderApp;
2026-07-20 16:05:17 +00:00
renderApp.record();
2026-07-29 08:29:29 +00:00
const effect = React.useEffect(() => {
2026-08-10 06:55:34 +00:00
callback(13709).init();
let obj = callback(13709);
2026-07-29 08:29:29 +00:00
const tmp = callback;
2026-08-08 06:10:11 +00:00
callback(4699).initialize();
let obj2 = callback(4699);
callback(13715).initialize();
2026-08-10 06:55:34 +00:00
let obj3 = callback(13715);
2026-08-08 06:10:11 +00:00
callback(13716).initialize();
2026-08-10 06:55:34 +00:00
let obj4 = callback(13716);
callback(13717).initialize();
let obj5 = callback(13717);
callback(13718).initialize();
let obj6 = callback(13718);
2026-08-08 06:10:11 +00:00
callback(7216).initialize();
let obj7 = callback(7216);
2026-08-10 06:55:34 +00:00
callback(13727).initialize();
let obj8 = callback(13727);
2026-08-08 06:10:11 +00:00
callback(7219).init();
let obj9 = callback(7219);
2026-08-10 06:55:34 +00:00
callback(13728).init();
let obj10 = callback(13728);
callback(13731).init();
let obj11 = callback(13731);
2026-08-08 06:10:11 +00:00
callback(7377).initialize();
let obj12 = callback(7377);
2026-08-10 06:55:34 +00:00
callback(13792).initialize();
let obj13 = callback(13792);
callback(10601).initialize();
let obj14 = callback(10601);
callback(10978).initialize();
let obj15 = callback(10978);
2026-08-08 06:10:11 +00:00
callback(8852).initialize();
const obj16 = callback(8852);
callback(13800).initialize();
2026-08-10 06:55:34 +00:00
const obj17 = callback(13800);
callback(13802).initialize();
const obj18 = callback(13802);
2026-08-08 06:10:11 +00:00
callback(13806).initialize();
2026-08-10 06:55:34 +00:00
checkForNewerBuild.ensureInitialized();
const obj19 = callback(13806);
2026-08-08 06:10:11 +00:00
callback(13808).initialize();
2026-08-10 06:55:34 +00:00
const obj20 = callback(13808);
2026-08-08 06:10:11 +00:00
callback(13809).initialize();
2026-08-10 06:55:34 +00:00
const obj21 = callback(13809);
callback(13810).initialize();
const obj22 = callback(13810);
callback(13811).initialize();
const obj23 = callback(13811);
2026-08-08 06:10:11 +00:00
callback(4481).initialize();
const obj24 = callback(4481);
2026-08-10 06:55:34 +00:00
callback(13812).initialize();
const obj25 = callback(13812);
2026-07-29 08:29:29 +00:00
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
2026-08-08 06:10:11 +00:00
tmp(4882).initialize();
const tmpResult = tmp(4882);
2026-07-29 08:29:29 +00:00
}
obj26 = shouldUseAltGateway(500);
2026-08-10 06:55:34 +00:00
const result = tmp29(10961).initializeRouteManagerIfNeeded();
2026-07-29 08:29:29 +00:00
return () => {
2026-08-10 06:55:34 +00:00
callback2(13717).terminate();
const obj = callback2(13717);
2026-08-08 06:10:11 +00:00
callback2(4699).terminate();
const obj2 = callback2(4699);
callback2(7377).terminate();
const obj3 = callback2(7377);
2026-08-10 06:55:34 +00:00
callback2(13792).terminate();
const obj4 = callback2(13792);
callback(10961).cleanupRouteManager();
const obj5 = callback(10961);
callback2(13812).terminate();
const obj6 = callback2(13812);
callback2(13800).terminate();
const obj7 = callback2(13800);
2026-08-08 06:10:11 +00:00
callback2(8852).terminate();
const obj8 = callback2(8852);
2026-08-10 06:55:34 +00:00
callback2(13731).terminate();
const obj9 = callback2(13731);
callback2(13715).terminate();
const obj10 = callback2(13715);
2026-08-08 06:10:11 +00:00
callback2(13806).terminate();
2026-08-10 06:55:34 +00:00
const obj11 = callback2(13806);
callback2(13808).terminate();
const obj12 = callback2(13808);
2026-08-08 06:10:11 +00:00
callback2(13809).terminate();
2026-08-10 06:55:34 +00:00
const obj13 = callback2(13809);
callback2(13811).terminate();
const obj14 = callback2(13811);
2026-08-08 06:10:11 +00:00
callback2(4481).terminate();
const obj15 = callback2(4481);
2026-08-10 06:55:34 +00:00
callback2(13727).terminate();
2026-07-29 08:29:29 +00:00
};
}, []);
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;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
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();
};
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
}, items1);
const effect2 = React.useEffect(() => {
callback(9).wasAuthenticated = fetchFingerprint.isAuthenticated();
}, []);
shouldUseAltGateway = undefined;
2026-08-10 06:55:34 +00:00
const isChannelMetadataObfuscationEnabled = shouldUseAltGateway(12940).useIsChannelMetadataObfuscationEnabled("App");
2026-07-29 08:29:29 +00:00
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;
2026-08-10 06:55:34 +00:00
let obj2 = shouldUseAltGateway(12940);
shouldUseAltGateway = shouldUseAltGateway(13816).useShouldUseAltGateway("App");
2026-07-29 08:29:29 +00:00
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;
2026-07-20 16:05:17 +00:00
return renderAppEffect.record();
}, []);
2026-07-29 08:29:29 +00:00
obj = { profile: null, children: null };
2026-08-10 06:55:34 +00:00
let obj3 = shouldUseAltGateway(13816);
obj[0] = shouldUseAltGateway(11003).Profiles.App;
2026-07-29 08:29:29 +00:00
obj = { appEntryKey: "main", children: null };
2026-08-10 06:55:34 +00:00
const tmp11 = importDefault(11003);
obj[1] = jsx(importDefault(15078), {});
obj[1] = jsx(importDefault(13818), { appEntryKey: "main", children: null });
2026-07-29 08:29:29 +00:00
return <tmp11 appEntryKey="main">{null}</tmp11>;
2026-07-20 16:05:17 +00:00
};