Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,197 @@
|
||||
/* Metro module 3833; source: modules/user_settings/UserSettingDefinitions.tsx; dependencies: [1311, 1348, 670, 1362, 566, 694, 2] */
|
||||
function _fun31360(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:6, offset: 0x00ff65e9, size: 196 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const makeUpdateSettingFunction = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun31362;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const selectivelySyncedUserSettingsStore = importDefault(1311) /* metro dependency 1311: SelectivelySyncedUserSettingsStore */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const env0_5 = (require(670) /* metro dependency 670: UserSettingsConstants */).UserSettingsDelay;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/UserSettingDefinitions.tsx');
|
||||
exports.defineProtoSetting = defineProtoSetting;
|
||||
exports.wrapSettingWithSelectiveSyncing = function(a0, a1, a2) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = a2;
|
||||
var closure = _fun31370;
|
||||
var object = {getSetting: closure, useSetting: _fun31371};
|
||||
object.updateSetting = makeUpdateSettingFunction(closure, _fun31373);
|
||||
return object;
|
||||
};
|
||||
exports.wrapSettingWithOverride = function(a0, a1, a2, a3) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = a2;
|
||||
var env0_3 = a3;
|
||||
var closure = _fun31375;
|
||||
var object = {getSetting: closure, useSetting: _fun31376};
|
||||
object.updateSetting = makeUpdateSettingFunction(closure, _fun31377);
|
||||
return object;
|
||||
};
|
||||
exports.wrapSettingWithExperimentDefaults = function({baseSetting, isEligible, useIsEligible, eligibleDefault,
|
||||
ineligibleDefault, onUseDefault}) {
|
||||
return {getSetting: _fun31379, useSetting: _fun31380, updateSetting: _fun31381};
|
||||
};
|
||||
}
|
||||
|
||||
function makeUpdateSettingFunction(a0, a1) { // fn#31361, offset: 0x00ff66ad, size: 23 bytes, params: 3, frame: 2
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return _fun31362;
|
||||
}
|
||||
|
||||
function defineProtoSetting(a0, a1, a2, a3) { // fn#31363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:348, offset: 0x00ff66f4, size: 138 bytes, params: 5, frame: 15
|
||||
const value = a4;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
let r0 = value !== undefined ? value : {};
|
||||
const delay = r0.delay;
|
||||
const env0_4 = delay !== undefined ? delay : UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
const comparator = r0.comparator;
|
||||
r0 = comparator !== undefined ? comparator : function(a0, a1) {
|
||||
return a0 === a1;
|
||||
};
|
||||
const closure = getSetting_31365;
|
||||
const object2 = {getSetting: closure};
|
||||
object2.updateSetting = makeUpdateSettingFunction(closure, _fun31366);
|
||||
object2.useSetting = useSetting;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function wrapSettingWithSelectiveSyncing(a0, a1, a2) { // fn#31369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:794, offset: 0x00ff6867, size: 72 bytes, params: 4, frame: 14
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const closure = getSetting_31370;
|
||||
const object2 = {getSetting: closure, useSetting: useSetting};
|
||||
object2.updateSetting = makeUpdateSettingFunction(closure, _fun31373);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function wrapSettingWithOverride(a0, a1, a2, a3) { // fn#31374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:1376, offset: 0x00ff6a11, size: 79 bytes, params: 5, frame: 14
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const closure = getSetting_31375;
|
||||
const object2 = {getSetting: closure, useSetting: useSetting};
|
||||
object2.updateSetting = makeUpdateSettingFunction(closure, _fun31377);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function wrapSettingWithExperimentDefaults({baseSetting, isEligible, useIsEligible, eligibleDefault, ineligibleDefault, onUseDefault}) { // fn#31378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:1760, offset: 0x00ff6b00, size: 99 bytes, params: 2, frame: 3
|
||||
return {getSetting: getSetting_31379, useSetting: useSetting, updateSetting: function(a0) {
|
||||
return baseSetting.updateSetting(a0);
|
||||
}};
|
||||
}
|
||||
|
||||
function _fun31362(a0) { // fn#31362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:192, offset: 0x00ff66c4, size: 48 bytes, params: 2, frame: 14
|
||||
var r1;
|
||||
let value = a0;
|
||||
if (typeof value !== 'function') {
|
||||
r1 = value;
|
||||
} else {
|
||||
value = value(env0_0());
|
||||
r1 = value;
|
||||
}
|
||||
return require(r1);
|
||||
}
|
||||
|
||||
function defineProtoSettingGetSetting() { // fn#31365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:464, owner: defineProtoSetting.getSetting, offset: 0x00ff677e, size: 56 bytes, params: 1, frame: 14
|
||||
return importDefault(UserSettingsProtoStore.settings[env0_0]?.[require]);
|
||||
}
|
||||
|
||||
function _fun31366(a0) { // fn#31366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:603, offset: 0x00ff67b6, size: 71 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
const PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
|
||||
return PreloadedUserSettingsActionCreators.updateAsync(env0_0, _fun31367, env0_4);
|
||||
}
|
||||
|
||||
function defineProtoSettingUseSetting() { // fn#31368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:702, owner: defineProtoSetting.useSetting, offset: 0x00ff6824, size: 67 bytes, params: 1, frame: 17
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
|
||||
getSetting_31365, undefined, env0_5);
|
||||
}
|
||||
|
||||
function wrapSettingWithSelectiveSyncingGetSetting() { // fn#31370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:857, owner: wrapSettingWithSelectiveSyncing.getSetting, offset: 0x00ff68af, size: 73 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const property = SelectivelySyncedUserSettingsStore.getState()[require];
|
||||
let r0 = property == null ? undefined : property.settings[importDefault];
|
||||
r0 = r0 ?? env0_0.getSetting();
|
||||
return r0;
|
||||
}
|
||||
|
||||
function wrapSettingWithSelectiveSyncingUseSetting() { // fn#31371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:990, owner: wrapSettingWithSelectiveSyncing.useSetting, offset: 0x00ff68f8, size: 83 bytes, params: 1, frame: 14
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectivelySyncedUserSettingsStore],
|
||||
_fun31372) ?? env0_0.useSetting();
|
||||
}
|
||||
|
||||
function _fun31373(a0) { // fn#31373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:1188, offset: 0x00ff6982, size: 143 bytes, params: 2, frame: 18
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
if (SelectivelySyncedUserSettingsStore.shouldSync(require)) {
|
||||
r0 = env0_0.updateSetting(a0);
|
||||
} else {
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE',
|
||||
changes: {[require]: {settings: {[importDefault]: a0}}}});
|
||||
value = global.Promise.resolve();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function wrapSettingWithOverrideGetSetting() { // fn#31375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:1433, owner: wrapSettingWithOverride.getSetting, offset: 0x00ff6a60, size: 35 bytes, params: 1, frame: 10
|
||||
return importDefault() ?? env0_0.getSetting();
|
||||
}
|
||||
|
||||
function wrapSettingWithOverrideUseSetting() { // fn#31376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:1523, owner: wrapSettingWithOverride.useSetting, offset: 0x00ff6a83, size: 38 bytes, params: 1, frame: 10
|
||||
return importAll() ?? env0_0.useSetting();
|
||||
}
|
||||
|
||||
function _fun31377(a0) { // fn#31377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:1627, offset: 0x00ff6aa9, size: 87 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_OVERRIDE_CLEAR',
|
||||
settings: [require]});
|
||||
return env0_0.updateSetting(a0);
|
||||
}
|
||||
|
||||
function wrapSettingWithExperimentDefaultsGetSetting() { // fn#31379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:1920, owner: wrapSettingWithExperimentDefaults.getSetting, offset: 0x00ff6b63, size: 73 bytes, params: 1, frame: 12
|
||||
var r0;
|
||||
const setting = baseSetting.getSetting();
|
||||
if (setting != null) {
|
||||
r0 = setting;
|
||||
} else {
|
||||
if (onUseDefault != null) {
|
||||
onUseDefault();
|
||||
}
|
||||
r0 = isEligible() ? eligibleDefault() : ineligibleDefault;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function wrapSettingWithExperimentDefaultsUseSetting() { // fn#31380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:2000, owner: wrapSettingWithExperimentDefaults.useSetting, offset: 0x00ff6bac, size: 71 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
const value2 = baseSetting.useSetting();
|
||||
if (value2 != null) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
if (onUseDefault != null) {
|
||||
onUseDefault();
|
||||
}
|
||||
r0 = useIsEligible() ? eligibleDefault() : ineligibleDefault;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun31372() { // fn#31372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3972:1050, offset: 0x00ff694b, size: 55 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
const property = SelectivelySyncedUserSettingsStore.getState()[require];
|
||||
return property == null ? undefined : property.settings[importDefault];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user