decord/source/components_native/App.tsx
2026-08-08 06:10:11 +00:00

203 lines
7.8 KiB
TypeScript

// Module ID: 13666
// Function ID: 13667
// Name: App
// Dependencies: [19, 17, 13667, 1218, 9152, 12949, 12958, 12975, 7344, 4373, 13668, 13669, 13670, 7105, 3953, 4295, 13671, 8471, 13672, 13673, 21, 13674, 1988, 13707, 4699, 13713, 13714, 13715, 13716, 7216, 13725, 7219, 13726, 13729, 7377, 13790, 10600, 10977, 8852, 13798, 13800, 13804, 13806, 13807, 13808, 13809, 4481, 13810, 500, 4882, 10960, 589, 5827, 13812, 9, 12938, 502, 13814, 11002, 13816, 15076, 2]
// Exports: default
// Module 13666 (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(13707).init();
let obj = callback(13707);
const tmp = callback;
callback(4699).initialize();
let obj2 = callback(4699);
callback(13713).initialize();
let obj3 = callback(13713);
callback(13714).initialize();
let obj4 = callback(13714);
callback(13715).initialize();
let obj5 = callback(13715);
callback(13716).initialize();
let obj6 = callback(13716);
callback(7216).initialize();
let obj7 = callback(7216);
callback(13725).initialize();
let obj8 = callback(13725);
callback(7219).init();
let obj9 = callback(7219);
callback(13726).init();
let obj10 = callback(13726);
callback(13729).init();
let obj11 = callback(13729);
callback(7377).initialize();
let obj12 = callback(7377);
callback(13790).initialize();
let obj13 = callback(13790);
callback(10600).initialize();
let obj14 = callback(10600);
callback(10977).initialize();
let obj15 = callback(10977);
callback(8852).initialize();
const obj16 = callback(8852);
callback(13798).initialize();
const obj17 = callback(13798);
callback(13800).initialize();
const obj18 = callback(13800);
callback(13804).initialize();
checkForNewerBuild.ensureInitialized();
const obj19 = callback(13804);
callback(13806).initialize();
const obj20 = callback(13806);
callback(13807).initialize();
const obj21 = callback(13807);
callback(13808).initialize();
const obj22 = callback(13808);
callback(13809).initialize();
const obj23 = callback(13809);
callback(4481).initialize();
const obj24 = callback(4481);
callback(13810).initialize();
const obj25 = callback(13810);
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
tmp(4882).initialize();
const tmpResult = tmp(4882);
}
obj26 = shouldUseAltGateway(500);
const result = tmp29(10960).initializeRouteManagerIfNeeded();
return () => {
callback2(13715).terminate();
const obj = callback2(13715);
callback2(4699).terminate();
const obj2 = callback2(4699);
callback2(7377).terminate();
const obj3 = callback2(7377);
callback2(13790).terminate();
const obj4 = callback2(13790);
callback(10960).cleanupRouteManager();
const obj5 = callback(10960);
callback2(13810).terminate();
const obj6 = callback2(13810);
callback2(13798).terminate();
const obj7 = callback2(13798);
callback2(8852).terminate();
const obj8 = callback2(8852);
callback2(13729).terminate();
const obj9 = callback2(13729);
callback2(13713).terminate();
const obj10 = callback2(13713);
callback2(13804).terminate();
const obj11 = callback2(13804);
callback2(13806).terminate();
const obj12 = callback2(13806);
callback2(13807).terminate();
const obj13 = callback2(13807);
callback2(13809).terminate();
const obj14 = callback2(13809);
callback2(4481).terminate();
const obj15 = callback2(4481);
callback2(13725).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(12938).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(12938);
shouldUseAltGateway = shouldUseAltGateway(13814).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(13814);
obj[0] = shouldUseAltGateway(11002).Profiles.App;
obj = { appEntryKey: "main", children: null };
const tmp11 = importDefault(11002);
obj[1] = jsx(importDefault(15076), {});
obj[1] = jsx(importDefault(13816), { appEntryKey: "main", children: null });
return <tmp11 appEntryKey="main">{null}</tmp11>;
};