This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,77 +1,84 @@
/* Metro module 11429; source: modules/guild_templates/AcceptGuildTemplateActionCreators.tsx; dependencies: [4257, 1867, 661, 694, 507, 6947, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GatewayConnectionStore from '../gateway/GatewayConnectionStore.tsx'; /* Metro dependency 4257 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun87485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:6, offset: 0x01fc07be, size: 163 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
object2 = {acceptGuildTemplate: acceptGuildTemplate};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/AcceptGuildTemplateActionCreators.tsx');
exports.default = object2;
}
object = {acceptGuildTemplate: acceptGuildTemplate};
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/AcceptGuildTemplateActionCreators.tsx');
exports.default = object;
function acceptGuildTemplate(a0, a1, a2) { // fn#87486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:159, offset: 0x01fc0861, size: 111 bytes, params: 4, frame: 14
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_ACCEPT', code: a0});
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun87487);
return promise instanceof Object ? promise : value;
function _fun87487(a0, a1) { // fn#87487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:238, offset: 0x01fc08d0, size: 147 bytes, params: 3, frame: 18
var environment;
const env0_0 = a0;
const env0_1 = a1;
const value = environment.__proto__;
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
const object = {};
object.url = Endpoints.UNRESOLVED_GUILD_TEMPLATE(env0_0);
object.body = {name: require, icon: importDefault};
object.oldFormErrors = true;
object.rejectWithError = false;
Reflect.apply(post, HTTP, [object]).then(_fun87488, _fun87490);
function _fun87488({body}) { // fn#87488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:365, offset: 0x01fc0963, size: 167 bytes, params: 2, frame: 16
var environment;
const body2 = body;
let value = environment.__proto__.__proto__;
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_ACCEPT_SUCCESS',
code: env1_0, guild: body});
const gatewayConnectionStoreBinding = GatewayConnectionStore;
if (gatewayConnectionStoreBinding.isConnected()) {
GuildStore.addConditionalChangeListener(_fun87489);
} else {
value = require(6947) /* metro dependency 6947: transitionToGuildNative */;
value.transitionToGuild(body.id);
body2(body);
}
function _fun87489() { // fn#87489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:502, offset: 0x01fc0a0a, size: 98 bytes, params: 1, frame: 13
var transitionToGuild;
let value = environment.__proto__.__proto__.__proto__;
const guildStoreBinding = GuildStore;
const getGuild = guildStoreBinding.getGuild;
if (Reflect.apply(getGuild, guildStoreBinding, [body.id]) != null) {
value = require(6947) /* metro dependency 6947: transitionToGuildNative */;
transitionToGuild = value.transitionToGuild;
bodyBinding = body;
Reflect.apply(transitionToGuild, value, [bodyBinding.id]);
value = environment.__proto__;
env1_0(bodyBinding);
return false;
}
}
function acceptGuildTemplate(a0, a1, a2) { // fn#87486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:159, offset: 0x01fc0861, size: 111 bytes, params: 4, frame: 14
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_ACCEPT', code: a0});
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun87487);
return promise instanceof Object ? promise : value;
}
}
function _fun87487(a0, a1) { // fn#87487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:238, offset: 0x01fc08d0, size: 147 bytes, params: 3, frame: 18
var environment;
const env0_0 = a0;
const env0_1 = a1;
const value = environment.__proto__;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
const object2 = {};
object2.url = Endpoints.UNRESOLVED_GUILD_TEMPLATE(env0_0);
object2.body = {name: require, icon: importDefault};
object2.oldFormErrors = true;
object2.rejectWithError = false;
Reflect.apply(post, HTTP, [object2]).then(_fun87488, _fun87490);
}
function _fun87490({body}) { // fn#87490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:625, offset: 0x01fc0a6c, size: 80 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_ACCEPT_FAILURE',
code: env1_0});
require(body);
}
function _fun87488({body}) { // fn#87488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:365, offset: 0x01fc0963, size: 167 bytes, params: 2, frame: 16
var environment;
const env0_0 = body;
let value = environment.__proto__.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_ACCEPT_SUCCESS',
code: env1_0, guild: body});
if (GatewayConnectionStore.isConnected()) {
GuildStore.addConditionalChangeListener(_fun87489);
} else {
value = require(6947) /* metro dependency 6947: transitionToGuildNative */;
value.transitionToGuild(body.id);
env0_0(body);
}
}
}
function _fun87490({body}) { // fn#87490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:625, offset: 0x01fc0a6c, size: 80 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_ACCEPT_FAILURE',
code: env1_0});
require(body);
}
function _fun87489() { // fn#87489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11615:502, offset: 0x01fc0a0a, size: 98 bytes, params: 1, frame: 13
var transitionToGuild;
let value = environment.__proto__.__proto__.__proto__;
const getGuild = GuildStore.getGuild;
if (Reflect.apply(getGuild, GuildStore, [body.id]) != null) {
value = require(6947) /* metro dependency 6947: transitionToGuildNative */;
transitionToGuild = value.transitionToGuild;
bodyBinding = body;
Reflect.apply(transitionToGuild, value, [bodyBinding.id]);
value = environment.__proto__;
env1_0(bodyBinding);
return false;
}
}
global.__d(_fun87485, 11429, [4257, 1867, 661, 694, 507, 6947,
2]) /* metro module 11429, dependencies: [4257, 1867, 661, 694, 507, 6947, 2] */;
@@ -1,147 +1,165 @@
/* Metro module 6932; source: modules/guild_templates/GuildTemplateActionCreators.tsx; dependencies: [661, 694, 507, 683, 6933, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import CreateResolvedGuildTemplate from './createResolvedGuildTemplate.tsx'; /* Metro dependency 6933 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun55111(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:6, offset: 0x01376260, size: 231 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_3 = constantsModule.Endpoints;
const env0_4 = constantsModule.AnalyticEvents;
const Map = global.Map;
const map = new Map();
object2 = {};
object2.resolveGuildTemplate = resolveGuildTemplate;
object2.loadTemplatesForGuild = loadTemplatesForGuild;
object2.createGuildTemplate = createGuildTemplate;
object2.syncGuildTemplate = syncGuildTemplate;
object2.updateGuildTemplate = updateGuildTemplate;
object2.deleteGuildTemplate = deleteGuildTemplate;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/GuildTemplateActionCreators.tsx');
exports.default = object2;
}
object = {};
object.resolveGuildTemplate = resolveGuildTemplate;
object.loadTemplatesForGuild = loadTemplatesForGuild;
object.createGuildTemplate = createGuildTemplate;
object.syncGuildTemplate = syncGuildTemplate;
object.updateGuildTemplate = updateGuildTemplate;
object.deleteGuildTemplate = deleteGuildTemplate;
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/GuildTemplateActionCreators.tsx');
exports.default = object;
function resolveGuildTemplate(a0) { // fn#55112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:177, offset: 0x01376347, size: 268 bytes, params: 2, frame: 19
const env0_0 = a0;
const defaultImport = Dispatcher;
if (defaultImport.isDispatching()) {
return global.Promise.resolve().then(_fun55113);
}
const binding = env0_5;
let get = binding.get;
const value2 = Reflect.apply(get, binding, [a0]);
if (value2 != null) {
return value2;
}
defaultImport.dispatch({type: 'GUILD_TEMPLATE_RESOLVE', code: a0});
const HTTP = (HTTPUtilsModule).HTTP;
get = HTTP.get;
object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object.url = Endpoints.UNRESOLVED_GUILD_TEMPLATE(a0);
const value5 = Reflect.apply(get, HTTP, [object]).then(_fun55114, _fun55115).finally(_fun55116);
env0_5.set(a0, value5);
return value5;
function _fun55113() { // fn#55113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:268, offset: 0x01376453, size: 23 bytes, params: 1, frame: 11
return resolveGuildTemplate(env0_0);
}
function _fun55114({body}) { // fn#55114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:493, offset: 0x0137646a, size: 179 bytes, params: 2, frame: 19
let value = environment.__proto__;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const GUILD_TEMPLATE_RESOLVED = AnalyticEvents.GUILD_TEMPLATE_RESOLVED;
const binding = env0_0;
Reflect.apply(track, defaultImport, [GUILD_TEMPLATE_RESOLVED, {resolved: true, guild_template_code: binding,
guild_template_name: body.name, guild_template_description: body.description,
guild_template_guild_id: body.source_guild_id}]);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GUILD_TEMPLATE_RESOLVE_SUCCESS', guildTemplate: body, code: binding});
return {guildTemplate: (CreateResolvedGuildTemplate)(body),
code: binding};
}
function _fun55115() { // fn#55115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:822, offset: 0x0137651d, size: 120 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const GUILD_TEMPLATE_RESOLVED = AnalyticEvents.GUILD_TEMPLATE_RESOLVED;
const binding = env0_0;
Reflect.apply(track, defaultImport, [GUILD_TEMPLATE_RESOLVED, {resolved: false, guild_template_code: binding}]);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GUILD_TEMPLATE_RESOLVE_FAILURE', code: binding});
return {guildTemplate: null, code: binding};
}
function _fun55116() { // fn#55116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1009, offset: 0x01029aec, size: 28 bytes, params: 1, frame: 11
env1_5.delete(env0_0);
}
function resolveGuildTemplate(a0) { // fn#55112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:177, offset: 0x01376347, size: 268 bytes, params: 2, frame: 19
var object2;
const env0_0 = a0;
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
if (defaultImport.isDispatching()) {
return global.Promise.resolve().then(_fun55113);
}
const binding = env0_5;
let get = binding.get;
const value2 = Reflect.apply(get, binding, [a0]);
if (value2 != null) {
return value2;
function loadTemplatesForGuild(a0) { // fn#55117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1072, offset: 0x01376595, size: 93 bytes, params: 2, frame: 14
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.GUILD_TEMPLATES(a0);
return Reflect.apply(get, HTTP, [object]).then(_fun55118);
function _fun55118(a0) { // fn#55118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1162, offset: 0x013765f2, size: 62 bytes, params: 2, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_LOAD_FOR_GUILD_SUCCESS',
guildTemplates: a0.body});
return a0;
}
}
defaultImport.dispatch({type: 'GUILD_TEMPLATE_RESOLVE', code: a0});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get;
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.UNRESOLVED_GUILD_TEMPLATE(a0);
const value5 = Reflect.apply(get, HTTP, [object2]).then(_fun55114, _fun55115).finally(_fun55116);
env0_5.set(a0, value5);
return value5;
}
function loadTemplatesForGuild(a0) { // fn#55117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1072, offset: 0x01376595, size: 93 bytes, params: 2, frame: 14
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object2.url = Endpoints.GUILD_TEMPLATES(a0);
return Reflect.apply(get, HTTP, [object2]).then(_fun55118);
}
function createGuildTemplate(a0, a1, a2) { // fn#55119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1278, offset: 0x01376630, size: 117 bytes, params: 4, frame: 14
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
const object = {};
object.url = Endpoints.GUILD_TEMPLATES(a0);
object.body = {name: a1, description: a2};
object.oldFormErrors = true;
object.rejectWithError = false;
return Reflect.apply(post, HTTP, [object]).then(_fun55120);
function _fun55120(a0) { // fn#55120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1403, offset: 0x013766a5, size: 76 bytes, params: 2, frame: 14
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_CREATE_SUCCESS',
guildTemplate: a0.body, code: a0.body.code});
}
function createGuildTemplate(a0, a1, a2) { // fn#55119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1278, offset: 0x01376630, size: 117 bytes, params: 4, frame: 14
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
const object2 = {};
object2.url = Endpoints.GUILD_TEMPLATES(a0);
object2.body = {name: a1, description: a2};
object2.oldFormErrors = true;
object2.rejectWithError = false;
return Reflect.apply(post, HTTP, [object2]).then(_fun55120);
}
}
function syncGuildTemplate(a0, a1) { // fn#55121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1523, offset: 0x013766f1, size: 102 bytes, params: 3, frame: 17
const env0_0 = a1;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const put = HTTP.put;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object2.url = Endpoints.GUILD_TEMPLATE(a0, a1);
return Reflect.apply(put, HTTP, [object2]).then(_fun55122);
}
function syncGuildTemplate(a0, a1) { // fn#55121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1523, offset: 0x013766f1, size: 102 bytes, params: 3, frame: 17
const env0_0 = a1;
const HTTP = (HTTPUtilsModule).HTTP;
const put = HTTP.put;
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.GUILD_TEMPLATE(a0, a1);
return Reflect.apply(put, HTTP, [object]).then(_fun55122);
function _fun55122({body}) { // fn#55122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1618, offset: 0x01376757, size: 73 bytes, params: 2, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_SYNC_SUCCESS',
guildTemplate: body, code: require});
}
function updateGuildTemplate(a0, a1, a2, a3) { // fn#55123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1728, offset: 0x013767a0, size: 125 bytes, params: 5, frame: 17
const env0_0 = a1;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const patch = HTTP.patch;
const object2 = {};
object2.url = Endpoints.GUILD_TEMPLATE(a0, a1);
object2.body = {name: a2, description: a3};
object2.oldFormErrors = true;
object2.rejectWithError = false;
return Reflect.apply(patch, HTTP, [object2]).then(_fun55124);
}
}
function deleteGuildTemplate(a0, a1) { // fn#55125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1967, offset: 0x0137681d, size: 106 bytes, params: 3, frame: 17
const env0_0 = a0;
const env0_1 = a1;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const del = HTTP.del;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object2.url = Endpoints.GUILD_TEMPLATE(a0, a1);
return Reflect.apply(del, HTTP, [object2]).then(_fun55126);
}
function updateGuildTemplate(a0, a1, a2, a3) { // fn#55123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1728, offset: 0x013767a0, size: 125 bytes, params: 5, frame: 17
const env0_0 = a1;
const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch;
const object = {};
object.url = Endpoints.GUILD_TEMPLATE(a0, a1);
object.body = {name: a2, description: a3};
object.oldFormErrors = true;
object.rejectWithError = false;
return Reflect.apply(patch, HTTP, [object]).then(_fun55124);
function _fun55124({body}) { // fn#55124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1857, offset: 0x01376757, size: 73 bytes, params: 2, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_SYNC_SUCCESS',
guildTemplate: body, code: require});
}
function _fun55114({body}) { // fn#55114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:493, offset: 0x0137646a, size: 179 bytes, params: 2, frame: 19
let value = environment.__proto__;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const GUILD_TEMPLATE_RESOLVED = AnalyticEvents.GUILD_TEMPLATE_RESOLVED;
const binding = env0_0;
Reflect.apply(track, defaultImport, [GUILD_TEMPLATE_RESOLVED, {resolved: true, guild_template_code: binding,
guild_template_name: body.name, guild_template_description: body.description,
guild_template_guild_id: body.source_guild_id}]);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GUILD_TEMPLATE_RESOLVE_SUCCESS', guildTemplate: body, code: binding});
return {guildTemplate: (importDefault(6933) /* metro dependency 6933: createResolvedGuildTemplate */)(body),
code: binding};
}
}
function _fun55115() { // fn#55115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:822, offset: 0x0137651d, size: 120 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const GUILD_TEMPLATE_RESOLVED = AnalyticEvents.GUILD_TEMPLATE_RESOLVED;
const binding = env0_0;
Reflect.apply(track, defaultImport, [GUILD_TEMPLATE_RESOLVED, {resolved: false, guild_template_code: binding}]);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GUILD_TEMPLATE_RESOLVE_FAILURE', code: binding});
return {guildTemplate: null, code: binding};
}
function deleteGuildTemplate(a0, a1) { // fn#55125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1967, offset: 0x0137681d, size: 106 bytes, params: 3, frame: 17
const env0_0 = a0;
const env0_1 = a1;
const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del;
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.GUILD_TEMPLATE(a0, a1);
return Reflect.apply(del, HTTP, [object]).then(_fun55126);
function _fun55126() { // fn#55126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:2062, offset: 0x01376887, size: 68 bytes, params: 1, frame: 14
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_DELETE_SUCCESS',
guildId: env0_0, code: require});
}
function _fun55118(a0) { // fn#55118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1162, offset: 0x013765f2, size: 62 bytes, params: 2, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_LOAD_FOR_GUILD_SUCCESS',
guildTemplates: a0.body});
return a0;
}
}
function _fun55120(a0) { // fn#55120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1403, offset: 0x013766a5, size: 76 bytes, params: 2, frame: 14
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_CREATE_SUCCESS',
guildTemplate: a0.body, code: a0.body.code});
}
function _fun55122({body}) { // fn#55122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:1618, offset: 0x01376757, size: 73 bytes, params: 2, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_SYNC_SUCCESS',
guildTemplate: body, code: require});
}
function _fun55126() { // fn#55126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7110:2062, offset: 0x01376887, size: 68 bytes, params: 1, frame: 14
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_DELETE_SUCCESS',
guildId: env0_0, code: require});
}
global.__d(_fun55111, 6932, [661, 694, 507, 683, 6933,
2]) /* metro module 6932, dependencies: [661, 694, 507, 683, 6933, 2] */;
@@ -1,4 +1,13 @@
/* Metro module 7069; source: modules/guild_templates/GuildTemplateStore.tsx; dependencies: [6, 7, 15, 17, 18, 6934, 6933, 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 GuildTemplatesConstantsModule from './GuildTemplatesConstants.tsx'; /* Metro dependency 6934 */
function _fun56304(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:6, offset: 0x013c4b60, size: 480 bytes, params: 8, frame: 22
const _arrayLikeToArray_56307 = function(a0, a1) {
var r0;
@@ -55,15 +64,9 @@ function _fun56304(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const env0_7 = (require(6934) /* metro dependency 6934: GuildTemplatesConstants */).GuildTemplateStates;
const Map = global.Map;
let map = new Map();
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun56317(Store).displayName = 'GuildTemplateStore';
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */,
{GUILD_TEMPLATE_RESOLVE: GUILD_TEMPLATE_RESOLVE, GUILD_TEMPLATE_CREATE_SUCCESS: closure,
@@ -82,239 +85,289 @@ function _fun56304(global, require, importDefault, importAll, module, exports, d
}, GUILD_TEMPLATE_MODAL_HIDE: function() {
env0_9 = null;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/GuildTemplateStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/GuildTemplateStore.tsx');
exports.default = map;
}
function _createForOfIteratorHelperLoose_56305(a0, a1) { // fn#56305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:181, offset: 0x013c4d40, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_56305(a0, a1) { // fn#56305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:181, offset: 0x013c4d40, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun56306;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_56307(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun56306;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_56307(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_56307(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_56307(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun56306;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function _isNativeReflectConstruct_56308() { // fn#56308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1091, offset: 0x013c4eb2, size: 94 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_56308_isNativeReflectConstruct = function() {
return !!result;
})();
}
function updateGuildTemplate_56311(a0, a1) { // fn#56311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1305, offset: 0x013c4f10, size: 128 bytes, params: 3, frame: 15
var r2;
var binding;
var value2;
var object2;
var Map;
var value3;
var map;
if (a0 != null) {
binding = env0_8;
value2 = binding.get(a0);
if (value2 != null) {
object2 = {};
copyDataProperties(object2, value2, undefined);
r2 = object2;
} else {
r2 = {code: a0, state: GuildTemplateStates.RESOLVING};
r5 = value;
}
a1(r2);
Map = global.Map;
binding = env0_8;
value3 = Object.create(Map.prototype, {constructor: {value: Map}});
map = new Map();
(map instanceof Object ? map : value3).set(a0, r2);
if (r5) {
if (r5) {
}
return _fun56306;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun56306() { // fn#56306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:752, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
}
function resolveGuildTemplate_56313(a0) { // fn#56313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1524, offset: 0x013c4fa9, size: 36 bytes, params: 2, frame: 13
const env0_0 = a0;
updateGuildTemplate_56311(a0.code, _fun56314);
}
function GUILD_TEMPLATE_DELETE_SUCCESS({code}) { // fn#56315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1641, offset: 0x013c5018, size: 32 bytes, params: 2, frame: 13
updateGuildTemplate_56311(code, function(a0) {
a0.state = GuildTemplateStates.EXPIRED;
});
}
function _fun56317(a0) { // fn#56317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1753, offset: 0x013c5052, size: 141 bytes, params: 2, frame: 16
const closure = GuildTemplateStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'getGuildTemplate', value: value_56319}, {key: 'getGuildTemplates',
value: value_56320}, {key: 'getForGuild', value: value_56321}, {key: 'getDisplayedGuildTemplateCode',
value: value_56322}]);
}
function GUILD_TEMPLATE_RESOLVE({code}) { // fn#56323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:2553, offset: 0x013c5162, size: 82 bytes, params: 2, frame: 15
const Map = global.Map;
const map = new Map(env0_8);
const set = map.set;
const RESOLVING = GuildTemplateStates.RESOLVING;
Reflect.apply(set, map, [code, {code: code, state: RESOLVING}]);
}
function GUILD_TEMPLATE_LOAD_FOR_GUILD_SUCCESS({guildTemplates}) { // fn#56324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:2878, offset: 0x013c51b4, size: 30 bytes, params: 2, frame: 11
guildTemplates.forEach(function(a0) {
resolveGuildTemplate_56313(a0);
});
}
function GUILD_TEMPLATE_ACCEPT({code}) { // fn#56326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3138, offset: 0x013c51e5, size: 32 bytes, params: 2, frame: 13
updateGuildTemplate_56311(code, function(a0) {
a0.state = GuildTemplateStates.ACCEPTING;
});
}
function GUILD_TEMPLATE_ACCEPT_SUCCESS({code}) { // fn#56328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3269, offset: 0x013c5205, size: 32 bytes, params: 2, frame: 13
updateGuildTemplate_56311(code, _fun56329);
}
function GUILD_TEMPLATE_ACCEPT_FAILURE({code}) { // fn#56330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3456, offset: 0x013c5260, size: 32 bytes, params: 2, frame: 13
updateGuildTemplate_56311(code, function(a0) {
a0.state = GuildTemplateStates.RESOLVED;
});
}
function _fun56314(a0) { // fn#56314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1592, offset: 0x013c4fcd, size: 75 bytes, params: 2, frame: 18
var propertyName;
let value = environment.__proto__;
value = importDefault(6933) /* metro dependency 6933: createResolvedGuildTemplate */;
value = value(env0_0);
for (propertyName in value) {
a0[propertyName] = value[propertyName];
function _isNativeReflectConstruct_56308() { // fn#56308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1091, offset: 0x013c4eb2, size: 94 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_56308_isNativeReflectConstruct = function() {
return !!result;
})();
}
}
function value_56321(a0) { // fn#56321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:2198, offset: 0x013c50df, size: 131 bytes, params: 2, frame: 18
var r3;
var value5;
var get;
var value6;
var sourceGuildId;
var state;
var EXPIRED;
var value7;
const _createForOfIteratorHelperLoose_56305Binding = _createForOfIteratorHelperLoose_56305;
let binding = env1_8;
const value3 = _createForOfIteratorHelperLoose_56305Binding(binding.keys());
const value4 = value3();
let done = value4.done;
if (!done) {
r3 = value4;
reducibleLoop1: while (true) {
value5 = r3.value;
binding = env1_8;
get = binding.get;
value6 = Reflect.apply(get, binding, [value5]);
if (value6 != null) {
reducibleJoin5: while (true) {
if ('sourceGuildId' in value6) {
sourceGuildId = value6.sourceGuildId;
if (sourceGuildId !== a0) {
function updateGuildTemplate_56311(a0, a1) { // fn#56311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1305, offset: 0x013c4f10, size: 128 bytes, params: 3, frame: 15
var r2;
var binding;
var value2;
var object;
var Map;
var value3;
var map;
if (a0 != null) {
binding = env0_8;
value2 = binding.get(a0);
if (value2 != null) {
object = {};
copyDataProperties(object, value2, undefined);
r2 = object;
} else {
r2 = {code: a0, state: GuildTemplateStates.RESOLVING};
}
a1(r2);
Map = global.Map;
binding = env0_8;
value3 = Object.create(Map.prototype, {constructor: {value: Map}});
map = new Map();
(map instanceof Object ? map : value3).set(a0, r2);
}
}
function resolveGuildTemplate_56313(a0) { // fn#56313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1524, offset: 0x013c4fa9, size: 36 bytes, params: 2, frame: 13
const env0_0 = a0;
updateGuildTemplate_56311(a0.code, _fun56314);
function _fun56314(a0) { // fn#56314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1592, offset: 0x013c4fcd, size: 75 bytes, params: 2, frame: 18
var propertyName;
let value = environment.__proto__;
value = importDefault(6933) /* metro dependency 6933: createResolvedGuildTemplate */;
value = value(env0_0);
for (propertyName in value) {
a0[propertyName] = value[propertyName];
}
}
}
function GUILD_TEMPLATE_DELETE_SUCCESS({code}) { // fn#56315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1641, offset: 0x013c5018, size: 32 bytes, params: 2, frame: 13
updateGuildTemplate_56311(code, function(a0) {
a0.state = GuildTemplateStates.EXPIRED;
});
function _fun56316(a0) { // fn#56316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1722, offset: 0x013c5038, size: 26 bytes, params: 2, frame: 2
const EXPIRED = GuildTemplateStates.EXPIRED;
a0.state = EXPIRED;
}
}
function _fun56317(a0) { // fn#56317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1753, offset: 0x013c5052, size: 141 bytes, params: 2, frame: 16
const GuildTemplateStore2 = GuildTemplateStore;
Inherits(GuildTemplateStore2, a0);
return CreateClass(GuildTemplateStore2, [{key: 'getGuildTemplate', value: value_56319}, {key: 'getGuildTemplates',
value: value_56320}, {key: 'getForGuild', value: value_56321}, {key: 'getDisplayedGuildTemplateCode',
value: value_56322}]);
function GuildTemplateStore() { // fn#56318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:1765, offset: 0x00de700a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, GuildTemplateStore);
const value3 = env1_5(GuildTemplateStore);
return env1_4(this, _isNativeReflectConstruct_56308() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_56319(a0) { // fn#56319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:2079, offset: 0x010677c7, size: 32 bytes, params: 2, frame: 11
var value;
if (a0 != null) {
value = environment.__proto__;
return env1_8.get(a0);
}
}
function value_56320() { // fn#56320, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_56321(a0) { // fn#56321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:2198, offset: 0x013c50df, size: 131 bytes, params: 2, frame: 18
var r3;
var value5;
var get;
var value6;
var sourceGuildId;
var state;
var EXPIRED;
var value7;
const _createForOfIteratorHelperLoose_56305Binding = _createForOfIteratorHelperLoose_56305;
let binding = env1_8;
const value3 = _createForOfIteratorHelperLoose_56305Binding(binding.keys());
const value4 = value3();
let done = value4.done;
if (!done) {
r3 = value4;
reducibleLoop1: while (true) {
value5 = r3.value;
binding = env1_8;
get = binding.get;
value6 = Reflect.apply(get, binding, [value5]);
if (value6 != null) {
reducibleJoin5: while (true) {
if ('sourceGuildId' in value6) {
sourceGuildId = value6.sourceGuildId;
if (sourceGuildId !== a0) {
break reducibleJoin5;
}
state = value6.state;
EXPIRED = GuildTemplateStates.EXPIRED;
if (state !== EXPIRED) {
return value6;
}
break reducibleJoin5;
}
break reducibleJoin5;
}
state = value6.state;
EXPIRED = GuildTemplateStates.EXPIRED;
if (state !== EXPIRED) {
return value6;
}
break reducibleJoin5;
}
break reducibleJoin5;
value7 = value3();
done = value7.done;
if (done) {
return undefined;
}
r3 = value7;
continue reducibleLoop1;
}
}
value7 = value3();
done = value7.done;
if (done) {
return undefined;
}
r3 = value7;
continue reducibleLoop1;
}
function value_56322() { // fn#56322, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
}
function GUILD_TEMPLATE_RESOLVE({code}) { // fn#56323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:2553, offset: 0x013c5162, size: 82 bytes, params: 2, frame: 15
const Map = global.Map;
const map = new Map(env0_8);
const set = map.set;
const RESOLVING = GuildTemplateStates.RESOLVING;
Reflect.apply(set, map, [code, {code: code, state: RESOLVING}]);
}
function GUILD_TEMPLATE_LOAD_FOR_GUILD_SUCCESS({guildTemplates}) { // fn#56324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:2878, offset: 0x013c51b4, size: 30 bytes, params: 2, frame: 11
guildTemplates.forEach(function(a0) {
resolveGuildTemplate_56313(a0);
});
function _fun56325(a0) { // fn#56325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:2957, offset: 0x013c51d2, size: 19 bytes, params: 2, frame: 11
resolveGuildTemplate_56313(a0);
}
}
function GUILD_TEMPLATE_ACCEPT({code}) { // fn#56326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3138, offset: 0x013c51e5, size: 32 bytes, params: 2, frame: 13
updateGuildTemplate_56311(code, function(a0) {
a0.state = GuildTemplateStates.ACCEPTING;
});
function _fun56327(a0) { // fn#56327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3211, offset: 0x0103583c, size: 26 bytes, params: 2, frame: 2
const ACCEPTING = GuildTemplateStates.ACCEPTING;
a0.state = ACCEPTING;
}
}
function GUILD_TEMPLATE_ACCEPT_SUCCESS({code}) { // fn#56328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3269, offset: 0x013c5205, size: 32 bytes, params: 2, frame: 13
updateGuildTemplate_56311(code, _fun56329);
function _fun56329(a0) { // fn#56329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3349, offset: 0x013c5225, size: 59 bytes, params: 2, frame: 4
const value = environment.__proto__;
const ACCEPTED = GuildTemplateStates.ACCEPTED;
a0.state = ACCEPTED;
a0.usageCount = (a0.usageCount ?? 0) + 1;
}
}
function GUILD_TEMPLATE_ACCEPT_FAILURE({code}) { // fn#56330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3456, offset: 0x013c5260, size: 32 bytes, params: 2, frame: 13
updateGuildTemplate_56311(code, function(a0) {
a0.state = GuildTemplateStates.RESOLVED;
});
function _fun56331(a0) { // fn#56331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3529, offset: 0x013c5280, size: 26 bytes, params: 2, frame: 2
const RESOLVED = GuildTemplateStates.RESOLVED;
a0.state = RESOLVED;
}
}
}
function _fun56329(a0) { // fn#56329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7247:3349, offset: 0x013c5225, size: 59 bytes, params: 2, frame: 4
const value = environment.__proto__;
const ACCEPTED = GuildTemplateStates.ACCEPTED;
a0.state = ACCEPTED;
a0.usageCount = (a0.usageCount ?? 0) + 1;
}
global.__d(_fun56304, 7069, [6, 7, 15, 17, 18, 6934, 6933, 566, 694,
2]) /* metro module 7069, dependencies: [6, 7, 15, 17, 18, 6934, 6933, 566, 694, 2] */;
@@ -1,48 +1,52 @@
/* Metro module 6931; source: modules/guild_templates/GuildTemplateTooltipActionCreators.tsx; dependencies: [5, 3784, 661, 6932, 694, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun55105(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:6, offset: 0x013760a9, size: 181 bytes, params: 8, frame: 19
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).Permissions;
object2 = {checkGuildTemplateDirty: checkGuildTemplateDirty,
object = {checkGuildTemplateDirty: checkGuildTemplateDirty,
hideGuildTemplateDirtyTooltip: hideGuildTemplateDirtyTooltip,
hideGuildTemplatePromotionTooltip: hideGuildTemplatePromotionTooltip};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/GuildTemplateTooltipActionCreators.tsx');
exports.default = object2;
}
function checkGuildTemplateDirty(a0) { // fn#55106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:165, offset: 0x0137615e, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return env0_2(_fun55108)();
}
function hideGuildTemplateDirtyTooltip(a0) { // fn#55109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:282, offset: 0x013761f7, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_DIRTY_TOOLTIP_HIDE',
guildId: a0});
}
function hideGuildTemplatePromotionTooltip() { // fn#55110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:387, offset: 0x0137622f, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_PROMOTION_TOOLTIP_HIDE'});
}
function* _fun55108() { // fn#55108, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:171, offset: 0x01376189, size: 110 bytes, params: 1, frame: 17
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_3;
var canWithPartialContext = binding.canWithPartialContext;
var MANAGE_GUILD = env2_4.MANAGE_GUILD;
var object2 = {};
object2.guildId = importDefault;
if (Reflect.apply(canWithPartialContext, binding, [MANAGE_GUILD, object2])) {
value = env2_0(env2_1[3]);
yield value.loadTemplatesForGuild(importDefault);
value = undefined;
if (false) {
return value;
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/GuildTemplateTooltipActionCreators.tsx');
exports.default = object;
function checkGuildTemplateDirty(a0) { // fn#55106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:165, offset: 0x0137615e, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return Module00005(_fun55108)();
function* _fun55108() { // fn#55108, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:171, offset: 0x01376189, size: 110 bytes, params: 1, frame: 17
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_3;
var canWithPartialContext = binding.canWithPartialContext;
var MANAGE_GUILD = env2_4.MANAGE_GUILD;
var object = {};
object.guildId = importDefault;
if (Reflect.apply(canWithPartialContext, binding, [MANAGE_GUILD, object])) {
value = env2_0(env2_1[3]);
yield value.loadTemplatesForGuild(importDefault);
value = undefined;
if (false) {
return value;
}
}
}
}
}
function hideGuildTemplateDirtyTooltip(a0) { // fn#55109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:282, offset: 0x013761f7, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_DIRTY_TOOLTIP_HIDE',
guildId: a0});
}
function hideGuildTemplatePromotionTooltip() { // fn#55110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7109:387, offset: 0x0137622f, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_PROMOTION_TOOLTIP_HIDE'});
}
}
global.__d(_fun55105, 6931, [5, 3784, 661, 6932, 694,
2]) /* metro module 6931, dependencies: [5, 3784, 661, 6932, 694, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 6934; source: modules/guild_templates/GuildTemplatesConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun55129(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7112:6, offset: 0x013769d7, size: 289 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/GuildTemplatesConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/GuildTemplatesConstants.tsx');
exports.GUILD_TEMPLATES_MEMBER_COUNT_PROMOTION_THRESHOLD = 50;
exports.GuildTemplateStates = {RESOLVING: 'RESOLVING', RESOLVED: 'RESOLVED', EXPIRED: 'EXPIRED',
ACCEPTED: 'ACCEPTED', ACCEPTING: 'ACCEPTING'};
@@ -12,3 +14,4 @@ function _fun55129(global, require, importDefault, importAll, module, exports, d
LEAGUE_CLUBS: 'PJ6VvgEJYg45', GITHUB_HACKATHON: 'UqzZCTj2zfwy'};
}
global.__d(_fun55129, 6934, [2]) /* metro module 6934, dependencies: [2] */;
@@ -1,16 +1,19 @@
/* Metro module 6933; source: modules/guild_templates/createResolvedGuildTemplate.tsx; dependencies: [6934, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as GuildTemplatesConstantsModule from './GuildTemplatesConstants.tsx'; /* Metro dependency 6934 */
function _fun55127(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7111:6, offset: 0x013768cb, size: 107 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(6934) /* metro dependency 6934: GuildTemplatesConstants */).GuildTemplateStates;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/createResolvedGuildTemplate.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/createResolvedGuildTemplate.tsx');
exports.default = createResolvedGuildTemplate;
function createResolvedGuildTemplate({code, name, description, creator_id, creator, created_at, updated_at, source_guild_id, serialized_source_guild, usage_count, is_dirty}) { // fn#55128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7111:225, offset: 0x01376936, size: 161 bytes, params: 2, frame: 5
const RESOLVED = GuildTemplateStates.RESOLVED;
return {code: code, state: RESOLVED, name: name, description: description ?? '', creatorId: creator_id,
creator: creator, createdAt: created_at, updatedAt: updated_at, sourceGuildId: source_guild_id,
serializedSourceGuild: serialized_source_guild, usageCount: usage_count, isDirty: is_dirty};
}
}
function createResolvedGuildTemplate({code, name, description, creator_id, creator, created_at, updated_at, source_guild_id, serialized_source_guild, usage_count, is_dirty}) { // fn#55128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7111:225, offset: 0x01376936, size: 161 bytes, params: 2, frame: 5
const RESOLVED = GuildTemplateStates.RESOLVED;
return {code: code, state: RESOLVED, name: name, description: description ?? '', creatorId: creator_id,
creator: creator, createdAt: created_at, updatedAt: updated_at, sourceGuildId: source_guild_id,
serializedSourceGuild: serialized_source_guild, usageCount: usage_count, isDirty: is_dirty};
}
global.__d(_fun55127, 6933, [6934, 2]) /* metro module 6933, dependencies: [6934, 2] */;
@@ -1,115 +1,130 @@
/* Metro module 11423; source: modules/guild_templates/native/AcceptGuildTemplateModal.tsx; dependencies: [5, 57, 31, 7069, 661, 33, 4501, 5314, 566, 6592, 11424, 6618, 11425, 4660, 11429, 11422, 5282, 5280, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildTemplateStore from '../GuildTemplateStore.tsx'; /* Metro dependency 7069 */
import GuildTemplateActionCreators from './GuildTemplateActionCreators.tsx'; /* Metro dependency 11422 */
import UseTrackCreateGuildViewed from '../useTrackCreateGuildViewed.tsx'; /* Metro dependency 11424 */
import AcceptGuildTemplate from '../../create_guild/native/AcceptGuildTemplate.tsx'; /* Metro dependency 11425 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as NavigatorConstantsNativeModule from '../../../design/components/Navigator/native/NavigatorConstants.native.tsx'; /* Metro dependency 5314 */
import * as GuildUtilsModule from '../../../utils/GuildUtils.tsx'; /* Metro dependency 6592 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
function _fun87451(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:6, offset: 0x01fbed26, size: 283 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(5) /* metro dependency 5 */;
const env0_5 = importDefault(57) /* metro dependency 57 */;
const env0_6 = importAll(31) /* metro dependency 31 */;
const guildTemplateStore = importDefault(7069) /* metro dependency 7069: GuildTemplateStore */;
const env0_8 = (require(661) /* metro dependency 661: Constants */).UPLOAD_MEDIUM_SIZE;
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
const env0_10 = Reflect.apply(createStyles, createStylesModule, [{container: {marginTop: NAV_BAR_HEIGHT}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/native/AcceptGuildTemplateModal.tsx');
const createStyles = CreateStylesModule.createStyles;
const NAV_BAR_HEIGHT = (NavigatorConstantsNativeModule).NAV_BAR_HEIGHT;
const env0_10 = Reflect.apply(createStyles, CreateStylesModule, [{container: {marginTop: NAV_BAR_HEIGHT}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/native/AcceptGuildTemplateModal.tsx');
exports.default = AcceptGuildTemplateModal;
}
function ConnectedAcceptGuildTemplate({code}) { // fn#87452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:250, offset: 0x01fbee41, size: 396 bytes, params: 2, frame: 25
const styles = useStyles();
const guildTemplate = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildTemplateStore],
function() {
return GuildTemplateStore.getGuildTemplate(code);
});
const binding = env0_6Binding;
const useState = binding.useState;
const guildUtilsModule = importAll(6592) /* metro dependency 6592: GuildUtils */;
const getGuildNameSuggestion = guildUtilsModule.getGuildNameSuggestion;
const value3 = env0_5(Reflect.apply(useState, binding, [Reflect.apply(getGuildNameSuggestion, guildUtilsModule,
[])]), 2);
const property = value3[0];
const env0_3 = value3[1];
const value5 = env0_5(env0_6Binding.useState(null), 2);
const property2 = value5[0];
const env0_4 = property2;
var env0_5 = value5[1];
var [property3, env0_6] = env0_5(env0_6Binding.useState(null), 2);
(importDefault(11424) /* metro dependency 11424: useTrackCreateGuildViewed */)(guildTemplate);
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
return (
<SafeAreaPaddingView top style={styles.container}>
{((Component) => <Component code={code} guildTemplate={guildTemplate} name={property} setName={setName_87454} icon={property2} errors={property3} chooseIcon={env0_4(_fun87456)} createServer={createServer} />)(importDefault(11425) /* metro dependency 11425: AcceptGuildTemplate */)}
</SafeAreaPaddingView>
);
}
function AcceptGuildTemplateModal({code}) { // fn#87460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1032, offset: 0x01fbf0db, size: 105 bytes, params: 2, frame: 15
const value2 = env0_6.useMemo(function() {
return _fun87462({code: code});
}, [code]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
return <Navigator initialRouteName="ACCEPT_GUILD_TEMPLATE" screens={value2} />;
}
function* _fun87456() { // fn#87456, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:697, offset: 0x01fbeff3, size: 96 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var value3 = env2_1(env2_3[13]);
yield value3.openImagePicker({size: env2_8});
value = undefined;
if (false) {
return value;
function ConnectedAcceptGuildTemplate({code}) { // fn#87452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:250, offset: 0x01fbee41, size: 396 bytes, params: 2, frame: 25
const styles = useStyles();
const guildTemplate = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildTemplateStore],
function() {
return GuildTemplateStore.getGuildTemplate(code);
});
const binding = env0_6Binding;
const useState = binding.useState;
const getGuildNameSuggestion = GuildUtilsModule.getGuildNameSuggestion;
const value3 = env0_5(Reflect.apply(useState, binding, [Reflect.apply(getGuildNameSuggestion, GuildUtilsModule,
[])]), 2);
const property = value3[0];
const env0_3 = value3[1];
const value5 = env0_5(env0_6Binding.useState(null), 2);
const property2 = value5[0];
const property22 = property2;
var env0_5 = value5[1];
var [property3, env0_6] = env0_5(env0_6Binding.useState(null), 2);
(UseTrackCreateGuildViewed)(guildTemplate);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
return (
<SafeAreaPaddingView top style={styles.container}>
{((Component) => <Component code={code} guildTemplate={guildTemplate} name={property} setName={setName_87454} icon={property2} errors={property3} chooseIcon={property22(_fun87456)} createServer={createServer} />)(AcceptGuildTemplate)}
</SafeAreaPaddingView>
);
function ConnectedAcceptGuildTemplateSetName(a0) { // fn#87454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:659, owner: ConnectedAcceptGuildTemplate.setName, offset: 0x0105655b, size: 19 bytes, params: 2, frame: 11
return env0_3(a0);
}
var base64 = value.base64;
if (base64 != null) {
value = environment.__proto__;
env1_5(base64);
function* _fun87456() { // fn#87456, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:697, offset: 0x01fbeff3, size: 96 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var value3 = env2_1(env2_3[13]);
yield value3.openImagePicker({size: env2_8});
value = undefined;
if (false) {
return value;
}
var base64 = value.base64;
if (base64 != null) {
value = environment.__proto__;
env1_5(base64);
}
}
}
function createServer() { // fn#87457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:795, owner: ConnectedAcceptGuildTemplate.createServer, offset: 0x01fbf053, size: 99 bytes, params: 1, frame: 16
var environment;
var value2;
var defaultImport;
if (guildTemplate != null) {
value2 = environment.__proto__;
defaultImport = importDefault(11429) /* metro dependency 11429: AcceptGuildTemplateActionCreators */;
defaultImport.acceptGuildTemplate(guildTemplate.code, env0_2, Module00005).then(_fun87458, _fun87459);
}
function _fun87458() { // fn#87458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:856, offset: 0x01fbf0b6, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return (GuildTemplateActionCreators).hideModal();
}
function _fun87459(a0) { // fn#87459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:883, offset: 0x00d79520, size: 19 bytes, params: 2, frame: 11
return env1_6(a0);
}
}
}
}
function createServer() { // fn#87457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:795, owner: ConnectedAcceptGuildTemplate.createServer, offset: 0x01fbf053, size: 99 bytes, params: 1, frame: 16
var environment;
var value2;
var defaultImport;
if (guildTemplate != null) {
value2 = environment.__proto__;
defaultImport = importDefault(11429) /* metro dependency 11429: AcceptGuildTemplateActionCreators */;
defaultImport.acceptGuildTemplate(guildTemplate.code, env0_2, env0_4).then(_fun87458, _fun87459);
function AcceptGuildTemplateModal({code}) { // fn#87460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1032, offset: 0x01fbf0db, size: 105 bytes, params: 2, frame: 15
const value2 = ReactModule.useMemo(function() {
return _fun87462({code: code});
}, [code]);
const Navigator = (NavigatorNativeModule).Navigator;
return <Navigator initialRouteName="ACCEPT_GUILD_TEMPLATE" screens={value2} />;
function _fun87461() { // fn#87461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1093, offset: 0x01fbf144, size: 31 bytes, params: 1, frame: 11
return getScreens_87462({code: code});
function getScreens_87462(a0) { // fn#87462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1097, offset: 0x01fbf163, size: 98 bytes, params: 2, frame: 14
var environment;
const env0_0 = a0;
const object2 = {'title': '', 'fullscreen': true};
const value = environment.__proto__.__proto__;
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun87463);
object2.render = render_87464;
return {['ACCEPT_GUILD_TEMPLATE']: object2};
function _fun87463() { // fn#87463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1197, offset: 0x01fbf1c5, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (GuildTemplateActionCreators).hideModal();
}
function getScreens_87462Render() { // fn#87464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1231, owner: getScreens_87462.render, offset: 0x01fbf1ea, size: 37 bytes, params: 1, frame: 13
return <ConnectedAcceptGuildTemplate {...env0_0} />;
}
}
}
}
}
function _fun87461() { // fn#87461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1093, offset: 0x01fbf144, size: 31 bytes, params: 1, frame: 11
return getScreens_87462({code: code});
}
function _fun87458() { // fn#87458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:856, offset: 0x01fbf0b6, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return (importDefault(11422) /* metro dependency 11422: GuildTemplateActionCreators */).hideModal();
}
function _fun87459(a0) { // fn#87459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:883, offset: 0x00d79520, size: 19 bytes, params: 2, frame: 11
return env1_6(a0);
}
function getScreens_87462(a0) { // fn#87462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1097, offset: 0x01fbf163, size: 98 bytes, params: 2, frame: 14
var environment;
const env0_0 = a0;
const object = {'title': '', 'fullscreen': true};
const value = environment.__proto__.__proto__;
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun87463);
object.render = render_87464;
return {['ACCEPT_GUILD_TEMPLATE']: object};
}
function _fun87463() { // fn#87463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1197, offset: 0x01fbf1c5, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (importDefault(11422) /* metro dependency 11422: GuildTemplateActionCreators */).hideModal();
}
function getScreens_87462Render() { // fn#87464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11609:1231, owner: getScreens_87462.render, offset: 0x01fbf1ea, size: 37 bytes, params: 1, frame: 13
return <ConnectedAcceptGuildTemplate {...env0_0} />;
}
global.__d(_fun87451, 11423, [5, 57, 31, 7069, 661, 33, 4501, 5314, 566, 6592, 11424, 6618, 11425, 4660, 11429,
11422, 5282, 5280,
2]) /* metro module 11423, dependencies: [5, 57, 31, 7069, 661, 33, 4501, 5314, 566, 6592, 11424, 6618, 11425, 4660, 11429, 11422, 5282, 5280, 2] */;
@@ -1,29 +1,35 @@
/* Metro module 11422; source: modules/guild_templates/native/GuildTemplateActionCreators.tsx; dependencies: [6932, 5080, 11423, 1962, 694, 2] */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import GuildTemplateActionCreators from '../GuildTemplateActionCreators.tsx'; /* Metro dependency 6932 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun87448(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11608:6, offset: 0x01fbebaf, size: 148 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {};
copyDataProperties(object2, importDefault(6932) /* metro dependency 6932: GuildTemplateActionCreators */, undefined);
object2['showModal'] = showModal_87449;
object2['hideModal'] = hideModal_87450;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/native/GuildTemplateActionCreators.tsx');
exports.default = object2;
}
object = {};
copyDataProperties(object, GuildTemplateActionCreators, undefined);
object['showModal'] = showModal_87449;
object['hideModal'] = hideModal_87450;
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/native/GuildTemplateActionCreators.tsx');
exports.default = object;
function showModal_87449(a0) { // fn#87449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11608:139, offset: 0x01fbec43, size: 149 bytes, params: 2, frame: 19
const defaultImport = importDefault(dependencyMap[1]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[3]);
value = value(dependencyMap[2], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {code: a0}, 'GUILD_TEMPLATE_MODAL_KEY']);
importDefault(dependencyMap[4]).dispatch({type: 'GUILD_TEMPLATE_MODAL_SHOW', code: a0});
importDefault(dependencyMap[0]).resolveGuildTemplate(a0);
}
function showModal_87449(a0) { // fn#87449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11608:139, offset: 0x01fbec43, size: 149 bytes, params: 2, frame: 19
const defaultImport = importDefault(dependencyMap[1]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[3]);
value = value(dependencyMap[2], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {code: a0}, 'GUILD_TEMPLATE_MODAL_KEY']);
importDefault(dependencyMap[4]).dispatch({type: 'GUILD_TEMPLATE_MODAL_SHOW', code: a0});
importDefault(dependencyMap[0]).resolveGuildTemplate(a0);
}
function hideModal_87450() { // fn#87450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11608:296, offset: 0x01fbecd8, size: 78 bytes, params: 1, frame: 14
(ModalActionCreators).popWithKey('GUILD_TEMPLATE_MODAL_KEY');
(Dispatcher).dispatch({type: 'GUILD_TEMPLATE_MODAL_HIDE'});
}
function hideModal_87450() { // fn#87450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11608:296, offset: 0x01fbecd8, size: 78 bytes, params: 1, frame: 14
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('GUILD_TEMPLATE_MODAL_KEY');
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TEMPLATE_MODAL_HIDE'});
}
global.__d(_fun87448, 11422, [6932, 5080, 11423, 1962, 694,
2]) /* metro module 11422, dependencies: [6932, 5080, 11423, 1962, 694, 2] */;
@@ -1,49 +1,52 @@
/* Metro module 11424; source: modules/guild_templates/useTrackCreateGuildViewed.tsx; dependencies: [31, 6934, 661, 683, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as GuildTemplatesConstantsModule from './GuildTemplatesConstants.tsx'; /* Metro dependency 6934 */
function _fun87465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11610:6, offset: 0x01fbf20f, size: 161 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(6934) /* metro dependency 6934: GuildTemplatesConstants */).GuildTemplateStates;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/useTrackCreateGuildViewed.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_templates/useTrackCreateGuildViewed.tsx');
exports.default = useTrackCreateGuildViewed;
}
function useTrackCreateGuildViewed(a0) { // fn#87466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11610:258, offset: 0x01fbf2b0, size: 55 bytes, params: 2, frame: 12
const env0_0 = a0;
const binding = env0_2;
const env0_1 = binding.useRef([]);
binding.useEffect(_fun87467);
}
function _fun87467() { // fn#87467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11610:328, offset: 0x01fbf2e7, size: 200 bytes, params: 1, frame: 15
var current;
var includes;
var code;
var push;
var binding;
var defaultImport;
var track;
var CREATE_GUILD_VIEWED;
if (env0_0 != null && env0_0.state !== GuildTemplateStates.RESOLVING) {
current = env0_1.current;
includes = current.includes;
code = env0_0.code;
if (!Reflect.apply(includes, current, [code])) {
current = env0_1.current;
push = current.push;
binding = env0_0;
code = binding.code;
Reflect.apply(push, current, [code]);
value = environment.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport.track;
CREATE_GUILD_VIEWED = AnalyticEvents.CREATE_GUILD_VIEWED;
code = binding.code;
Reflect.apply(track, defaultImport, [CREATE_GUILD_VIEWED, {guild_template_code: code,
guild_template_name: binding.name, guild_template_description: binding.description,
guild_template_guild_id: binding.sourceGuildId}]);
function useTrackCreateGuildViewed(a0) { // fn#87466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11610:258, offset: 0x01fbf2b0, size: 55 bytes, params: 2, frame: 12
const env0_0 = a0;
const env0_1 = ReactModule.useRef([]);
ReactModule.useEffect(_fun87467);
function _fun87467() { // fn#87467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11610:328, offset: 0x01fbf2e7, size: 200 bytes, params: 1, frame: 15
var current;
var includes;
var code;
var push;
var binding;
var defaultImport;
var track;
var CREATE_GUILD_VIEWED;
if (env0_0 != null && env0_0.state !== GuildTemplateStates.RESOLVING) {
current = env0_1.current;
includes = current.includes;
code = env0_0.code;
if (!Reflect.apply(includes, current, [code])) {
current = env0_1.current;
push = current.push;
binding = env0_0;
code = binding.code;
Reflect.apply(push, current, [code]);
value = environment.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport.track;
CREATE_GUILD_VIEWED = AnalyticEvents.CREATE_GUILD_VIEWED;
code = binding.code;
Reflect.apply(track, defaultImport, [CREATE_GUILD_VIEWED, {guild_template_code: code,
guild_template_name: binding.name, guild_template_description: binding.description,
guild_template_guild_id: binding.sourceGuildId}]);
}
}
}
}
}
global.__d(_fun87465, 11424, [31, 6934, 661, 683,
2]) /* metro module 11424, dependencies: [31, 6934, 661, 683, 2] */;