54 lines
3.6 KiB
TypeScript
54 lines
3.6 KiB
TypeScript
/* Metro module 7218; source: modules/poggermode/PoggermodeActionCreators.tsx; dependencies: [1226, 7072, 7219, 694, 7221, 2] */
|
|
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
|
|
import PoggermodeSettingsStore from './PoggermodeSettingsStore.tsx'; /* Metro dependency 7072 */
|
|
import PoggermodeStore from './PoggermodeStore.tsx'; /* Metro dependency 7219 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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});
|
|
(FileImportTrackerModule).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 dispatch = Dispatcher.dispatch;
|
|
const object = {type: 'POGGERMODE_UPDATE_COMBO'};
|
|
copyDataProperties(object, a0, 'POGGERMODE_UPDATE_COMBO');
|
|
Reflect.apply(dispatch, Dispatcher, [object]);
|
|
}
|
|
|
|
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 dispatch = Dispatcher.dispatch;
|
|
const object2 = {};
|
|
copyDataProperties(object2, a0, undefined);
|
|
object2['displayed'] = true;
|
|
Reflect.apply(dispatch, Dispatcher, [{type: 'POGGERMODE_UPDATE_MESSAGE_COMBO', comboMessage: object2}]);
|
|
}
|
|
|
|
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});
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun57717, 7218, [1226, 7072, 7219, 694, 7221,
|
|
2]) /* metro module 7218, dependencies: [1226, 7072, 7219, 694, 7221, 2] */;
|