Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,289 @@
|
||||
/* Metro module 2646; source: modules/premium/game_server/GameServer.messages.js; dependencies: [1247, 2647, 2648, 2649, 2650, 2651, 2652, 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, 2671, 2672, 2673, 2674, 2675, 2676, 2677, 1282, 2] */
|
||||
function _fun23928(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#23928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:6, offset: 0x00f13bb0, size: 453 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {bg: bg_23929, cs: cs_23931, da: da_23933, de: de_23935, el: el_23937};
|
||||
object2['en-GB'] = _fun23939;
|
||||
object2['es-419'] = _fun23941;
|
||||
object2['es-ES'] = _fun23943;
|
||||
object2.fi = fi_23945;
|
||||
object2.fr = fr_23947;
|
||||
object2.hi = hi_23949;
|
||||
object2.hr = hr_23951;
|
||||
object2.hu = hu_23953;
|
||||
object2.it = it_23955;
|
||||
object2.ja = ja_23957;
|
||||
object2.ko = ko_23959;
|
||||
object2.lt = lt_23961;
|
||||
object2.nl = nl_23963;
|
||||
object2.no = no_23965;
|
||||
object2.pl = pl_23967;
|
||||
object2['pt-BR'] = _fun23969;
|
||||
object2.ro = ro_23971;
|
||||
object2.ru = ru_23973;
|
||||
object2['sv-SE'] = _fun23975;
|
||||
object2.th = th_23977;
|
||||
object2.tr = tr_23979;
|
||||
object2.uk = uk_23981;
|
||||
object2.vi = vi_23983;
|
||||
object2['zh-CN'] = _fun23985;
|
||||
object2['zh-TW'] = _fun23987;
|
||||
object2['en-US'] = _fun23989;
|
||||
let value = require(1282) /* metro dependency 1282 */;
|
||||
value = value.createLoader(object2, 'en-US');
|
||||
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServer.messages.js');
|
||||
exports.default = messagesProxy;
|
||||
exports.messagesLoader = value;
|
||||
}
|
||||
|
||||
function bg_23929() { // fn#23929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:102, offset: 0x00f13d75, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2647) /* metro dependency 2647 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function cs_23931() { // fn#23931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:165, offset: 0x00f13db6, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2648) /* metro dependency 2648 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function da_23933() { // fn#23933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:228, offset: 0x00f13df7, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2649) /* metro dependency 2649 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function de_23935() { // fn#23935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:291, offset: 0x00f13e38, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2650) /* metro dependency 2650 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function el_23937() { // fn#23937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:354, offset: 0x00f13e79, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2651) /* metro dependency 2651 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun23939() { // fn#23939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:422, offset: 0x00f13eba, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2652) /* metro dependency 2652 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun23941() { // fn#23941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:491, offset: 0x00f13efb, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2653) /* metro dependency 2653 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun23943() { // fn#23943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:559, offset: 0x00f13f3c, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2654) /* metro dependency 2654 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function fi_23945() { // fn#23945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:622, offset: 0x00f13f7d, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2655) /* metro dependency 2655 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function fr_23947() { // fn#23947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:685, offset: 0x00f13fbe, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2656) /* metro dependency 2656 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function hi_23949() { // fn#23949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:749, offset: 0x00f13fff, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2657) /* metro dependency 2657 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function hr_23951() { // fn#23951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:813, offset: 0x00f14040, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2658) /* metro dependency 2658 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function hu_23953() { // fn#23953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:877, offset: 0x00f14081, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2659) /* metro dependency 2659 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function it_23955() { // fn#23955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:941, offset: 0x00f140c2, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2660) /* metro dependency 2660 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function ja_23957() { // fn#23957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1005, offset: 0x00f14103, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2661) /* metro dependency 2661 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function ko_23959() { // fn#23959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1069, offset: 0x00f14144, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2662) /* metro dependency 2662 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function lt_23961() { // fn#23961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1133, offset: 0x00f14185, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2663) /* metro dependency 2663 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function nl_23963() { // fn#23963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1197, offset: 0x00f141c6, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2664) /* metro dependency 2664 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function no_23965() { // fn#23965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1261, offset: 0x00f14207, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2665) /* metro dependency 2665 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function pl_23967() { // fn#23967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1325, offset: 0x00f14248, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2666) /* metro dependency 2666 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun23969() { // fn#23969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1394, offset: 0x00f14289, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2667) /* metro dependency 2667 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function ro_23971() { // fn#23971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1458, offset: 0x00f142ca, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2668) /* metro dependency 2668 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function ru_23973() { // fn#23973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1522, offset: 0x00f1430b, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2669) /* metro dependency 2669 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun23975() { // fn#23975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1591, offset: 0x00f1434c, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2670) /* metro dependency 2670 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function th_23977() { // fn#23977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1655, offset: 0x00f1438d, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2671) /* metro dependency 2671 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function tr_23979() { // fn#23979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1719, offset: 0x00f143ce, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2672) /* metro dependency 2672 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function uk_23981() { // fn#23981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1783, offset: 0x00f1440f, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2673) /* metro dependency 2673 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function vi_23983() { // fn#23983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1847, offset: 0x00f14450, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2674) /* metro dependency 2674 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun23985() { // fn#23985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1916, offset: 0x00f14491, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2675) /* metro dependency 2675 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun23987() { // fn#23987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1985, offset: 0x00f144d2, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2676) /* metro dependency 2676 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun23989() { // fn#23989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:2054, offset: 0x00f14513, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(2677) /* metro dependency 2677 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,265 @@
|
||||
/* Metro module 14602; source: modules/premium/game_server/GameServerActionCreators.tsx; dependencies: [1949, 1878, 8260, 661, 694, 14603, 4141, 14605, 507, 8257, 683, 14606, 2] */
|
||||
function _fun110389(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:6, offset: 0x02377dbc, size: 353 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_5 = (require(8260) /* metro dependency 8260: GameServerConstants */).GAME_SERVER_COLLECTION_ID;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = constantsModule.AnalyticEvents;
|
||||
const env0_7 = constantsModule.Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServerActionCreators.tsx');
|
||||
exports.fetchGameServerCatalog = fetchGameServerCatalog;
|
||||
exports.fetchGameServerGlobalCatalog = fetchGameServerGlobalCatalog;
|
||||
exports.fetchGameServerInstances = fetchGameServerInstances;
|
||||
exports.fetchGameServerInstructions = fetchGameServerInstructions;
|
||||
exports.acceptGameServerToS = acceptGameServerToS;
|
||||
exports.resetGameServerRegionState = resetGameServerRegionState;
|
||||
exports.updateGameServerRegionPingState = updateGameServerRegionPingState;
|
||||
exports.enableGameServerForGuild = function(a0, a1, a2, a3) {
|
||||
var HTTP = require(dependencyMap[8]).HTTP;
|
||||
var object = {};
|
||||
object.url = Endpoints.GUILD_POWERUP_TOGGLE(a0, a1);
|
||||
object.body = {game_server_name: a2, game_server_region: a3};
|
||||
object.rejectWithError = true;
|
||||
object.oldFormErrors = true;
|
||||
return HTTP.post(object);
|
||||
};
|
||||
exports.updateGameServerForGuild = function(a0, a1, a2, a3) {
|
||||
var HTTP = require(dependencyMap[8]).HTTP;
|
||||
var object = {};
|
||||
object.url = Endpoints.GUILD_POWERUP_UPDATE(a0, a1);
|
||||
object.body = {game_server_name: a3, sku_id: a2};
|
||||
object.rejectWithError = true;
|
||||
object.oldFormErrors = true;
|
||||
return HTTP.patch(object);
|
||||
};
|
||||
exports.disableGameServerForGuild = function(a0, a1, a2) {
|
||||
var HTTP = require(dependencyMap[8]).HTTP;
|
||||
var object = {};
|
||||
object.url = Endpoints.GUILD_POWERUP_TOGGLE(a0, a1);
|
||||
object.query = {entitlement_id: a2};
|
||||
object.rejectWithError = true;
|
||||
object.oldFormErrors = true;
|
||||
return HTTP.del(object);
|
||||
};
|
||||
exports.fetchGameServerRegions = fetchGameServerRegions;
|
||||
exports.wakeGameServer = wakeGameServer;
|
||||
}
|
||||
|
||||
function fetchGameServerCatalog(a0) { // fn#110390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:312, offset: 0x02377f1d, size: 228 bytes, params: 2, frame: 20
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
let r2 = value !== value2 ? value : false;
|
||||
if (r2) {
|
||||
global.setTimeout(_fun110393, 5000);
|
||||
return value2;
|
||||
}
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
r2 = currentUser == null ? value2 : currentUser.isStaff();
|
||||
const r6 = r2 != null && r2;
|
||||
const storeUtilsModule = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
const httpGetWithCountryCodeQuery = storeUtilsModule.httpGetWithCountryCodeQuery;
|
||||
const object2 = {'url': null, 'query': null, 'oldFormErrors': true, 'rejectWithError': false, 'retries': 2};
|
||||
object2.url = Endpoints.STOREFRONT_COLLECTION_WITH_PRODUCTS(GAME_SERVER_COLLECTION_ID);
|
||||
object2.query = {locale: LocaleStore.locale, guild_id: a0, include_unpublished_products: r6,
|
||||
include_unpublished_collection: r6};
|
||||
return Reflect.apply(httpGetWithCountryCodeQuery, storeUtilsModule, [object2]).then(_fun110391);
|
||||
}
|
||||
|
||||
function fetchGameServerGlobalCatalog() { // fn#110395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1068, offset: 0x0237810a, size: 173 bytes, params: 1, frame: 16
|
||||
const isStaff = UserStore.getCurrentUser()?.isStaff();
|
||||
const r4 = isStaff != null && isStaff;
|
||||
const storeUtilsModule = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
const httpGetWithCountryCodeQuery = storeUtilsModule.httpGetWithCountryCodeQuery;
|
||||
const object2 = {'url': null, 'query': null, 'oldFormErrors': true, 'rejectWithError': false, 'retries': 2};
|
||||
object2.url = Endpoints.STOREFRONT_COLLECTION_WITH_PRODUCTS(GAME_SERVER_COLLECTION_ID);
|
||||
object2.query = {locale: LocaleStore.locale, include_unpublished_products: r4, include_unpublished_collection: r4};
|
||||
return Reflect.apply(httpGetWithCountryCodeQuery, storeUtilsModule, [object2]).then(function(a0) {
|
||||
importDefault(dependencyMap[4]).dispatch({type: 'GAME_SERVER_FETCH_GLOBAL_CATALOG_SUCCESS',
|
||||
catalog: a0.body.products.reduce(_fun110397, {})});
|
||||
});
|
||||
}
|
||||
|
||||
function fetchGameServerInstances(a0) { // fn#110398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1627, offset: 0x02378212, size: 167 bytes, params: 2, frame: 17
|
||||
var HTTP;
|
||||
var get;
|
||||
var object2;
|
||||
let value = a1;
|
||||
const env0_0 = a0;
|
||||
let r0 = value !== undefined ? value : false;
|
||||
if (r0) {
|
||||
global.setTimeout(_fun110399, 5000);
|
||||
r0 = global.Promise.resolve();
|
||||
} else {
|
||||
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
get = HTTP.get;
|
||||
object2 = {'url': null, 'rejectWithError': true, 'retries': 2};
|
||||
object2.url = Endpoints.GAME_SERVERS(a0);
|
||||
object2.signal = a2;
|
||||
value = Reflect.apply(get, HTTP, [object2]);
|
||||
value = value.then(_fun110401);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function fetchGameServerInstructions(a0, a1) { // fn#110403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2159, offset: 0x023783bf, size: 128 bytes, params: 3, frame: 16
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const storeUtilsModule = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
const httpGetWithCountryCodeQuery = storeUtilsModule.httpGetWithCountryCodeQuery;
|
||||
const object2 = {};
|
||||
object2.url = Endpoints.STOREFRONT_PRODUCT_BY_SKU_ID(a1);
|
||||
object2.query = {locale: LocaleStore.locale};
|
||||
object2.rejectWithError = true;
|
||||
object2.retries = 3;
|
||||
return Reflect.apply(httpGetWithCountryCodeQuery, storeUtilsModule, [object2]).then(_fun110404);
|
||||
}
|
||||
|
||||
function acceptGameServerToS(a0, a1) { // fn#110405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2636, offset: 0x023784e3, size: 98 bytes, params: 3, frame: 16
|
||||
var currentUser;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED;
|
||||
if (a0) {
|
||||
value2 = undefined;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED = AnalyticEvents.GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED;
|
||||
currentUser = UserStore.getCurrentUser();
|
||||
Reflect.apply(track, defaultImport, [GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED,
|
||||
{user_id: currentUser == null ? value2 : currentUser.id, provider: a1}]);
|
||||
}
|
||||
}
|
||||
|
||||
function resetGameServerRegionState() { // fn#110406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2838, offset: 0x02378545, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_REGION_PING_STATE_RESET'});
|
||||
}
|
||||
|
||||
function updateGameServerRegionPingState(a0, a1) { // fn#110407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2974, offset: 0x02378576, size: 64 bytes, params: 3, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_REGION_PING_STATE_UPDATE',
|
||||
pingUrl: a0, state: a1});
|
||||
}
|
||||
|
||||
function fetchGameServerRegions(a0) { // fn#110411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:3736, offset: 0x023786e9, size: 99 bytes, params: 2, frame: 14
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
const get = HTTP.get;
|
||||
const object2 = {'url': null, 'rejectWithError': true, 'oldFormErrors': true, 'retries': 3};
|
||||
object2.url = Endpoints.GAME_SERVER_REGIONS(a0);
|
||||
return Reflect.apply(get, HTTP, [object2]).then(_fun110412);
|
||||
}
|
||||
|
||||
function wakeGameServer(a0, a1) { // fn#110414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:4038, offset: 0x023787b4, size: 100 bytes, params: 3, frame: 17
|
||||
const env0_0 = a0;
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
const post = HTTP.post;
|
||||
const object2 = {};
|
||||
object2.url = Endpoints.GAME_SERVER_WAKE(a0, a1);
|
||||
object2.rejectWithError = true;
|
||||
return Reflect.apply(post, HTTP, [object2]).then(_fun110415);
|
||||
}
|
||||
|
||||
function _fun110391({body}) { // fn#110391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:676, offset: 0x02378001, size: 102 bytes, params: 2, frame: 15
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_FETCH_CATALOG_SUCCESS',
|
||||
guildId: env0_0, catalog: body.products.reduce(_fun110392, {})});
|
||||
}
|
||||
|
||||
function _fun110393() { // fn#110393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:880, offset: 0x0237809c, size: 110 bytes, params: 1, frame: 17
|
||||
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = defaultImport.dispatch;
|
||||
const object2 = {type: 'GAME_SERVER_FETCH_CATALOG_SUCCESS'};
|
||||
object2.guildId = env0_0;
|
||||
const GAME_SERVER_GAME_MOCKS = (require(14603) /* metro dependency 14603: GameServerMocks */).GAME_SERVER_GAME_MOCKS;
|
||||
object2.catalog = GAME_SERVER_GAME_MOCKS.reduce(function(a0, a1) {
|
||||
a0[a1.id] = a1;
|
||||
return a0;
|
||||
}, {});
|
||||
Reflect.apply(dispatch, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function _fun110396({body}) { // fn#110396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1410, offset: 0x023781b7, size: 91 bytes, params: 2, frame: 15
|
||||
const value = body.products.reduce(_fun110397, {});
|
||||
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
defaultImport.dispatch({type: 'GAME_SERVER_FETCH_GLOBAL_CATALOG_SUCCESS', catalog: value});
|
||||
}
|
||||
|
||||
function _fun110399() { // fn#110399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1693, offset: 0x023782b9, size: 108 bytes, params: 1, frame: 17
|
||||
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = defaultImport.dispatch;
|
||||
const object2 = {type: 'GAME_SERVER_FETCH_INSTANCES_SUCCESS'};
|
||||
object2.guildId = env0_0;
|
||||
const GAME_SERVER_INSTANCE_MOCKS = (require(14603) /* metro dependency 14603: GameServerMocks */).GAME_SERVER_INSTANCE_MOCKS;
|
||||
object2.instances = GAME_SERVER_INSTANCE_MOCKS.reduce(function(a0, a1) {
|
||||
a0[a1.id] = a1;
|
||||
return a0;
|
||||
}, {});
|
||||
Reflect.apply(dispatch, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function _fun110401(a0) { // fn#110401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1962, offset: 0x02378325, size: 107 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
var value;
|
||||
var value2;
|
||||
if (a0.body != null) {
|
||||
value = a0.body.reduce(function(a0, a1) {
|
||||
a0[a1.id] = importDefault(dependencyMap[9])(a1);
|
||||
return a0;
|
||||
}, {});
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_FETCH_INSTANCES_SUCCESS',
|
||||
|
||||
guildId: env0_0, instances: value});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun110404(a0) { // fn#110404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2344, offset: 0x0237843f, size: 164 bytes, params: 2, frame: 14
|
||||
var r3;
|
||||
var tenant_metadata;
|
||||
var value;
|
||||
var value2;
|
||||
if (a0.body != null) {
|
||||
tenant_metadata = a0.body.tenant_metadata;
|
||||
value = undefined;
|
||||
r3 = (tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value : tenant_metadata.guild_monetization.game_server.instructions.pc) ?? [];
|
||||
value2 = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS', guildId: env0_0, skuId: require,
|
||||
instructions: r3});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun110412({body}) { // fn#110412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:3879, offset: 0x0237874c, size: 104 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = value.dispatch;
|
||||
const object2 = {type: 'GAME_SERVER_FETCH_REGIONS_SUCCESS'};
|
||||
object2.regions = body.map(importDefault(14606) /* metro dependency 14606: regionResponseToRegion */).sort(function({name},
|
||||
a1) {
|
||||
return name.localeCompare(a1.name);
|
||||
});
|
||||
Reflect.apply(dispatch, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun110415({body}) { // fn#110415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:4148, offset: 0x02378818, size: 90 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = value.dispatch;
|
||||
const object2 = {type: 'GAME_SERVER_UPDATE_INSTANCE_SUCCESS'};
|
||||
object2.guildId = env0_0;
|
||||
object2.instance = (importDefault(8257) /* metro dependency 8257: gameServerResponseToInstance */)(body);
|
||||
Reflect.apply(dispatch, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun110392(a0, a1) { // fn#110392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:710, offset: 0x02378067, size: 53 bytes, params: 3, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(14605) /* metro dependency 14605: productToGameServerGame */;
|
||||
value = value.productToGameServerGame(a1);
|
||||
a0[value.id] = value;
|
||||
return a0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/* Metro module 8260; source: modules/premium/game_server/GameServerConstants.tsx; dependencies: [7, 6, 1884, 8261, 2] */
|
||||
function _fun66090(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8445:6, offset: 0x01beb84a, size: 954 bytes, params: 8, frame: 29
|
||||
var object4;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const Environments = (require(1884) /* metro dependency 1884: UserStoreConstants */).Environments;
|
||||
object4 = {SELECT_GAME: 'select-game', SERVER_SETTINGS: 'server-settings'};
|
||||
const object5 = {};
|
||||
const object6 = {};
|
||||
let SELECT_GAME = object4.SELECT_GAME;
|
||||
let SERVER_SETTINGS = object4.SERVER_SETTINGS;
|
||||
object6[SELECT_GAME] = {onBack: {type: 'close'}, onNext: {type: 'go-to-step', step: SERVER_SETTINGS}};
|
||||
SERVER_SETTINGS = object4.SERVER_SETTINGS;
|
||||
SELECT_GAME = object4.SELECT_GAME;
|
||||
object6[SERVER_SETTINGS] = {onBack: {type: 'go-to-step', step: SELECT_GAME}, onNext: {type: 'save'}};
|
||||
object5.steps = object6;
|
||||
let GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
let PROJECT_ENV = GLOBAL_ENV.PROJECT_ENV;
|
||||
const r10 = PROJECT_ENV === 'production' ? '1425215263548117002' : global.window.GLOBAL_ENV.PROJECT_ENV !== 'staging' ? '1415025086791942144' : '1415044199572832256';
|
||||
GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
PROJECT_ENV = GLOBAL_ENV.PROJECT_ENV;
|
||||
const r9 = PROJECT_ENV !== 'production' ? '1486428380437020672' : '1361763069696675961';
|
||||
GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
PROJECT_ENV = GLOBAL_ENV.PROJECT_ENV;
|
||||
const r8 = PROJECT_ENV === 'production' ? '1402418491272986635' : global.window.GLOBAL_ENV.PROJECT_ENV !== 'staging' ? '1' : '356875570916753438';
|
||||
GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
PROJECT_ENV = GLOBAL_ENV.PROJECT_ENV;
|
||||
const r7 = PROJECT_ENV === 'production' ? '1458530944955973852' : global.window.GLOBAL_ENV.PROJECT_ENV !== 'staging' ? '2' : '1458563423670501376';
|
||||
value = value(NewGamesCoachmarkContent);
|
||||
GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
PROJECT_ENV = GLOBAL_ENV.PROJECT_ENV;
|
||||
value.FEATURED_PRODUCT_ID = PROJECT_ENV !== 'production' ? '1497097140001046528' : '1497100850261131334';
|
||||
GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
PROJECT_ENV = GLOBAL_ENV.PROJECT_ENV;
|
||||
value.FEATURED_GAME_ID = PROJECT_ENV !== 'production' ? '1497095960202051584' : '1440133627899023452';
|
||||
value.FEATURED_GAME_NAME = 'Windrose';
|
||||
value.SECOND_GAME_NAME = 'Factorio';
|
||||
value.THIRD_GAME_NAME = 'V Rising';
|
||||
const object7 = {SHOCKBYTE: 0};
|
||||
object7[0] = 'SHOCKBYTE';
|
||||
const object8 = {};
|
||||
const GameServerProviderType = (require(8261) /* metro dependency 8261: GameServerProviderType */).GameServerProviderType;
|
||||
let SHOCKBYTE = GameServerProviderType.SHOCKBYTE;
|
||||
GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
const RELEASE_CHANNEL = GLOBAL_ENV.RELEASE_CHANNEL;
|
||||
const STAGING = Environments.STAGING;
|
||||
object8[SHOCKBYTE] = RELEASE_CHANNEL !== STAGING ? 'https://discord.shockbyte.com/support' : 'https://purple-prod.shockbyte.dev/support';
|
||||
const object9 = {};
|
||||
SHOCKBYTE = GameServerProviderType.SHOCKBYTE;
|
||||
object9[SHOCKBYTE] = 'https://shockbyte.com/legal/acceptable-use-policy';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServerConstants.tsx');
|
||||
exports.GameServerSetupStep = object4;
|
||||
exports.GAME_SERVER_DEFAULT_STEP_CONFIG = object5;
|
||||
exports.GAME_SERVER_SLIDE_PADDING = 24;
|
||||
exports.GAME_SERVER_SLIDE_WIDTH = 680;
|
||||
exports.GAME_SERVER_SLIDE_CONTENT_WIDTH = 632;
|
||||
exports.GAME_SERVER_MAX_INSTANCES = 10;
|
||||
exports.GAME_SERVER_MAX_NAME_LENGTH = 32;
|
||||
exports.GAME_SERVER_MIN_DELAY_TIME_MS = 1000;
|
||||
exports.GAME_SERVER_COLLECTION_ID = r10;
|
||||
exports.RUNESCAPE_GAME_ID = r9;
|
||||
exports.MINECRAFT_GAME_ID = r8;
|
||||
exports.HYTALE_GAME_ID = r7;
|
||||
exports.NewGamesCoachmarkContent = value;
|
||||
exports.GameServerGameProvider = object7;
|
||||
exports.GAME_SERVER_SUPPORT_URLS = object8;
|
||||
exports.GAME_SERVER_TOS = object9;
|
||||
exports.GAME_SERVER_SURVEY_URL = function(a0, a1) {
|
||||
return 'https://discord.sjc1.qualtrics.com/jfe/form/SV_2h34PnQLPTCjTTM?user_id=' + a0 + '&guild_id=' + a1;
|
||||
};
|
||||
exports.GAME_SERVER_POWERUP_SKU_ID = '0';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 6857; source: modules/premium/game_server/GameServerExperiment.tsx; dependencies: [4620, 2] */
|
||||
function _fun54090(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7035:6, offset: 0x0135c6dd, size: 194 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(4620) /* metro dependency 4620: experiments */;
|
||||
value = value.createExperiment({'kind': 'guild', 'id': '2025-08_portkey_enabled', 'label': 'GameServer Enabled',
|
||||
defaultConfig: {enabled: false}, treatments: [{'id': 1, 'label': 'Enable GameServer',
|
||||
config: {enabled: true}}]});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServerExperiment.tsx');
|
||||
exports.GameServerExperiment = value;
|
||||
exports.getGameServerEnabled = getGameServerEnabled;
|
||||
exports.useGameServerEnabled = useGameServerEnabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,363 @@
|
||||
/* Metro module 8255; source: modules/premium/game_server/GameServerStore.tsx; dependencies: [6, 7, 15, 17, 18, 8256, 8257, 566, 694, 2] */
|
||||
function _fun66017(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:6, offset: 0x01be92f0, size: 482 bytes, params: 8, frame: 19
|
||||
const recalculateAppliedBoosts = function(a0, a1) {
|
||||
var Object = global.Object;
|
||||
return Object.values(a1).reduce(_fun66023, 0);
|
||||
};
|
||||
const closure = GAME_SERVER_CREATE;
|
||||
let 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 */;
|
||||
let env0_7 = {};
|
||||
object = {catalog: {}, hasFetchedCatalog: false, catalogLastFetchedAt: undefined};
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
let value = _fun66026(PersistedStore);
|
||||
value.displayName = 'GameServerStore';
|
||||
value.persistKey = 'GameServerStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
|
||||
env0_7 = {};
|
||||
env0_8 = {catalog: {}, hasFetchedCatalog: false, catalogLastFetchedAt: undefined};
|
||||
}, GAME_SERVER_FETCH_CATALOG_SUCCESS: GAME_SERVER_FETCH_CATALOG_SUCCESS,
|
||||
GAME_SERVER_FETCH_GLOBAL_CATALOG_SUCCESS: function({catalog}) {
|
||||
var object = {catalog: catalog, hasFetchedCatalog: true};
|
||||
object.catalogLastFetchedAt = global.Date.now();
|
||||
env0_8 = object;
|
||||
}, GAME_SERVER_FETCH_INSTANCES_SUCCESS: GAME_SERVER_FETCH_INSTANCES_SUCCESS,
|
||||
GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS: GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS,
|
||||
GAME_SERVER_UPDATE_INSTANCE_SUCCESS: GAME_SERVER_UPDATE_INSTANCE_SUCCESS,
|
||||
GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS: GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS, GAME_SERVER_CREATE: closure,
|
||||
GAME_SERVER_UPDATE: closure, GAME_SERVER_DELETE: GAME_SERVER_DELETE,
|
||||
GUILD_POWERUP_ENTITLEMENTS_CREATE: function({guildId, entitlements}) {
|
||||
var value2 = getStateForGuild(guildId);
|
||||
var env0_0 = value2;
|
||||
entitlements.filter(_fun66050).forEach(_fun66051);
|
||||
handleGameServerEntitlementsChanged(guildId, value2);
|
||||
}, GUILD_POWERUP_ENTITLEMENTS_DELETE: function({guildId, entitlements}) {
|
||||
var value2 = getStateForGuild(guildId);
|
||||
var env0_0 = value2;
|
||||
entitlements.forEach(_fun66053);
|
||||
handleGameServerEntitlementsChanged(guildId, value2);
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServerStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_66018() { // fn#66018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:148, offset: 0x01be94d2, 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_66018_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function getStateForGuild(a0) { // fn#66021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:422, offset: 0x01be9534, size: 68 bytes, params: 2, frame: 5
|
||||
if (env0_7[a0] == null) {
|
||||
env0_7[a0] = {catalog: {}, instances: {}, instructions: {}, entitlements: {}};
|
||||
}
|
||||
return env0_7[a0];
|
||||
}
|
||||
|
||||
function recalculateAppliedBoosts(a0, a1) { // fn#66022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:540, offset: 0x01be9578, size: 46 bytes, params: 3, frame: 13
|
||||
const Object = global.Object;
|
||||
return Object.values(a1).reduce(_fun66023, 0);
|
||||
}
|
||||
|
||||
function GAME_SERVER_CREATE({guildId, gameServer}) { // fn#66024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:666, offset: 0x01be95de, size: 123 bytes, params: 2, frame: 20
|
||||
const stateForGuild = getStateForGuild(guildId);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, env0_7, undefined);
|
||||
const object5 = {};
|
||||
copyDataProperties(object5, stateForGuild, undefined);
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, stateForGuild.instances, undefined);
|
||||
object6[gameServer.id] = (importDefault(8257) /* metro dependency 8257: gameServerResponseToInstance */)(gameServer);
|
||||
object5['instances'] = object6;
|
||||
object4[guildId] = object5;
|
||||
}
|
||||
|
||||
function handleGameServerEntitlementsChanged(a0, a1) { // fn#66025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:824, offset: 0x01be9659, size: 72 bytes, params: 3, frame: 15
|
||||
const value2 = recalculateAppliedBoosts(undefined, a1.entitlements);
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, env0_7, value2);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, a1, value2);
|
||||
object4['appliedBoosts'] = value2;
|
||||
object3[a0] = object4;
|
||||
}
|
||||
|
||||
function _fun66026(a0) { // fn#66026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:965, offset: 0x01be96a1, size: 332 bytes, params: 2, frame: 16
|
||||
const closure = GameServerStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: value_66028}, {key: 'getState', value: value_66029},
|
||||
{key: 'getStateForGuild', value: value_66030}, {key: 'getGlobalCatalogState', value: value_66031},
|
||||
{key: 'getGlobalCatalogGame', value: value_66032}, {key: 'getLowestGameCostForGuild', value: value_66034},
|
||||
{key: 'hasFetchedCatalog', value: value_66036}, {key: 'hasFetchedInstances', value: value_66037},
|
||||
{key: 'shouldFetchCatalogForGuild', value: value_66038}, {key: 'shouldFetchInstancesForGuild',
|
||||
value: value_66039}, {key: 'shouldFetchGlobalCatalog', value: value_66040}]);
|
||||
}
|
||||
|
||||
function GAME_SERVER_FETCH_CATALOG_SUCCESS({guildId, catalog}) { // fn#66042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2660, offset: 0x01be9a4b, size: 107 bytes, params: 2, frame: 16
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, env0_7, catalog);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, getStateForGuild(guildId), catalog);
|
||||
object4['catalog'] = catalog;
|
||||
object4['hasFetchedCatalog'] = true;
|
||||
const Date = global.Date;
|
||||
object4['catalogLastFetchedAt'] = Date.now();
|
||||
object3[guildId] = object4;
|
||||
}
|
||||
|
||||
function GAME_SERVER_FETCH_INSTANCES_SUCCESS({guildId, instances}) { // fn#66044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3019, offset: 0x01be9aee, size: 111 bytes, params: 2, frame: 16
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, env0_7, instances);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, getStateForGuild(guildId), instances);
|
||||
object4['instances'] = instances;
|
||||
object4['hasFetchedInstances'] = true;
|
||||
const Date = global.Date;
|
||||
object4['instancesLastFetchedAt'] = Date.now();
|
||||
object3[guildId] = object4;
|
||||
}
|
||||
|
||||
function GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS({guildId, skuId, instructions}) { // fn#66045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3233, offset: 0x01be9b5d, size: 100 bytes, params: 2, frame: 18
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, env0_7, undefined);
|
||||
const object5 = {};
|
||||
const getStateForGuildBinding = getStateForGuild;
|
||||
copyDataProperties(object5, getStateForGuildBinding(guildId), getStateForGuildBinding);
|
||||
const object6 = {};
|
||||
const stateForGuildBinding = getStateForGuildBinding(guildId);
|
||||
copyDataProperties(object6, stateForGuildBinding.instructions, stateForGuildBinding);
|
||||
object6[skuId] = instructions;
|
||||
object5['instructions'] = object6;
|
||||
object4[guildId] = object5;
|
||||
}
|
||||
|
||||
function GAME_SERVER_UPDATE_INSTANCE_SUCCESS({guildId, instance}) { // fn#66046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3436, offset: 0x01be9bc1, size: 98 bytes, params: 2, frame: 17
|
||||
const stateForGuild = getStateForGuild(guildId);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, env0_7, instance);
|
||||
const object5 = {};
|
||||
copyDataProperties(object5, stateForGuild, instance);
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, stateForGuild.instances, instance);
|
||||
object6[instance.id] = instance;
|
||||
object5['instances'] = object6;
|
||||
object4[guildId] = object5;
|
||||
}
|
||||
|
||||
function GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS({guildId, unlockedGameServers}) { // fn#66047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3619, offset: 0x01be9c23, size: 89 bytes, params: 2, frame: 17
|
||||
const value2 = recalculateAppliedBoosts(undefined, unlockedGameServers);
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, env0_7, unlockedGameServers);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, getStateForGuild(guildId), unlockedGameServers);
|
||||
object4['entitlements'] = unlockedGameServers;
|
||||
object4['appliedBoosts'] = value2;
|
||||
object3[guildId] = object4;
|
||||
}
|
||||
|
||||
function GAME_SERVER_DELETE({guildId, gameServerId}) { // fn#66048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3926, offset: 0x01be9c7c, size: 74 bytes, params: 2, frame: 15
|
||||
const stateForGuild = getStateForGuild(guildId);
|
||||
delete stateForGuild.instances[gameServerId];
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, env0_7, stateForGuild);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, stateForGuild, stateForGuild);
|
||||
object3[guildId] = object4;
|
||||
}
|
||||
|
||||
function GUILD_POWERUP_ENTITLEMENTS_CREATE({guildId, entitlements}) { // fn#66049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4098, offset: 0x01be9cc6, size: 80 bytes, params: 2, frame: 17
|
||||
const stateForGuild = getStateForGuild(guildId);
|
||||
entitlements.filter(function({sku}) {
|
||||
return (sku == null || sku.tenant_metadata == null || sku.tenant_metadata.guild_monetization == null ? undefined : sku.tenant_metadata.guild_monetization.game_server) != null;
|
||||
}).forEach(_fun66051);
|
||||
handleGameServerEntitlementsChanged(guildId, stateForGuild);
|
||||
}
|
||||
|
||||
function GUILD_POWERUP_ENTITLEMENTS_DELETE({guildId, entitlements}) { // fn#66052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4447, offset: 0x01be9d71, size: 63 bytes, params: 2, frame: 16
|
||||
const stateForGuild = getStateForGuild(guildId);
|
||||
entitlements.forEach(_fun66053);
|
||||
handleGameServerEntitlementsChanged(guildId, stateForGuild);
|
||||
}
|
||||
|
||||
function _fun66023(a0, a1) { // fn#66023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:611, offset: 0x01be95a6, size: 56 bytes, params: 3, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(8256) /* metro dependency 8256: getPowerupEntitlementPrice */;
|
||||
value = value(a1);
|
||||
return a0 + (value ?? 0);
|
||||
}
|
||||
|
||||
function value_66028(a0) { // fn#66028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1270, offset: 0x01be97ed, size: 20 bytes, params: 2, frame: 2
|
||||
var value;
|
||||
if (a0 != null) {
|
||||
value = environment.__proto__;
|
||||
env1_7 = a0;
|
||||
}
|
||||
}
|
||||
|
||||
function value_66030(a0) { // fn#66030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1373, offset: 0x01be9801, size: 27 bytes, params: 2, frame: 3
|
||||
return a0 != null ? env1_7[a0] : undefined;
|
||||
}
|
||||
|
||||
function value_66032(a0) { // fn#66032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1505, offset: 0x01be981c, size: 60 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const value = environment.__proto__;
|
||||
return Reflect.apply(values, Object, [env1_8.catalog]).find(_fun66033);
|
||||
}
|
||||
|
||||
function value_66034(a0) { // fn#66034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1614, offset: 0x01be986e, size: 135 bytes, params: 2, frame: 18
|
||||
var r1;
|
||||
var items;
|
||||
var Math;
|
||||
var min;
|
||||
let value = null;
|
||||
if (value == a0) {
|
||||
return value;
|
||||
}
|
||||
const property = env1_7[a0];
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const catalog = value == property ? undefined : property.catalog;
|
||||
const value4 = Reflect.apply(values, Object, [value != catalog ? catalog : {}]);
|
||||
if (value4.length === 0) {
|
||||
r1 = value;
|
||||
} else {
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value = value4.map(function(a0) {
|
||||
return a0.baseCost;
|
||||
});
|
||||
items = [];
|
||||
arraySpread(items, value, 0, value4);
|
||||
value = apply(min, items, Math, value4);
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function value_66036(a0) { // fn#66036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1817, offset: 0x01be9900, size: 46 bytes, params: 2, frame: 4
|
||||
var r0;
|
||||
var property;
|
||||
let value = a0 != null;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
property = env1_7[a0];
|
||||
value = undefined;
|
||||
value = (property == null ? value : property.hasFetchedCatalog) === true;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_66037(a0) { // fn#66037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1935, offset: 0x01be992e, size: 48 bytes, params: 2, frame: 4
|
||||
var r0;
|
||||
var property;
|
||||
let value = a0 != null;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
property = env1_7[a0];
|
||||
value = undefined;
|
||||
value = (property == null ? value : property.hasFetchedInstances) === true;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_66038(a0) { // fn#66038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2062, offset: 0x01be995e, size: 71 bytes, params: 2, frame: 11
|
||||
var r0;
|
||||
var Date;
|
||||
let value = environment.__proto__;
|
||||
const catalogLastFetchedAt = env1_7[a0]?.catalogLastFetchedAt;
|
||||
value = catalogLastFetchedAt == null;
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = catalogLastFetchedAt + 86400000;
|
||||
Date = global.Date;
|
||||
value = value < Date.now();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_66039(a0) { // fn#66039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2202, offset: 0x01be99a5, size: 73 bytes, params: 2, frame: 11
|
||||
var r0;
|
||||
var Date;
|
||||
let value = environment.__proto__;
|
||||
const instancesLastFetchedAt = env1_7[a0]?.instancesLastFetchedAt;
|
||||
value = instancesLastFetchedAt == null;
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = instancesLastFetchedAt + 300000;
|
||||
Date = global.Date;
|
||||
value = value < Date.now();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_66040() { // fn#66040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2342, offset: 0x01be99ee, size: 55 bytes, params: 1, frame: 11
|
||||
var r0;
|
||||
var Date;
|
||||
let value = environment.__proto__;
|
||||
const catalogLastFetchedAt = env1_8.catalogLastFetchedAt;
|
||||
value = catalogLastFetchedAt == null;
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = catalogLastFetchedAt + 86400000;
|
||||
Date = global.Date;
|
||||
value = value < Date.now();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun66051(a0) { // fn#66051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4341, offset: 0x01be9d54, size: 29 bytes, params: 2, frame: 3
|
||||
env0_0.entitlements[a0.id] = a0;
|
||||
}
|
||||
|
||||
function _fun66053({id}) { // fn#66053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4556, offset: 0x01be9db0, size: 29 bytes, params: 2, frame: 2
|
||||
delete env0_0.entitlements[id];
|
||||
}
|
||||
|
||||
function _fun66033({gameId}) { // fn#66033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1555, offset: 0x01be9858, size: 22 bytes, params: 2, frame: 2
|
||||
return gameId === env0_0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 14618; source: modules/premium/game_server/experiments/GameServerPricingExperiment.tsx; dependencies: [4620, 6857, 2] */
|
||||
function _fun110522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14815:6, offset: 0x0237beff, size: 193 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(4620) /* metro dependency 4620: experiments */;
|
||||
value = value.createExperiment({'kind': 'guild', 'id': '2026-03_game_server_pricing',
|
||||
'label': 'Game Server Pricing', defaultConfig: {enabled: false}, treatments: [{'id': 1,
|
||||
'label': 'Enable Game Server Pricing', config: {enabled: true}}]});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/experiments/GameServerPricingExperiment.tsx');
|
||||
exports.GameServerPricingExperiment = value;
|
||||
exports.useIsGameServerPricingEnabled = useIsGameServerPricingEnabled;
|
||||
}
|
||||
|
||||
function useIsGameServerPricingEnabled(a0, a1) { // fn#110523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14815:471, offset: 0x0237bfc0, size: 91 bytes, params: 3, frame: 15
|
||||
const value2 = (require(6857) /* metro dependency 6857: GameServerExperiment */).useGameServerEnabled(a0, a1);
|
||||
const binding = env0_2;
|
||||
const useExperiment = binding.useExperiment;
|
||||
return value2 && Reflect.apply(useExperiment, binding, [{guildId: a0, location: a1},
|
||||
{autoTrackExposure: false}]).enabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 14727; source: modules/premium/game_server/experiments/GameServerTabAlwaysOnExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun111039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14924:6, offset: 0x02391244, size: 158 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-02-game-server-tab-always-on',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/experiments/GameServerTabAlwaysOnExperiment.tsx');
|
||||
exports.useIsGameServerTabAlwaysOnEnabled = useIsGameServerTabAlwaysOnEnabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 14617; source: modules/premium/game_server/experiments/NewGamesCoachmarkExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun110520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14814:6, offset: 0x0237be61, size: 158 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-04-new-games-coachmark',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/experiments/NewGamesCoachmarkExperiment.tsx');
|
||||
exports.useIsNewGamesCoachmarkEnabled = useIsNewGamesCoachmarkEnabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 12305; source: modules/premium/game_server/hooks/useGameServerFeaturedGameNames.tsx; dependencies: [8260, 5198, 2] */
|
||||
function _fun93977(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12491:6, offset: 0x020cd6b4, size: 127 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const gameServerConstantsModule = require(8260) /* metro dependency 8260: GameServerConstants */;
|
||||
const env0_2 = gameServerConstantsModule.MINECRAFT_GAME_ID;
|
||||
const env0_3 = gameServerConstantsModule.HYTALE_GAME_ID;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerFeaturedGameNames.tsx');
|
||||
exports.default = useGameServerFeaturedGameNames;
|
||||
}
|
||||
|
||||
function useGameServerFeaturedGameNames() { // fn#93978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12491:259, offset: 0x020cd733, size: 150 bytes, params: 1, frame: 16
|
||||
const value2 = undefined;
|
||||
const useGameModule = require(5198) /* metro dependency 5198: useGame */;
|
||||
let useGame = useGameModule.useGame;
|
||||
const data = Reflect.apply(useGame, useGameModule, [MINECRAFT_GAME_ID]).data;
|
||||
const moduleValue2 = useGameModule;
|
||||
useGame = moduleValue2.useGame;
|
||||
const data2 = Reflect.apply(useGame, moduleValue2, [HYTALE_GAME_ID]).data;
|
||||
return {gameName: (data == null ? value2 : data.name) ?? 'Minecraft',
|
||||
gameName2: (data2 == null ? value2 : data2.name) ?? 'Hytale'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 14626; source: modules/premium/game_server/hooks/useGameServerGetExpiringEntitlements.tsx; dependencies: [31, 8255, 566, 14609, 2] */
|
||||
function _fun110563(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:6, offset: 0x0237d542, size: 133 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const gameServerStore = importDefault(8255) /* metro dependency 8255: GameServerStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerGetExpiringEntitlements.tsx');
|
||||
exports.default = useGameServerGetExpiringEntitlements;
|
||||
}
|
||||
|
||||
function useGameServerGetExpiringEntitlements(a0) { // fn#110564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:234, offset: 0x0237d5c7, size: 115 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const stateForGuild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameServerStore],
|
||||
_fun110565);
|
||||
return env0_2.useMemo(_fun110566, [stateForGuild == null ? value2 : stateForGuild.entitlements]);
|
||||
}
|
||||
|
||||
function _fun110566() { // fn#110566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:367, offset: 0x0237d63a, size: 107 bytes, params: 1, frame: 15
|
||||
var value3;
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
var expiringGuildEntitlements;
|
||||
let r0 = stateForGuild?.entitlements ?? ({});
|
||||
if (Reflect.apply(values, Object, [r0]).length === 0) {
|
||||
r0 = [];
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
expiringGuildEntitlements = (require(14609) /* metro dependency 14609: getExpiringGuildEntitlements */).getExpiringGuildEntitlements(expiringGuildEntitlements);
|
||||
r0 = expiringGuildEntitlements;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/* Metro module 12304; source: modules/premium/game_server/hooks/useGameServerPerk.tsx; dependencies: [31, 8255, 8259, 8260, 6857, 566, 12305, 1244, 2646, 12306, 2] */
|
||||
function _fun93973(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:6, offset: 0x020cd437, size: 181 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const gameServerStore = importDefault(8255) /* metro dependency 8255: GameServerStore */;
|
||||
const env0_5 = (require(8259) /* metro dependency 8259: GuildPowerupsConstants */).GuildPowerupType;
|
||||
const env0_6 = (require(8260) /* metro dependency 8260: GameServerConstants */).GAME_SERVER_POWERUP_SKU_ID;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerPerk.tsx');
|
||||
exports.default = useGameServerPerk;
|
||||
}
|
||||
|
||||
function useGameServerPerk(a0) { // fn#93974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:280, offset: 0x020cd4ec, size: 186 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(6857) /* metro dependency 6857: GameServerExperiment */).useGameServerEnabled(a0,
|
||||
'useGameServerPerk');
|
||||
const lowestGameCostForGuild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameServerStore],
|
||||
_fun93975);
|
||||
const value3 = (importDefault(12305) /* metro dependency 12305: useGameServerFeaturedGameNames */)();
|
||||
const gameName = value3.gameName;
|
||||
return gameName.useMemo(_fun93976, [value2, lowestGameCostForGuild, gameName, value3.gameName2]);
|
||||
}
|
||||
|
||||
function _fun93975() { // fn#93975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:402, offset: 0x020cd5a6, size: 27 bytes, params: 1, frame: 11
|
||||
return GameServerStore.getLowestGameCostForGuild(env0_0);
|
||||
}
|
||||
|
||||
function _fun93976() { // fn#93976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:496, offset: 0x020cd5c1, size: 243 bytes, params: 1, frame: 22
|
||||
var r0;
|
||||
var object2;
|
||||
var value3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value2 = null;
|
||||
if (env0_1) {
|
||||
if (value2 != lowestGameCostForGuild) {
|
||||
object2 = {};
|
||||
value3 = environment.__proto__;
|
||||
object2.skuId = GAME_SERVER_POWERUP_SKU_ID;
|
||||
object2.title = intl.string((importDefault(2646) /* metro dependency 2646: GameServerMessages */)['B3OfL/']);
|
||||
object2.description = intl.format((importDefault(2646) /* metro dependency 2646: GameServerMessages */)['+UqyGU'],
|
||||
|
||||
|
||||
{gameName: gameName, gameName2: gameName2});
|
||||
object2.cost = lowestGameCostForGuild;
|
||||
object2.dependencies = [];
|
||||
object2.type = GuildPowerupType.PERK;
|
||||
object2.animatedImageUrl = importDefault(12306) /* metro dependency 12306: game_server_tilePng */;
|
||||
object2.staticImageUrl = importDefault(12306) /* metro dependency 12306: game_server_tilePng */;
|
||||
r0 = object2;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 14672; source: modules/premium/game_server/hooks/useGameServerPowerupStatus.tsx; dependencies: [31, 8255, 566, 14626, 1244, 2256, 2] */
|
||||
function _fun110757(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:6, offset: 0x02386032, size: 137 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const gameServerStore = importDefault(8255) /* metro dependency 8255: GameServerStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerPowerupStatus.tsx');
|
||||
exports.default = useGameServerPowerupStatus;
|
||||
}
|
||||
|
||||
function useGameServerPowerupStatus(a0) { // fn#110758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:224, offset: 0x023860bb, size: 138 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
return env0_3.useMemo(_fun110760,
|
||||
[(importDefault(14626) /* metro dependency 14626: useGameServerGetExpiringEntitlements */)(a0),
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStores([GameServerStore], _fun110759, [a0])]);
|
||||
}
|
||||
|
||||
function _fun110759() { // fn#110759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:301, offset: 0x02386145, size: 44 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return GameServerStore.getStateForGuild(env0_0)?.entitlements;
|
||||
}
|
||||
|
||||
function _fun110760() { // fn#110760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:411, offset: 0x02386171, size: 182 bytes, params: 1, frame: 17
|
||||
var object2;
|
||||
var intl;
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
let r0 = env0_1 ?? ({});
|
||||
if (Reflect.apply(values, Object, [r0]).length !== 0) {
|
||||
if (env0_2.length > 0) {
|
||||
r0 = {type: 'expiring', expiringAt: env0_2[0].ends_at};
|
||||
} else {
|
||||
object2 = {type: 'active'};
|
||||
value = environment.__proto__;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.statusText = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).FFLkmx);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 14603; source: modules/premium/game_server/mocks/GameServerMocks.tsx; dependencies: [8261, 14604, 2] */
|
||||
function _fun110416(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14800:6, offset: 0x02378872, size: 1078 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = createMockGame;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const items2 = [{'id': '1', 'name': 'GameServer #1', 'cost': 3, specifications: [{'title': '2',
|
||||
'description': 'GB'}, {'title': '1', 'description': 'vCPU'}, {'title': '25', 'description': 'GB'}]}];
|
||||
items2[1] = {'id': '2', 'name': 'GameServer #2', 'cost': 6, specifications: [{'title': '2', 'description': 'GB'},
|
||||
{'title': '1', 'description': 'vCPU'}, {'title': '25', 'description': 'GB'}]};
|
||||
items2[2] = {'id': '3', 'name': 'GameServer #3', 'cost': 12, specifications: [{'title': '2', 'description': 'GB'},
|
||||
{'title': '1', 'description': 'vCPU'}, {'title': '25', 'description': 'GB'}]};
|
||||
items = [closure('1', 'GameServer Test #1'), closure('2', 'GameServer Test #2'), closure('3', 'GameServer Test #3'),
|
||||
closure('4', 'GameServer Test #4'), closure('5', 'GameServer Test #5'), closure('6', 'GameServer Test #6'),
|
||||
closure('7', 'GameServer Test #7'), closure('8', 'GameServer Test #8'), closure('9', 'GameServer Test #9'),
|
||||
closure('10', 'GameServer Test #10'), closure('11', 'GameServer Test #11'), closure('12',
|
||||
'GameServer Test #12')];
|
||||
const object3 = {'id': '1', 'gameId': '1', 'name': 'GameServer Test #1', 'port': '25565', 'regionId': 'us-east',
|
||||
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
|
||||
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
|
||||
'entitlementId': '1'};
|
||||
object3.planId = items2[1].id;
|
||||
object3.planName = items2[1].name;
|
||||
const GameServerStatus = (require(14604) /* metro dependency 14604: GameServerStatus */).GameServerStatus;
|
||||
let ONLINE = GameServerStatus.ONLINE;
|
||||
object3.status = ONLINE;
|
||||
const items5 = [object3];
|
||||
ONLINE = GameServerStatus.ONLINE;
|
||||
items5[1] = {'id': '2', 'gameId': '2', 'name': 'GameServer Test #2', 'port': '25565', 'regionId': 'us-east',
|
||||
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
|
||||
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
|
||||
'entitlementId': '2', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
|
||||
ONLINE = GameServerStatus.ONLINE;
|
||||
items5[2] = {'id': '3', 'gameId': '3', 'name': 'GameServer Test #3', 'port': '25565', 'regionId': 'us-east',
|
||||
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
|
||||
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
|
||||
'entitlementId': '3', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
|
||||
ONLINE = GameServerStatus.ONLINE;
|
||||
items5[3] = {'id': '4', 'gameId': '4', 'name': 'GameServer Test #4', 'port': '25565', 'regionId': 'us-east',
|
||||
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
|
||||
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
|
||||
'entitlementId': '4', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
|
||||
ONLINE = GameServerStatus.ONLINE;
|
||||
items5[4] = {'id': '5', 'gameId': '5', 'name': 'GameServer Test #5', 'port': '25565', 'regionId': 'us-east',
|
||||
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
|
||||
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
|
||||
'entitlementId': '5', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
|
||||
ONLINE = GameServerStatus.ONLINE;
|
||||
items5[5] = {'id': '6', 'gameId': '6', 'name': 'GameServer Test #6', 'port': '25565', 'regionId': 'us-east',
|
||||
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
|
||||
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
|
||||
'entitlementId': '6', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/mocks/GameServerMocks.tsx');
|
||||
exports.GAME_SERVER_GAME_MOCKS = items;
|
||||
exports.GAME_SERVER_INSTANCE_MOCKS = items5;
|
||||
}
|
||||
|
||||
function createMockGame(a0, a1) { // fn#110417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14800:533, offset: 0x02378ca8, size: 146 bytes, params: 3, frame: 17
|
||||
const object2 = {id: a0, name: a1};
|
||||
const GameServerProviderType = (require(8261) /* metro dependency 8261: GameServerProviderType */).GameServerProviderType;
|
||||
const SHOCKBYTE = GameServerProviderType.SHOCKBYTE;
|
||||
object2.provider = SHOCKBYTE;
|
||||
object2.plans = env0_2;
|
||||
const Math = global.Math;
|
||||
const min = Math.min;
|
||||
const binding = env0_2;
|
||||
const value = binding.map(function(a0) {
|
||||
return a0.cost;
|
||||
});
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, binding);
|
||||
object2.baseCost = apply(min, items2, Math, binding);
|
||||
object2.gameId = '1';
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 8257; source: modules/premium/game_server/utils/gameServerResponseToInstance.tsx; dependencies: [2] */
|
||||
function _fun66056(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8442:6, offset: 0x01be9f03, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/utils/gameServerResponseToInstance.tsx');
|
||||
exports.default = gameServerResponseToInstance;
|
||||
}
|
||||
|
||||
function gameServerResponseToInstance({id, name, region_id, region_name, sku_id, plan_name, players_count, max_players_count, ip, port, entitlement_id, provider_type, provider_url, status, game_id, game_config}) { // fn#66057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8442:202, offset: 0x01be9f5a, size: 210 bytes, params: 2, frame: 5
|
||||
return {id: id, name: name, regionId: region_id, regionName: region_name, planId: sku_id, planName: plan_name,
|
||||
onlineConnectionsCount: players_count ?? 0, maxConnectionsCount: max_players_count, serverIP: ip, port: port,
|
||||
entitlementId: entitlement_id, providerType: provider_type, gameServerPanelUrl: provider_url, status: status,
|
||||
gameId: game_id, gameConfig: game_config};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 14605; source: modules/premium/game_server/utils/productToGameServerGame.tsx; dependencies: [2] */
|
||||
function _fun110420(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:6, offset: 0x02378df7, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/utils/productToGameServerGame.tsx');
|
||||
exports.productToGameServerGame = productToGameServerGame;
|
||||
}
|
||||
|
||||
function productToGameServerGame(a0) { // fn#110421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:214, offset: 0x02378e4e, size: 444 bytes, params: 2, frame: 19
|
||||
var r2;
|
||||
var Math;
|
||||
var min;
|
||||
var value3;
|
||||
var object;
|
||||
let value = a0.skus.map(function(a0) {
|
||||
return {id: a0.id, name: a0.name, cost: a0.tenant_metadata.boost_price,
|
||||
specifications: a0.tenant_metadata.plan_features.map(_fun110423)};
|
||||
});
|
||||
value = value.sort(function(a0, {cost}) {
|
||||
return cost - a0.cost;
|
||||
});
|
||||
const length = value.length;
|
||||
const value2 = 0;
|
||||
if (length > value2) {
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value3 = value.map(function(a0) {
|
||||
return a0.cost;
|
||||
});
|
||||
object = [];
|
||||
arraySpread(object, value3, value2, undefined);
|
||||
r2 = apply(min, object, Math, undefined);
|
||||
} else {
|
||||
r2 = value2;
|
||||
}
|
||||
object = {};
|
||||
object.id = a0.id;
|
||||
object.name = a0.name;
|
||||
let tenant_metadata = a0.tenant_metadata;
|
||||
const value5 = undefined;
|
||||
object.gameId = (tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.game_application_id) ?? '';
|
||||
tenant_metadata = a0.tenant_metadata;
|
||||
object.provider = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.provider;
|
||||
object.plans = value;
|
||||
object.baseCost = r2;
|
||||
tenant_metadata = a0.tenant_metadata;
|
||||
object.disabled = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.disabled;
|
||||
tenant_metadata = a0.tenant_metadata;
|
||||
object.early_access = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.early_access;
|
||||
tenant_metadata = a0.tenant_metadata;
|
||||
object.can_market = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.can_market;
|
||||
return object;
|
||||
}
|
||||
|
||||
function _fun110422(a0) { // fn#110422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:280, offset: 0x0237900a, size: 80 bytes, params: 2, frame: 12
|
||||
return {id: a0.id, name: a0.name, cost: a0.tenant_metadata.boost_price,
|
||||
specifications: a0.tenant_metadata.plan_features.map(function(a0) {
|
||||
return {title: a0.title, description: a0.description};
|
||||
})};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 14606; source: modules/premium/game_server/utils/regionResponseToRegion.tsx; dependencies: [2] */
|
||||
function _fun110426(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14803:6, offset: 0x0237908b, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/utils/regionResponseToRegion.tsx');
|
||||
exports.default = function(a0) {
|
||||
return {id: a0.id, name: a0.name, countryCode: a0.country_code, pingUrl: a0.ping_url, enabled: a0.enabled};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user