Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
63 lines
2.3 KiB
TypeScript
63 lines
2.3 KiB
TypeScript
// Module ID: 7944
|
|
// Function ID: 7945
|
|
// Name: PoggermodeActionCreators
|
|
// Dependencies: [502, 7786, 7945, 573, 7947, 2]
|
|
// Exports: clearMessageCombo, updateCombo, updateComboOnMessageSend, updatePoggermodeSettings
|
|
|
|
// Module 7944 (PoggermodeActionCreators)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import trackPoggermodeSettingsUpdatedDefault from "trackPoggermodeSettingsUpdated" /* 7947 */;
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
|
import PoggermodeSettingsStore from "PoggermodeSettingsStore" /* 7786 */;
|
|
import PoggermodeStore from "PoggermodeStore" /* 7945 */;
|
|
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/poggermode/PoggermodeActionCreators.tsx");
|
|
|
|
export const updatePoggermodeSettings = function updatePoggermodeSettings(settings) {
|
|
DispatcherDefault.dispatch({ type: "POGGERMODE_SETTINGS_UPDATE", settings });
|
|
const merged = Object.assign(PoggermodeSettingsStore.getState());
|
|
const merged1 = Object.assign(settings);
|
|
trackPoggermodeSettingsUpdatedDefault({});
|
|
};
|
|
export const updateCombo = function updateCombo(arg0) {
|
|
const merged = Object.assign(arg0);
|
|
DispatcherDefault.dispatch({ type: "POGGERMODE_UPDATE_COMBO" });
|
|
};
|
|
export const clearMessageCombo = function clearMessageCombo(arg0) {
|
|
const obj2 = { type: "POGGERMODE_UPDATE_MESSAGE_COMBO", comboMessage: null };
|
|
const obj3 = {};
|
|
const merged = Object.assign(arg0);
|
|
obj3.displayed = true;
|
|
obj2.comboMessage = obj3;
|
|
DispatcherDefault.dispatch(obj2);
|
|
};
|
|
export const updateComboOnMessageSend = function updateComboOnMessageSend(channelId, id) {
|
|
id = AuthenticationStore.getId();
|
|
const iter = PoggermodeStore.getUserCombo(id, channelId);
|
|
if (null != iter) {
|
|
const obj2 = { type: "POGGERMODE_UPDATE_MESSAGE_COMBO", comboMessage: null };
|
|
const obj3 = { combo: iter, channelId, messageId: id, displayed: false };
|
|
obj2.comboMessage = obj3;
|
|
DispatcherDefault.dispatch(obj2);
|
|
}
|
|
let num = 1;
|
|
if (null != iter) {
|
|
value = undefined;
|
|
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;
|
|
}
|
|
}
|
|
DispatcherDefault.dispatch({ type: "POGGERMODE_UPDATE_COMBO", channelId, userId: id, multiplier: num, value: 0 });
|
|
};
|