91 lines
5.1 KiB
TypeScript
91 lines
5.1 KiB
TypeScript
/* Metro module 15712; source: modules/feedback/FeedbackOverrideStore.tsx; dependencies: [6, 7, 15, 17, 18, 15711, 566, 694, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as FeedbackManagerModule from './FeedbackManager.tsx'; /* Metro dependency 15711 */
|
|
|
|
function _fun120580(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15920:6, offset: 0x025306a9, size: 307 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_7 = {};
|
|
const Store = (Flux).Store;
|
|
let value = _fun120584(Store);
|
|
value.displayName = 'FeedbackOverrideStore';
|
|
value.persistKey = 'feedbackOverrides';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{FEEDBACK_OVERRIDE_SET: FEEDBACK_OVERRIDE_SET, FEEDBACK_OVERRIDE_CLEAR: FEEDBACK_OVERRIDE_CLEAR});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/feedback/FeedbackOverrideStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_120581() { // fn#120581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15920:148, offset: 0x025307dc, size: 98 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_120581_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun120584(a0) { // fn#120584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15920:356, offset: 0x0253083e, size: 99 bytes, params: 2, frame: 16
|
|
const HotspotStore_1205852 = HotspotStore_120585;
|
|
Inherits(HotspotStore_1205852, a0);
|
|
return CreateClass(HotspotStore_1205852, [{key: 'initialize', value: function() {
|
|
}}, {key: 'getFeedbackConfig', value: value_120587}]);
|
|
function HotspotStore_120585() { // fn#120585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15920:368, offset: 0x00c6223c, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_2(this, HotspotStore_120585);
|
|
const value3 = env1_5(HotspotStore_120585);
|
|
return env1_4(this, _isNativeReflectConstruct_120581() ? global.Reflect.construct(value3, arguments,
|
|
env1_5(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_120587(a0) { // fn#120587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15920:691, offset: 0x0103ab8e, size: 16 bytes, params: 2, frame: 2
|
|
return env1_7[a0];
|
|
}
|
|
|
|
}
|
|
|
|
function FEEDBACK_OVERRIDE_SET({feedbackType, cooldown, chance}) { // fn#120588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15920:849, offset: 0x025308a1, size: 93 bytes, params: 2, frame: 17
|
|
const binding = env0_7;
|
|
const object = {};
|
|
const FeedbackConfig = (FeedbackManagerModule).FeedbackConfig;
|
|
copyDataProperties(object, FeedbackConfig[feedbackType], require);
|
|
object['cooldown'] = cooldown;
|
|
object['chance'] = chance;
|
|
binding[feedbackType] = object;
|
|
}
|
|
|
|
function FEEDBACK_OVERRIDE_CLEAR({feedbackType}) { // fn#120589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15920:1003, offset: 0x025308fe, size: 24 bytes, params: 2, frame: 2
|
|
delete env0_7[feedbackType];
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun120580, 15712, [6, 7, 15, 17, 18, 15711, 566, 694,
|
|
2]) /* metro module 15712, dependencies: [6, 7, 15, 17, 18, 15711, 566, 694, 2] */;
|