decord/source/components_native/App.tsx

195 lines
7.7 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 14271
// Function ID: 14272
2026-07-20 16:05:17 +00:00
// Name: App
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 17, 14272, 1215, 9800, 13562, 13571, 13591, 10696, 4552, 14273, 14274, 14275, 7398, 4145, 4470, 14276, 7725, 14277, 14278, 21, 14279, 2008, 14312, 4914, 14318, 14319, 14320, 14321, 7511, 14330, 7514, 14331, 14334, 10706, 14405, 9466, 9510, 8590, 14413, 14415, 14419, 14421, 14422, 14423, 14424, 4661, 14425, 1234, 5112, 12544, 586, 6060, 14427, 9, 13547, 13516, 14429, 11353, 14431, 15762, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 14271 (App)
2026-08-24 06:08:38 +00:00
import serializeDefault from "serialize" /* 9 */;
2026-09-02 09:53:35 +00:00
import setLevelsDefault from "setLevels" /* 11353 */;
import GestureWrapperDefault from "GestureWrapper" /* 14431 */;
import getAuthComponentDefault from "getAuthComponent" /* 15762 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { NativeModules } from "get ActivityIndicator" /* 17 */;
2026-09-02 09:53:35 +00:00
import closure_5 from "checkForNewerBuild" /* 14272 */;
import closure_6 from "fetchFingerprint" /* 1215 */;
import nativeEventEmitter from "nativeEventEmitter" /* 9800 */;
import updateState from "updateState" /* 13562 */;
import showReviewRequestModal from "showReviewRequestModal" /* 13571 */;
import set from "set" /* 13591 */;
import createEmptyPromotionsByType from "createEmptyPromotionsByType" /* 10696 */;
2026-09-01 10:26:29 +00:00
import bitrate from "bitrate" /* 4552 */;
2026-09-02 09:53:35 +00:00
import handleTokenUpdated from "handleTokenUpdated" /* 14273 */;
import handleUpdateVADPermission from "handleUpdateVADPermission" /* 14274 */;
import getModalState from "getModalState" /* 14275 */;
import appDatabaseManager from "appDatabaseManager" /* 7398 */;
2026-09-01 10:26:29 +00:00
import reset from "reset" /* 4145 */;
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme" /* 4470 */;
2026-09-02 09:53:35 +00:00
import initialize from "initialize" /* 14276 */;
import handleSetLocationMetadata from "handleSetLocationMetadata" /* 7725 */;
2026-07-29 08:29:29 +00:00
import "map";
2026-09-02 09:53:35 +00:00
import ApexExperiment from "ApexExperiment" /* 14278 */;
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-02 09:53:35 +00:00
callback(14312).init();
let obj = callback(14312);
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);
2026-09-02 09:53:35 +00:00
callback(14318).initialize();
let obj3 = callback(14318);
callback(14319).initialize();
let obj4 = callback(14319);
callback(14320).initialize();
let obj5 = callback(14320);
callback(14321).initialize();
let obj6 = callback(14321);
callback(7511).initialize();
let obj7 = callback(7511);
callback(14330).initialize();
let obj8 = callback(14330);
callback(7514).init();
let obj9 = callback(7514);
callback(14331).init();
let obj10 = callback(14331);
callback(14334).init();
let obj11 = callback(14334);
callback(10706).initialize();
let obj12 = callback(10706);
callback(14405).initialize();
let obj13 = callback(14405);
callback(9466).initialize();
let obj14 = callback(9466);
callback(9510).initialize();
let obj15 = callback(9510);
callback(8590).initialize();
const obj16 = callback(8590);
callback(14413).initialize();
const obj17 = callback(14413);
callback(14415).initialize();
const obj18 = callback(14415);
callback(14419).initialize();
2026-08-28 06:19:39 +00:00
closure_5.ensureInitialized();
2026-09-02 09:53:35 +00:00
const obj19 = callback(14419);
callback(14421).initialize();
const obj20 = callback(14421);
callback(14422).initialize();
const obj21 = callback(14422);
callback(14423).initialize();
const obj22 = callback(14423);
callback(14424).initialize();
const obj23 = callback(14424);
2026-09-01 10:26:29 +00:00
callback(4661).initialize();
const obj24 = callback(4661);
2026-09-02 09:53:35 +00:00
callback(14425).initialize();
const obj25 = callback(14425);
2026-07-29 08:29:29 +00:00
const tmp29 = shouldUseAltGateway;
if (obj26.isIOS()) {
2026-09-02 09:53:35 +00:00
tmp(5112).initialize();
const tmpResult = tmp(5112);
2026-07-29 08:29:29 +00:00
}
2026-09-02 09:53:35 +00:00
obj26 = shouldUseAltGateway(1234);
const result = tmp29(12544).initializeRouteManagerIfNeeded();
2026-07-29 08:29:29 +00:00
return () => {
2026-09-02 09:53:35 +00:00
callback2(14320).terminate();
const obj = callback2(14320);
2026-09-01 10:26:29 +00:00
callback2(4914).terminate();
const obj2 = callback2(4914);
2026-09-02 09:53:35 +00:00
callback2(10706).terminate();
const obj3 = callback2(10706);
callback2(14405).terminate();
const obj4 = callback2(14405);
callback(12544).cleanupRouteManager();
const obj5 = callback(12544);
callback2(14425).terminate();
const obj6 = callback2(14425);
callback2(14413).terminate();
const obj7 = callback2(14413);
callback2(8590).terminate();
const obj8 = callback2(8590);
callback2(14334).terminate();
const obj9 = callback2(14334);
callback2(14318).terminate();
const obj10 = callback2(14318);
callback2(14419).terminate();
const obj11 = callback2(14419);
callback2(14421).terminate();
const obj12 = callback2(14421);
callback2(14422).terminate();
const obj13 = callback2(14422);
callback2(14424).terminate();
const obj14 = callback2(14424);
2026-09-01 10:26:29 +00:00
callback2(4661).terminate();
const obj15 = callback2(4661);
2026-09-02 09:53:35 +00:00
callback2(14330).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;
2026-09-02 09:53:35 +00:00
const isChannelMetadataObfuscationEnabled = shouldUseAltGateway(13547).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;
2026-09-02 09:53:35 +00:00
let obj2 = shouldUseAltGateway(13547);
shouldUseAltGateway = shouldUseAltGateway(14429).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 };
2026-09-02 09:53:35 +00:00
let obj3 = shouldUseAltGateway(14429);
obj[0] = shouldUseAltGateway(11353).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
};