119 lines
4.8 KiB
TypeScript
119 lines
4.8 KiB
TypeScript
/* Metro module 11967; source: modules/guild/GuildPromptsStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
|
function _fun91860(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12153:6, offset: 0x0207534a, size: 291 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
const env0_5 = {};
|
|
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
|
let value = _fun91864(PersistedStore);
|
|
value.displayName = 'GuildPromptsStore';
|
|
value.persistKey = 'GuildPromptsStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{GUILD_PROMPT_VIEWED: GUILD_PROMPT_VIEWED, GUILD_DELETE: GUILD_DELETE_91870});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild/GuildPromptsStore.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_91861() { // fn#91861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12153:148, offset: 0x0207546d, 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_91861_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun91864(a0) { // fn#91864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12153:356, offset: 0x020754cf, size: 124 bytes, params: 2, frame: 16
|
|
const closure = GuildPromptsStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'initialize', value: value_91866}, {key: 'hasViewedPrompt', value: value_91867},
|
|
{key: 'getState', value: value_91868}]);
|
|
}
|
|
|
|
function GUILD_PROMPT_VIEWED({prompt, guildId}) { // fn#91869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12153:991, offset: 0x020755c2, size: 115 bytes, params: 2, frame: 14
|
|
var r0;
|
|
var binding;
|
|
var set;
|
|
var value;
|
|
const property = env0_5[guildId];
|
|
if (property == null) {
|
|
binding = env0_5;
|
|
set = new global.Set();
|
|
binding[guildId] = set;
|
|
binding[guildId].add(prompt);
|
|
set = true;
|
|
r0 = set;
|
|
} else {
|
|
value = property.has(prompt);
|
|
if (value) {
|
|
r0 = !value;
|
|
} else {
|
|
property.add(prompt);
|
|
r0 = true;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function GUILD_DELETE_91870({guild}) { // fn#91870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12153:1141, offset: 0x02075635, size: 62 bytes, params: 2, frame: 4
|
|
let r0 = env0_5[guild.id] != null && !guild.unavailable;
|
|
if (r0) {
|
|
delete env0_5[guild.id];
|
|
r0 = true;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_91866(a0) { // fn#91866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12153:671, offset: 0x0207554b, size: 75 bytes, params: 2, frame: 21
|
|
var propertyName;
|
|
var property;
|
|
var binding;
|
|
var Set;
|
|
var prototype;
|
|
var value2;
|
|
var set;
|
|
var value3;
|
|
for (propertyName in a0) {
|
|
property = a0[propertyName];
|
|
binding = env1_5;
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value2 = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value3 = set instanceof Object ? set : value2;
|
|
binding[propertyName] = value3;
|
|
}
|
|
}
|
|
|
|
function value_91867(a0, a1) { // fn#91867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12153:758, offset: 0x02075596, size: 44 bytes, params: 3, frame: 12
|
|
const value = environment.__proto__;
|
|
const property = env1_5[a1];
|
|
return property != null && !!property.has(a0);
|
|
}
|
|
|