decord/source/modules/poggermode/PoggermodeSettingsStore.tsx

180 lines
5.1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 6919
// Function ID: 55139
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-24 07:16:23 +00:00
// Dependencies: [6, 7, 15, 17, 18, 6920, 22, 566, 686, 2]
2026-07-23 10:11:24 +00:00
2026-07-24 07:16:23 +00:00
// Module 6919 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import closure_0 from "apply";
import initialize from "initialize";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import ConfettiLocation from "ConfettiLocation";
import apply from "apply";
2026-07-20 16:05:17 +00:00
let ConfettiLocation;
let ShakeLocation;
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
({ ShakeLocation, ConfettiLocation } = ConfettiLocation);
let c5 = false;
let obj = { settingsVisible: false, enabled: false, combosEnabled: true, combosRequiredCount: 5, comboSoundsEnabled: true, screenshakeEnabled: true, screenshakeEnabledLocations: { [ShakeLocation.CHAT_INPUT]: true, [ShakeLocation.VOICE_USER]: false, [ShakeLocation.MENTION]: false }, shakeIntensity: 1, confettiEnabled: true, confettiEnabledLocations: { [ConfettiLocation.CHAT_INPUT]: true, [ConfettiLocation.REACTION]: true, [ConfettiLocation.MEMBER_USER]: true, [ConfettiLocation.CALL_TILE]: true }, confettiSize: 16, confettiCount: 5, warningSeen: false };
let closure_6 = apply.cloneDeep(obj);
let tmp3 = ((DeviceSettingsStore) => {
2026-07-20 16:05:17 +00:00
class PoggermodeSettingsStore {
constructor() {
self = this;
tmp = PoggermodeSettingsStore(this, PoggermodeSettingsStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(PoggermodeSettingsStore);
tmp2 = outer1_2;
if (outer1_7()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(PoggermodeSettingsStore, DeviceSettingsStore);
let obj = {
key: "initialize",
value(arg0) {
2026-07-23 10:11:24 +00:00
const merged = Object.assign(outer1_6);
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(arg0);
2026-07-23 10:11:24 +00:00
outer1_6 = {};
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , , , , , , , ];
obj = {
key: "getUserAgnosticState",
value() {
2026-07-23 10:11:24 +00:00
return outer1_6;
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "settingsVisible",
get() {
2026-07-23 10:11:24 +00:00
return outer1_6.settingsVisible;
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "isEnabled",
value() {
let confettiLocation;
let shakeLocation;
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
({ confettiLocation, shakeLocation } = obj);
let tmp = null == confettiLocation;
if (!tmp) {
2026-07-23 10:11:24 +00:00
let confettiEnabled = outer1_6.confettiEnabled;
2026-07-20 16:05:17 +00:00
if (confettiEnabled) {
2026-07-23 10:11:24 +00:00
confettiEnabled = outer1_6.confettiEnabledLocations[confettiLocation];
2026-07-20 16:05:17 +00:00
}
tmp = confettiEnabled;
}
let tmp4 = null == shakeLocation;
if (!tmp4) {
2026-07-23 10:11:24 +00:00
let screenshakeEnabled = outer1_6.screenshakeEnabled;
2026-07-20 16:05:17 +00:00
if (screenshakeEnabled) {
2026-07-23 10:11:24 +00:00
screenshakeEnabled = outer1_6.screenshakeEnabledLocations[shakeLocation];
2026-07-20 16:05:17 +00:00
}
tmp4 = screenshakeEnabled;
}
let enabled = this.settingsVisible;
if (enabled) {
2026-07-23 10:11:24 +00:00
enabled = !outer1_5;
2026-07-20 16:05:17 +00:00
}
if (enabled) {
2026-07-23 10:11:24 +00:00
enabled = outer1_6.enabled;
2026-07-20 16:05:17 +00:00
}
if (enabled) {
enabled = tmp;
}
if (enabled) {
enabled = tmp4;
}
return enabled;
}
};
items[4] = {
key: "shakeIntensity",
get() {
let num = 0;
if (this.isEnabled()) {
2026-07-23 10:11:24 +00:00
num = outer1_6.shakeIntensity;
2026-07-20 16:05:17 +00:00
}
return num;
}
};
items[5] = {
key: "combosRequiredCount",
get() {
let num = 0;
if (this.isEnabled()) {
2026-07-23 10:11:24 +00:00
num = outer1_6.combosRequiredCount;
2026-07-20 16:05:17 +00:00
}
return num;
}
};
items[6] = {
key: "screenshakeEnabled",
get() {
2026-07-23 10:11:24 +00:00
return outer1_6.screenshakeEnabled;
2026-07-20 16:05:17 +00:00
}
};
items[7] = {
key: "screenshakeEnabledLocations",
get() {
2026-07-23 10:11:24 +00:00
return outer1_6.screenshakeEnabledLocations;
2026-07-20 16:05:17 +00:00
}
};
items[8] = {
key: "combosEnabled",
get() {
2026-07-23 10:11:24 +00:00
return outer1_6.combosEnabled;
2026-07-20 16:05:17 +00:00
}
};
items[9] = {
key: "comboSoundsEnabled",
get() {
2026-07-23 10:11:24 +00:00
return outer1_6.comboSoundsEnabled;
2026-07-20 16:05:17 +00:00
}
};
return callback(PoggermodeSettingsStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").DeviceSettingsStore);
2026-07-20 16:05:17 +00:00
tmp3.displayName = "PoggermodeSettingsStore";
tmp3.persistKey = "PoggermodeSettingsStore";
obj = {
POGGERMODE_SETTINGS_UPDATE: function handlePoggermodeSettingsUpdate(settings) {
2026-07-23 10:11:24 +00:00
const obj = {};
const merged = Object.assign(obj);
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(settings.settings);
},
POGGERMODE_TEMPORARILY_DISABLED: function handlePoggermodeTemporarilyDisabled() {
2026-07-23 10:11:24 +00:00
let c5 = true;
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3(require("dispatcher"), obj);
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/poggermode/PoggermodeSettingsStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp3;
export const initialState = obj;