decord/source/components_native/App.tsx

207 lines
8.2 KiB
TypeScript
Raw Normal View History

2026-08-26 06:04:24 +00:00
// Module ID: 13935
// Function ID: 13936
2026-07-20 16:05:17 +00:00
// Name: App
2026-08-26 06:04:24 +00:00
// Dependencies: [19, 17, 13936, 1218, 9368, 13226, 13235, 13255, 7553, 4516, 13937, 13938, 13939, 7316, 4113, 4436, 13940, 8696, 13941, 13942, 21, 13943, 2009, 13976, 4865, 13982, 13983, 13984, 13985, 7426, 13994, 7429, 13995, 13998, 7586, 14069, 10758, 11137, 9067, 14077, 14079, 14083, 14085, 14086, 14087, 14088, 4625, 14089, 500, 5051, 11120, 589, 5999, 14091, 9, 13215, 502, 14093, 11162, 14095, 15380, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-26 06:04:24 +00:00
// Module 13935 (App)
2026-08-24 06:08:38 +00:00
import serializeDefault from "serialize" /* 9 */;
2026-08-26 06:04:24 +00:00
import setLevelsDefault from "setLevels" /* 11162 */;
import GestureWrapperDefault from "GestureWrapper" /* 14095 */;
import getAuthComponentDefault from "getAuthComponent" /* 15380 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { NativeModules } from "get ActivityIndicator" /* 17 */;
2026-08-26 06:04:24 +00:00
import closure_5 from "checkForNewerBuild" /* 13936 */;
2026-08-24 06:08:38 +00:00
import closure_6 from "fetchFingerprint" /* 1218 */;
2026-08-26 06:04:24 +00:00
import nativeEventEmitter from "nativeEventEmitter" /* 9368 */;
import updateState from "updateState" /* 13226 */;
import showReviewRequestModal from "showReviewRequestModal" /* 13235 */;
import set from "set" /* 13255 */;
import createEmptyPromotionsByType from "createEmptyPromotionsByType" /* 7553 */;
import bitrate from "bitrate" /* 4516 */;
import handleTokenUpdated from "handleTokenUpdated" /* 13937 */;
import handleUpdateVADPermission from "handleUpdateVADPermission" /* 13938 */;
import getModalState from "getModalState" /* 13939 */;
import appDatabaseManager from "appDatabaseManager" /* 7316 */;
import reset from "reset" /* 4113 */;
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme" /* 4436 */;
import initialize from "initialize" /* 13940 */;
import handleSetLocationMetadata from "handleSetLocationMetadata" /* 8696 */;
2026-07-29 08:29:29 +00:00
import "map";
2026-08-26 06:04:24 +00:00
import ApexExperiment from "ApexExperiment" /* 13942 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
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-08-24 06:08:38 +00:00
const renderApp = serializeDefault.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-26 06:04:24 +00:00
callback(13976).init();
let obj = callback(13976);
2026-07-29 08:29:29 +00:00
const tmp = callback;
2026-08-26 06:04:24 +00:00
callback(4865).initialize();
let obj2 = callback(4865);
callback(13982).initialize();
let obj3 = callback(13982);
callback(13983).initialize();
let obj4 = callback(13983);
callback(13984).initialize();
let obj5 = callback(13984);
callback(13985).initialize();
let obj6 = callback(13985);
callback(7426).initialize();
let obj7 = callback(7426);
callback(13994).initialize();
let obj8 = callback(13994);
callback(7429).init();
let obj9 = callback(7429);
callback(13995).init();
let obj10 = callback(13995);
callback(13998).init();
let obj11 = callback(13998);
callback(7586).initialize();
let obj12 = callback(7586);
callback(14069).initialize();
let obj13 = callback(14069);
callback(10758).initialize();
let obj14 = callback(10758);
callback(11137).initialize();
let obj15 = callback(11137);
callback(9067).initialize();
const obj16 = callback(9067);
callback(14077).initialize();
const obj17 = callback(14077);
callback(14079).initialize();
const obj18 = callback(14079);
callback(14083).initialize();
2026-08-24 06:08:38 +00:00
closure_5.ensureInitialized();
2026-08-26 06:04:24 +00:00
const obj19 = callback(14083);
callback(14085).initialize();
const obj20 = callback(14085);
callback(14086).initialize();
const obj21 = callback(14086);
callback(14087).initialize();
const obj22 = callback(14087);
callback(14088).initialize();
const obj23 = callback(14088);
callback(4625).initialize();
const obj24 = callback(4625);
callback(14089).initialize();
const obj25 = callback(14089);
2026-07-29 08:29:29 +00:00
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
2026-08-26 06:04:24 +00:00
tmp(5051).initialize();
const tmpResult = tmp(5051);
2026-07-29 08:29:29 +00:00
}
obj26 = shouldUseAltGateway(500);
2026-08-26 06:04:24 +00:00
const result = tmp29(11120).initializeRouteManagerIfNeeded();
2026-07-29 08:29:29 +00:00
return () => {
2026-08-26 06:04:24 +00:00
callback2(13984).terminate();
const obj = callback2(13984);
callback2(4865).terminate();
const obj2 = callback2(4865);
callback2(7586).terminate();
const obj3 = callback2(7586);
callback2(14069).terminate();
const obj4 = callback2(14069);
callback(11120).cleanupRouteManager();
const obj5 = callback(11120);
callback2(14089).terminate();
const obj6 = callback2(14089);
callback2(14077).terminate();
const obj7 = callback2(14077);
callback2(9067).terminate();
const obj8 = callback2(9067);
callback2(13998).terminate();
const obj9 = callback2(13998);
callback2(13982).terminate();
const obj10 = callback2(13982);
callback2(14083).terminate();
const obj11 = callback2(14083);
callback2(14085).terminate();
const obj12 = callback2(14085);
callback2(14086).terminate();
const obj13 = callback2(14086);
callback2(14088).terminate();
const obj14 = callback2(14088);
callback2(4625).terminate();
const obj15 = callback2(4625);
callback2(13994).terminate();
2026-07-29 08:29:29 +00:00
};
}, []);
let shouldUseAltGateway;
let obj = shouldUseAltGateway(589);
2026-08-24 06:08:38 +00:00
const items = [closure_6];
const stateFromStores = obj.useStateFromStores(items, () => closure_6.isAuthenticated());
2026-07-29 08:29:29 +00:00
shouldUseAltGateway = stateFromStores;
const items1 = [stateFromStores];
const effect1 = React.useEffect(() => {
if (shouldUseAltGateway) {
2026-08-24 06:08:38 +00:00
const token = closure_1_6.getToken();
2026-07-29 08:29:29 +00:00
if (null == token) {
const _Error = Error;
2026-08-24 06:08:38 +00:00
error = new Error("Authenticated without a token");
2026-07-29 08:29:29 +00:00
throw error;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[52]).startSession(token);
const obj = closure_1_1(closure_1_2[52]);
closure_1_1(closure_1_2[53]).initialize();
const obj2 = closure_1_1(closure_1_2[53]);
2026-07-29 08:29:29 +00:00
if (obj3.isAndroid()) {
2026-08-24 06:08:38 +00:00
const NativePermissionManager = closure_1_4.NativePermissionManager;
2026-07-29 08:29:29 +00:00
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(() => {
2026-08-24 06:08:38 +00:00
callback(9).wasAuthenticated = closure_6.isAuthenticated();
2026-07-29 08:29:29 +00:00
}, []);
shouldUseAltGateway = undefined;
2026-08-26 06:04:24 +00:00
const isChannelMetadataObfuscationEnabled = shouldUseAltGateway(13215).useIsChannelMetadataObfuscationEnabled("App");
2026-07-29 08:29:29 +00:00
shouldUseAltGateway = isChannelMetadataObfuscationEnabled;
const items2 = [isChannelMetadataObfuscationEnabled];
const effect3 = React.useEffect(() => {
if (obj.isAndroid()) {
2026-08-24 06:08:38 +00:00
const result = closure_1_1(closure_1_2[56]).setUseChannelObfuscation(shouldUseAltGateway);
const obj2 = closure_1_1(closure_1_2[56]);
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
const DCDFastConnectManager = closure_1_4.DCDFastConnectManager;
2026-07-29 08:29:29 +00:00
const result1 = DCDFastConnectManager.setUseChannelObfuscation(shouldUseAltGateway);
}
}, items2);
shouldUseAltGateway = undefined;
2026-08-26 06:04:24 +00:00
let obj2 = shouldUseAltGateway(13215);
shouldUseAltGateway = shouldUseAltGateway(14093).useShouldUseAltGateway("App");
2026-07-29 08:29:29 +00:00
const items3 = [shouldUseAltGateway];
const effect4 = React.useEffect(() => {
if (obj.isAndroid()) {
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[56]).setUseAltGateway(shouldUseAltGateway);
const obj2 = closure_1_1(closure_1_2[56]);
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
const DCDFastConnectManager = closure_1_4.DCDFastConnectManager;
2026-07-29 08:29:29 +00:00
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-26 06:04:24 +00:00
let obj3 = shouldUseAltGateway(14093);
obj[0] = shouldUseAltGateway(11162).Profiles.App;
2026-07-29 08:29:29 +00:00
obj = { appEntryKey: "main", children: null };
2026-08-24 06:08:38 +00:00
const tmp11 = setLevelsDefault;
obj[1] = jsx(getAuthComponentDefault, {});
obj[1] = jsx(GestureWrapperDefault, { 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
};