Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,50 @@
|
||||
/* Metro module 7218; source: modules/poggermode/PoggermodeActionCreators.tsx; dependencies: [1226, 7072, 7219, 694, 7221, 2] */
|
||||
function _fun57717(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7396:6, offset: 0x016b4500, size: 183 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const poggermodeSettingsStore = importDefault(7072) /* metro dependency 7072: PoggermodeSettingsStore */;
|
||||
const poggermodeStore = importDefault(7219) /* metro dependency 7219: PoggermodeStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/poggermode/PoggermodeActionCreators.tsx');
|
||||
exports.updatePoggermodeSettings = function(a0) {
|
||||
importDefault(dependencyMap[3]).dispatch({type: 'POGGERMODE_SETTINGS_UPDATE', settings: a0});
|
||||
object = {};
|
||||
copyDataProperties(object, PoggermodeSettingsStore.getState(), 'POGGERMODE_SETTINGS_UPDATE');
|
||||
copyDataProperties(object, a0, 'POGGERMODE_SETTINGS_UPDATE');
|
||||
importDefault(dependencyMap[4])(object);
|
||||
};
|
||||
exports.updateCombo = updateCombo;
|
||||
exports.clearMessageCombo = clearMessageCombo;
|
||||
exports.updateComboOnMessageSend = updateComboOnMessageSend;
|
||||
}
|
||||
|
||||
function updateCombo(a0) { // fn#57719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7396:391, offset: 0x016b4622, size: 59 bytes, params: 2, frame: 14
|
||||
const value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = value.dispatch;
|
||||
const object2 = {type: 'POGGERMODE_UPDATE_COMBO'};
|
||||
copyDataProperties(object2, a0, 'POGGERMODE_UPDATE_COMBO');
|
||||
Reflect.apply(dispatch, value, [object2]);
|
||||
}
|
||||
|
||||
function clearMessageCombo(a0) { // fn#57720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7396:492, offset: 0x016b465d, size: 79 bytes, params: 2, frame: 16
|
||||
const value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = value.dispatch;
|
||||
const object = {};
|
||||
copyDataProperties(object, a0, undefined);
|
||||
object['displayed'] = true;
|
||||
Reflect.apply(dispatch, value, [{type: 'POGGERMODE_UPDATE_MESSAGE_COMBO', comboMessage: object}]);
|
||||
}
|
||||
|
||||
function updateComboOnMessageSend(a0, a1) { // fn#57721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7396:642, offset: 0x016b46ac, size: 253 bytes, params: 3, frame: 19
|
||||
const id = AuthenticationStore.getId();
|
||||
const userCombo = PoggermodeStore.getUserCombo(id, a0);
|
||||
if (userCombo != null) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'POGGERMODE_UPDATE_MESSAGE_COMBO',
|
||||
comboMessage: {combo: userCombo, channelId: a0, messageId: a1, displayed: false}});
|
||||
}
|
||||
const value4 = 1;
|
||||
const r4 = userCombo != null && userCombo?.value > 0 ? (userCombo?.multiplier ?? 0) + value4 : value4;
|
||||
const value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'POGGERMODE_UPDATE_COMBO', channelId: a0, userId: id, multiplier: r4, value: 0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
/* Metro module 7073; source: modules/poggermode/PoggermodeConstants.tsx; dependencies: [2] */
|
||||
function _fun56368(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7251:6, offset: 0x013c5f17, size: 1145 bytes, params: 8, frame: 23
|
||||
var object5;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object5 = {CHAT_INPUT: 0};
|
||||
object5[0] = 'CHAT_INPUT';
|
||||
object5.REACTION = 1;
|
||||
object5[1] = 'REACTION';
|
||||
object5.MEMBER_USER = 2;
|
||||
object5[2] = 'MEMBER_USER';
|
||||
object5.CALL_TILE = 3;
|
||||
object5[3] = 'CALL_TILE';
|
||||
const object6 = {CHAT_INPUT: 0};
|
||||
object6[0] = 'CHAT_INPUT';
|
||||
object6.VOICE_USER = 1;
|
||||
object6[1] = 'VOICE_USER';
|
||||
object6.MENTION = 2;
|
||||
object6[2] = 'MENTION';
|
||||
const object7 = {LEVEL_1: 0};
|
||||
object7[0] = 'LEVEL_1';
|
||||
object7.LEVEL_2 = 1;
|
||||
object7[1] = 'LEVEL_2';
|
||||
object7.LEVEL_3 = 2;
|
||||
object7[2] = 'LEVEL_3';
|
||||
object7.LEVEL_4 = 3;
|
||||
object7[3] = 'LEVEL_4';
|
||||
object7.LEVEL_5 = 4;
|
||||
object7[4] = 'LEVEL_5';
|
||||
const object8 = {};
|
||||
let LEVEL_1 = object7.LEVEL_1;
|
||||
object8[LEVEL_1] = [[1, 0.0001], [25, 0.05], [50, 0.1], [100, 0.5], [250, 1], [500, 2], [1000, 3], [9001, 4]];
|
||||
let LEVEL_2 = object7.LEVEL_2;
|
||||
object8[LEVEL_2] = [[1, 0.0001], [25, 0.25], [50, 0.5], [100, 1], [250, 2.5], [500, 5], [1000, 7.5], [9001, 10]];
|
||||
let LEVEL_3 = object7.LEVEL_3;
|
||||
object8[LEVEL_3] = [[1, 0.001], [25, 0.5], [50, 1], [100, 2], [250, 4], [500, 8], [1000, 12], [9001, 16]];
|
||||
let LEVEL_4 = object7.LEVEL_4;
|
||||
object8[LEVEL_4] = [[1, 0.25], [25, 0.75], [50, 1], [100, 2], [250, 4], [500, 8], [1000, 20], [9001, 50]];
|
||||
let LEVEL_5 = object7.LEVEL_5;
|
||||
object8[LEVEL_5] = [[1, 0.001], [25, 0.5], [50, 1], [100, 2], [250, 5], [500, 10], [1000, 100], [9001, 10000]];
|
||||
Object = global.Object;
|
||||
let value = Object.keys(object8);
|
||||
let reduce = value.reduce;
|
||||
LEVEL_1 = object7.LEVEL_1;
|
||||
LEVEL_2 = object7.LEVEL_2;
|
||||
LEVEL_3 = object7.LEVEL_3;
|
||||
LEVEL_4 = object7.LEVEL_4;
|
||||
LEVEL_5 = object7.LEVEL_5;
|
||||
value = Reflect.apply(reduce, value, [_fun56369, {[LEVEL_1]: [], [LEVEL_2]: [], [LEVEL_3]: [], [LEVEL_4]: [],
|
||||
[LEVEL_5]: []}]);
|
||||
Object = global.Object;
|
||||
const value2 = Object.keys(object8);
|
||||
reduce = value2.reduce;
|
||||
LEVEL_1 = object7.LEVEL_1;
|
||||
LEVEL_2 = object7.LEVEL_2;
|
||||
LEVEL_3 = object7.LEVEL_3;
|
||||
LEVEL_4 = object7.LEVEL_4;
|
||||
LEVEL_5 = object7.LEVEL_5;
|
||||
const value3 = Reflect.apply(reduce, value2, [_fun56371, {[LEVEL_1]: [], [LEVEL_2]: [], [LEVEL_3]: [],
|
||||
[LEVEL_4]: [], [LEVEL_5]: []}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/poggermode/PoggermodeConstants.tsx');
|
||||
exports.ConfettiLocation = object5;
|
||||
exports.ShakeLocation = object6;
|
||||
exports.ShakeLevel = object7;
|
||||
exports.SHAKE_STEPS = value;
|
||||
exports.SHAKE_STEP_DIVIDER = value3;
|
||||
}
|
||||
|
||||
function _fun56369(a0, a1) { // fn#56369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7251:955, offset: 0x013c6390, size: 50 bytes, params: 3, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
const property = env0_0[a1];
|
||||
object2[a1] = property.map(function(a0) {
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var item2 = iterator.next();
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r0 = value2 ? value : item;
|
||||
if (!value2) {
|
||||
item2.return();
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun56371(a0, a1) { // fn#56371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7251:1100, offset: 0x013c63c2, size: 50 bytes, params: 3, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
const property = env0_0[a1];
|
||||
object2[a1] = property.map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
if (value2) {
|
||||
r0 = value;
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = value;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
/* Metro module 7072; source: modules/poggermode/PoggermodeSettingsStore.tsx; dependencies: [6, 7, 15, 17, 18, 7073, 22, 566, 694, 2] */
|
||||
function _fun56350(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:6, offset: 0x013c5a6d, size: 447 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = require(7073) /* metro dependency 7073: PoggermodeConstants */;
|
||||
const ShakeLocation = value.ShakeLocation;
|
||||
const ConfettiLocation = value.ConfettiLocation;
|
||||
object2 = {'settingsVisible': false, 'enabled': false, 'combosEnabled': true, 'combosRequiredCount': 5,
|
||||
'comboSoundsEnabled': true, 'screenshakeEnabled': true, 'screenshakeEnabledLocations': null,
|
||||
'shakeIntensity': 1, 'confettiEnabled': true, 'confettiEnabledLocations': null, 'confettiSize': 16,
|
||||
'confettiCount': 5, 'warningSeen': false};
|
||||
let CHAT_INPUT = ShakeLocation.CHAT_INPUT;
|
||||
const VOICE_USER = ShakeLocation.VOICE_USER;
|
||||
const MENTION = ShakeLocation.MENTION;
|
||||
object2.screenshakeEnabledLocations = {[CHAT_INPUT]: true, [VOICE_USER]: false, [MENTION]: false};
|
||||
CHAT_INPUT = ConfettiLocation.CHAT_INPUT;
|
||||
const REACTION = ConfettiLocation.REACTION;
|
||||
const MEMBER_USER = ConfettiLocation.MEMBER_USER;
|
||||
const CALL_TILE = ConfettiLocation.CALL_TILE;
|
||||
object2.confettiEnabledLocations = {[CHAT_INPUT]: true, [REACTION]: true, [MEMBER_USER]: true, [CALL_TILE]: true};
|
||||
const env0_6 = (require(22) /* metro dependency 22 */).cloneDeep(object2);
|
||||
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
|
||||
value = _fun56354(DeviceSettingsStore);
|
||||
value.displayName = 'PoggermodeSettingsStore';
|
||||
value.persistKey = 'PoggermodeSettingsStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{POGGERMODE_SETTINGS_UPDATE: POGGERMODE_SETTINGS_UPDATE, POGGERMODE_TEMPORARILY_DISABLED: function() {
|
||||
env0_5 = true;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/poggermode/PoggermodeSettingsStore.tsx');
|
||||
exports.default = value;
|
||||
exports.initialState = object2;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_56351() { // fn#56351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:197, offset: 0x013c5c2c, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_56351_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun56354(a0) { // fn#56354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:806, offset: 0x013c5c8a, size: 275 bytes, params: 2, frame: 16
|
||||
const closure = PoggermodeSettingsStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: value_56356}, {key: 'getUserAgnosticState', value: value_56357},
|
||||
{key: 'settingsVisible', get: get_56358}, {key: 'isEnabled', value: value_56359}, {key: 'shakeIntensity',
|
||||
get: get_56360}, {key: 'combosRequiredCount', get: get_56361}, {key: 'screenshakeEnabled', get: get_56362},
|
||||
{key: 'screenshakeEnabledLocations', get: get_56363}, {key: 'combosEnabled', get: get_56364},
|
||||
{key: 'comboSoundsEnabled', get: get_56365}]);
|
||||
}
|
||||
|
||||
function POGGERMODE_SETTINGS_UPDATE({settings}) { // fn#56366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:2179, offset: 0x013c5eec, size: 43 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, settings, copyDataProperties(object2, env0_6, undefined));
|
||||
}
|
||||
|
||||
function value_56356(a0) { // fn#56356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1151, offset: 0x013c5d9d, size: 34 bytes, params: 2, frame: 12
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, copyDataProperties(object2, env1_6, undefined));
|
||||
}
|
||||
|
||||
function get_56358() { // fn#56358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1262, offset: 0x013c5dbf, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_6.settingsVisible;
|
||||
}
|
||||
|
||||
function value_56359() { // fn#56359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1323, offset: 0x013c5dce, size: 160 bytes, params: 1, frame: 7
|
||||
var r1;
|
||||
let value = a0;
|
||||
let r0 = value !== undefined ? value : {};
|
||||
const confettiLocation = r0.confettiLocation;
|
||||
const shakeLocation = r0.shakeLocation;
|
||||
const r2 = confettiLocation == null || env1_6.confettiEnabled && env1_6.confettiEnabledLocations[confettiLocation];
|
||||
value = shakeLocation == null;
|
||||
if (value) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
r1 = env1_6.screenshakeEnabled && env1_6.screenshakeEnabledLocations[shakeLocation];
|
||||
}
|
||||
const settingsVisible = this.settingsVisible;
|
||||
if (settingsVisible) {
|
||||
value = environment.__proto__;
|
||||
value = !env1_5;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = settingsVisible;
|
||||
}
|
||||
r0 = r0 && env1_6.enabled && r2 && r1;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function get_56360() { // fn#56360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1580, offset: 0x013c5e6e, size: 33 bytes, params: 1, frame: 9
|
||||
return this.isEnabled() ? env1_6.shakeIntensity : 0;
|
||||
}
|
||||
|
||||
function get_56361() { // fn#56361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1667, offset: 0x013c5e8f, size: 33 bytes, params: 1, frame: 9
|
||||
return this.isEnabled() ? env1_6.combosRequiredCount : 0;
|
||||
}
|
||||
|
||||
function get_56362() { // fn#56362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1758, offset: 0x013c5eb0, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_6.screenshakeEnabled;
|
||||
}
|
||||
|
||||
function get_56363() { // fn#56363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1838, offset: 0x013c5ebf, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_6.screenshakeEnabledLocations;
|
||||
}
|
||||
|
||||
function get_56364() { // fn#56364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1913, offset: 0x013c5ece, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_6.combosEnabled;
|
||||
}
|
||||
|
||||
function get_56365() { // fn#56365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7250:1979, offset: 0x013c5edd, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_6.comboSoundsEnabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,316 @@
|
||||
/* Metro module 7219; source: modules/poggermode/PoggermodeStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 1934, 7072, 7073, 661, 3780, 4041, 7220, 1239, 566, 694, 2] */
|
||||
function _fun57722(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:6, offset: 0x016b47a9, size: 586 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
var r1;
|
||||
var r0;
|
||||
var value = a0 != null;
|
||||
if (value) {
|
||||
value = a0.value > 0;
|
||||
if (value) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value = undefined;
|
||||
value = (a0 == null ? value : a0.multiplier) > 1;
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const closure2 = function(a0, a1, a2, a3) {
|
||||
var r1;
|
||||
var r0;
|
||||
var value = a0 === a1;
|
||||
if (value) {
|
||||
r1 = a2 != null && !a3.has(a2);
|
||||
if (r1) {
|
||||
a3.add(a2);
|
||||
r1 = true;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const poggermodeSettingsStore = importDefault(7072) /* metro dependency 7072: PoggermodeSettingsStore */;
|
||||
const poggermodeConstantsModule = require(7073) /* metro dependency 7073: PoggermodeConstants */;
|
||||
const env0_10 = poggermodeConstantsModule.ShakeLevel;
|
||||
const env0_11 = poggermodeConstantsModule.ShakeLocation;
|
||||
const env0_12 = (require(661) /* metro dependency 661: Constants */).ComponentActions;
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
const SecondaryIndexMap = (require(3780) /* metro dependency 3780: SecondaryIndexMap */).SecondaryIndexMap;
|
||||
let secondaryIndexMap = new SecondaryIndexMap(function({userId, channelId}) {
|
||||
return [userId, channelId];
|
||||
}, function({userId, channelId}) {
|
||||
return '' + channelId + '-' + userId;
|
||||
});
|
||||
secondaryIndexMap = new SecondaryIndexMap(function(a0) {
|
||||
var messageId = a0.messageId;
|
||||
var channelId = a0.channelId;
|
||||
var userId = a0.combo.userId;
|
||||
return [messageId, channelId, userId];
|
||||
}, function(a0) {
|
||||
var messageId = a0.messageId;
|
||||
var channelId = a0.channelId;
|
||||
var userId = a0.combo.userId;
|
||||
return '' + channelId + '-' + userId + '-' + messageId;
|
||||
});
|
||||
const closure7 = function({userId, channelId}) {
|
||||
return '' + userId + '-' + channelId;
|
||||
};
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun57735(Store).displayName = 'PoggermodeStore';
|
||||
secondaryIndexMap = new secondaryIndexMap(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{POGGERMODE_UPDATE_COMBO: function(a0) {
|
||||
var r3;
|
||||
a0.type;
|
||||
var value = Object.create(null);
|
||||
value.type = 0;
|
||||
value = copyDataProperties({}, a0, value, r3);
|
||||
if (PoggermodeSettingsStore.isEnabled()) {
|
||||
updateCombo_57727(value);
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}, POGGERMODE_UPDATE_MESSAGE_COMBO: POGGERMODE_UPDATE_MESSAGE_COMBO, MESSAGE_CREATE: MESSAGE_CREATE_57746});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/poggermode/PoggermodeStore.tsx');
|
||||
exports.default = secondaryIndexMap;
|
||||
exports.isComboing = closure;
|
||||
exports.getComboId = closure7;
|
||||
exports.shouldTrackMessage = closure2;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_57723() { // fn#57723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:248, offset: 0x016b49f3, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_57723_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function updateCombo_57727(a0) { // fn#57727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:914, offset: 0x016b4a86, size: 327 bytes, params: 2, frame: 22
|
||||
var interval;
|
||||
const value = undefined;
|
||||
value !== value;
|
||||
let binding = env0_14;
|
||||
const value3 = binding.get(getComboId_57734(a0));
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, value3, undefined);
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
let r7 = a0.value ?? (value3 == null ? value : value3.value);
|
||||
object2['value'] = r7 ?? 0;
|
||||
const Math = global.Math;
|
||||
object2['multiplier'] = Math.min(a0.multiplier ?? (value3 == null ? value : value3.multiplier) ?? 1, 7);
|
||||
let decayInterval = value3 == null ? value : value3.decayInterval;
|
||||
if (decayInterval != null) {
|
||||
r7 = decayInterval;
|
||||
} else {
|
||||
interval = new (require(4041) /* metro dependency 4041: Timers */).Interval();
|
||||
}
|
||||
object2['decayInterval'] = r7;
|
||||
binding = env0_14;
|
||||
binding.set(getComboId_57734(a0), object2);
|
||||
decayInterval = object2.decayInterval;
|
||||
if (decayInterval != null) {
|
||||
decayInterval.start(1000, _fun57728);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun57735(a0) { // fn#57735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:1674, offset: 0x016b4dd2, size: 214 bytes, params: 2, frame: 16
|
||||
const closure = PoggermodeStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(AuthenticationStore, PoggermodeSettingsStore, SelectedChannelStore);
|
||||
}}, {key: 'getComboScore', value: value_57738}, {key: 'getUserCombo', value: value_57739}, {key: 'isComboing',
|
||||
value: value_57740}, {key: 'getMessageCombo', value: value_57741}, {key: 'getMostRecentMessageCombo',
|
||||
value: value_57742}, {key: 'getUserComboShakeIntensity', value: value_57743}]);
|
||||
}
|
||||
|
||||
function POGGERMODE_UPDATE_MESSAGE_COMBO({comboMessage}) { // fn#57745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:2926, offset: 0x016b5086, size: 57 bytes, params: 2, frame: 13
|
||||
var binding;
|
||||
if (PoggermodeSettingsStore.isEnabled()) {
|
||||
binding = env0_15;
|
||||
binding.set(comboMessage.messageId, comboMessage);
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function MESSAGE_CREATE_57746({channelId, message}) { // fn#57746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:3078, offset: 0x016b50bf, size: 422 bytes, params: 2, frame: 24
|
||||
var r4;
|
||||
var binding;
|
||||
var value5;
|
||||
var moduleValue;
|
||||
var ComponentDispatch;
|
||||
const mentions = message.mentions;
|
||||
const author = message.author;
|
||||
if (PoggermodeSettingsStore.isEnabled()) {
|
||||
if (shouldTrackMessage(author?.id, AuthenticationStore.getId(), message.nonce, env0_13)) {
|
||||
binding = env0_14;
|
||||
value5 = binding.get(getComboId_57734({userId: author?.id ?? '???', channelId: channelId}));
|
||||
if (PoggermodeSettingsStore.screenshakeEnabled) {
|
||||
if (PoggermodeSettingsStore.screenshakeEnabledLocations[ShakeLocation.MENTION]) {
|
||||
if (mentions == null) {
|
||||
return false;
|
||||
}
|
||||
if (mentions.find(_fun57747) != null) {
|
||||
if (value5 != null) {
|
||||
moduleValue = require(7220) /* metro dependency 7220: PoggermodeUtils */;
|
||||
r4 = moduleValue.getComboShakeIntensity(value5, ShakeLevel.LEVEL_4) ?? 0.001;
|
||||
} else {
|
||||
r4 = 4 * global.Math.random();
|
||||
}
|
||||
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
ComponentDispatch.dispatch(ComponentActions.SHAKE_APP, {duration: 1000, intensity: r4});
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function _fun57728() { // fn#57728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:1298, offset: 0x016b4bcd, size: 244 bytes, params: 1, frame: 18
|
||||
var updateCombo_57727Binding;
|
||||
var object2;
|
||||
var decayInterval;
|
||||
const value3 = env1_14.get(getComboId_57734(env0_0));
|
||||
if (value3 != null) {
|
||||
if (value3.value <= 0) {
|
||||
decayInterval = value3.decayInterval;
|
||||
if (decayInterval != null) {
|
||||
decayInterval.stop();
|
||||
}
|
||||
if (value3.value <= 0) {
|
||||
updateCombo_57727Binding = updateCombo_57727;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value3, undefined);
|
||||
object2['value'] = 0;
|
||||
object2['multiplier'] = 1;
|
||||
updateCombo_57727Binding(object2);
|
||||
env1_17.emitChange();
|
||||
}
|
||||
} else if (env0_0.multiplier !== value3.multiplier && env0_0.value !== value3.value) {
|
||||
decayInterval = value3.decayInterval;
|
||||
if (decayInterval != null) {
|
||||
decayInterval.stop();
|
||||
}
|
||||
if (value3.value <= 0) {
|
||||
updateCombo_57727Binding = updateCombo_57727;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value3, undefined);
|
||||
object2['value'] = 0;
|
||||
object2['multiplier'] = 1;
|
||||
updateCombo_57727Binding(object2);
|
||||
env1_17.emitChange();
|
||||
}
|
||||
} else {
|
||||
updateCombo_57727Binding = updateCombo_57727;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value3, undefined);
|
||||
object2['value'] = value3.value - 1;
|
||||
updateCombo_57727Binding(object2);
|
||||
env1_17.emitChange();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_57738(a0, a1) { // fn#57738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:2039, offset: 0x016b4ecb, size: 88 bytes, params: 3, frame: 14
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
const value2 = env1_14.get(getComboId_57734({userId: a0, channelId: a1}));
|
||||
if (value2 == null) {
|
||||
r0 = 0;
|
||||
} else {
|
||||
value = require(7220) /* metro dependency 7220: PoggermodeUtils */;
|
||||
value = value.getComboScore(value2);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_57739(a0, a1) { // fn#57739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:2172, offset: 0x016b4f23, size: 46 bytes, params: 3, frame: 13
|
||||
return env1_14.get(getComboId_57734({userId: a0, channelId: a1}));
|
||||
}
|
||||
|
||||
function value_57740(a0, a1) { // fn#57740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:2261, offset: 0x016b4f51, size: 71 bytes, params: 3, frame: 13
|
||||
var value6;
|
||||
let value = this.getUserCombo(a0, a1);
|
||||
let r0 = value != null && value.value >= PoggermodeSettingsStore.combosRequiredCount;
|
||||
if (r0) {
|
||||
value6 = environment.__proto__;
|
||||
value = isComboing(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_57741(a0) { // fn#57741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:2398, offset: 0x016b4f98, size: 51 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = env1_15.get(a0);
|
||||
const value2 = undefined;
|
||||
return (value == null ? value2 : value.combo) ?? value2;
|
||||
}
|
||||
|
||||
function value_57742(a0) { // fn#57742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:2517, offset: 0x016b4fcb, size: 38 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = env1_15.values(a0);
|
||||
return value[value.length - 1];
|
||||
}
|
||||
|
||||
function value_57743(a0, a1, a2, a3) { // fn#57743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7397:2610, offset: 0x016b4ff1, size: 81 bytes, params: 5, frame: 14
|
||||
var r0;
|
||||
var value3;
|
||||
let value = this.getUserCombo(a0, a1);
|
||||
if (value != null) {
|
||||
value3 = environment.__proto__;
|
||||
value = (require(7220) /* metro dependency 7220: PoggermodeUtils */).getComboShakeIntensity(value, a3);
|
||||
value *= a2;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = 0;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,182 @@
|
||||
/* Metro module 7220; source: modules/poggermode/PoggermodeUtils.tsx; dependencies: [7073, 696, 2] */
|
||||
function _fun57748(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:6, offset: 0x016b5265, size: 321 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const poggermodeConstantsModule = require(7073) /* metro dependency 7073: PoggermodeConstants */;
|
||||
const env0_2 = poggermodeConstantsModule.ShakeLevel;
|
||||
const env0_3 = poggermodeConstantsModule.SHAKE_STEPS;
|
||||
const env0_4 = poggermodeConstantsModule.SHAKE_STEP_DIVIDER;
|
||||
items = [[1, 0.001], [25, 0.3], [100, 0.5], [250, 0.8], [500, 0.9], [2500, 0.95], [9001, 1]];
|
||||
const env0_6 = items.map(function(a0) {
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var item2 = iterator.next();
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r0 = value2 ? value : item;
|
||||
if (!value2) {
|
||||
item2.return();
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
const env0_7 = items.map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
if (value2) {
|
||||
r0 = value;
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = value;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/poggermode/PoggermodeUtils.tsx');
|
||||
exports.getComboShakeIntensity = getComboShakeIntensity;
|
||||
exports.getComboPercentage = getComboPercentage;
|
||||
exports.getComboStyles = getComboStyles;
|
||||
exports.getComboScore = function({value, multiplier}) {
|
||||
return value * (multiplier ?? 1);
|
||||
};
|
||||
}
|
||||
|
||||
function getStepwiseValue({multiplier, value = 1}, a1) { // fn#57749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:177, offset: 0x016b53a6, size: 155 bytes, params: 3, frame: 21
|
||||
var r6;
|
||||
var r7;
|
||||
var item3;
|
||||
var value5;
|
||||
let value = a2;
|
||||
const iterator = a1[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value4 = item2 === undefined;
|
||||
const r3 = value4 ? undefined : item;
|
||||
if (value4) {
|
||||
r6 = item2;
|
||||
r7 = value4;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value5 = item3 === undefined;
|
||||
if (value5) {
|
||||
r6 = item3;
|
||||
r7 = value5;
|
||||
} else {
|
||||
r6 = item3;
|
||||
r7 = value5;
|
||||
}
|
||||
}
|
||||
if (!r7) {
|
||||
r6.return();
|
||||
}
|
||||
value = value * multiplier;
|
||||
if (value <= 0) {
|
||||
return 0;
|
||||
}
|
||||
value = r3.reduce(_fun57750, 0);
|
||||
const Math = global.Math;
|
||||
return Math.min(value, value);
|
||||
}
|
||||
|
||||
function getComboShakeIntensity(a0) { // fn#57753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:618, offset: 0x016b54c3, size: 75 bytes, params: 2, frame: 16
|
||||
const value = a1;
|
||||
const r1 = value !== undefined ? value : ShakeLevel.LEVEL_3;
|
||||
return getStepwiseValue(a0, [SHAKE_STEPS[r1], SHAKE_STEP_DIVIDER[r1]], 100000);
|
||||
}
|
||||
|
||||
function getComboPercentage(a0) { // fn#57754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:692, offset: 0x016b550e, size: 44 bytes, params: 2, frame: 15
|
||||
return getStepwiseValue(a0, [env0_6, env0_7], 1);
|
||||
}
|
||||
|
||||
function getComboStyles(a0) { // fn#57755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:740, offset: 0x016b553a, size: 319 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var object2;
|
||||
if (a0 === 1) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('BRAND_500');
|
||||
r0 = object2;
|
||||
} else if (a0 === 2) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('GREEN_360');
|
||||
r0 = object2;
|
||||
} else if (a0 === 3) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('GREEN_360');
|
||||
r0 = object2;
|
||||
} else if (a0 === 4) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('YELLOW_300');
|
||||
object2.square = true;
|
||||
r0 = object2;
|
||||
} else if (a0 === 5) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('YELLOW_300');
|
||||
object2.square = true;
|
||||
r0 = object2;
|
||||
} else if (a0 === 6) {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('RED_400');
|
||||
object2.square = true;
|
||||
r0 = object2;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('ORANGE_345');
|
||||
object2.flair = true;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun57750(a0, a1, a2) { // fn#57750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7398:257, offset: 0x016b5441, size: 130 bytes, params: 4, frame: 7
|
||||
var property;
|
||||
var binding;
|
||||
var property2;
|
||||
var property3;
|
||||
let value = a0;
|
||||
if (env0_2 > a1) {
|
||||
property = env0_1[a2];
|
||||
value = a2 + 1;
|
||||
if (value === env0_0.length) {
|
||||
return env0_1[a2];
|
||||
}
|
||||
binding = env0_0;
|
||||
property2 = binding[a2 + 1];
|
||||
binding = env0_1;
|
||||
property3 = binding[a2 + 1];
|
||||
value = env0_2 - a1;
|
||||
value /= property2 - a1;
|
||||
return value * (property3 - property) + property;
|
||||
}
|
||||
return env0_2 !== a1 ? value : env0_1[a2];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
/* Metro module 7221; source: modules/poggermode/trackPoggermodeSettingsUpdated.tsx; dependencies: [7073, 661, 22, 683, 2] */
|
||||
function _fun57757(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7399:6, offset: 0x016b569c, size: 207 bytes, params: 8, frame: 19
|
||||
const getScreenshakeLocationName = function(a0) {
|
||||
if (ShakeLocation.CHAT_INPUT === a0) {
|
||||
return 'chat_input';
|
||||
}
|
||||
if (ShakeLocation.MENTION === a0) {
|
||||
return 'mention';
|
||||
}
|
||||
if (ShakeLocation.VOICE_USER === a0) {
|
||||
return 'voice_user';
|
||||
}
|
||||
};
|
||||
const getConfettiLocationName = function(a0) {
|
||||
if (ConfettiLocation.CHAT_INPUT === a0) {
|
||||
return 'chat_input';
|
||||
}
|
||||
if (ConfettiLocation.MEMBER_USER === a0) {
|
||||
return 'member_user';
|
||||
}
|
||||
if (ConfettiLocation.REACTION === a0) {
|
||||
return 'reaction';
|
||||
}
|
||||
if (ConfettiLocation.CALL_TILE === a0) {
|
||||
return 'call_tile';
|
||||
}
|
||||
};
|
||||
const getListOfEnabledLocations = function(a0, a1) {
|
||||
var env0_0 = a1;
|
||||
var Object = global.Object;
|
||||
var value = Object.entries(a0);
|
||||
value = value.filter(_fun57761);
|
||||
return value.map(_fun57762);
|
||||
};
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(7073) /* metro dependency 7073: PoggermodeConstants */;
|
||||
const env0_2 = value.ShakeLocation;
|
||||
const env0_3 = value.ConfettiLocation;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.throttle(_fun57763, 5000);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/poggermode/trackPoggermodeSettingsUpdated.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function getListOfEnabledLocations(a0, a1) { // fn#57760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7399:516, offset: 0x016b5815, size: 63 bytes, params: 3, frame: 12
|
||||
const env0_0 = a1;
|
||||
const Object = global.Object;
|
||||
let value = Object.entries(a0);
|
||||
value = value.filter(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
if (value2) {
|
||||
r0 = value;
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = value;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
return value.map(function(a0) {
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var item2 = iterator.next();
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r4 = value2 ? value : item;
|
||||
if (!value2) {
|
||||
item2.return();
|
||||
}
|
||||
var Number = global.Number;
|
||||
return require(Number.parseInt(r4));
|
||||
});
|
||||
}
|
||||
|
||||
function _fun57763({enabled, combosEnabled, combosRequiredCount, screenshakeEnabled, shakeIntensity, screenshakeEnabledLocations, confettiEnabled, confettiSize, confettiCount, confettiEnabledLocations}) { // fn#57763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7399:662, offset: 0x016b5896, size: 203 bytes, params: 2, frame: 25
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const POGGERMODE_SETTINGS_UPDATED = AnalyticEvents.POGGERMODE_SETTINGS_UPDATED;
|
||||
const object2 = {enabled: enabled, combos_enabled: combosEnabled, combos_required_count: combosRequiredCount,
|
||||
screenshake_enabled: screenshakeEnabled, shake_intensity: shakeIntensity};
|
||||
const getListOfEnabledLocationsBinding = getListOfEnabledLocations;
|
||||
object2.screenshake_enabled_locations = getListOfEnabledLocationsBinding(screenshakeEnabledLocations,
|
||||
getScreenshakeLocationName);
|
||||
object2.confetti_enabled = confettiEnabled;
|
||||
object2.confetti_size = confettiSize;
|
||||
object2.confetti_count = confettiCount;
|
||||
object2.confetti_enabled_locations = getListOfEnabledLocationsBinding(confettiEnabledLocations,
|
||||
getConfettiLocationName);
|
||||
Reflect.apply(track, defaultImport, [POGGERMODE_SETTINGS_UPDATED, object2]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user