Files
discord-decomp/sources/modules/fast_image/FastImageFabricExperiment.tsx
T
2026-07-28 01:06:53 +03:00

48 lines
2.5 KiB
TypeScript

/* Metro module 5476; source: modules/fast_image/FastImageFabricExperiment.tsx; dependencies: [1220, 1226, 1854, 2] */
import ApexExperimentStore from '../experiments/apex/ApexExperimentStore.tsx'; /* Metro dependency 1220 */
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun48101(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5654:6, offset: 0x011dc493, size: 210 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-06-ios-fastimage-fabric', 'kind': 'user',
defaultConfig: {useFabric: false}, variations: {[0]: {useFabric: false}, [1]: {useFabric: true}}});
(FileImportTrackerModule).fileFinishedImporting('modules/fast_image/FastImageFabricExperiment.tsx');
exports.default = value;
exports.getFastImageFabricEnabled = getFastImageFabricEnabled;
function getFastImageFabricEnabled() { // fn#48102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5654:404, offset: 0x011dc565, size: 112 bytes, params: 1, frame: 14
var apexExperimentStoreBinding;
var binding;
const id = AuthenticationStore.getId();
if (env0_1 === undefined) {
if (id == null) {
return false;
}
apexExperimentStoreBinding = ApexExperimentStore;
if (apexExperimentStoreBinding.hasLoaded(id)) {
binding = env0_4;
return binding.getConfig({location: 'fast_image'}).useFabric;
}
} else {
if (env0_0 === id) {
return env0_1;
}
if (id == null) {
return false;
}
apexExperimentStoreBinding = ApexExperimentStore;
if (apexExperimentStoreBinding.hasLoaded(id)) {
binding = env0_4;
return binding.getConfig({location: 'fast_image'}).useFabric;
}
}
return false;
}
}
global.__d(_fun48101, 5476, [1220, 1226, 1854, 2]) /* metro module 5476, dependencies: [1220, 1226, 1854, 2] */;