Files
2026-07-28 01:06:53 +03:00

147 lines
7.8 KiB
TypeScript

/* Metro module 11971; source: modules/welcome_screen/WelcomeScreenStore.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 _fun91880(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:6, offset: 0x02075adf, size: 409 bytes, params: 8, frame: 21
const INVITE_RESOLVE_SUCCESS_918842 = INVITE_RESOLVE_SUCCESS_91884;
const WELCOME_SCREEN_SUBMIT_SUCCESS2 = WELCOME_SCREEN_SUBMIT_SUCCESS;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_6 = {};
const env0_7 = {};
const Store = (Flux).Store;
let value = _fun91886(Store);
value.displayName = 'WelcomeScreenStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{INVITE_RESOLVE_SUCCESS: INVITE_RESOLVE_SUCCESS_918842, INVITE_ACCEPT_SUCCESS: INVITE_RESOLVE_SUCCESS_918842,
WELCOME_SCREEN_SUBMIT_SUCCESS: WELCOME_SCREEN_SUBMIT_SUCCESS2,
WELCOME_SCREEN_UPDATE: WELCOME_SCREEN_SUBMIT_SUCCESS2, WELCOME_SCREEN_VIEW: WELCOME_SCREEN_VIEW,
GUILD_STOP_LURKING: function() {
env0_8 = false;
}, GUILD_DELETE: GUILD_DELETE_91895, WELCOME_SCREEN_FETCH_START: function() {
env0_9 = true;
env0_10 = false;
}, WELCOME_SCREEN_FETCH_SUCCESS: WELCOME_SCREEN_FETCH_SUCCESS, WELCOME_SCREEN_FETCH_FAIL: function() {
env0_9 = false;
env0_10 = true;
}});
(FileImportTrackerModule).fileFinishedImporting('modules/welcome_screen/WelcomeScreenStore.tsx');
exports.default = value;
exports.NO_WELCOME_SCREEN = {};
function _isNativeReflectConstruct_91881() { // fn#91881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:148, offset: 0x02075c78, 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_91881_isNativeReflectConstruct = function() {
return !!result;
})();
}
function INVITE_ACCEPT_SUCCESS_91884({invite}) { // fn#91884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:375, offset: 0x02075cda, size: 64 bytes, params: 2, frame: 4
var r0;
const guild = invite.guild;
value = guild?.welcome_screen != null;
if (value) {
env0_6[guild.id] = guild.welcome_screen;
r0 = true;
} else {
r0 = value;
}
return r0;
}
function WELCOME_SCREEN_SUBMIT_SUCCESS({welcomeScreen, guildId}) { // fn#91885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:503, offset: 0x02075d1a, size: 39 bytes, params: 2, frame: 5
env0_6[guildId] = welcomeScreen ?? env0_5;
}
function _fun91886(a0) { // fn#91886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:598, offset: 0x02075d41, size: 172 bytes, params: 2, frame: 16
const WelcomeScreenStore2 = WelcomeScreenStore;
Inherits(WelcomeScreenStore2, a0);
return CreateClass(WelcomeScreenStore2, [{key: 'get', value: value_91888}, {key: 'isFetching', value: value_91889},
{key: 'hasError', value: value_91890}, {key: 'hasSeen', value: value_91891}, {key: 'isEmpty',
value: value_91892}]);
function WelcomeScreenStore() { // fn#91887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:610, offset: 0x010a3f4a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, WelcomeScreenStore);
const value3 = env1_3(WelcomeScreenStore);
return env1_2(this, _isNativeReflectConstruct_91881() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_91888(a0) { // fn#91888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:911, offset: 0x01edc71e, size: 26 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
return env1_6[a0];
}
}
function value_91889() { // fn#91889, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_91890() { // fn#91890, offset: 0x00fbd9ec, size: 9 bytes, params: 1, frame: 1
return env1_10;
}
function value_91891(a0) { // fn#91891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1059, offset: 0x02075ded, size: 53 bytes, params: 2, frame: 4
const value = a1;
return a0 != null && ((value !== undefined ? value : false) ? env1_8 : env1_7[a0] || false);
}
function value_91892(a0) { // fn#91892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1130, offset: 0x02075e22, size: 50 bytes, params: 2, frame: 3
if (a0 == null) {
return true;
}
const value = environment.__proto__;
const property = env1_6[a0];
return property == null || property.welcome_channels.length === 0;
}
}
function WELCOME_SCREEN_VIEW({guildId, isLurking}) { // fn#91893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1498, offset: 0x02075e54, size: 38 bytes, params: 2, frame: 5
env0_7[guildId] = true;
if (isLurking) {
}
}
function GUILD_DELETE_91895({guild}) { // fn#91895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1655, offset: 0x02075e7a, size: 30 bytes, params: 2, frame: 3
env0_7[guild.id] = false;
}
function WELCOME_SCREEN_FETCH_SUCCESS({welcomeScreen, guildId}) { // fn#91897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1814, offset: 0x02075eab, size: 49 bytes, params: 2, frame: 5
env0_6[guildId] = welcomeScreen ?? env0_5;
}
}
global.__d(_fun91880, 11971, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 11971, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;