decord/source/components_native/App.tsx

207 lines
8.2 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 14048
// Function ID: 14049
2026-07-20 16:05:17 +00:00
// Name: App
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 17, 14049, 1218, 9778, 13338, 13347, 13367, 10475, 4552, 14050, 14051, 14052, 7389, 4145, 4470, 14053, 7716, 14054, 14055, 21, 14056, 2009, 14089, 4914, 14095, 14096, 14097, 14098, 7501, 14107, 7504, 14108, 14111, 10485, 14182, 9453, 9497, 8575, 14190, 14192, 14196, 14198, 14199, 14200, 14201, 4661, 14202, 500, 5104, 12320, 589, 6052, 14204, 9, 13324, 502, 14206, 11132, 14208, 15531, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-01 10:26:29 +00:00
// Module 14048 (App)
2026-08-24 06:08:38 +00:00
import serializeDefault from "serialize" /* 9 */;
2026-09-01 10:26:29 +00:00
import setLevelsDefault from "setLevels" /* 11132 */;
import GestureWrapperDefault from "GestureWrapper" /* 14208 */;
import getAuthComponentDefault from "getAuthComponent" /* 15531 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { NativeModules } from "get ActivityIndicator" /* 17 */;
2026-09-01 10:26:29 +00:00
import closure_5 from "checkForNewerBuild" /* 14049 */;
2026-08-24 06:08:38 +00:00
import closure_6 from "fetchFingerprint" /* 1218 */;
2026-09-01 10:26:29 +00:00
import nativeEventEmitter from "nativeEventEmitter" /* 9778 */;
import updateState from "updateState" /* 13338 */;
import showReviewRequestModal from "showReviewRequestModal" /* 13347 */;
import set from "set" /* 13367 */;
import createEmptyPromotionsByType from "createEmptyPromotionsByType" /* 10475 */;
import bitrate from "bitrate" /* 4552 */;
import handleTokenUpdated from "handleTokenUpdated" /* 14050 */;
import handleUpdateVADPermission from "handleUpdateVADPermission" /* 14051 */;
import getModalState from "getModalState" /* 14052 */;
import appDatabaseManager from "appDatabaseManager" /* 7389 */;
import reset from "reset" /* 4145 */;
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme" /* 4470 */;
import initialize from "initialize" /* 14053 */;
import handleSetLocationMetadata from "handleSetLocationMetadata" /* 7716 */;
2026-07-29 08:29:29 +00:00
import "map";
2026-09-01 10:26:29 +00:00
import ApexExperiment from "ApexExperiment" /* 14055 */;
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-09-01 10:26:29 +00:00
callback(14089).init();
let obj = callback(14089);
2026-08-28 06:19:39 +00:00
const tmp = callback;
2026-09-01 10:26:29 +00:00
callback(4914).initialize();
let obj2 = callback(4914);
callback(14095).initialize();
let obj3 = callback(14095);
callback(14096).initialize();
let obj4 = callback(14096);
callback(14097).initialize();
let obj5 = callback(14097);
callback(14098).initialize();
let obj6 = callback(14098);
callback(7501).initialize();
let obj7 = callback(7501);
callback(14107).initialize();
let obj8 = callback(14107);
callback(7504).init();
let obj9 = callback(7504);
callback(14108).init();
let obj10 = callback(14108);
callback(14111).init();
let obj11 = callback(14111);
callback(10485).initialize();
let obj12 = callback(10485);
callback(14182).initialize();
let obj13 = callback(14182);
callback(9453).initialize();
let obj14 = callback(9453);
callback(9497).initialize();
let obj15 = callback(9497);
callback(8575).initialize();
const obj16 = callback(8575);
callback(14190).initialize();
const obj17 = callback(14190);
callback(14192).initialize();
const obj18 = callback(14192);
callback(14196).initialize();
2026-08-28 06:19:39 +00:00
closure_5.ensureInitialized();
2026-09-01 10:26:29 +00:00
const obj19 = callback(14196);
callback(14198).initialize();
const obj20 = callback(14198);
callback(14199).initialize();
const obj21 = callback(14199);
callback(14200).initialize();
const obj22 = callback(14200);
callback(14201).initialize();
const obj23 = callback(14201);
callback(4661).initialize();
const obj24 = callback(4661);
callback(14202).initialize();
const obj25 = callback(14202);
2026-07-29 08:29:29 +00:00
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
2026-09-01 10:26:29 +00:00
tmp(5104).initialize();
const tmpResult = tmp(5104);
2026-07-29 08:29:29 +00:00
}
obj26 = shouldUseAltGateway(500);
2026-09-01 10:26:29 +00:00
const result = tmp29(12320).initializeRouteManagerIfNeeded();
2026-07-29 08:29:29 +00:00
return () => {
2026-09-01 10:26:29 +00:00
callback2(14097).terminate();
const obj = callback2(14097);
callback2(4914).terminate();
const obj2 = callback2(4914);
callback2(10485).terminate();
const obj3 = callback2(10485);
callback2(14182).terminate();
const obj4 = callback2(14182);
callback(12320).cleanupRouteManager();
const obj5 = callback(12320);
callback2(14202).terminate();
const obj6 = callback2(14202);
callback2(14190).terminate();
const obj7 = callback2(14190);
callback2(8575).terminate();
const obj8 = callback2(8575);
callback2(14111).terminate();
const obj9 = callback2(14111);
callback2(14095).terminate();
const obj10 = callback2(14095);
callback2(14196).terminate();
const obj11 = callback2(14196);
callback2(14198).terminate();
const obj12 = callback2(14198);
callback2(14199).terminate();
const obj13 = callback2(14199);
callback2(14201).terminate();
const obj14 = callback2(14201);
callback2(4661).terminate();
const obj15 = callback2(4661);
callback2(14107).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-09-01 10:26:29 +00:00
const isChannelMetadataObfuscationEnabled = shouldUseAltGateway(13324).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-09-01 10:26:29 +00:00
let obj2 = shouldUseAltGateway(13324);
shouldUseAltGateway = shouldUseAltGateway(14206).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-09-01 10:26:29 +00:00
let obj3 = shouldUseAltGateway(14206);
obj[0] = shouldUseAltGateway(11132).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
};