Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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