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

29 lines
2.2 KiB
TypeScript

/* Metro module 13904; source: modules/notifications/profile_updates/ProfileUpdatesNotificationExperiment.tsx; dependencies: [1854, 2] */
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 _fun105597(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14101:6, offset: 0x022bda40, size: 203 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2026-01-profile-updates-notification',
defaultConfig: {showSettingsToggle: false}, variations: {[0]: {showSettingsToggle: false},
[1]: {showSettingsToggle: true}, [2]: {showSettingsToggle: true}}});
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/profile_updates/ProfileUpdatesNotificationExperiment.tsx');
exports.default = value;
exports.useProfileUpdatesNotificationExperiment = useProfileUpdatesNotificationExperiment;
exports.isEligibleForProfileUpdatesNotificationsToggle = isEligibleForProfileUpdatesNotificationsToggle;
function useProfileUpdatesNotificationExperiment(a0) { // fn#105598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14101:489, offset: 0x01373b1d, size: 29 bytes, params: 2, frame: 12
return env0_0.useConfig({location: a0});
}
function isEligibleForProfileUpdatesNotificationsToggle(a0) { // fn#105599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14101:624, offset: 0x022bd4b8, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).showSettingsToggle;
}
}
global.__d(_fun105597, 13904, [1854, 2]) /* metro module 13904, dependencies: [1854, 2] */;