decord/source/components_native/App.tsx

204 lines
7.8 KiB
TypeScript
Raw Normal View History

2026-08-13 17:34:28 +00:00
// Module ID: 13725
// Function ID: 13726
2026-07-20 16:05:17 +00:00
// Name: App
2026-08-13 17:34:28 +00:00
// Dependencies: [19, 17, 13726, 1218, 9202, 13015, 13024, 13041, 7388, 4414, 13727, 13728, 13729, 7151, 4013, 4334, 13730, 8520, 13731, 13732, 21, 13733, 2007, 13766, 4740, 13772, 13773, 13774, 13775, 7261, 13784, 7264, 13785, 13788, 7422, 13849, 10575, 10952, 8901, 13857, 13859, 13863, 13865, 13866, 13867, 13868, 4522, 13869, 500, 4923, 10935, 589, 5867, 13871, 9, 13004, 502, 13873, 10977, 13875, 15144, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-13 17:34:28 +00:00
// Module 13725 (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-13 17:34:28 +00:00
callback(13766).init();
let obj = callback(13766);
2026-07-29 08:29:29 +00:00
const tmp = callback;
2026-08-13 07:00:46 +00:00
callback(4740).initialize();
let obj2 = callback(4740);
2026-08-13 17:34:28 +00:00
callback(13772).initialize();
let obj3 = callback(13772);
callback(13773).initialize();
let obj4 = callback(13773);
callback(13774).initialize();
let obj5 = callback(13774);
callback(13775).initialize();
let obj6 = callback(13775);
2026-08-13 07:00:46 +00:00
callback(7261).initialize();
let obj7 = callback(7261);
2026-08-13 17:34:28 +00:00
callback(13784).initialize();
let obj8 = callback(13784);
2026-08-13 07:00:46 +00:00
callback(7264).init();
let obj9 = callback(7264);
2026-08-13 17:34:28 +00:00
callback(13785).init();
let obj10 = callback(13785);
callback(13788).init();
let obj11 = callback(13788);
2026-08-13 07:00:46 +00:00
callback(7422).initialize();
let obj12 = callback(7422);
2026-08-13 17:34:28 +00:00
callback(13849).initialize();
let obj13 = callback(13849);
callback(10575).initialize();
let obj14 = callback(10575);
callback(10952).initialize();
let obj15 = callback(10952);
2026-08-13 07:00:46 +00:00
callback(8901).initialize();
const obj16 = callback(8901);
2026-08-13 17:34:28 +00:00
callback(13857).initialize();
const obj17 = callback(13857);
callback(13859).initialize();
const obj18 = callback(13859);
callback(13863).initialize();
checkForNewerBuild.ensureInitialized();
const obj19 = callback(13863);
callback(13865).initialize();
const obj20 = callback(13865);
2026-08-13 07:00:46 +00:00
callback(13866).initialize();
2026-08-13 17:34:28 +00:00
const obj21 = callback(13866);
callback(13867).initialize();
const obj22 = callback(13867);
2026-08-13 07:00:46 +00:00
callback(13868).initialize();
2026-08-13 17:34:28 +00:00
const obj23 = callback(13868);
2026-08-13 07:00:46 +00:00
callback(4522).initialize();
const obj24 = callback(4522);
2026-08-13 17:34:28 +00:00
callback(13869).initialize();
const obj25 = callback(13869);
2026-07-29 08:29:29 +00:00
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
2026-08-13 07:00:46 +00:00
tmp(4923).initialize();
const tmpResult = tmp(4923);
2026-07-29 08:29:29 +00:00
}
obj26 = shouldUseAltGateway(500);
2026-08-13 17:34:28 +00:00
const result = tmp29(10935).initializeRouteManagerIfNeeded();
2026-07-29 08:29:29 +00:00
return () => {
2026-08-13 17:34:28 +00:00
callback2(13774).terminate();
const obj = callback2(13774);
2026-08-13 07:00:46 +00:00
callback2(4740).terminate();
const obj2 = callback2(4740);
callback2(7422).terminate();
const obj3 = callback2(7422);
2026-08-13 17:34:28 +00:00
callback2(13849).terminate();
const obj4 = callback2(13849);
callback(10935).cleanupRouteManager();
const obj5 = callback(10935);
callback2(13869).terminate();
const obj6 = callback2(13869);
callback2(13857).terminate();
const obj7 = callback2(13857);
2026-08-13 07:00:46 +00:00
callback2(8901).terminate();
const obj8 = callback2(8901);
2026-08-13 17:34:28 +00:00
callback2(13788).terminate();
const obj9 = callback2(13788);
callback2(13772).terminate();
const obj10 = callback2(13772);
callback2(13863).terminate();
const obj11 = callback2(13863);
callback2(13865).terminate();
const obj12 = callback2(13865);
callback2(13866).terminate();
const obj13 = callback2(13866);
callback2(13868).terminate();
const obj14 = callback2(13868);
2026-08-13 07:00:46 +00:00
callback2(4522).terminate();
const obj15 = callback2(4522);
2026-08-13 17:34:28 +00:00
callback2(13784).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-13 17:34:28 +00:00
const isChannelMetadataObfuscationEnabled = shouldUseAltGateway(13004).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-13 17:34:28 +00:00
let obj2 = shouldUseAltGateway(13004);
shouldUseAltGateway = shouldUseAltGateway(13873).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-13 17:34:28 +00:00
let obj3 = shouldUseAltGateway(13873);
obj[0] = shouldUseAltGateway(10977).Profiles.App;
2026-07-29 08:29:29 +00:00
obj = { appEntryKey: "main", children: null };
2026-08-13 17:34:28 +00:00
const tmp11 = importDefault(10977);
obj[1] = jsx(importDefault(15144), {});
obj[1] = jsx(importDefault(13875), { 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
};