136 lines
6.5 KiB
TypeScript
136 lines
6.5 KiB
TypeScript
/* Metro module 11967; source: modules/guild/GuildPromptsStore.tsx; dependencies: [6, 7, 15, 17, 18, 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 */
|
|
|
|
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_5 = {};
|
|
const PersistedStore = (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});
|
|
(FileImportTrackerModule).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 GuildPromptsStore2 = GuildPromptsStore;
|
|
Inherits(GuildPromptsStore2, a0);
|
|
return CreateClass(GuildPromptsStore2, [{key: 'initialize', value: value_91866}, {key: 'hasViewedPrompt',
|
|
value: value_91867}, {key: 'getState', value: value_91868}]);
|
|
function GuildPromptsStore() { // fn#91865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12153:368, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, GuildPromptsStore);
|
|
const value3 = env1_3(GuildPromptsStore);
|
|
return env1_2(this, _isNativeReflectConstruct_91861() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
function value_91868() { // fn#91868, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
|
|
return env1_5;
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun91860, 11967, [6, 7, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 11967, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
|