decord/beta/source/modules/poggermode/PoggermodeActionCreators.tsx

74 lines
2.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 13621
// Function ID: 13622
// Name: PoggermodeActionCreators
2026-10-12 16:32:48 +00:00
// Dependencies: [502, 7366, 13622, 584, 13624, 2]
// Exports: clearMessageCombo, updateCombo, updateComboOnMessageSend, updatePoggermodeSettings
2026-10-12 16:32:48 +00:00
// Module 13621 (PoggermodeActionCreators)
2026-10-07 22:43:51 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
2026-10-12 16:32:48 +00:00
import trackPoggermodeSettingsUpdatedDefault from "trackPoggermodeSettingsUpdated" /* 13624 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
2026-10-12 16:32:48 +00:00
import PoggermodeSettingsStore from "PoggermodeSettingsStore" /* 7366 */;
import PoggermodeStore from "PoggermodeStore" /* 13622 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/poggermode/PoggermodeActionCreators.tsx");
export const updatePoggermodeSettings = function updatePoggermodeSettings(settings) {
2026-10-01 14:13:23 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "POGGERMODE_SETTINGS_UPDATE", settings };
obj.dispatch(obj2);
const obj3 = {};
const merged = Object.assign(PoggermodeSettingsStore.getState());
const merged1 = Object.assign(settings);
2026-10-01 14:13:23 +00:00
trackPoggermodeSettingsUpdatedDefault(obj3);
};
export const updateCombo = function updateCombo(arg0) {
2026-10-01 14:13:23 +00:00
const dispatch = DispatcherDefault.dispatch;
const obj = { type: "POGGERMODE_UPDATE_COMBO" };
DispatcherDefault;
const merged = Object.assign(arg0);
2026-10-01 14:13:23 +00:00
dispatch(obj);
};
export const clearMessageCombo = function clearMessageCombo(arg0) {
2026-10-01 14:13:23 +00:00
let obj2;
const obj = { type: "POGGERMODE_UPDATE_MESSAGE_COMBO", comboMessage: obj2 };
obj2 = { displayed: true };
const dispatch = DispatcherDefault.dispatch;
DispatcherDefault;
const merged = Object.assign(arg0);
2026-10-01 14:13:23 +00:00
dispatch(obj);
};
export const updateComboOnMessageSend = function updateComboOnMessageSend(channelId, id) {
2026-10-01 14:13:23 +00:00
let obj3;
id = AuthenticationStore.getId();
const iter = PoggermodeStore.getUserCombo(id, channelId);
if (null != iter) {
2026-10-01 14:13:23 +00:00
const obj2 = { type: "POGGERMODE_UPDATE_MESSAGE_COMBO", comboMessage: obj3 };
obj3 = { combo: iter, channelId, messageId: id, displayed: false };
const obj = DispatcherDefault;
obj.dispatch(obj2);
}
let num = 1;
if (null != iter) {
2026-10-01 14:13:23 +00:00
let value;
if (iter != null) {
value = iter.value;
}
num = 1;
if (value > 0) {
let num3;
if (iter != null) {
num3 = iter.multiplier;
}
if (num3 == null) {
num3 = 0;
}
num = num3 + 1;
}
}
2026-10-01 14:13:23 +00:00
const obj4 = DispatcherDefault;
const obj5 = { type: "POGGERMODE_UPDATE_COMBO", channelId, userId: id, multiplier: num, value: 0 };
obj4.dispatch(obj5);
};