decord/source/components_native/App.tsx

195 lines
7.7 KiB
TypeScript
Raw Normal View History

// Module ID: 14319
// Function ID: 14320
2026-07-20 16:05:17 +00:00
// Name: App
// Dependencies: [19, 17, 14320, 1215, 9016, 13610, 13619, 13639, 10594, 4555, 14321, 14322, 14323, 7577, 4145, 4473, 14324, 6883, 14325, 14326, 21, 14327, 2008, 14360, 4922, 14366, 14367, 14368, 14369, 7689, 14378, 7692, 14379, 14382, 10637, 14453, 9444, 9497, 8201, 14461, 14463, 14467, 14469, 14470, 14471, 14472, 4668, 14473, 1234, 5121, 12714, 586, 6534, 14475, 9, 13595, 13564, 14477, 11465, 14479, 15864, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 14319 (App)
2026-08-24 06:08:38 +00:00
import serializeDefault from "serialize" /* 9 */;
import setLevelsDefault from "setLevels" /* 11465 */;
import GestureWrapperDefault from "GestureWrapper" /* 14479 */;
import getAuthComponentDefault from "getAuthComponent" /* 15864 */;
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" /* 14320 */;
2026-09-02 09:53:35 +00:00
import closure_6 from "fetchFingerprint" /* 1215 */;
import nativeEventEmitter from "nativeEventEmitter" /* 9016 */;
import updateState from "updateState" /* 13610 */;
import showReviewRequestModal from "showReviewRequestModal" /* 13619 */;
import set from "set" /* 13639 */;
import createEmptyPromotionsByType from "createEmptyPromotionsByType" /* 10594 */;
import bitrate from "bitrate" /* 4555 */;
import handleTokenUpdated from "handleTokenUpdated" /* 14321 */;
import handleUpdateVADPermission from "handleUpdateVADPermission" /* 14322 */;
import getModalState from "getModalState" /* 14323 */;
import appDatabaseManager from "appDatabaseManager" /* 7577 */;
2026-09-01 10:26:29 +00:00
import reset from "reset" /* 4145 */;
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme" /* 4473 */;
import initialize from "initialize" /* 14324 */;
import handleSetLocationMetadata from "handleSetLocationMetadata" /* 6883 */;
2026-07-29 08:29:29 +00:00
import "map";
import ApexExperiment from "ApexExperiment" /* 14326 */;
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(14360).init();
let obj = callback(14360);
2026-08-28 06:19:39 +00:00
const tmp = callback;
callback(4922).initialize();
let obj2 = callback(4922);
callback(14366).initialize();
let obj3 = callback(14366);
callback(14367).initialize();
let obj4 = callback(14367);
callback(14368).initialize();
let obj5 = callback(14368);
callback(14369).initialize();
let obj6 = callback(14369);
callback(7689).initialize();
let obj7 = callback(7689);
callback(14378).initialize();
let obj8 = callback(14378);
callback(7692).init();
let obj9 = callback(7692);
callback(14379).init();
let obj10 = callback(14379);
callback(14382).init();
let obj11 = callback(14382);
callback(10637).initialize();
let obj12 = callback(10637);
callback(14453).initialize();
let obj13 = callback(14453);
callback(9444).initialize();
let obj14 = callback(9444);
callback(9497).initialize();
let obj15 = callback(9497);
callback(8201).initialize();
const obj16 = callback(8201);
callback(14461).initialize();
const obj17 = callback(14461);
callback(14463).initialize();
const obj18 = callback(14463);
callback(14467).initialize();
2026-09-03 10:05:34 +00:00
closure_5.ensureInitialized();
const obj19 = callback(14467);
callback(14469).initialize();
const obj20 = callback(14469);
callback(14470).initialize();
const obj21 = callback(14470);
callback(14471).initialize();
const obj22 = callback(14471);
callback(14472).initialize();
const obj23 = callback(14472);
callback(4668).initialize();
const obj24 = callback(4668);
callback(14473).initialize();
const obj25 = callback(14473);
2026-07-29 08:29:29 +00:00
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
tmp(5121).initialize();
const tmpResult = tmp(5121);
2026-07-29 08:29:29 +00:00
}
2026-09-02 09:53:35 +00:00
obj26 = shouldUseAltGateway(1234);
const result = tmp29(12714).initializeRouteManagerIfNeeded();
2026-07-29 08:29:29 +00:00
return () => {
callback2(14368).terminate();
const obj = callback2(14368);
callback2(4922).terminate();
const obj2 = callback2(4922);
callback2(10637).terminate();
const obj3 = callback2(10637);
callback2(14453).terminate();
const obj4 = callback2(14453);
callback(12714).cleanupRouteManager();
const obj5 = callback(12714);
callback2(14473).terminate();
const obj6 = callback2(14473);
callback2(14461).terminate();
const obj7 = callback2(14461);
callback2(8201).terminate();
const obj8 = callback2(8201);
callback2(14382).terminate();
const obj9 = callback2(14382);
callback2(14366).terminate();
const obj10 = callback2(14366);
callback2(14467).terminate();
const obj11 = callback2(14467);
callback2(14469).terminate();
const obj12 = callback2(14469);
callback2(14470).terminate();
const obj13 = callback2(14470);
callback2(14472).terminate();
const obj14 = callback2(14472);
callback2(4668).terminate();
const obj15 = callback2(4668);
callback2(14378).terminate();
2026-07-29 08:29:29 +00:00
};
}, []);
let shouldUseAltGateway;
2026-09-02 09:53:35 +00:00
let obj = shouldUseAltGateway(586);
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(13595).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(13595);
shouldUseAltGateway = shouldUseAltGateway(14477).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(14477);
obj[0] = shouldUseAltGateway(11465).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
};