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

72 lines
4.5 KiB
TypeScript

/* Metro module 7296; source: modules/experiments/trigger_points/Helpers.tsx; dependencies: [6, 7, 1220, 4108, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import ApexExperimentStore from '../apex/ApexExperimentStore.tsx'; /* Metro dependency 1220 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ExperimentConstantsModule from '../ExperimentConstants.tsx'; /* Metro dependency 4108 */
function _fun58850(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7474:6, offset: 0x016d8457, size: 158 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(ExperimentConstantsModule).CommonTriggerPoints;
const value = _fun58851();
(FileImportTrackerModule).fileFinishedImporting('modules/experiments/trigger_points/Helpers.tsx');
exports.CommonTriggerPointConfiguration = value;
function _fun58851() { // fn#58851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7474:160, offset: 0x016d84f5, size: 105 bytes, params: 1, frame: 15
return CreateClass(CommonTriggerPointConfiguration, [{key: 'registeredExperimentIds', value: function() {
return this.experiments.map(_fun58854);
}}, {key: 'trigger', value: value_58855}, {key: 'getExperiments', value: function() {
return this.experiments;
}}]);
function CommonTriggerPointConfiguration(a0, a1, a2) { // fn#58852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7474:181, offset: 0x016d855e, size: 54 bytes, params: 4, frame: 13
env1_0(this, CommonTriggerPointConfiguration);
this.experiments = a0;
this.triggerPoint = a1;
this.params = a2;
}
function value_58853() { // fn#58853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7474:362, offset: 0x016d8594, size: 28 bytes, params: 1, frame: 11
return this.experiments.map(function(a0) {
return a0.definition.id;
});
}
function value_58855() { // fn#58855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7474:446, offset: 0x016d85c0, size: 98 bytes, params: 1, frame: 16
var environment;
let value = a0;
const r1 = value !== undefined ? value : {};
value = environment.__proto__;
const apexExperimentStoreBinding = ApexExperimentStore;
apexExperimentStoreBinding.trackCommonTriggerPointExposures(this.params.location);
this.triggerPoint;
const experiments = this.experiments;
const object = {};
copyDataProperties(object, this.params, undefined);
copyDataProperties(object, r1, undefined);
((a0, a1, a2) => {
var env0_0 = a2;
a1.forEach(_fun58857);
})(undefined, experiments, object);
function triggerCommonExperiments(a0, a1, a2) { // fn#58856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7474:518, owner: value_58855.triggerCommonExperiments, offset: 0x016d8622, size: 31 bytes, params: 4, frame: 11
const env0_0 = a2;
a1.forEach(function(a0) {
a0.trackExposure(importDefault);
});
function _fun58857(a0) { // fn#58857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7474:570, offset: 0x016d8641, size: 25 bytes, params: 2, frame: 11
a0.trackExposure(importDefault);
}
}
}
}
}
function _fun58854({definition}) { // fn#58854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7474:402, offset: 0x016d85b0, size: 16 bytes, params: 2, frame: 1
return definition.id;
}
global.__d(_fun58850, 7296, [6, 7, 1220, 4108, 2]) /* metro module 7296, dependencies: [6, 7, 1220, 4108, 2] */;