decord/source/components_native/App.tsx

195 lines
7.7 KiB
TypeScript
Raw Normal View History

// Module ID: 14393
// Function ID: 14394
2026-07-20 16:05:17 +00:00
// Name: App
// Dependencies: [19, 17, 14394, 502, 9086, 13686, 13695, 13715, 10665, 13995, 14395, 14396, 14397, 7644, 4224, 4552, 14398, 6943, 14399, 14400, 21, 14401, 1896, 14434, 4961, 14440, 14441, 14442, 14443, 7756, 14453, 7760, 14454, 14457, 10708, 14528, 9515, 9568, 8271, 14536, 14538, 14542, 14544, 14545, 14546, 14547, 4701, 14548, 1115, 5160, 12782, 504, 6593, 14550, 9, 13668, 13637, 14552, 11533, 14554, 15940, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 14393 (App)
2026-08-24 06:08:38 +00:00
import serializeDefault from "serialize" /* 9 */;
import setLevelsDefault from "setLevels" /* 11533 */;
import GestureWrapperDefault from "GestureWrapper" /* 14554 */;
import getAuthComponentDefault from "getAuthComponent" /* 15940 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { NativeModules } from "get ActivityIndicator" /* 17 */;
import closure_5 from "checkForNewerBuild" /* 14394 */;
import closure_6 from "fetchFingerprint" /* 502 */;
import nativeEventEmitter from "nativeEventEmitter" /* 9086 */;
import updateState from "updateState" /* 13686 */;
import showReviewRequestModal from "showReviewRequestModal" /* 13695 */;
import set from "set" /* 13715 */;
import createEmptyPromotionsByType from "createEmptyPromotionsByType" /* 10665 */;
import bitrate from "bitrate" /* 13995 */;
import handleTokenUpdated from "handleTokenUpdated" /* 14395 */;
import handleUpdateVADPermission from "handleUpdateVADPermission" /* 14396 */;
import getModalState from "getModalState" /* 14397 */;
import appDatabaseManager from "appDatabaseManager" /* 7644 */;
import reset from "reset" /* 4224 */;
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme" /* 4552 */;
import initialize from "initialize" /* 14398 */;
import handleSetLocationMetadata from "handleSetLocationMetadata" /* 6943 */;
2026-07-29 08:29:29 +00:00
import "map";
import ApexExperiment from "ApexExperiment" /* 14400 */;
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(() => {
callback(14434).init();
let obj = callback(14434);
2026-08-28 06:19:39 +00:00
const tmp = callback;
callback(4961).initialize();
let obj2 = callback(4961);
callback(14440).initialize();
let obj3 = callback(14440);
callback(14441).initialize();
let obj4 = callback(14441);
callback(14442).initialize();
let obj5 = callback(14442);
callback(14443).initialize();
let obj6 = callback(14443);
callback(7756).initialize();
let obj7 = callback(7756);
callback(14453).initialize();
let obj8 = callback(14453);
callback(7760).init();
let obj9 = callback(7760);
callback(14454).init();
let obj10 = callback(14454);
callback(14457).init();
let obj11 = callback(14457);
callback(10708).initialize();
let obj12 = callback(10708);
callback(14528).initialize();
let obj13 = callback(14528);
callback(9515).initialize();
let obj14 = callback(9515);
callback(9568).initialize();
let obj15 = callback(9568);
callback(8271).initialize();
const obj16 = callback(8271);
callback(14536).initialize();
const obj17 = callback(14536);
callback(14538).initialize();
const obj18 = callback(14538);
callback(14542).initialize();
2026-09-03 10:05:34 +00:00
closure_5.ensureInitialized();
const obj19 = callback(14542);
callback(14544).initialize();
const obj20 = callback(14544);
callback(14545).initialize();
const obj21 = callback(14545);
callback(14546).initialize();
const obj22 = callback(14546);
callback(14547).initialize();
const obj23 = callback(14547);
callback(4701).initialize();
const obj24 = callback(4701);
callback(14548).initialize();
const obj25 = callback(14548);
2026-07-29 08:29:29 +00:00
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
tmp(5160).initialize();
const tmpResult = tmp(5160);
2026-07-29 08:29:29 +00:00
}
obj26 = shouldUseAltGateway(1115);
const result = tmp29(12782).initializeRouteManagerIfNeeded();
2026-07-29 08:29:29 +00:00
return () => {
callback2(14442).terminate();
const obj = callback2(14442);
callback2(4961).terminate();
const obj2 = callback2(4961);
callback2(10708).terminate();
const obj3 = callback2(10708);
callback2(14528).terminate();
const obj4 = callback2(14528);
callback(12782).cleanupRouteManager();
const obj5 = callback(12782);
callback2(14548).terminate();
const obj6 = callback2(14548);
callback2(14536).terminate();
const obj7 = callback2(14536);
callback2(8271).terminate();
const obj8 = callback2(8271);
callback2(14457).terminate();
const obj9 = callback2(14457);
callback2(14440).terminate();
const obj10 = callback2(14440);
callback2(14542).terminate();
const obj11 = callback2(14542);
callback2(14544).terminate();
const obj12 = callback2(14544);
callback2(14545).terminate();
const obj13 = callback2(14545);
callback2(14547).terminate();
const obj14 = callback2(14547);
callback2(4701).terminate();
const obj15 = callback2(4701);
callback2(14453).terminate();
2026-07-29 08:29:29 +00:00
};
}, []);
let shouldUseAltGateway;
let obj = shouldUseAltGateway(504);
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;
const isChannelMetadataObfuscationEnabled = shouldUseAltGateway(13668).useIsChannelMetadataObfuscationEnabled("App");
2026-07-29 08:29:29 +00:00
shouldUseAltGateway = isChannelMetadataObfuscationEnabled;
const items2 = [isChannelMetadataObfuscationEnabled];
const effect3 = React.useEffect(() => {
2026-09-02 09:53:35 +00:00
const result = closure_1_1(closure_1_2[56]).setUseChannelObfuscation(shouldUseAltGateway);
2026-07-29 08:29:29 +00:00
}, items2);
shouldUseAltGateway = undefined;
let obj2 = shouldUseAltGateway(13668);
shouldUseAltGateway = shouldUseAltGateway(14552).useShouldUseAltGateway("App");
2026-07-29 08:29:29 +00:00
const items3 = [shouldUseAltGateway];
const effect4 = React.useEffect(() => {
2026-09-02 09:53:35 +00:00
closure_1_1(closure_1_2[56]).setUseAltGateway(shouldUseAltGateway);
2026-07-29 08:29:29 +00:00
}, 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 };
let obj3 = shouldUseAltGateway(14552);
obj[0] = shouldUseAltGateway(11533).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
};