Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,797 @@
|
||||
/* Metro module 6829; source: modules/slayer_storefront/SlayerStorefrontUtils.tsx; dependencies: [4234, 6830, 4235, 1867, 6831, 6832, 661, 663, 482, 4141, 22, 6833, 1471, 4123, 566, 6777, 2] */
|
||||
function _fun53668(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:6, offset: 0x01352dab, size: 715 bytes, params: 8, frame: 24
|
||||
let env0_0 = require;
|
||||
const _arrayLikeToArray_53671 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = getCountryPrices_53672;
|
||||
const closure2 = getPrice_53673;
|
||||
const closure3 = hasSocialLayerStorefront;
|
||||
const closure4 = isOnCollectiblesShopGameShopPage;
|
||||
const closure5 = getSKUShareURL;
|
||||
const getSocialLayerStorefrontApplicationIdHelper = function(a0, a1) {
|
||||
return a1 ?? ((a0 == null || a0.gameApplicationIds == null ? undefined : a0.gameApplicationIds.length) !== 1 ? undefined : a0.gameApplicationIds[0]);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
const env0_4 = (require(6830) /* metro dependency 6830: WishlistRecommendationRecord */).WishlistRecommendationReason;
|
||||
const applicationRecord = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const socialLayerStorefrontStore = importDefault(6831) /* metro dependency 6831: SocialLayerStorefrontStore */;
|
||||
let value = require(6832) /* metro dependency 6832: SocialLayerStorefrontConstants */;
|
||||
const env0_8 = value.getChannelsGameShopPrefix;
|
||||
const env0_9 = value.STOREFRONT_MARKETING_GUILD_ID;
|
||||
const env0_10 = value.STOREFRONT_MARKETING_GUILD_ID_TEST;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = value.GuildFeatures;
|
||||
const env0_12 = value.PriceSetAssignmentPurchaseTypes;
|
||||
const env0_13 = value.Routes;
|
||||
const env0_14 = value.SKUProductLines;
|
||||
const env0_15 = (require(663) /* metro dependency 663: CollectiblesShopConstants */).CollectibleShopTab;
|
||||
const env0_16 = (require(482) /* metro dependency 482: Constants */).CurrencyCodes;
|
||||
const SUPPORTS_WEBP = (require(4141) /* metro dependency 4141: StoreUtils */).SUPPORTS_WEBP;
|
||||
const r8 = SUPPORTS_WEBP ? 'webp' : 'jpg';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/SlayerStorefrontUtils.tsx');
|
||||
exports.LARGE_ASSET_FORMAT = r8;
|
||||
exports.hasPrice = hasPrice;
|
||||
exports.getCountryPrices = closure;
|
||||
exports.getPrice = closure2;
|
||||
exports.isGiftPriceDifferent = isGiftPriceDifferent;
|
||||
exports.getOrderedStorefrontSkuIds = getOrderedStorefrontSkuIds;
|
||||
exports.isGameItemSKU = isGameItemSKU;
|
||||
exports.getMarketingGuildId = function() {
|
||||
var value2 = GuildStore.getGuild(STOREFRONT_MARKETING_GUILD_ID_TEST);
|
||||
return value2 == null ? STOREFRONT_MARKETING_GUILD_ID : value2.features.has(GuildFeatures.SOCIAL_LAYER_STOREFRONT) ? value2.id : STOREFRONT_MARKETING_GUILD_ID;
|
||||
};
|
||||
exports.hasSocialLayerStorefront = closure3;
|
||||
exports.transformStorefrontMetadataServer = function(a0) {
|
||||
var object = {};
|
||||
var property = a0.logo_asset_id;
|
||||
var value = null;
|
||||
object.logoAssetId = value != property ? property : value;
|
||||
property = a0.light_theme_logo_asset_id;
|
||||
object.lightThemeLogoAssetId = value != property ? property : value;
|
||||
return object;
|
||||
};
|
||||
exports.transformSlayerApplicationStorefrontServer = transformSlayerApplicationStorefrontServer;
|
||||
exports.getPrimaryCarouselItemInfo = getPrimaryCarouselItemInfo;
|
||||
exports.getGameItemThumbnailUrl = getGameItemThumbnailUrl;
|
||||
exports.getCardImageURL = getCardImageURL;
|
||||
exports.getCardBackgroundImageURL = getCardBackgroundImageURL;
|
||||
exports.isOnCollectiblesShopGameShopPage = closure4;
|
||||
exports.getSKUShareURL = closure5;
|
||||
exports.getForwardedSKUShareURL = getForwardedSKUShareURL;
|
||||
exports.canSeeGameShop = canSeeGameShop;
|
||||
exports.getHasWishlistOrPopularRecommendations = function(a0, a1, a2) {
|
||||
var env0_0 = a1;
|
||||
var env0_1 = a2;
|
||||
return a0.length === 0 ? {'hasWishlist': false, 'hasPopular': false} : {hasWishlist: a0.some(_fun53694),
|
||||
hasPopular: a0.some(_fun53696)};
|
||||
};
|
||||
exports.isOnSocialLayerStorefrontPage = isOnSocialLayerStorefrontPage;
|
||||
exports.isOnSocialLayerStorefrontSkuPage = isOnSocialLayerStorefrontSkuPage;
|
||||
exports.useGetSocialLayerStorefrontGuildIdAndApplication = useGetSocialLayerStorefrontGuildIdAndApplication;
|
||||
exports.getSocialLayerStorefrontApplicationId = getSocialLayerStorefrontApplicationId;
|
||||
exports.useGetSocialLayerStorefrontApplicationId = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return getSocialLayerStorefrontApplicationIdHelper(require(dependencyMap[14]).useStateFromStores([GuildStore],
|
||||
_fun53705, [a0]), require(dependencyMap[14]).useStateFromStores([SocialLayerStorefrontStore], _fun53704));
|
||||
};
|
||||
exports.getSocialLayerStorefrontGuildId = getSocialLayerStorefrontGuildId;
|
||||
exports.transformSocialLayerStorefrontAffinityServer = transformSocialLayerStorefrontAffinityServer;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_53669(a0, a1) { // fn#53669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:445, offset: 0x01353076, 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)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun53670;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_53671(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') {
|
||||
value = _arrayLikeToArray_53671(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_53671(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun53670;
|
||||
}
|
||||
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 getCountryPrices_53672(a0, a1) { // fn#53672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:1397, offset: 0x013531e8, size: 181 bytes, params: 3, frame: 7
|
||||
var countryPrices;
|
||||
let prices = a0.prices;
|
||||
const value = null;
|
||||
if (value == prices[a1]) {
|
||||
prices = a0.prices;
|
||||
if (value != prices[PriceSetAssignmentPurchaseTypes.DEFAULT]) {
|
||||
prices = a0.prices;
|
||||
countryPrices = prices[PriceSetAssignmentPurchaseTypes.DEFAULT].countryPrices;
|
||||
prices = countryPrices.prices;
|
||||
countryPrices = prices.length > 0 ? a0.prices[PriceSetAssignmentPurchaseTypes.DEFAULT].countryPrices : value;
|
||||
} else {
|
||||
countryPrices = value;
|
||||
}
|
||||
} else {
|
||||
prices = a0.prices;
|
||||
countryPrices = prices[a1].countryPrices;
|
||||
prices = countryPrices.prices;
|
||||
if (prices.length > 0) {
|
||||
countryPrices = a0.prices[a1].countryPrices;
|
||||
} else {
|
||||
prices = a0.prices;
|
||||
if (value != prices[PriceSetAssignmentPurchaseTypes.DEFAULT]) {
|
||||
prices = a0.prices;
|
||||
countryPrices = prices[PriceSetAssignmentPurchaseTypes.DEFAULT].countryPrices;
|
||||
prices = countryPrices.prices;
|
||||
countryPrices = prices.length > 0 ? a0.prices[PriceSetAssignmentPurchaseTypes.DEFAULT].countryPrices : value;
|
||||
} else {
|
||||
countryPrices = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return countryPrices;
|
||||
}
|
||||
|
||||
function getPrice_53673(a0, a1) { // fn#53673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:1638, offset: 0x0135329d, size: 64 bytes, params: 3, frame: 13
|
||||
var price;
|
||||
var r0;
|
||||
const countryPrices_53672 = getCountryPrices_53672(a0, a1);
|
||||
const value2 = null;
|
||||
if (value2 != countryPrices_53672) {
|
||||
r0 = countryPrices_53672.prices[0];
|
||||
} else {
|
||||
price = a0.price;
|
||||
price = value2 != price ? a0.price : value2;
|
||||
r0 = price;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function hasSocialLayerStorefront(a0) { // fn#53674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:1743, offset: 0x013532dd, size: 189 bytes, params: 2, frame: 17
|
||||
const storefrontGuildIds = SocialLayerStorefrontStore.getStorefrontGuildIds();
|
||||
if (storefrontGuildIds.has(a0.id)) {
|
||||
return true;
|
||||
}
|
||||
if ('type' in a0) {
|
||||
return false;
|
||||
}
|
||||
const getSocialLayerStorefrontApplicationIdHelperBinding = getSocialLayerStorefrontApplicationIdHelper;
|
||||
const applicationIdFromGuildId = SocialLayerStorefrontStore.getApplicationIdFromGuildId(a0.id);
|
||||
const value4 = undefined;
|
||||
const socialLayerStorefrontApplicationIdHelperBinding = getSocialLayerStorefrontApplicationIdHelperBinding(a0,
|
||||
applicationIdFromGuildId);
|
||||
const storefrontApplicationIds = SocialLayerStorefrontStore.getStorefrontApplicationIds();
|
||||
const r5 = socialLayerStorefrontApplicationIdHelperBinding == null || !storefrontApplicationIds.has(socialLayerStorefrontApplicationIdHelperBinding);
|
||||
return r5 ? (a0.features == null ? value4 : a0.features.has(GuildFeatures.SOCIAL_LAYER_STOREFRONT)) ?? (a0.features == null ? value4 : a0.features.has(GuildFeatures.SOCIAL_LAYER_STOREFRONT)) != null : !r5;
|
||||
}
|
||||
|
||||
function isOnCollectiblesShopGameShopPage(a0, a1, a2, a3) { // fn#53675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:2085, offset: 0x0135339a, size: 139 bytes, params: 5, frame: 16
|
||||
var r1;
|
||||
var r0;
|
||||
const {tab, applicationId, skuId} = (require(4123) /* metro dependency 4123 */).parse(a1);
|
||||
const indexOf = a0.indexOf;
|
||||
const COLLECTIBLES_SHOP = Routes.COLLECTIBLES_SHOP;
|
||||
const value4 = Reflect.apply(indexOf, a0, [COLLECTIBLES_SHOP]) >= 0;
|
||||
if (value4) {
|
||||
r1 = tab === CollectibleShopTab.GAME_SHOPS && applicationId === a2;
|
||||
r1 = r1 && (a3 == null || skuId === a3);
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value4;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getSKUShareURL(a0, a1) { // fn#53676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:2283, offset: 0x01353425, size: 241 bytes, params: 3, frame: 21
|
||||
var r0;
|
||||
var value;
|
||||
var isOnCollectiblesShopGameShopPageBinding;
|
||||
var location;
|
||||
var pathname;
|
||||
var protocol;
|
||||
var WEBAPP_ENDPOINT;
|
||||
if (a0 == null) {
|
||||
protocol = global.location.protocol;
|
||||
WEBAPP_ENDPOINT = global.window.GLOBAL_ENV.WEBAPP_ENDPOINT;
|
||||
value = Routes.COLLECTIBLES_SHOP_GAME_SHOP(a1.applicationId, undefined, a1.id, a1.slug);
|
||||
value = '' + protocol + WEBAPP_ENDPOINT + value;
|
||||
r0 = value;
|
||||
} else {
|
||||
isOnCollectiblesShopGameShopPageBinding = isOnCollectiblesShopGameShopPage;
|
||||
location = global.location;
|
||||
pathname = location.pathname;
|
||||
location = global.location;
|
||||
if (isOnCollectiblesShopGameShopPageBinding(pathname, location.search, a1.applicationId)) {
|
||||
protocol = global.location.protocol;
|
||||
WEBAPP_ENDPOINT = global.window.GLOBAL_ENV.WEBAPP_ENDPOINT;
|
||||
value = Routes.COLLECTIBLES_SHOP_GAME_SHOP(a1.applicationId, undefined, a1.id, a1.slug);
|
||||
value = '' + protocol + WEBAPP_ENDPOINT + value;
|
||||
r0 = value;
|
||||
} else {
|
||||
protocol = global.location.protocol;
|
||||
WEBAPP_ENDPOINT = global.window.GLOBAL_ENV.WEBAPP_ENDPOINT;
|
||||
value = Routes.GAME_SHOP(a0, a1.id, a1.slug);
|
||||
value = '' + protocol + WEBAPP_ENDPOINT + value;
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function hasPrice(a0) { // fn#53678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:2924, offset: 0x01353559, size: 47 bytes, params: 2, frame: 4
|
||||
return a0.price != null || a0.prices[PriceSetAssignmentPurchaseTypes.DEFAULT] != null;
|
||||
}
|
||||
|
||||
function isGiftPriceDifferent(a0) { // fn#53679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:3076, offset: 0x01353588, size: 149 bytes, params: 2, frame: 16
|
||||
let getPrice_53673Binding = getPrice_53673;
|
||||
const DEFAULT = PriceSetAssignmentPurchaseTypes.DEFAULT;
|
||||
const r2 = getPrice_53673Binding(a0, DEFAULT) ?? ({amount: 0, currency: CurrencyCodes.USD});
|
||||
getPrice_53673Binding = getPrice_53673;
|
||||
const GIFT = PriceSetAssignmentPurchaseTypes.GIFT;
|
||||
const r1 = getPrice_53673Binding(a0, GIFT) ?? ({amount: 0, currency: CurrencyCodes.USD});
|
||||
return r2.currency !== r1.currency || r2.amount !== r1.amount;
|
||||
}
|
||||
|
||||
function getOrderedStorefrontSkuIds({pages}) { // fn#53680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:3321, offset: 0x0135361d, size: 356 bytes, params: 2, frame: 28
|
||||
var r6;
|
||||
var r13;
|
||||
var r1;
|
||||
var r15;
|
||||
var value5;
|
||||
var skuIds;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var has;
|
||||
var value9;
|
||||
var sections;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var value15;
|
||||
var value16;
|
||||
var value17;
|
||||
var value18;
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
const items2 = [];
|
||||
const value3 = _createForOfIteratorHelperLoose_53669(pages);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r6 = value4;
|
||||
while (true) {
|
||||
value5 = r6.value;
|
||||
_createForOfIteratorHelperLoose_53669Binding = _createForOfIteratorHelperLoose_53669;
|
||||
skuIds = value5.skuIds;
|
||||
value6 = _createForOfIteratorHelperLoose_53669Binding(skuIds);
|
||||
value7 = value6();
|
||||
done = value7.done;
|
||||
if (!done) {
|
||||
r13 = value7;
|
||||
while (true) {
|
||||
value8 = r13.value;
|
||||
has = set.has;
|
||||
if (!Reflect.apply(has, set, [value8])) {
|
||||
set.add(value8);
|
||||
items2.push(value8);
|
||||
}
|
||||
value9 = value6();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r13 = value9;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
_createForOfIteratorHelperLoose_53669Binding = _createForOfIteratorHelperLoose_53669;
|
||||
sections = value5.sections;
|
||||
if (sections != null) {
|
||||
r1 = sections;
|
||||
continue;
|
||||
}
|
||||
value10 = _createForOfIteratorHelperLoose_53669Binding([]);
|
||||
value11 = value10();
|
||||
done = value11.done;
|
||||
if (done) {
|
||||
continue;
|
||||
}
|
||||
r13 = value11;
|
||||
while (true) {
|
||||
_createForOfIteratorHelperLoose_53669Binding = _createForOfIteratorHelperLoose_53669;
|
||||
value12 = r13.value;
|
||||
skuIds = value12.skuIds;
|
||||
value13 = _createForOfIteratorHelperLoose_53669Binding(skuIds);
|
||||
value14 = value13();
|
||||
done = value14.done;
|
||||
if (!done) {
|
||||
r15 = value14;
|
||||
while (true) {
|
||||
value15 = r15.value;
|
||||
has = set.has;
|
||||
if (!Reflect.apply(has, set, [value15])) {
|
||||
set.add(value15);
|
||||
items2.push(value15);
|
||||
}
|
||||
value16 = value13();
|
||||
done = value16.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r15 = value16;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
value17 = value10();
|
||||
done = value17.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r13 = value17;
|
||||
continue;
|
||||
}
|
||||
value18 = value3();
|
||||
done = value18.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r6 = value18;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function isGameItemSKU(a0) { // fn#53681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:3806, offset: 0x01353781, size: 37 bytes, params: 2, frame: 3
|
||||
return a0 != null && a0.productLine === SKUProductLines.SOCIAL_LAYER_GAME_ITEM;
|
||||
}
|
||||
|
||||
function transformSlayerApplicationStorefrontServer(a0) { // fn#53684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:4341, offset: 0x01353823, size: 225 bytes, params: 2, frame: 18
|
||||
const object2 = {};
|
||||
object2.applicationId = a0.application_id;
|
||||
object2.title = a0.title;
|
||||
object2.logoAssetId = a0.logo_asset_id;
|
||||
object2.lightThemeLogoAssetId = a0.light_theme_logo_asset_id;
|
||||
object2.pages = a0.pages.map(_fun53685);
|
||||
var value;
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
object2.assets = defaultImport.keyBy(a0.assets, 'id');
|
||||
let r1 = a0.application != null ? ApplicationRecord.createFromServer(a0.application) : value2;
|
||||
object2.application = r1;
|
||||
if (a0.storefront_pricing != null) {
|
||||
value = require(6833) /* metro dependency 6833: StorefrontUtils */;
|
||||
value = value.transformStorefrontPricesServer(a0.storefront_pricing);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value2;
|
||||
}
|
||||
object2.storefrontPricing = r1;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getPrimaryCarouselItemInfo(a0, a1) { // fn#53687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:5100, offset: 0x013539af, size: 303 bytes, params: 3, frame: 23
|
||||
var object;
|
||||
var defaultImport;
|
||||
var toURLSafe;
|
||||
let value = a2;
|
||||
const value2 = undefined;
|
||||
const size = (value !== value2 ? value : {}).size;
|
||||
const r10 = value2 === size ? 512 : size;
|
||||
if (a1 == null) {
|
||||
return {primaryIconAsset: value2, primaryIconLabel: value2};
|
||||
}
|
||||
if ((a0 == null || a0.tenantMetadata == null || a0.tenantMetadata.socialLayer == null ? value2 : a0.tenantMetadata.socialLayer.carouselItems) == null) {
|
||||
return {primaryIconAsset: value2, primaryIconLabel: value2};
|
||||
}
|
||||
if (a0.tenantMetadata.socialLayer.carouselItems.length === 0) {
|
||||
return {primaryIconAsset: value2, primaryIconLabel: value2};
|
||||
}
|
||||
const property = a0.tenantMetadata.socialLayer.carouselItems[0];
|
||||
if (property.labelIconAssetId == null) {
|
||||
object = {primaryIconAsset: value2, primaryIconLabel: value2};
|
||||
} else {
|
||||
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
|
||||
toURLSafe = defaultImport.toURLSafe;
|
||||
value = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
value = Reflect.apply(toURLSafe, defaultImport, [value.getAssetURL(a1, property.labelIconAssetId, r10,
|
||||
'webp')]);
|
||||
object = {primaryIconAsset: value ?? value2, primaryIconLabel: property.label};
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function getGameItemThumbnailUrl(a0) { // fn#53688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:5694, offset: 0x01353ade, size: 135 bytes, params: 2, frame: 19
|
||||
var defaultImport;
|
||||
var toURLSafe;
|
||||
let value = a1;
|
||||
const size = (value !== undefined ? value : {}).size;
|
||||
if (a0 != null) {
|
||||
if (a0.thumbnailAssetId != null) {
|
||||
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
|
||||
toURLSafe = defaultImport.toURLSafe;
|
||||
value = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
return Reflect.apply(toURLSafe, defaultImport, [value.getAssetURL(a0.applicationId, a0.thumbnailAssetId,
|
||||
size === undefined ? 512 : size, 'webp')]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getCardImageURL(a0) { // fn#53689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:5917, offset: 0x01353b65, size: 205 bytes, params: 2, frame: 20
|
||||
var defaultImport;
|
||||
var toURLSafe;
|
||||
let value = a1;
|
||||
const value2 = undefined;
|
||||
const size = (value !== value2 ? value : {}).size;
|
||||
const r7 = value2 === size ? 512 : size;
|
||||
const applicationId = a0 == null ? value2 : a0.applicationId;
|
||||
const r5 = (a0 == null || a0.tenantMetadata == null || a0.tenantMetadata.socialLayer == null ? value2 : a0.tenantMetadata.socialLayer.cardImageAssetId) ?? (a0 == null ? value2 : a0.thumbnailAssetId);
|
||||
if (r5 != null) {
|
||||
if (applicationId != null) {
|
||||
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
|
||||
toURLSafe = defaultImport.toURLSafe;
|
||||
value = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
return Reflect.apply(toURLSafe, defaultImport, [value.getAssetURL(applicationId, r5, r7, 'webp')]);
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function getCardBackgroundImageURL(a0) { // fn#53690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:6266, offset: 0x01353c32, size: 198 bytes, params: 2, frame: 20
|
||||
var defaultImport;
|
||||
var toURLSafe;
|
||||
var moduleValue;
|
||||
const value = a1;
|
||||
const value2 = undefined;
|
||||
const size = (value !== value2 ? value : {}).size;
|
||||
if ((a0 == null || a0.tenantMetadata == null || a0.tenantMetadata.socialLayer == null ? value2 : a0.tenantMetadata.socialLayer.cardBackgroundImageAssetId) != null) {
|
||||
if ((a0 == null ? value2 : a0.applicationId) != null) {
|
||||
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
|
||||
toURLSafe = defaultImport.toURLSafe;
|
||||
moduleValue = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
return Reflect.apply(toURLSafe, defaultImport, [moduleValue.getAssetURL(a0.applicationId,
|
||||
a0.tenantMetadata.socialLayer.cardBackgroundImageAssetId, value2 === size ? 1024 : size, env0_17)]);
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function getForwardedSKUShareURL(a0, a1) { // fn#53691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:6747, offset: 0x01353cf8, size: 52 bytes, params: 3, frame: 13
|
||||
return '' + getSKUShareURL(a0, a1) + '\n\n';
|
||||
}
|
||||
|
||||
function canSeeGameShop(a0) { // fn#53692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:6839, offset: 0x01353d2c, size: 43 bytes, params: 2, frame: 12
|
||||
const guild = GuildStore.getGuild(a0);
|
||||
return guild != null && hasSocialLayerStorefront(guild);
|
||||
}
|
||||
|
||||
function getHasWishlistOrPopularRecommendations(a0, a1, a2) { // fn#53693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:6973, offset: 0x01353d57, size: 92 bytes, params: 4, frame: 13
|
||||
var r0;
|
||||
var object2;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
if (a0.length === 0) {
|
||||
r0 = {'hasWishlist': false, 'hasPopular': false};
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.hasWishlist = a0.some(_fun53694);
|
||||
object2.hasPopular = a0.some(_fun53696);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function isOnSocialLayerStorefrontPage(a0, a1, a2, a3) { // fn#53698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:7374, offset: 0x01353f1b, size: 71 bytes, params: 5, frame: 17
|
||||
var r1;
|
||||
var r0;
|
||||
var value2;
|
||||
var value;
|
||||
const isOnCollectiblesShopGameShopPage2 = isOnCollectiblesShopGameShopPage(a0, a1, a2);
|
||||
if (isOnCollectiblesShopGameShopPage2) {
|
||||
r0 = isOnCollectiblesShopGameShopPage2;
|
||||
} else {
|
||||
value2 = a3 != null;
|
||||
if (value2) {
|
||||
value = a0.indexOf(getChannelsGameShopPrefix(a3));
|
||||
value = value >= 0;
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function isOnSocialLayerStorefrontSkuPage({pathname, search, pageIndex, applicationId, guildId, skuId}) { // fn#53699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:7535, offset: 0x01353f62, size: 110 bytes, params: 2, frame: 20
|
||||
pageIndex = pageIndex === undefined ? 0 : pageIndex;
|
||||
return isOnCollectiblesShopGameShopPage(pathname, search, applicationId,
|
||||
skuId) || guildId != null && pathname.includes(Routes.CHANNELS_GAME_SHOP(guildId, pageIndex, skuId));
|
||||
}
|
||||
|
||||
function useGetSocialLayerStorefrontGuildIdAndApplication(a0) { // fn#53700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:7800, offset: 0x01353fd0, size: 120 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const guildIdFromApplicationId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SocialLayerStorefrontStore],
|
||||
_fun53701);
|
||||
let value = require(6777) /* metro dependency 6777: useGetOrFetchApplications */;
|
||||
value = value.useGetOrFetchApplication(a0);
|
||||
return {guildId: guildIdFromApplicationId ?? (value == null ? value2 : value.guildId), application: value};
|
||||
}
|
||||
|
||||
function getSocialLayerStorefrontApplicationId(a0) { // fn#53702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:8087, offset: 0x01354063, size: 50 bytes, params: 2, frame: 14
|
||||
return getSocialLayerStorefrontApplicationIdHelper(GuildStore.getGuild(a0),
|
||||
SocialLayerStorefrontStore.getApplicationIdFromGuildId(a0));
|
||||
}
|
||||
|
||||
function useGetSocialLayerStorefrontApplicationId(a0) { // fn#53703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:8289, offset: 0x01354095, size: 120 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const applicationIdFromGuildId = Reflect.apply(useStateFromStores, fluxModule, [[SocialLayerStorefrontStore],
|
||||
_fun53704]);
|
||||
const getSocialLayerStorefrontApplicationIdHelperBinding = getSocialLayerStorefrontApplicationIdHelper;
|
||||
const moduleValue2 = fluxModule;
|
||||
useStateFromStores = moduleValue2.useStateFromStores;
|
||||
return getSocialLayerStorefrontApplicationIdHelperBinding(Reflect.apply(useStateFromStores, moduleValue2,
|
||||
[[GuildStore], _fun53705, [a0]]), applicationIdFromGuildId);
|
||||
}
|
||||
|
||||
function getSocialLayerStorefrontGuildId(a0) { // fn#53706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:8569, offset: 0x01354143, size: 69 bytes, params: 2, frame: 13
|
||||
if (a0 != null) {
|
||||
return SocialLayerStorefrontStore.getGuildIdFromApplicationId(a0) ?? ApplicationStore.getApplication(a0)?.guildId;
|
||||
}
|
||||
}
|
||||
|
||||
function transformSocialLayerStorefrontAffinityServer(a0) { // fn#53707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:8780, offset: 0x01354188, size: 49 bytes, params: 2, frame: 13
|
||||
return (importDefault(22) /* metro dependency 22 */).mapValues(a0, function(a0) {
|
||||
return {isEligible: a0.is_eligible};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun53685(a0) { // fn#53685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:4545, offset: 0x01353904, size: 144 bytes, params: 2, frame: 15
|
||||
var r3;
|
||||
var object3;
|
||||
const object4 = {};
|
||||
object4.title = a0.title;
|
||||
let leaderboard = a0.leaderboard;
|
||||
const value = undefined;
|
||||
if (leaderboard != null) {
|
||||
object3 = {};
|
||||
leaderboard = a0.leaderboard;
|
||||
object3.title = leaderboard.title;
|
||||
leaderboard = a0.leaderboard;
|
||||
object3.description = leaderboard.description;
|
||||
leaderboard = a0.leaderboard;
|
||||
object3.backgroundImageAssetId = leaderboard.background_image_asset_id;
|
||||
r3 = object3;
|
||||
} else {
|
||||
r3 = value;
|
||||
}
|
||||
object4.leaderboard = r3;
|
||||
object4.skuIds = a0.sku_ids;
|
||||
object4.sections = a0.sections != null ? a0.sections.map(function(a0) {
|
||||
return {title: a0.title, skuIds: a0.sku_ids};
|
||||
}) : value;
|
||||
return object4;
|
||||
}
|
||||
|
||||
function _fun53694({id}) { // fn#53694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:7100, offset: 0x01353db3, size: 66 bytes, params: 2, frame: 11
|
||||
const r2 = require[id] ?? ({});
|
||||
const Object = global.Object;
|
||||
return Object.entries(r2).some(_fun53695);
|
||||
}
|
||||
|
||||
function _fun53696({id}) { // fn#53696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:7224, offset: 0x01353e5b, size: 67 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
const property = require[id];
|
||||
let value = property == null;
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = global.Object.entries(property);
|
||||
value = value.every(_fun53697);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun53701() { // fn#53701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:7901, offset: 0x01354048, size: 27 bytes, params: 1, frame: 11
|
||||
return SocialLayerStorefrontStore.getGuildIdFromApplicationId(env0_0);
|
||||
}
|
||||
|
||||
function _fun53704() { // fn#53704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:8382, offset: 0x0135410d, size: 27 bytes, params: 1, frame: 11
|
||||
return SocialLayerStorefrontStore.getApplicationIdFromGuildId(env0_0);
|
||||
}
|
||||
|
||||
function _fun53695(a0) { // fn#53695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:7166, offset: 0x01353df5, size: 102 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
let value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r3 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = item;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r0.return();
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const WISHLIST = WishlistRecommendationReason.WISHLIST;
|
||||
value = r1 === WISHLIST;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault.has(r3);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun53697(a0) { // fn#53697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7007:7283, offset: 0x01353e9e, size: 125 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
let value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r3 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = item;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r0.return();
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const RECOMMENDATION = WishlistRecommendationReason.RECOMMENDATION;
|
||||
value = r1 === RECOMMENDATION;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault.has(r3);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
if (!r0) {
|
||||
value = environment.__proto__;
|
||||
value = !importDefault.has(r3);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,16 @@
|
||||
/* Metro module 10439; source: modules/slayer_storefront/SocialLayerStorefrontAnalyticsConstants.tsx; dependencies: [2] */
|
||||
function _fun80836(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10625:6, offset: 0x01e8b9b7, size: 316 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/SocialLayerStorefrontAnalyticsConstants.tsx');
|
||||
exports.SlayerShopCardCTAType = {CARD: 'card', BUY_BUTTON: 'buy_button', GIFT_BUTTON: 'gift_button',
|
||||
WISHLIST_BUTTON: 'wishlist_button', FORWARD_BUTTON: 'forward_button',
|
||||
VIEW_DETAILS_BUTTON: 'view_details_button', BUY_WITH_ORBS_BUTTON: 'buy_with_orbs_button'};
|
||||
exports.SlayerShopPDPCTAType = {BUY_BUTTON: 'buy_button', GIFT_BUTTON: 'gift_button',
|
||||
WISHLIST_BUTTON: 'wishlist_button', COPY_LINK_BUTTON: 'copy_link_button', VISIT_SHOP: 'visit_shop',
|
||||
CAROUSEL_ITEM: 'carousel_item', CAROUSEL_NEXT: 'carousel_next', CAROUSEL_PREV: 'carousel_prev',
|
||||
MUTE_BUTTON: 'mute_button', FORWARD_BUTTON: 'forward_button', BUY_WITH_ORBS_BUTTON: 'buy_with_orbs_button'};
|
||||
exports.SlayerStorefrontForwardModalCTAType = {COPY_LINK_BUTTON: 'copy_link_button'};
|
||||
exports.SlayerStorefrontPageElementCTAType = {LEARN_MORE: 'learn_more'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 12588; source: modules/slayer_storefront/SocialLayerStorefrontConfigManager.tsx; dependencies: [6, 7, 15, 17, 18, 8463, 4860, 2] */
|
||||
function _fun96446(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12778:6, offset: 0x0215e810, size: 226 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
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 */;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun96450(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/SocialLayerStorefrontConfigManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96447() { // fn#96447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12778:148, offset: 0x0215e8f2, 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_96447_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun96450(a0) { // fn#96450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12778:351, offset: 0x0215e954, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = SocialLayerStorefrontConfigManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'onPostConnectionOpen', value: value_96452}]);
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontConfigManager(a0) { // fn#96451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12778:363, offset: 0x0215e99c, size: 155 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, SocialLayerStorefrontConfigManager);
|
||||
let object = [];
|
||||
arraySpread(object, value, 0, object);
|
||||
value = env1_5(SocialLayerStorefrontConfigManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_96447()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, object, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, object);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
object = {};
|
||||
object.POST_CONNECTION_OPEN = value.onPostConnectionOpen.bind(value);
|
||||
value.actions = object;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_96452() { // fn#96452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12778:836, offset: 0x0215ea37, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(require(8463) /* metro dependency 8463: SocialLayerStorefrontActionCreators */).fetchSocialLayerStorefrontConfig();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 6832; source: modules/slayer_storefront/SocialLayerStorefrontConstants.tsx; dependencies: [1884, 2] */
|
||||
function _fun53782(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7010:6, offset: 0x013556ea, size: 251 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const Environments = (require(1884) /* metro dependency 1884: UserStoreConstants */).Environments;
|
||||
let GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
let RELEASE_CHANNEL = GLOBAL_ENV.RELEASE_CHANNEL;
|
||||
let STAGING = Environments.STAGING;
|
||||
const r3 = RELEASE_CHANNEL !== STAGING ? '1193841000108531764' : '1438570979889512448';
|
||||
GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
RELEASE_CHANNEL = GLOBAL_ENV.RELEASE_CHANNEL;
|
||||
STAGING = Environments.STAGING;
|
||||
const r1 = RELEASE_CHANNEL !== STAGING ? '1400977487940292751' : null;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/SocialLayerStorefrontConstants.tsx');
|
||||
exports.STOREFRONT_MARKETING_GUILD_ID = r3;
|
||||
exports.STOREFRONT_MARKETING_GUILD_ID_TEST = r1;
|
||||
exports.SOCIAL_LAYER_CLAIM_PURCHASED_ITEM_MODAL_TYPE = 'Social Layer Claim Purchased Item Modal';
|
||||
exports.SOCIAL_LAYER_GIFT_CODE_CLAIM_MODAL_TYPE = 'Social Layer Gift Code Claim Modal';
|
||||
exports.SOCIAL_LAYER_STOREFRONT_PRODUCT_DETAILS_MODAL_TYPE = 'Social Layer Storefront Product Details Modal';
|
||||
exports.GAME_SHOP_ANNOUNCEMENT_MODAL_VERSION = 3;
|
||||
exports.SOCIAL_LAYER_DAYS_TO_CLAIM_ITEM = 14;
|
||||
exports.getChannelsGameShopPrefix = function(a0) {
|
||||
return '/channels/' + a0 + '/game-shop';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,472 @@
|
||||
/* Metro module 6831; source: modules/slayer_storefront/SocialLayerStorefrontStore.tsx; dependencies: [6, 7, 15, 17, 18, 1949, 1226, 566, 694, 2] */
|
||||
function _fun53719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:6, offset: 0x013544cf, size: 776 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_3 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_4 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_5 = importDefault(18) /* metro dependency 18 */;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const env0_8 = {};
|
||||
const env0_9 = {};
|
||||
const env0_10 = {};
|
||||
const env0_11 = {};
|
||||
const env0_12 = {};
|
||||
const env0_13 = {};
|
||||
let env0_14 = {};
|
||||
let env0_15 = {};
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
object = {state: 'idle'};
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
const env0_19 = {};
|
||||
const env0_20 = {};
|
||||
const env0_21 = {};
|
||||
const env0_22 = {};
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
object = {state: 'idle'};
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun53726(Store).displayName = 'SocialLayerStorefrontStore';
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: LOGOUT_53750,
|
||||
POST_CONNECTION_OPEN: function() {
|
||||
env0_14 = {};
|
||||
env0_15 = {};
|
||||
var Set = global.Set;
|
||||
var value3 = new Set();
|
||||
}, ENTITLEMENT_CREATE: ENTITLEMENT_CREATE_53752, INTERACTION_FAILURE: INTERACTION_FAILURE,
|
||||
INTERACTION_SUCCESS: INTERACTION_SUCCESS, SOCIAL_LAYER_STOREFRONT_LOAD: function({guildOrApplicationId}) {
|
||||
var value2 = getGuildAndApplicationId(guildOrApplicationId);
|
||||
updateStorefrontFetchState(value2.guildId, value2.applicationId, {state: 'loading'});
|
||||
}, SOCIAL_LAYER_STOREFRONT_LOAD_SUCCESS: SOCIAL_LAYER_STOREFRONT_LOAD_SUCCESS_53757,
|
||||
SOCIAL_LAYER_STOREFRONT_PARTIAL_LOAD_SUCCESS: SOCIAL_LAYER_STOREFRONT_PARTIAL_LOAD_SUCCESS,
|
||||
SOCIAL_LAYER_STOREFRONT_METADATA_LOAD_SUCCESS: SOCIAL_LAYER_STOREFRONT_METADATA_LOAD_SUCCESS,
|
||||
SOCIAL_LAYER_STOREFRONT_LOAD_FAILURE: SOCIAL_LAYER_STOREFRONT_LOAD_FAILURE,
|
||||
SET_SOCIAL_LAYER_STOREFRONT_STATE: SET_SOCIAL_LAYER_STOREFRONT_STATE,
|
||||
SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_START: SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_START,
|
||||
SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_SUCCESS: SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_SUCCESS,
|
||||
SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_FAILURE: SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_FAILURE,
|
||||
SOCIAL_LAYER_STOREFRONT_CONFIG_FETCH_START: function() {
|
||||
env0_17 = {state: 'loading'};
|
||||
}, SOCIAL_LAYER_STOREFRONT_CONFIG_FETCH_SUCCESS: SOCIAL_LAYER_STOREFRONT_CONFIG_FETCH_SUCCESS,
|
||||
SOCIAL_LAYER_STOREFRONT_CONFIG_FETCH_FAILURE: function() {
|
||||
var object = {state: 'error'};
|
||||
var Date = global.Date;
|
||||
object.fetchedAt = Date.now();
|
||||
env0_17 = object;
|
||||
}, SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_START: SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_START,
|
||||
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_CREATE: SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_CREATE,
|
||||
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_FAILURE: SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_FAILURE,
|
||||
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_RESPONSE: SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_RESPONSE,
|
||||
SOCIAL_LAYER_STOREFRONT_AFFINITY_FETCH_START: function() {
|
||||
env0_25 = {state: 'loading'};
|
||||
}, SOCIAL_LAYER_STOREFRONT_AFFINITY_FETCH_SUCCESS: function({affinity}) {
|
||||
env0_25 = {state: 'success', affinity: affinity};
|
||||
}, SOCIAL_LAYER_STOREFRONT_AFFINITY_FETCH_FAILURE: function() {
|
||||
env0_25 = {state: 'error'};
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/SocialLayerStorefrontStore.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_53720() { // fn#53720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:170, offset: 0x013547d7, 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_53720_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function getGuildAndApplicationId(a0) { // fn#53723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:498, offset: 0x01354835, size: 83 bytes, params: 2, frame: 5
|
||||
return {guildId: a0.type === 'guild' ? a0.guildId : env0_20[a0.applicationId],
|
||||
applicationId: a0.type === 'guild' ? env0_19[a0.guildId] : a0.applicationId};
|
||||
}
|
||||
|
||||
function updateStorefrontFetchState(a0, a1, a2) { // fn#53724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:657, offset: 0x01354888, size: 128 bytes, params: 4, frame: 16
|
||||
var r6;
|
||||
var value;
|
||||
var binding;
|
||||
var object2;
|
||||
if (a0 != null) {
|
||||
binding = env0_9;
|
||||
object2 = {};
|
||||
value = copyDataProperties(object2, a2, copyDataProperties(object2, binding[a0], r6));
|
||||
binding[a0] = object2;
|
||||
r6 = value;
|
||||
}
|
||||
if (a1 != null) {
|
||||
binding = env0_10;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, binding[a1], r6);
|
||||
copyDataProperties(object2, a2, r6);
|
||||
binding[a1] = object2;
|
||||
}
|
||||
copyDataProperties({}, env0_9, r6);
|
||||
copyDataProperties({}, env0_10, r6);
|
||||
}
|
||||
|
||||
function handleUserSettingsStoreUpdate_53725() { // fn#53725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:780, offset: 0x01354908, size: 73 bytes, params: 1, frame: 3
|
||||
const binding = env0_0;
|
||||
let locale = LocaleStore.locale;
|
||||
if (binding === locale) {
|
||||
return false;
|
||||
}
|
||||
locale = LocaleStore.locale;
|
||||
env0_8 = {};
|
||||
env0_9 = {};
|
||||
env0_10 = {};
|
||||
env0_11 = {};
|
||||
env0_12 = {};
|
||||
}
|
||||
|
||||
function _fun53726(a0) { // fn#53726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:888, offset: 0x01354951, size: 579 bytes, params: 2, frame: 16
|
||||
const closure = SocialLayerStorefrontStore;
|
||||
env0_5(closure, a0);
|
||||
return env0_2(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(AuthenticationStore, LocaleStore);
|
||||
this.syncWith([LocaleStore], handleUserSettingsStoreUpdate_53725);
|
||||
env1_0 = LocaleStore.locale;
|
||||
}}, {key: 'getStorefrontData', value: value_53729}, {key: 'getStorefrontDataForApplicationId', value: value_53730},
|
||||
{key: 'getStorefrontFetchState', value: value_53731}, {key: 'getSkuAssets', value: value_53732},
|
||||
{key: 'getStorefrontMetadata', value: value_53733}, {key: 'getStorefrontState', value: value_53734},
|
||||
{key: 'getAnnouncement', value: value_53735}, {key: 'getConfig', value: value_53736},
|
||||
{key: 'getConfigForApplicationId', value: value_53737}, {key: 'getApplicationIdFromDetectableId',
|
||||
value: value_53738}, {key: 'getDetectableIdsToApplicationIds', value: value_53739},
|
||||
{key: 'getGuildIdFromApplicationId', value: value_53740}, {key: 'getApplicationIdFromGuildId',
|
||||
value: value_53741}, {key: 'getConfigFetchState', value: value_53742}, {key: 'getStorefrontApplicationIds',
|
||||
value: value_53743}, {key: 'getStorefrontGuildIds', value: value_53744}, {key: 'getSKUEligibility',
|
||||
value: value_53745}, {key: 'getSKUEligibilityEntry', value: value_53746}, {key: 'getNormalizedSKUEligibility',
|
||||
value: value_53747}, {key: 'getAnnouncementModalConfig', value: value_53748}, {key: 'getStorefrontAffinity',
|
||||
value: value_53749}]);
|
||||
}
|
||||
|
||||
function LOGOUT_53750() { // fn#53750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:2949, offset: 0x01354d2b, size: 189 bytes, params: 1, frame: 12
|
||||
env0_11 = {};
|
||||
env0_12 = {};
|
||||
env0_14 = {};
|
||||
env0_15 = {};
|
||||
env0_10 = {};
|
||||
env0_9 = {};
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
let object = {state: 'idle'};
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
env0_19 = {};
|
||||
env0_20 = {};
|
||||
env0_21 = {};
|
||||
env0_22 = {};
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
object = {state: 'idle'};
|
||||
}
|
||||
|
||||
function ENTITLEMENT_CREATE_53752({entitlement}) { // fn#53752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:3192, offset: 0x01354e1b, size: 67 bytes, params: 2, frame: 13
|
||||
const property = env0_14[entitlement.sku_id];
|
||||
if (property == null) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_14, property);
|
||||
delete object2[entitlement.sku_id];
|
||||
}
|
||||
|
||||
function INTERACTION_FAILURE({interactionId}) { // fn#53753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:3320, offset: 0x01354e5e, size: 203 bytes, params: 2, frame: 14
|
||||
var value2;
|
||||
var binding;
|
||||
var value3;
|
||||
var value4;
|
||||
if (interactionId == null) {
|
||||
return false;
|
||||
}
|
||||
const property = env0_15[interactionId];
|
||||
if (property == null) {
|
||||
value2 = global.Object.values(env0_14);
|
||||
if (value2.some(function(a0) {
|
||||
return a0.state === 'checking';
|
||||
})) {
|
||||
if (env0_16.size >= 25) {
|
||||
binding = env0_16;
|
||||
value3 = binding.values();
|
||||
value4 = value3.next().value;
|
||||
binding = env0_16;
|
||||
binding.delete(value4);
|
||||
}
|
||||
binding = env0_16;
|
||||
binding.add(interactionId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_14, property);
|
||||
object2[property] = {'state': 'error', 'reason': 'interaction_failure'};
|
||||
delete env0_15[interactionId];
|
||||
}
|
||||
|
||||
function INTERACTION_SUCCESS({interactionId}) { // fn#53755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:3635, offset: 0x01354f3b, size: 42 bytes, params: 2, frame: 4
|
||||
if (env0_15[interactionId] == null) {
|
||||
return false;
|
||||
}
|
||||
delete env0_15[interactionId];
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_STOREFRONT_LOAD_SUCCESS_53757({guildOrApplicationId, storefront}) { // fn#53757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:3964, offset: 0x01354f9d, size: 289 bytes, params: 2, frame: 19
|
||||
const guildId = guildOrApplicationId.type === 'guild' ? guildOrApplicationId.guildId : getGuildAndApplicationId(guildOrApplicationId).guildId;
|
||||
if (guildId != null && env0_19[guildId] == null) {
|
||||
env0_19[guildId] = storefront.applicationId;
|
||||
copyDataProperties({}, env0_19, undefined);
|
||||
}
|
||||
if (storefront.applicationId != null && guildId != null && env0_20[storefront.applicationId] == null) {
|
||||
env0_20[storefront.applicationId] = guildId;
|
||||
copyDataProperties({}, env0_20, undefined);
|
||||
}
|
||||
const updateStorefrontFetchStateBinding = updateStorefrontFetchState;
|
||||
const applicationId = storefront.applicationId;
|
||||
let object2 = {state: 'fetched'};
|
||||
const Date = global.Date;
|
||||
object2.fetchedAt = Date.now();
|
||||
object2.storefront = storefront;
|
||||
updateStorefrontFetchStateBinding(guildId, applicationId, object2);
|
||||
if (storefront.assets != null) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_11, undefined);
|
||||
copyDataProperties(object2, storefront.assets, undefined);
|
||||
}
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_STOREFRONT_PARTIAL_LOAD_SUCCESS({assets}) { // fn#53758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:4446, offset: 0x013550be, size: 43 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, assets, copyDataProperties(object2, env0_11, undefined));
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_STOREFRONT_METADATA_LOAD_SUCCESS({applicationId, storefrontMetadata}) { // fn#53759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:4574, offset: 0x013550e9, size: 43 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_12, undefined);
|
||||
object2[applicationId] = storefrontMetadata;
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_STOREFRONT_LOAD_FAILURE({guildOrApplicationId, eager}) { // fn#53760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:4723, offset: 0x01355114, size: 242 bytes, params: 2, frame: 20
|
||||
var updateStorefrontFetchStateBinding;
|
||||
var object2;
|
||||
const {guildId, applicationId} = getGuildAndApplicationId(guildOrApplicationId);
|
||||
const r5 = guildId != null ? env0_9[guildId] : applicationId != null ? env0_10[applicationId] : undefined;
|
||||
if (r5 == null) {
|
||||
return false;
|
||||
}
|
||||
if (eager) {
|
||||
if (r5.state !== 'loading') {
|
||||
if (guildId != null) {
|
||||
delete env0_9[guildId];
|
||||
}
|
||||
if (applicationId != null) {
|
||||
delete env0_10[applicationId];
|
||||
}
|
||||
copyDataProperties({}, env0_9, undefined);
|
||||
copyDataProperties({}, env0_10, undefined);
|
||||
} else if (r5.storefront != null) {
|
||||
updateStorefrontFetchState(guildId, applicationId, {state: 'fetched'});
|
||||
} else {
|
||||
if (guildId != null) {
|
||||
delete env0_9[guildId];
|
||||
}
|
||||
if (applicationId != null) {
|
||||
delete env0_10[applicationId];
|
||||
}
|
||||
copyDataProperties({}, env0_9, undefined);
|
||||
copyDataProperties({}, env0_10, undefined);
|
||||
}
|
||||
} else {
|
||||
updateStorefrontFetchStateBinding = updateStorefrontFetchState;
|
||||
object2 = {state: 'error'};
|
||||
object2.fetchedAt = global.Date.now();
|
||||
object2.storefront = undefined;
|
||||
updateStorefrontFetchStateBinding(guildId, applicationId, object2);
|
||||
}
|
||||
}
|
||||
|
||||
function SET_SOCIAL_LAYER_STOREFRONT_STATE({applicationId, pageIndex, skuId}) { // fn#53761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:5235, offset: 0x01355206, size: 67 bytes, params: 2, frame: 15
|
||||
env0_8[applicationId] = {activePage: pageIndex, activeSkuId: skuId};
|
||||
copyDataProperties({}, env0_8, pageIndex);
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_START({guildId}) { // fn#53762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:5412, offset: 0x01355249, size: 46 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_13, undefined);
|
||||
object2[guildId] = {state: 'loading'};
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_SUCCESS({guildId, announcement}) { // fn#53763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:5568, offset: 0x01355277, size: 57 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_13, undefined);
|
||||
object2[guildId] = {state: 'success', announcement: announcement};
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_STOREFRONT_ANNOUNCEMENT_FETCH_FAILURE({guildId}) { // fn#53764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:5756, offset: 0x013552b0, size: 46 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_13, undefined);
|
||||
object2[guildId] = {state: 'error'};
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_STOREFRONT_CONFIG_FETCH_SUCCESS({config}) { // fn#53766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:6014, offset: 0x013552f3, size: 314 bytes, params: 2, frame: 17
|
||||
const object2 = {state: 'success', config: config};
|
||||
const Date = global.Date;
|
||||
object2.fetchedAt = Date.now();
|
||||
let Set = global.Set;
|
||||
let set = new Set(config.storefronts.map(function(a0) {
|
||||
return a0.applicationId;
|
||||
}));
|
||||
Set = global.Set;
|
||||
set = new Set(config.storefronts.filter(function(a0) {
|
||||
return a0.guildId != null;
|
||||
}).map(function(a0) {
|
||||
return a0.guildId;
|
||||
}));
|
||||
env0_19 = config.storefronts.reduce(function(a0, a1) {
|
||||
if (a1.guildId != null) {
|
||||
a0[a1.guildId] = a1.applicationId;
|
||||
}
|
||||
return a0;
|
||||
}, {});
|
||||
env0_20 = config.storefronts.reduce(function(a0, a1) {
|
||||
var property;
|
||||
if (a1.guildId != null) {
|
||||
property = a1.applicationId;
|
||||
a0[property] = a1.guildId;
|
||||
property = a1.gameId;
|
||||
a0[property] = a1.guildId;
|
||||
}
|
||||
return a0;
|
||||
}, {});
|
||||
env0_21 = config.storefronts.reduce(function(a0, a1) {
|
||||
a0[a1.gameId] = a1.applicationId;
|
||||
a0[a1.applicationId] = a1.applicationId;
|
||||
return a0;
|
||||
}, {});
|
||||
env0_22 = config.storefronts.reduce(function(a0, a1) {
|
||||
a0[a1.applicationId] = a1;
|
||||
return a0;
|
||||
}, {});
|
||||
env0_24 = config.announcementModalConfig ?? null;
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_START({skuId}) { // fn#53775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:6840, offset: 0x013554f9, size: 47 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_14, undefined);
|
||||
object2[skuId] = {state: 'checking'};
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_CREATE({skuId, interactionId}) { // fn#53776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:6983, offset: 0x01355528, size: 138 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
var binding;
|
||||
var object2;
|
||||
const value3 = env0_14[skuId]?.state === 'checking';
|
||||
if (value3) {
|
||||
binding = env0_16;
|
||||
if (binding.has(interactionId)) {
|
||||
env0_16.delete(interactionId);
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_14, interactionId);
|
||||
object2[skuId] = {'state': 'error', 'reason': 'interaction_failure'};
|
||||
r0 = undefined;
|
||||
} else {
|
||||
env0_15[interactionId] = skuId;
|
||||
r0 = undefined;
|
||||
}
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_CHECK_FAILURE({skuId, reason, httpStatus}) { // fn#53777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:7272, offset: 0x013555b2, size: 125 bytes, params: 2, frame: 17
|
||||
var object2;
|
||||
reason = reason === undefined ? 'http_error' : reason;
|
||||
const property = env0_14[skuId];
|
||||
const value4 = property == null;
|
||||
if ((value4 ? undefined : property.state) === 'checking') {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_14, value4);
|
||||
object2[skuId] = {state: 'error', reason: reason, httpStatus: httpStatus};
|
||||
env0_14 = object2;
|
||||
} else {
|
||||
if (reason === 'interaction_deadline') {
|
||||
return false;
|
||||
}
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_14, value4);
|
||||
object2[skuId] = {state: 'error', reason: reason, httpStatus: httpStatus};
|
||||
}
|
||||
}
|
||||
|
||||
function SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY_RESPONSE({skuId, recipientId, eligible, ineligibleReason}) { // fn#53778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:7556, offset: 0x0135562f, size: 110 bytes, params: 2, frame: 16
|
||||
const getId = AuthenticationStore.getId;
|
||||
if (Reflect.apply(getId, AuthenticationStore, []) !== recipientId) {
|
||||
return false;
|
||||
}
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_14, AuthenticationStore);
|
||||
object2[skuId] = eligible ? {state: 'eligible'} : {state: 'ineligible', ineligibleReason: ineligibleReason};
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontStore() { // fn#53727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:900, offset: 0x01354b94, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_1(this, SocialLayerStorefrontStore);
|
||||
const value3 = env1_4(SocialLayerStorefrontStore);
|
||||
return env1_3(this, _isNativeReflectConstruct_53720() ? global.Reflect.construct(value3, arguments,
|
||||
env1_4(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
function value_53731(a0) { // fn#53731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:1506, offset: 0x01354c4d, size: 62 bytes, params: 2, frame: 14
|
||||
const getGuildAndApplicationIdBinding = getGuildAndApplicationId;
|
||||
const value2 = undefined;
|
||||
const {guildId, applicationId} = getGuildAndApplicationIdBinding(a0);
|
||||
return guildId != null ? env1_9[guildId] : applicationId != null ? env1_10[applicationId] : value2;
|
||||
}
|
||||
|
||||
function value_53736() { // fn#53736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:1880, offset: 0x01354c8b, size: 34 bytes, params: 1, frame: 4
|
||||
return env1_17.state !== 'success' ? null : env1_17.config;
|
||||
}
|
||||
|
||||
function value_53740(a0) { // fn#53740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:2179, offset: 0x01354cad, size: 27 bytes, params: 2, frame: 3
|
||||
return a0 != null ? env1_20[a0] : undefined;
|
||||
}
|
||||
|
||||
function value_53741(a0) { // fn#53741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:2261, offset: 0x01354cc8, size: 27 bytes, params: 2, frame: 3
|
||||
return a0 != null ? env1_19[a0] : undefined;
|
||||
}
|
||||
|
||||
function value_53745(a0) { // fn#53745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:2508, offset: 0x01354ce3, size: 32 bytes, params: 2, frame: 3
|
||||
const value = environment.__proto__;
|
||||
return env1_14[a0]?.state;
|
||||
}
|
||||
|
||||
function value_53747(a0) { // fn#53747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7009:2668, offset: 0x01354d03, size: 40 bytes, params: 2, frame: 3
|
||||
const value = environment.__proto__;
|
||||
return env1_14[a0]?.state !== 'ineligible';
|
||||
}
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
/* Metro module 8354; source: modules/slayer_storefront/experiments/SocialLayerStorefrontMobilePurchasingExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun66501(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8539:6, offset: 0x01bfe06b, size: 189 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2026-04-social-layer-storefront-mobile-purchasing', 'kind': 'user',
|
||||
defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/experiments/SocialLayerStorefrontMobilePurchasingExperiment.tsx');
|
||||
exports.SocialLayerStorefrontMobilePurchasingExperiment = value;
|
||||
exports.useIsEligibleForSocialLayerStorefrontMobilePurchasing = useIsEligibleForSocialLayerStorefrontMobilePurchasing;
|
||||
exports.getIsEligibleForSocialLayerStorefrontMobilePurchasing = getIsEligibleForSocialLayerStorefrontMobilePurchasing;
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/* Metro module 9478; source: modules/slayer_storefront/experiments/SocialLayerStorefrontShopShimExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun73706(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9664:6, offset: 0x01d7542a, size: 183 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-05-slayer-storefront-shop-shim',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/experiments/SocialLayerStorefrontShopShimExperiment.tsx');
|
||||
exports.useIsSocialLayerStorefrontShopShimEnabled = useIsSocialLayerStorefrontShopShimEnabled;
|
||||
exports.getIsSocialLayerStorefrontShopShimEnabled = getIsSocialLayerStorefrontShopShimEnabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,514 @@
|
||||
/* Metro module 10045; source: modules/slayer_storefront/hooks/SocialLayerStorefrontEligibilityHooks.tsx; dependencies: [10046, 4266, 5189, 1867, 4396, 6831, 566, 9572, 10047, 2] */
|
||||
function _fun78541(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:6, offset: 0x01e2bfc4, size: 325 bytes, params: 8, frame: 21
|
||||
let env0_0 = require;
|
||||
const _arrayLikeToArray_78544 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = useUsersPlayingStorefrontEnabledGamesApplicationIds;
|
||||
const closure2 = function() {
|
||||
return require(dependencyMap[6]).useStateFromStoresArray([RunningGameStoreNative, SocialLayerStorefrontStore],
|
||||
_fun78548, []);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const contentInventoryOutboxStore = importDefault(10046) /* metro dependency 10046: ContentInventoryOutboxStore */;
|
||||
const runningGameStoreNative = importDefault(4266) /* metro dependency 4266: RunningGameStoreNative */;
|
||||
const userProfileStore = importDefault(5189) /* metro dependency 5189: UserProfileStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
|
||||
const socialLayerStorefrontStore = importDefault(6831) /* metro dependency 6831: SocialLayerStorefrontStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/hooks/SocialLayerStorefrontEligibilityHooks.tsx');
|
||||
exports.useUsersPlayedSocialLayerStorefrontGamesInOutboxApplicationIds = function({userIds}) {
|
||||
var env0_0 = userIds;
|
||||
return require(dependencyMap[6]).useStateFromStoresArray([ContentInventoryOutboxStore,
|
||||
SocialLayerStorefrontStore],
|
||||
_fun78550, [userIds]);
|
||||
};
|
||||
exports.useAreUsersInSocialLayerStorefrontMutualGuildsApplicationIds = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[6]).useStateFromStoresArray([UserProfileStore, SocialLayerStorefrontStore],
|
||||
_fun78552,
|
||||
[a0]);
|
||||
};
|
||||
exports.useUsersPlayingStorefrontEnabledGamesApplicationIds = closure;
|
||||
exports.useAreUsersPlayingStorefrontEnabledGames = function({userIds}) {
|
||||
userIds = useUsersPlayingStorefrontEnabledGamesApplicationIds({userIds: userIds}).length;
|
||||
return userIds > 0;
|
||||
};
|
||||
exports.useCurrentUserPlayedSocialLayerStorefrontGamesApplicationIds = function() {
|
||||
return require(dependencyMap[6]).useStateFromStoresArray([RunningGameStoreNative, SocialLayerStorefrontStore],
|
||||
_fun78555);
|
||||
};
|
||||
exports.useCurrentUserPlayingSocialLayerStorefrontGamesApplicationIds = closure2;
|
||||
exports.useIsCurrentUserPlayingSocialLayerStorefrontGames = function() {
|
||||
return useCurrentUserPlayingSocialLayerStorefrontGamesApplicationIds().length > 0;
|
||||
};
|
||||
exports.useIsCurrentUserInSocialLayerStorefrontGuildsApplicationIds = function() {
|
||||
var value2 = require(dependencyMap[6]).useStateFromStores([GuildStore], _fun78558);
|
||||
var env0_0 = value2;
|
||||
return require(dependencyMap[6]).useStateFromStoresArray([SocialLayerStorefrontStore], _fun78559, [value2]);
|
||||
};
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_78542(a0, a1) { // fn#78542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:160, offset: 0x01e2c109, size: 372 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)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun78543;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_78544(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') {
|
||||
value = _arrayLikeToArray_78544(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_78544(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun78543;
|
||||
}
|
||||
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 useUsersPlayingStorefrontEnabledGamesApplicationIds({userIds}) { // fn#78545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:1070, offset: 0x01e2c27d, size: 152 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
||||
let items2 = [PresenceStore];
|
||||
items2[1] = SocialLayerStorefrontStore;
|
||||
let value = Reflect.apply(useStateFromStoresArray, fluxModule, [items2, _fun78546, [userIds]]);
|
||||
const value2 = (require(10047) /* metro dependency 10047: useSlayerStorefrontDevApplicationIdOverride */).useSlayerStorefrontDevApplicationIdOverride();
|
||||
if (value2 == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
items2 = [];
|
||||
value = arraySpread(items2, value, 0, PresenceStore);
|
||||
items2[value] = value2;
|
||||
value + 1;
|
||||
r0 = items2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useCurrentUserPlayingSocialLayerStorefrontGamesApplicationIds() { // fn#78547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:1571, offset: 0x01e2c3d9, size: 73 bytes, params: 1, frame: 15
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([RunningGameStoreNative,
|
||||
SocialLayerStorefrontStore], _fun78548, []);
|
||||
}
|
||||
|
||||
function useUsersPlayedSocialLayerStorefrontGamesInOutboxApplicationIds({userIds}) { // fn#78549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:2092, offset: 0x01e2c4b7, size: 90 bytes, params: 2, frame: 17
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ContentInventoryOutboxStore,
|
||||
SocialLayerStorefrontStore], _fun78550, [userIds]);
|
||||
}
|
||||
|
||||
function useAreUsersInSocialLayerStorefrontMutualGuildsApplicationIds(a0) { // fn#78551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:2655, offset: 0x01e2c617, size: 84 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([UserProfileStore,
|
||||
SocialLayerStorefrontStore], _fun78552, [a0]);
|
||||
}
|
||||
|
||||
function useCurrentUserPlayedSocialLayerStorefrontGamesApplicationIds() { // fn#78554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:3465, offset: 0x01e2c79f, size: 68 bytes, params: 1, frame: 14
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([RunningGameStoreNative,
|
||||
SocialLayerStorefrontStore], function() {
|
||||
var r3;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var items = [];
|
||||
var value3 = _createForOfIteratorHelperLoose_78542(RunningGameStoreNative.getGamesSeen(false, false));
|
||||
var value4 = value3();
|
||||
if (!value4.done) {
|
||||
r3 = value4;
|
||||
while (true) {
|
||||
value5 = r3.value;
|
||||
if (value5.id != null) {
|
||||
value6 = SocialLayerStorefrontStore.getApplicationIdFromDetectableId(value5.id);
|
||||
if (value6 == null) {
|
||||
break;
|
||||
}
|
||||
items.push(value6);
|
||||
break;
|
||||
}
|
||||
value7 = value3();
|
||||
if (value7.done) {
|
||||
break;
|
||||
}
|
||||
r3 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return items;
|
||||
});
|
||||
}
|
||||
|
||||
function useIsCurrentUserInSocialLayerStorefrontGuildsApplicationIds() { // fn#78557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:4171, offset: 0x01e2c87d, size: 112 bytes, params: 1, frame: 20
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([SocialLayerStorefrontStore],
|
||||
function() {
|
||||
var r2;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var items = [];
|
||||
var value3 = _createForOfIteratorHelperLoose_78542(guildIds);
|
||||
var value4 = value3();
|
||||
if (!value4.done) {
|
||||
r2 = value4;
|
||||
while (true) {
|
||||
value5 = r2.value;
|
||||
value6 = SocialLayerStorefrontStore.getApplicationIdFromGuildId(value5);
|
||||
if (value6 != null) {
|
||||
items.push(value6);
|
||||
}
|
||||
value7 = value3();
|
||||
if (value7.done) {
|
||||
break;
|
||||
}
|
||||
r2 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return items;
|
||||
}, [(require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuildIds();
|
||||
})]);
|
||||
}
|
||||
|
||||
function _fun78546() { // fn#78546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:1190, offset: 0x01e2c315, size: 196 bytes, params: 1, frame: 23
|
||||
var r4;
|
||||
var r10;
|
||||
var value5;
|
||||
var getActivities;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var application_id;
|
||||
var getApplicationIdFromDetectableId;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
const items2 = [];
|
||||
const value3 = _createForOfIteratorHelperLoose_78542(userIds);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r4 = value4;
|
||||
while (true) {
|
||||
value5 = r4.value;
|
||||
_createForOfIteratorHelperLoose_78542Binding = _createForOfIteratorHelperLoose_78542;
|
||||
getActivities = PresenceStore.getActivities;
|
||||
value6 = _createForOfIteratorHelperLoose_78542Binding(Reflect.apply(getActivities, PresenceStore,
|
||||
[value5]));
|
||||
value7 = value6();
|
||||
done = value7.done;
|
||||
if (!done) {
|
||||
r10 = value7;
|
||||
while (true) {
|
||||
value8 = r10.value;
|
||||
application_id = value8.application_id;
|
||||
if (application_id != null) {
|
||||
getApplicationIdFromDetectableId = SocialLayerStorefrontStore.getApplicationIdFromDetectableId;
|
||||
application_id = value8.application_id;
|
||||
value9 = Reflect.apply(getApplicationIdFromDetectableId, SocialLayerStorefrontStore,
|
||||
[application_id]);
|
||||
if (value9 == null) {
|
||||
break;
|
||||
}
|
||||
items2.push(value9);
|
||||
break;
|
||||
}
|
||||
value10 = value6();
|
||||
done = value10.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r10 = value10;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
value11 = value3();
|
||||
done = value11.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r4 = value11;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun78548() { // fn#78548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:1691, offset: 0x01e2c422, size: 149 bytes, params: 1, frame: 19
|
||||
var r3;
|
||||
var value5;
|
||||
var id;
|
||||
var isDetectionEnabled;
|
||||
var getApplicationIdFromDetectableId;
|
||||
var value6;
|
||||
var value7;
|
||||
const items2 = [];
|
||||
const value3 = _createForOfIteratorHelperLoose_78542(RunningGameStoreNative.getRunningGames());
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r3 = value4;
|
||||
while (true) {
|
||||
value5 = r3.value;
|
||||
id = value5.id;
|
||||
if (id != null) {
|
||||
isDetectionEnabled = RunningGameStoreNative.isDetectionEnabled;
|
||||
if (Reflect.apply(isDetectionEnabled, RunningGameStoreNative, [value5])) {
|
||||
getApplicationIdFromDetectableId = SocialLayerStorefrontStore.getApplicationIdFromDetectableId;
|
||||
id = value5.id;
|
||||
value6 = Reflect.apply(getApplicationIdFromDetectableId, SocialLayerStorefrontStore, [id]);
|
||||
if (value6 == null) {
|
||||
break;
|
||||
}
|
||||
items2.push(value6);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
value7 = value3();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun78550() { // fn#78550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:2224, offset: 0x01e2c511, size: 262 bytes, params: 1, frame: 25
|
||||
var r4;
|
||||
var entries;
|
||||
var r1;
|
||||
var r11;
|
||||
var value6;
|
||||
var userOutbox;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var moduleValue;
|
||||
var isGamingLikeEntry;
|
||||
var getApplicationIdFromDetectableId;
|
||||
var extra;
|
||||
var application_id;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
const items2 = [];
|
||||
let _createForOfIteratorHelperLoose_78542Binding = _createForOfIteratorHelperLoose_78542;
|
||||
const userIdsBinding = userIds;
|
||||
const value3 = undefined;
|
||||
const value4 = _createForOfIteratorHelperLoose_78542Binding(userIdsBinding);
|
||||
const value5 = value4();
|
||||
let done = value5.done;
|
||||
if (!done) {
|
||||
r4 = value5;
|
||||
while (true) {
|
||||
value6 = r4.value;
|
||||
_createForOfIteratorHelperLoose_78542Binding = _createForOfIteratorHelperLoose_78542;
|
||||
userOutbox = ContentInventoryOutboxStore.getUserOutbox(value6);
|
||||
entries = userOutbox == null ? value3 : userOutbox.entries;
|
||||
if (entries != null) {
|
||||
r1 = entries;
|
||||
continue;
|
||||
}
|
||||
value8 = _createForOfIteratorHelperLoose_78542Binding([]);
|
||||
value9 = value8();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
continue;
|
||||
}
|
||||
r11 = value9;
|
||||
while (true) {
|
||||
value10 = r11.value;
|
||||
if (value10 != null) {
|
||||
moduleValue = require(9572) /* metro dependency 9572: ContentInventoryTypes */;
|
||||
isGamingLikeEntry = moduleValue.isGamingLikeEntry;
|
||||
if (Reflect.apply(isGamingLikeEntry, moduleValue, [value10])) {
|
||||
getApplicationIdFromDetectableId = SocialLayerStorefrontStore.getApplicationIdFromDetectableId;
|
||||
extra = value10.extra;
|
||||
application_id = extra.application_id;
|
||||
value11 = Reflect.apply(getApplicationIdFromDetectableId, SocialLayerStorefrontStore,
|
||||
[application_id]);
|
||||
if (value11 == null) {
|
||||
break;
|
||||
}
|
||||
items2.push(value11);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
value12 = value8();
|
||||
done = value12.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r11 = value12;
|
||||
continue;
|
||||
}
|
||||
value13 = value4();
|
||||
done = value13.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r4 = value13;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun78552() { // fn#78552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10231:2775, offset: 0x01e2c66b, size: 265 bytes, params: 1, frame: 27
|
||||
var r6;
|
||||
var r14;
|
||||
var value5;
|
||||
var mutualGuilds;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var storefrontGuildIds;
|
||||
var has;
|
||||
var guild;
|
||||
var id;
|
||||
var getApplicationIdFromGuildId;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
const items2 = [];
|
||||
const value3 = _createForOfIteratorHelperLoose_78542(env0_0);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r6 = value4;
|
||||
while (true) {
|
||||
value5 = r6.value;
|
||||
mutualGuilds = UserProfileStore.getMutualGuilds(value5);
|
||||
if (mutualGuilds != null) {
|
||||
value7 = _createForOfIteratorHelperLoose_78542(mutualGuilds);
|
||||
value8 = value7();
|
||||
done = value8.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r14 = value8;
|
||||
while (true) {
|
||||
value9 = r14.value;
|
||||
storefrontGuildIds = SocialLayerStorefrontStore.getStorefrontGuildIds();
|
||||
has = storefrontGuildIds.has;
|
||||
guild = value9.guild;
|
||||
id = guild.id;
|
||||
if (Reflect.apply(has, storefrontGuildIds, [id])) {
|
||||
getApplicationIdFromGuildId = SocialLayerStorefrontStore.getApplicationIdFromGuildId;
|
||||
guild = value9.guild;
|
||||
id = guild.id;
|
||||
value11 = Reflect.apply(getApplicationIdFromGuildId, SocialLayerStorefrontStore, [id]);
|
||||
if (value11 == null) {
|
||||
break;
|
||||
}
|
||||
items2.push(value11);
|
||||
break;
|
||||
}
|
||||
value12 = value7();
|
||||
done = value12.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r14 = value12;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
value13 = value3();
|
||||
done = value13.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r6 = value13;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
+217
@@ -0,0 +1,217 @@
|
||||
/* Metro module 10044; source: modules/slayer_storefront/hooks/useDisplayProfileSocialLayerStorefrontApplicationIds.tsx; dependencies: [31, 6831, 8490, 10045, 566, 5191, 5210, 22, 2] */
|
||||
function _fun78532(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10230:6, offset: 0x01e2ba60, size: 159 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_78535 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const socialLayerStorefrontStore = importDefault(6831) /* metro dependency 6831: SocialLayerStorefrontStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/hooks/useDisplayProfileSocialLayerStorefrontApplicationIds.tsx');
|
||||
exports.default = useDisplayProfileSocialLayerStorefrontApplicationIds;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_78533(a0, a1) { // fn#78533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10230:121, offset: 0x01e2baff, size: 372 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)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun78534;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_78535(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') {
|
||||
value = _arrayLikeToArray_78535(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_78535(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun78534;
|
||||
}
|
||||
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 useDisplayProfileSocialLayerStorefrontApplicationIds({userId}) { // fn#78536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10230:1165, offset: 0x01e2bc73, size: 281 bytes, params: 2, frame: 24
|
||||
const value3 = (importDefault(8490) /* metro dependency 8490: useDisplayProfile */)(userId);
|
||||
const binding = env0_3;
|
||||
const value4 = binding.useMemo(_fun78537, [value3]);
|
||||
return binding.useMemo(_fun78540, [value3?.application,
|
||||
(require(10045) /* metro dependency 10045: SocialLayerStorefrontEligibilityHooks */).useUsersPlayingStorefrontEnabledGamesApplicationIds({userIds: value4}),
|
||||
(require(10045) /* metro dependency 10045: SocialLayerStorefrontEligibilityHooks */).useUsersPlayedSocialLayerStorefrontGamesInOutboxApplicationIds({userIds: value4}),
|
||||
(require(10045) /* metro dependency 10045: SocialLayerStorefrontEligibilityHooks */).useAreUsersInSocialLayerStorefrontMutualGuildsApplicationIds(value4),
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStoresArray([SocialLayerStorefrontStore], _fun78538,
|
||||
[value3])]);
|
||||
}
|
||||
|
||||
function _fun78537() { // fn#78537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10230:1269, offset: 0x01e2bd8c, size: 59 bytes, params: 1, frame: 4
|
||||
const userId = env0_0?.userId;
|
||||
return userId != null ? [env0_0.userId] : [];
|
||||
}
|
||||
|
||||
function _fun78538() { // fn#78538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10230:1603, offset: 0x01e2bdc7, size: 331 bytes, params: 1, frame: 24
|
||||
var r4;
|
||||
var value7;
|
||||
var BaseGameWidget;
|
||||
var ApplicationWidget;
|
||||
var getApplicationIdFromDetectableId;
|
||||
var applicationId;
|
||||
var value8;
|
||||
var games;
|
||||
var value9;
|
||||
const value2 = undefined;
|
||||
if ((env0_0 == null ? value2 : env0_0.widgets) == null) {
|
||||
return [];
|
||||
}
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
var env0_0 = set;
|
||||
const value = _createForOfIteratorHelperLoose_78533((env0_0 == null ? value2 : env0_0.widgets) ?? []);
|
||||
const value6 = value();
|
||||
let done = value6.done;
|
||||
if (!done) {
|
||||
r4 = value6;
|
||||
while (true) {
|
||||
value7 = r4.value;
|
||||
BaseGameWidget = (require(5191) /* metro dependency 5191: UserProfileGameWidgetTypes */).BaseGameWidget;
|
||||
if (!(value7 instanceof BaseGameWidget)) {
|
||||
ApplicationWidget = (require(5210) /* metro dependency 5210: UserProfileApplicationWidgetTypes */).ApplicationWidget;
|
||||
if (value7 instanceof ApplicationWidget) {
|
||||
getApplicationIdFromDetectableId = SocialLayerStorefrontStore.getApplicationIdFromDetectableId;
|
||||
applicationId = value7.applicationId;
|
||||
value8 = Reflect.apply(getApplicationIdFromDetectableId, SocialLayerStorefrontStore,
|
||||
[applicationId]);
|
||||
if (value8 == null) {
|
||||
break;
|
||||
}
|
||||
set.add(value8);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
games = value7.games;
|
||||
games.forEach(_fun78539);
|
||||
value9 = value();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r4 = value9;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
const Array = global.Array;
|
||||
return Array.from(set).sort();
|
||||
}
|
||||
|
||||
function _fun78540() { // fn#78540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10230:2099, offset: 0x01e2bf47, size: 125 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var uniq;
|
||||
var binding;
|
||||
var items2;
|
||||
if (env0_0?.application != null) {
|
||||
r0 = [];
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(22) /* metro dependency 22 */;
|
||||
uniq = moduleValue.uniq;
|
||||
binding = env0_1;
|
||||
items2 = [];
|
||||
arraySpread(items2, env0_4, arraySpread(items2, env0_3, arraySpread(items2, env0_2, arraySpread(items2, binding,
|
||||
0,
|
||||
undefined), undefined), undefined), undefined);
|
||||
r0 = Reflect.apply(uniq, moduleValue, [items2]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun78539({applicationId}) { // fn#78539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10230:1837, offset: 0x01e2bf12, size: 53 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = SocialLayerStorefrontStore.getApplicationIdFromDetectableId(applicationId);
|
||||
if (value != null) {
|
||||
env0_0.add(value);
|
||||
}
|
||||
}
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
/* Metro module 10047; source: modules/slayer_storefront/hooks/useSlayerStorefrontDevApplicationIdOverride.tsx; dependencies: [10048, 2] */
|
||||
function _fun78583(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10233:6, offset: 0x01e2ce64, size: 109 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(10048) /* metro dependency 10048: useSlayerStorefrontDevOverrideStore */).useSlayerStorefrontDevOverrideStore;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/hooks/useSlayerStorefrontDevApplicationIdOverride.tsx');
|
||||
exports.useSlayerStorefrontDevApplicationIdOverride = useSlayerStorefrontDevApplicationIdOverride;
|
||||
}
|
||||
|
||||
function useSlayerStorefrontDevApplicationIdOverride() { // fn#78584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10233:301, offset: 0x01e2ced1, size: 37 bytes, params: 1, frame: 11
|
||||
return useSlayerStorefrontDevOverrideStore(function(a0) {
|
||||
return a0.overrideApplicationId;
|
||||
}) ?? undefined;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 10048; source: modules/slayer_storefront/hooks/useSlayerStorefrontDevOverrideStore.tsx; dependencies: [629, 2] */
|
||||
function _fun78586(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10234:6, offset: 0x01e2cf01, size: 113 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
value = value.create();
|
||||
value = value(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {'overrideApplicationId': null, 'setOverrideApplicationId': null, 'showSelfActivity': false,
|
||||
'setShowSelfActivity': null, 'recommendationApplicationIds': null, setOverrideApplicationId: _fun78588,
|
||||
setShowSelfActivity: _fun78589, setRecommendationApplicationIds: _fun78590};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/hooks/useSlayerStorefrontDevOverrideStore.tsx');
|
||||
exports.useSlayerStorefrontDevOverrideStore = value;
|
||||
}
|
||||
|
||||
function _fun78587(a0) { // fn#78587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10234:116, offset: 0x01e2cf72, size: 65 bytes, params: 2, frame: 3
|
||||
const env0_0 = a0;
|
||||
return {'overrideApplicationId': null, 'setOverrideApplicationId': null, 'showSelfActivity': false,
|
||||
'setShowSelfActivity': null, 'recommendationApplicationIds': null,
|
||||
setOverrideApplicationId: setOverrideApplicationId, setShowSelfActivity: setShowSelfActivity,
|
||||
setRecommendationApplicationIds: setRecommendationApplicationIds};
|
||||
}
|
||||
|
||||
function setOverrideApplicationId(a0) { // fn#78588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10234:173, offset: 0x01e2cfb3, size: 26 bytes, params: 2, frame: 11
|
||||
return env0_0({overrideApplicationId: a0});
|
||||
}
|
||||
|
||||
function setShowSelfActivity(a0) { // fn#78589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10234:245, offset: 0x01e2cfcd, size: 26 bytes, params: 2, frame: 11
|
||||
return env0_0({showSelfActivity: a0});
|
||||
}
|
||||
|
||||
function setRecommendationApplicationIds(a0) { // fn#78590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10234:338, offset: 0x01e2cfe7, size: 49 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
const value = null;
|
||||
return binding({recommendationApplicationIds: value != a0 ? a0.split(',') : value});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,289 @@
|
||||
/* Metro module 3130; source: modules/slayer_storefront/intl/SlayerStorefront.messages.js; dependencies: [1247, 3131, 3132, 3133, 3134, 3135, 3136, 3137, 3138, 3139, 3140, 3141, 3142, 3143, 3144, 3145, 3146, 3147, 3148, 3149, 3150, 3151, 3152, 3153, 3154, 3155, 3156, 3157, 3158, 3159, 3160, 3161, 1282, 2] */
|
||||
function _fun25406(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#25406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:6, offset: 0x00f2567e, 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_25407, cs: cs_25409, da: da_25411, de: de_25413, el: el_25415};
|
||||
object2['en-GB'] = _fun25417;
|
||||
object2['es-419'] = _fun25419;
|
||||
object2['es-ES'] = _fun25421;
|
||||
object2.fi = fi_25423;
|
||||
object2.fr = fr_25425;
|
||||
object2.hi = hi_25427;
|
||||
object2.hr = hr_25429;
|
||||
object2.hu = hu_25431;
|
||||
object2.it = it_25433;
|
||||
object2.ja = ja_25435;
|
||||
object2.ko = ko_25437;
|
||||
object2.lt = lt_25439;
|
||||
object2.nl = nl_25441;
|
||||
object2.no = no_25443;
|
||||
object2.pl = pl_25445;
|
||||
object2['pt-BR'] = _fun25447;
|
||||
object2.ro = ro_25449;
|
||||
object2.ru = ru_25451;
|
||||
object2['sv-SE'] = _fun25453;
|
||||
object2.th = th_25455;
|
||||
object2.tr = tr_25457;
|
||||
object2.uk = uk_25459;
|
||||
object2.vi = vi_25461;
|
||||
object2['zh-CN'] = _fun25463;
|
||||
object2['zh-TW'] = _fun25465;
|
||||
object2['en-US'] = _fun25467;
|
||||
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/slayer_storefront/intl/SlayerStorefront.messages.js');
|
||||
exports.default = messagesProxy;
|
||||
exports.messagesLoader = value;
|
||||
}
|
||||
|
||||
function bg_25407() { // fn#25407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:102, offset: 0x00f25843, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3131) /* metro dependency 3131 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function cs_25409() { // fn#25409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:165, offset: 0x00f25884, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3132) /* metro dependency 3132 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function da_25411() { // fn#25411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:228, offset: 0x00f258c5, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3133) /* metro dependency 3133 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function de_25413() { // fn#25413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:291, offset: 0x00f25906, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3134) /* metro dependency 3134 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function el_25415() { // fn#25415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:354, offset: 0x00f25947, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3135) /* metro dependency 3135 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun25417() { // fn#25417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:422, offset: 0x00f25988, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3136) /* metro dependency 3136 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun25419() { // fn#25419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:491, offset: 0x00f259c9, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3137) /* metro dependency 3137 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun25421() { // fn#25421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:559, offset: 0x00f25a0a, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3138) /* metro dependency 3138 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function fi_25423() { // fn#25423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:622, offset: 0x00f25a4b, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3139) /* metro dependency 3139 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function fr_25425() { // fn#25425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:685, offset: 0x00f25a8c, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3140) /* metro dependency 3140 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function hi_25427() { // fn#25427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:749, offset: 0x00f25acd, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3141) /* metro dependency 3141 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function hr_25429() { // fn#25429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:813, offset: 0x00f25b0e, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3142) /* metro dependency 3142 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function hu_25431() { // fn#25431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:877, offset: 0x00f25b4f, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3143) /* metro dependency 3143 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function it_25433() { // fn#25433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:941, offset: 0x00f25b90, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3144) /* metro dependency 3144 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function ja_25435() { // fn#25435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1005, offset: 0x00f25bd1, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3145) /* metro dependency 3145 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function ko_25437() { // fn#25437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1069, offset: 0x00f25c12, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3146) /* metro dependency 3146 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function lt_25439() { // fn#25439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1133, offset: 0x00f25c53, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3147) /* metro dependency 3147 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function nl_25441() { // fn#25441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1197, offset: 0x00f25c94, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3148) /* metro dependency 3148 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function no_25443() { // fn#25443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1261, offset: 0x00f25cd5, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3149) /* metro dependency 3149 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function pl_25445() { // fn#25445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1325, offset: 0x00f25d16, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3150) /* metro dependency 3150 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun25447() { // fn#25447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1394, offset: 0x00f25d57, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3151) /* metro dependency 3151 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function ro_25449() { // fn#25449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1458, offset: 0x00f25d98, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3152) /* metro dependency 3152 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function ru_25451() { // fn#25451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1522, offset: 0x00f25dd9, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3153) /* metro dependency 3153 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun25453() { // fn#25453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1591, offset: 0x00f25e1a, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3154) /* metro dependency 3154 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function th_25455() { // fn#25455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1655, offset: 0x00f25e5b, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3155) /* metro dependency 3155 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function tr_25457() { // fn#25457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1719, offset: 0x00f25e9c, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3156) /* metro dependency 3156 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function uk_25459() { // fn#25459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1783, offset: 0x00f25edd, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3157) /* metro dependency 3157 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function vi_25461() { // fn#25461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1847, offset: 0x00f25f1e, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3158) /* metro dependency 3158 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun25463() { // fn#25463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1916, offset: 0x00f25f5f, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3159) /* metro dependency 3159 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun25465() { // fn#25465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:1985, offset: 0x00f25fa0, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3160) /* metro dependency 3160 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
function _fun25467() { // fn#25467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3257:2054, offset: 0x00f25fe1, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3161) /* metro dependency 3161 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 3162; source: modules/slayer_storefront/intl/SlayerStorefrontUntranslated.messages.js; dependencies: [1247, 3163, 1282, 2] */
|
||||
function _fun25500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#25500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3289:6, offset: 0x00f2689c, size: 155 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {};
|
||||
object2['en-US'] = _fun25501;
|
||||
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/slayer_storefront/intl/SlayerStorefrontUntranslated.messages.js');
|
||||
exports.default = messagesProxy;
|
||||
exports.messagesLoader = value;
|
||||
}
|
||||
|
||||
function _fun25501() { // fn#25501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3289:107, offset: 0x00f26937, size: 65 bytes, params: 1, frame: 14
|
||||
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
|
||||
value = value.loadJsonAsset(require(3163) /* metro dependency 3163 */);
|
||||
return value.then(function(a0) {
|
||||
return {default: a0};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/* Metro module 8466; source: modules/slayer_storefront/native/SlayerStorefrontGiftPreview.tsx; dependencies: [31, 27, 33, 4501, 8467, 4573, 1244, 8469, 3130, 2] */
|
||||
function _fun67242(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8651:6, offset: 0x01c1ac90, size: 258 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'alignItems': 'center',
|
||||
'justifyContent': 'center', 'gap': 16, 'marginTop': 20}, text: {'textAlign': 'center', 'paddingHorizontal': 32},
|
||||
warningBox: {marginHorizontal: 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SlayerStorefrontGiftPreview.tsx');
|
||||
exports.default = SlayerStorefrontGiftPreview;
|
||||
}
|
||||
|
||||
function WarningBox({canStartAuthorization, hasAccountLinked, mobileAccountLinkingDisabled, sku, application}) { // fn#67243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8651:343, offset: 0x01c1ad92, size: 334 bytes, params: 2, frame: 25
|
||||
var name;
|
||||
var r0;
|
||||
var InfoBox;
|
||||
var object;
|
||||
var intl;
|
||||
var property;
|
||||
var formatToPlainString;
|
||||
var object3;
|
||||
const styles = useStyles();
|
||||
if (hasAccountLinked) {
|
||||
r0 = null;
|
||||
} else {
|
||||
InfoBox = importDefault(8469) /* metro dependency 8469: InfoBox */;
|
||||
var infoBoxProps = {look: (require(8469) /* metro dependency 8469: InfoBox */).InfoBoxLooks.WARNING,
|
||||
style: styles.warningBox};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
if (mobileAccountLinkingDisabled) {
|
||||
infoBoxProps.children = intl.formatToPlainString((importDefault(3130) /* metro dependency 3130: SlayerStorefrontMessages */).BMMo2K,
|
||||
|
||||
|
||||
{applicationName: application?.name});
|
||||
} else if (canStartAuthorization) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['EgCl+Q'];
|
||||
object3 = {};
|
||||
name = sku.name;
|
||||
object3.skuName = name;
|
||||
name = application?.name;
|
||||
object3.applicationName = name;
|
||||
infoBoxProps.children = Reflect.apply(formatToPlainString, intl, [property, object3]);
|
||||
} else {
|
||||
infoBoxProps.children = intl.format((require(1244) /* metro dependency 1244: indexNative */).t['3T0cpx'],
|
||||
{});
|
||||
}
|
||||
r0 = <InfoBox {...infoBoxProps} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function SlayerStorefrontGiftPreview({sku, application, sender, hasAccountLinked, canStartAuthorization, mobileAccountLinkingDisabled}) { // fn#67244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8651:1025, offset: 0x01c1aee0, size: 335 bytes, params: 2, frame: 31
|
||||
var name;
|
||||
var r0;
|
||||
var items2;
|
||||
var Text;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var object;
|
||||
let value = undefined;
|
||||
mobileAccountLinkingDisabled = !(mobileAccountLinkingDisabled === value) && mobileAccountLinkingDisabled;
|
||||
const styles = useStyles();
|
||||
if (sku == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [((Component) => <Component sku={sku} />)(importDefault(8467) /* metro dependency 8467: SlayerStorefrontItemCard */)];
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var textProps = {'variant': 'heading-md/normal', 'color': 'mobile-text-heading-primary', style: styles.text};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['2tBYtA'];
|
||||
object = {sender: sender};
|
||||
name = sku.name;
|
||||
object.skuName = name;
|
||||
name = application == null ? value : application.name;
|
||||
object.applicationName = name;
|
||||
items2[1] = <Text {...textProps}>{Reflect.apply(formatToPlainString, intl, [property, object])}</Text>;
|
||||
items2[2] = <WarningBox canStartAuthorization={canStartAuthorization} hasAccountLinked={hasAccountLinked} mobileAccountLinkingDisabled={mobileAccountLinkingDisabled} sku={sku} application={application} />;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/* Metro module 8467; source: modules/slayer_storefront/native/SlayerStorefrontItemCard.tsx; dependencies: [31, 27, 33, 4501, 697, 6829, 8468, 5132, 5475, 4589, 2] */
|
||||
function _fun67245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8652:6, offset: 0x01c1b02f, size: 303 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.ImageBackground;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'borderRadius': null, 'overflow': 'hidden', 'shadowColor': '#000', 'shadowOffset': null,
|
||||
'shadowOpacity': 0.3, 'shadowRadius': 8, 'elevation': 8};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object.shadowOffset = {'width': 0, 'height': 4};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{cardContainer: object, cardImageBackground: {'width': '100%',
|
||||
'height': '100%', 'alignItems': 'center', 'justifyContent': 'center'}, cardImage: {'width': '100%',
|
||||
'height': '100%', 'resizeMode': 'cover'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SlayerStorefrontItemCard.tsx');
|
||||
exports.default = SlayerStorefrontItemCard;
|
||||
}
|
||||
|
||||
function SlayerStorefrontItemCard({sku, size, containerStyle}) { // fn#67246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8652:601, offset: 0x01c1b15e, size: 577 bytes, params: 2, frame: 25
|
||||
var r5;
|
||||
var r0;
|
||||
var defaultImport;
|
||||
var FastImage;
|
||||
var object;
|
||||
var object2;
|
||||
var object3;
|
||||
var FastImage2;
|
||||
var object7;
|
||||
size = size === undefined ? 220 : size;
|
||||
const styles = useStyles();
|
||||
const r10 = typeof size === 'object' ? size : {width: size, height: size};
|
||||
const Math = global.Math;
|
||||
const value4 = Math.max(r10.width, r10.height);
|
||||
let binding = env0_3;
|
||||
let useMemo = binding.useMemo;
|
||||
const value5 = Reflect.apply(useMemo, binding, [_fun67247, [sku, value4]]);
|
||||
const value6 = binding.useMemo(_fun67248, [sku, value4]);
|
||||
const value9 = (require(8468) /* metro dependency 8468: DominantColorUtils */).useDominantColorFromImage(value5?.toString());
|
||||
binding = env0_3;
|
||||
useMemo = binding.useMemo;
|
||||
if (sku == null) {
|
||||
r0 = null;
|
||||
} else if (value5 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: [styles.cardContainer, r10, containerStyle]};
|
||||
if (value6 != null) {
|
||||
object2 = {};
|
||||
object3 = {};
|
||||
object3.uri = value6.toString();
|
||||
object2.source = object3;
|
||||
object2.style = styles.cardImageBackground;
|
||||
FastImage2 = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
object7 = {};
|
||||
object7.uri = value5.toString();
|
||||
r5 = <ImageBackground {...object2}><FastImage2 source={object7} style={styles.cardImage} /></ImageBackground>;
|
||||
} else {
|
||||
defaultImport = importDefault(4589) /* metro dependency 4589 */;
|
||||
var defaultImportProps = {colors: Reflect.apply(useMemo, binding, [_fun67249, [value9]]), start: {'x': 0,
|
||||
'y': 0},
|
||||
end: {'x': 1, 'y': 1}, style: styles.cardImageBackground};
|
||||
FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
object = {};
|
||||
object.uri = value5.toString();
|
||||
r5 = ((Component) => <Component {...defaultImportProps}><FastImage source={object} style={styles.cardImage} /></Component>)(defaultImport);
|
||||
}
|
||||
r0 = <View {...viewBindingProps}>{r5}</View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun67247() { // fn#67247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8652:766, offset: 0x01c1b39f, size: 56 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return (require(6829) /* metro dependency 6829: SlayerStorefrontUtils */).getCardImageURL(sku, {size: env0_1});
|
||||
}
|
||||
|
||||
function _fun67248() { // fn#67248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8652:827, offset: 0x01c1b3d7, size: 56 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return (require(6829) /* metro dependency 6829: SlayerStorefrontUtils */).getCardBackgroundImageURL(sku,
|
||||
{size: env0_1});
|
||||
}
|
||||
|
||||
function _fun67249() { // fn#67249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8652:963, offset: 0x01c1b40f, size: 259 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var value2;
|
||||
var items2;
|
||||
var colors;
|
||||
var value;
|
||||
if (env0_2 == null) {
|
||||
value = environment.__proto__;
|
||||
colors = (importDefault(697) /* metro dependency 697: native */).colors;
|
||||
items2 = [colors.BACKGROUND_SURFACE_HIGH];
|
||||
colors = (importDefault(697) /* metro dependency 697: native */).colors;
|
||||
items2[1] = colors.BACKGROUND_BASE_LOWEST;
|
||||
r0 = items2;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
items2 = [(importDefault(5132) /* metro dependency 5132 */)(env0_2).brighten(20).saturate(30).setAlpha(0.8).toRgbString()];
|
||||
value = (importDefault(5132) /* metro dependency 5132 */)(env0_2);
|
||||
value = value.saturate(50);
|
||||
value = value.setAlpha(0.9);
|
||||
items2[1] = value.toRgbString();
|
||||
r0 = items2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* Metro module 10443; source: modules/slayer_storefront/native/SocialLayerStorefrontBadges.tsx; dependencies: [31, 27, 33, 4501, 697, 477, 8765, 4573, 1244, 2] */
|
||||
function _fun80851(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10629:6, offset: 0x01e8c3df, size: 410 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'textAlignVertical': 'center',
|
||||
'alignSelf': 'flex-start'};
|
||||
let space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
const PX_4 = space.PX_4;
|
||||
object5.gap = PX_4;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.paddingHorizontal = PX_8;
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object5.backgroundColor = BACKGROUND_BRAND;
|
||||
object4.exclusiveBadge = object5;
|
||||
const object6 = {textTransform: 'uppercase'};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.fontSize = PX_12;
|
||||
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
object6.lineHeight = isAndroid2 ? space.PX_12 : space.PX_16;
|
||||
object4.exclusiveBadgeText = object6;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SocialLayerStorefrontBadges.tsx');
|
||||
exports.ExclusiveBadge = ExclusiveBadge;
|
||||
}
|
||||
|
||||
function ExclusiveBadge() { // fn#80852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10629:682, offset: 0x01e8c579, size: 234 bytes, params: 1, frame: 22
|
||||
const styles = useStyles();
|
||||
const ClydeIcon = (require(8765) /* metro dependency 8765: ClydeIcon */).ClydeIcon;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
const clydeIcon = <ClydeIcon size="xs" color={WHITE} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const RiDMFz = (require(1244) /* metro dependency 1244: indexNative */).t.RiDMFz;
|
||||
return (
|
||||
<View style={styles.exclusiveBadge}>
|
||||
{clydeIcon}
|
||||
<Text
|
||||
variant="text-xs/bold"
|
||||
color="white"
|
||||
style={styles.exclusiveBadgeText}
|
||||
>
|
||||
{Reflect.apply(string, intl, [RiDMFz])}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/* Metro module 10446; source: modules/slayer_storefront/native/SocialLayerStorefrontGiftModal.tsx; dependencies: [31, 4279, 661, 33, 566, 6771, 6789, 4594, 683, 10437, 3815, 7636, 1244, 10109, 7637, 10447, 10448, 2] */
|
||||
function _fun80862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10632:6, offset: 0x01e8cbd7, size: 176 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SocialLayerStorefrontGiftModal.tsx');
|
||||
exports.default = SocialLayerStorefrontGiftModal;
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontGiftModal({skuId, analyticsLocations, lockedRecipientUser, onGiftModalDismiss, giftingOrigin}) { // fn#80863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10632:265, offset: 0x01e8cc87, size: 505 bytes, params: 2, frame: 29
|
||||
var r1;
|
||||
var r0;
|
||||
var UnsupportedFeatureModal;
|
||||
var intl;
|
||||
var NativePaymentContextProvider;
|
||||
var value;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SKUStore], function() {
|
||||
return SKUStore.get(skuId);
|
||||
}, [skuId]);
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
object = [];
|
||||
const value3 = arraySpread(object, analyticsLocations, 0, undefined);
|
||||
const SLAYER_STOREFRONT_NATIVE_GIFT_MODAL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).SLAYER_STOREFRONT_NATIVE_GIFT_MODAL;
|
||||
object[value3] = SLAYER_STOREFRONT_NATIVE_GIFT_MODAL;
|
||||
value3 + 1;
|
||||
analyticsLocations = defaultImport(object).analyticsLocations;
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun80865);
|
||||
if (value2 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
if ((require(3815) /* metro dependency 3815: BillingPlatformUtils */).isSocialLayerStorefrontGiftingSupported()) {
|
||||
NativePaymentContextProvider = (require(10109) /* metro dependency 10109: NativePaymentContext */).NativePaymentContextProvider;
|
||||
value = importDefault(7637) /* metro dependency 7637: UnifiedGiftModal */;
|
||||
value = <NativePaymentContextProvider skuIDs={[]} activeSubscription={null}>{((Component) => <Component skuId={skuId} applicationId={value2.applicationId} analyticsLocations={analyticsLocations} lockedRecipientUser={lockedRecipientUser} onGiftModalDismiss={onGiftModalDismiss} giftingOrigin={giftingOrigin} validateRecipient={function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve(true);
|
||||
}} renderProductDetails={renderProductDetails} renderPurchaseSection={renderPurchaseSection} />)(value)}</NativePaymentContextProvider>;
|
||||
r1 = value;
|
||||
} else {
|
||||
UnsupportedFeatureModal = importDefault(7636) /* metro dependency 7636: UnsupportedFeatureModal */;
|
||||
object = {onDismiss: onGiftModalDismiss};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['JCFN/y']);
|
||||
r1 = <UnsupportedFeatureModal {...object} />;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun80865() { // fn#80865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10632:550, offset: 0x01e8ce80, size: 126 bytes, params: 1, frame: 18
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
const object2 = {};
|
||||
object2.location_stack = analyticsLocations;
|
||||
const SOCIAL_LAYER_STOREFRONT_GIFT_MODAL_KEY = (require(10437) /* metro dependency 10437: SocialLayerStorefrontNativeActionCreators */).SOCIAL_LAYER_STOREFRONT_GIFT_MODAL_KEY;
|
||||
object2.type = SOCIAL_LAYER_STOREFRONT_GIFT_MODAL_KEY;
|
||||
object2.sku_id = skuId;
|
||||
object2.application_id = env0_2 == null ? value2 : env0_2.applicationId;
|
||||
Reflect.apply(track, defaultImport, [OPEN_MODAL, object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontGiftModalRenderProductDetails() { // fn#80867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10632:1053, owner: SocialLayerStorefrontGiftModal.renderProductDetails, offset: 0x01e8cefe, size: 51 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component sku={env0_2} />)(importDefault(10447) /* metro dependency 10447: SocialLayerStorefrontGiftProductDetails */);
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontGiftModalRenderPurchaseSection({isPurchaseDisabled, giftOptions}) { // fn#80868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10632:1099, owner: SocialLayerStorefrontGiftModal.renderPurchaseSection, offset: 0x01e8cf31, size: 102 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component skuId={skuId} sku={env0_2} isPurchaseDisabled={isPurchaseDisabled} giftOptions={giftOptions} giftingOrigin={giftingOrigin} analyticsLocations={analyticsLocations} />)(importDefault(10448) /* metro dependency 10448: SocialLayerStorefrontGiftPurchaseSection */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
/* Metro module 10447; source: modules/slayer_storefront/native/SocialLayerStorefrontGiftProductDetails.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 6777, 10441, 1423, 8467, 4573, 2] */
|
||||
function _fun80869(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10633:6, offset: 0x01e8cf97, size: 518 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.Image;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).PriceSetAssignmentPurchaseTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.gap = PX_12;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingVertical = PX_16;
|
||||
object4.borderWidth = 2;
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object4.borderColor = BACKGROUND_BRAND;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.marginHorizontal = PX_16;
|
||||
object3.container = object4;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.text = {flex: 1, gap: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.appInfo = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
|
||||
const object6 = {'width': 20, 'height': 20};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object3.appIcon = object6;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SocialLayerStorefrontGiftProductDetails.tsx');
|
||||
exports.default = SocialLayerStorefrontGiftProductDetails;
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontGiftProductDetails({sku}) { // fn#80870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10633:795, offset: 0x01e8d19d, size: 523 bytes, params: 2, frame: 31
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var r10;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(sku.applicationId);
|
||||
const storefrontNativeUtilsAndroidModule = require(10441) /* metro dependency 10441: StorefrontNativeUtilsAndroid */;
|
||||
const useFormattedSKUPrice = storefrontNativeUtilsAndroidModule.useFormattedSKUPrice;
|
||||
const GIFT = PriceSetAssignmentPurchaseTypes.GIFT;
|
||||
const userPrice = Reflect.apply(useFormattedSKUPrice, storefrontNativeUtilsAndroidModule, [{sku: sku,
|
||||
priceSetAssignmentPurchaseType: GIFT}]).userPrice;
|
||||
const value3 = env0_3.useMemo(_fun80871, [value2]);
|
||||
const items3 = [((Component) => <Component sku={sku} size={55} />)(importDefault(8467) /* metro dependency 8467: SlayerStorefrontItemCard */)];
|
||||
const value5 = value2 != null;
|
||||
if (value5) {
|
||||
var viewBinding2Props = {style: styles.appInfo};
|
||||
items2 = [value3 != null && <Image source={{uri: value3}} style={styles.appIcon} />];
|
||||
items2[1] = <Text variant="text-sm/medium" color="text-muted">{value2.name}</Text>;
|
||||
r10 = <View {...viewBinding2Props}>{items2}</View>;
|
||||
} else {
|
||||
r10 = value5;
|
||||
}
|
||||
items3[1] = <View style={styles.text}>{r10}<Text variant="text-md/semibold">{sku.name}</Text></View>;
|
||||
items3[2] = userPrice != null && <Text variant="text-md/semibold">{userPrice}</Text>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80871() { // fn#80871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10633:1016, offset: 0x01e8d3a8, size: 85 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var getApplicationIconURL;
|
||||
var binding;
|
||||
const value2 = null;
|
||||
if (value2 == env0_0) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
getApplicationIconURL = defaultImport.getApplicationIconURL;
|
||||
binding = env0_0;
|
||||
r0 = Reflect.apply(getApplicationIconURL, defaultImport, [{id: binding.id, icon: binding.icon, size: 20}]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
/* Metro module 10448; source: modules/slayer_storefront/native/SocialLayerStorefrontGiftPurchaseSection.tsx; dependencies: [57, 31, 27, 1878, 661, 1880, 33, 4501, 697, 5463, 6777, 566, 6518, 491, 4594, 683, 10442, 694, 10437, 1244, 10444, 6766, 4578, 2] */
|
||||
function _fun80872(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:6, offset: 0x01e8d3fd, size: 281 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_8 = (require(1880) /* metro dependency 1880: PremiumConstants */).GiftingOrigin;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun80873);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SocialLayerStorefrontGiftPurchaseSection.tsx');
|
||||
exports.default = SocialLayerStorefrontGiftPurchaseSection;
|
||||
}
|
||||
|
||||
function _fun80873(a0) { // fn#80873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:244, offset: 0x01e8d516, size: 224 bytes, params: 2, frame: 17
|
||||
const object3 = {};
|
||||
const object4 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.paddingBottom = PX_12 + a0;
|
||||
const PX_122 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.paddingTop = PX_122;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.gap = PX_8;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
const SHADOW_TOP_HIGH = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_TOP_HIGH;
|
||||
copyDataProperties(object4, SHADOW_TOP_HIGH, PX_12);
|
||||
object3.container = object4;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.legalCopy = {'display': 'flex', 'flexDirection': 'column', gap: PX_4};
|
||||
return object3;
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontGiftPurchaseSection({skuId, sku, isPurchaseDisabled, giftOptions, giftingOrigin, analyticsLocations}) { // fn#80874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:681, offset: 0x01e8d5f6, size: 851 bytes, params: 2, frame: 30
|
||||
const env0_4 = analyticsLocations;
|
||||
const styles = useStyles((importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets.bottom);
|
||||
const value3 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(sku?.applicationId);
|
||||
const env0_5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(giftOptions.recipient_id);
|
||||
});
|
||||
const value4 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun80876);
|
||||
let binding = env0_4;
|
||||
let useMemo = binding.useMemo;
|
||||
const value5 = Reflect.apply(useMemo, binding, [_fun80877, [analyticsLocations, skuId, sku?.type, sku?.productLine,
|
||||
sku?.applicationId, value4]]);
|
||||
binding = env0_4;
|
||||
const [property, env0_8] = giftingOrigin(binding.useState(false), 2);
|
||||
const env0_9 = binding.useRef('not_started');
|
||||
(require(4594) /* metro dependency 4594: useMountEffect */).useUnmountEffect(_fun80878);
|
||||
const value8 = binding.useCallback(_fun80879, [value5]);
|
||||
useMemo = binding.useMemo;
|
||||
const env0_11 = (importDefault(10442) /* metro dependency 10442: useMobileSocialLayerPurchaseSKUAndroid */)({skuId: skuId,
|
||||
sku: sku, giftParams: Reflect.apply(useMemo, binding, [function() {
|
||||
return {isGift: true, options: giftOptions};
|
||||
}, [giftOptions]]), analyticsLoadId: value4, analyticsLocations: analyticsLocations,
|
||||
onPurchaseComplete: onPurchaseComplete, onPurchaseError: value8, onPurchasePending: function() {
|
||||
}});
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value10 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ouo4FK);
|
||||
const slayerStorefrontDisclaimerUtilsModule = require(10444) /* metro dependency 10444: SlayerStorefrontDisclaimerUtils */;
|
||||
const getMobileFinePrintMessageForApplication = slayerStorefrontDisclaimerUtilsModule.getMobileFinePrintMessageForApplication;
|
||||
const view = <View style={styles.legalCopy}>{Reflect.apply(getMobileFinePrintMessageForApplication,
|
||||
slayerStorefrontDisclaimerUtilsModule, [value3 ?? undefined, value10,
|
||||
{shouldAppendDisclaimer: true}]).map(_fun80883)}</View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
<Button
|
||||
variant="active"
|
||||
disabled={isPurchaseDisabled}
|
||||
loading={property}
|
||||
text={value10}
|
||||
onPress={onPress_80884}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80876() { // fn#80876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:1006, offset: 0x01e8d96a, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(491) /* metro dependency 491 */).v4();
|
||||
}
|
||||
|
||||
function _fun80877() { // fn#80877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:1039, offset: 0x01e8d98f, size: 131 bytes, params: 1, frame: 6
|
||||
const skuBinding = sku;
|
||||
const value2 = undefined;
|
||||
return {'is_gift': true, 'location_stack': null, 'payment_type': 'sku', location_stack: analyticsLocations,
|
||||
sku_id: skuId, sku_type: skuBinding == null ? value2 : sku.type,
|
||||
sku_product_line: sku == null ? value2 : sku.productLine,
|
||||
application_id: sku == null ? value2 : sku.applicationId, load_id: env0_6};
|
||||
}
|
||||
|
||||
function _fun80878() { // fn#80878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:1421, offset: 0x01e8da12, size: 74 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_9.current === 'pending') {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.PAYMENT_FLOW_CANCELED, env0_7);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80879() { // fn#80879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:1516, offset: 0x01e8da5c, size: 101 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_9.current === 'pending') {
|
||||
env0_9.current = 'failed';
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.PAYMENT_FLOW_FAILED, env0_7);
|
||||
}
|
||||
env0_8(false);
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontGiftPurchaseSectionOnPurchaseComplete() { // fn#80881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:1764, owner: SocialLayerStorefrontGiftPurchaseSection.onPurchaseComplete, offset: 0x01e8dad7, size: 341 bytes, params: 1, frame: 19
|
||||
env0_9.current = 'succeeded';
|
||||
const value3 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const PAYMENT_FLOW_SUCCEEDED = AnalyticEvents.PAYMENT_FLOW_SUCCEEDED;
|
||||
Reflect.apply(track, defaultImport, [PAYMENT_FLOW_SUCCEEDED, env0_7]);
|
||||
env0_8(false);
|
||||
if (!(giftOptions.recipient_id == null || giftingOrigin !== GiftingOrigin.USER_PROFILE_WISHLIST && giftingOrigin !== GiftingOrigin.DM_CHANNEL_WISHLIST)) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WISHLIST_GIFT_SENT', skuId: skuId,
|
||||
recipientId: giftOptions.recipient_id});
|
||||
}
|
||||
const socialLayerStorefrontNativeActionCreatorsModule = require(10437) /* metro dependency 10437: SocialLayerStorefrontNativeActionCreators */;
|
||||
const value = socialLayerStorefrontNativeActionCreatorsModule.openSocialLayerStorefrontProductGiftPurchaseSuccessModal({skuId: skuId,
|
||||
orbsReward: (sku == null ? value3 : sku.orbsReward) ?? value3, recipient: user,
|
||||
analyticsLocations: analyticsLocations});
|
||||
value.then(socialLayerStorefrontNativeActionCreatorsModule.closeSocialLayerStorefrontGiftModal);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun80883(a0, a1) { // fn#80883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:2489, offset: 0x01e8dc2c, size: 68 bytes, params: 3, frame: 15
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
return (
|
||||
<TextWithIOSLinkWorkaround
|
||||
variant="text-xs/normal"
|
||||
color="text-muted"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</TextWithIOSLinkWorkaround>
|
||||
);
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontGiftPurchaseSectionOnPress() { // fn#80884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10634:2669, owner: SocialLayerStorefrontGiftPurchaseSection.onPress, offset: 0x01e8dc70, size: 103 bytes, params: 1, frame: 15
|
||||
env0_9.current = 'pending';
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const PAYMENT_FLOW_STARTED = AnalyticEvents.PAYMENT_FLOW_STARTED;
|
||||
Reflect.apply(track, defaultImport, [PAYMENT_FLOW_STARTED, env0_7]);
|
||||
env0_8(true);
|
||||
env0_11().catch(env0_10);
|
||||
}
|
||||
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
/* Metro module 10437; source: modules/slayer_storefront/native/SocialLayerStorefrontNativeActionCreators.tsx; dependencies: [33, 8354, 8463, 5080, 10438, 1962, 10446, 4496, 10449, 2] */
|
||||
function _fun80790(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:6, offset: 0x01e893c3, size: 236 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SocialLayerStorefrontNativeActionCreators.tsx');
|
||||
exports.SOCIAL_LAYER_STOREFRONT_PRODUCT_DETAILS_MODAL_KEY = 'social-layer-storefront-product-details-native-modal';
|
||||
exports.SOCIAL_LAYER_STOREFRONT_GIFT_MODAL_KEY = 'social-layer-storefront-native-gift-modal';
|
||||
exports.SOCIAL_LAYER_STOREFRONT_SELF_PURCHASE_SUCCESS_MODAL_KEY = 'social-layer-storefront-self-purchase-success-native-modal';
|
||||
exports.SOCIAL_LAYER_STOREFRONT_GIFT_PURCHASE_SUCCESS_MODAL_KEY = 'social-layer-storefront-gift-purchase-success-native-modal';
|
||||
exports.openSocialLayerStorefrontProductDetailsModal = openSocialLayerStorefrontProductDetailsModal;
|
||||
exports.closeSocialLayerStorefrontProductDetailsModal = closeSocialLayerStorefrontProductDetailsModal;
|
||||
exports.openSocialLayerStorefrontGiftModal = openSocialLayerStorefrontGiftModal;
|
||||
exports.closeSocialLayerStorefrontGiftModal = closeSocialLayerStorefrontGiftModal;
|
||||
exports.openSocialLayerStorefrontProductSelfPurchaseSuccessModal = openSocialLayerStorefrontProductSelfPurchaseSuccessModal;
|
||||
exports.openSocialLayerStorefrontProductGiftPurchaseSuccessModal = openSocialLayerStorefrontProductGiftPurchaseSuccessModal;
|
||||
}
|
||||
|
||||
function openSocialLayerStorefrontProductDetailsModal(a0) { // fn#80791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:707, offset: 0x01e894af, size: 165 bytes, params: 2, frame: 18
|
||||
var defaultImport;
|
||||
const moduleValue = require(dependencyMap[1]);
|
||||
const getIsEligibleForSocialLayerStorefrontMobilePurchasing = moduleValue.getIsEligibleForSocialLayerStorefrontMobilePurchasing;
|
||||
if (Reflect.apply(getIsEligibleForSocialLayerStorefrontMobilePurchasing, moduleValue,
|
||||
[{location: 'social_layer_storefront_product_details_modal'}])) {
|
||||
require(dependencyMap[2]).fetchSocialLayerStorefrontConfig();
|
||||
defaultImport = importDefault(dependencyMap[3]);
|
||||
defaultImport.pushLazy(require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths), a0,
|
||||
'social-layer-storefront-product-details-native-modal', {presentation: 'modal'});
|
||||
}
|
||||
}
|
||||
|
||||
function closeSocialLayerStorefrontProductDetailsModal() { // fn#80792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1048, offset: 0x01e89554, size: 44 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('social-layer-storefront-product-details-native-modal');
|
||||
}
|
||||
|
||||
function openSocialLayerStorefrontGiftModal(a0) { // fn#80793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1165, offset: 0x01e89580, size: 129 bytes, params: 2, frame: 16
|
||||
var defaultImport;
|
||||
var pushLazy;
|
||||
var value;
|
||||
const moduleValue = require(dependencyMap[1]);
|
||||
const getIsEligibleForSocialLayerStorefrontMobilePurchasing = moduleValue.getIsEligibleForSocialLayerStorefrontMobilePurchasing;
|
||||
if (Reflect.apply(getIsEligibleForSocialLayerStorefrontMobilePurchasing, moduleValue,
|
||||
[{location: 'social_layer_storefront_gift_modal'}])) {
|
||||
defaultImport = importDefault(dependencyMap[3]);
|
||||
pushLazy = defaultImport.pushLazy;
|
||||
value = require(dependencyMap[5]);
|
||||
value = value(dependencyMap[6], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, a0, 'social-layer-storefront-native-gift-modal']);
|
||||
}
|
||||
}
|
||||
|
||||
function closeSocialLayerStorefrontGiftModal() { // fn#80794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1407, offset: 0x01e89601, size: 44 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('social-layer-storefront-native-gift-modal');
|
||||
}
|
||||
|
||||
function openSocialLayerStorefrontProductSelfPurchaseSuccessModal(a0) { // fn#80795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1536, offset: 0x01e8962d, size: 61 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
const value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
return value.openLazy({importer: importer_80796});
|
||||
}
|
||||
|
||||
function openSocialLayerStorefrontProductGiftPurchaseSuccessModal(a0) { // fn#80799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1815, offset: 0x01e896f4, size: 61 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
const value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
return value.openLazy({importer: importer_80800});
|
||||
}
|
||||
|
||||
function openSocialLayerStorefrontProductSelfPurchaseSuccessModalImporter() { // fn#80796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1639, owner: openSocialLayerStorefrontProductSelfPurchaseSuccessModal.importer, offset: 0x01e8966a, size: 64 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(dependencyMap[5]);
|
||||
value = value(dependencyMap[8], dependencyMap.paths);
|
||||
return value.then(function({SocialLayerStorefrontProductSelfPurchaseSuccessModal}) {
|
||||
return _fun80798;
|
||||
});
|
||||
}
|
||||
|
||||
function openSocialLayerStorefrontProductGiftPurchaseSuccessModalImporter() { // fn#80800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1918, owner: openSocialLayerStorefrontProductGiftPurchaseSuccessModal.importer, offset: 0x01e89731, size: 64 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(dependencyMap[5]);
|
||||
value = value(dependencyMap[8], dependencyMap.paths);
|
||||
return value.then(function({SocialLayerStorefrontProductGiftPurchaseSuccessModal}) {
|
||||
return _fun80802;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun80797({SocialLayerStorefrontProductSelfPurchaseSuccessModal}) { // fn#80797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1671, offset: 0x01e896aa, size: 24 bytes, params: 2, frame: 2
|
||||
return _fun80798;
|
||||
}
|
||||
|
||||
function _fun80801({SocialLayerStorefrontProductGiftPurchaseSuccessModal}) { // fn#80801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1950, offset: 0x01e89771, size: 24 bytes, params: 2, frame: 2
|
||||
return _fun80802;
|
||||
}
|
||||
|
||||
function _fun80798(a0) { // fn#80798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10623:1731, offset: 0x01e896c2, size: 50 bytes, params: 2, frame: 13
|
||||
return <SocialLayerStorefrontProductSelfPurchaseSuccessModal {...env2_0} {...a0} />;
|
||||
}
|
||||
|
||||
+528
@@ -0,0 +1,528 @@
|
||||
/* Metro module 10449; source: modules/slayer_storefront/native/SocialLayerStorefrontPoductPurchaseSuccessModal.tsx; dependencies: [862, 31, 27, 4502, 4279, 6832, 661, 33, 4501, 697, 4017, 4577, 4504, 4081, 1478, 566, 6829, 7717, 4589, 6618, 5287, 5312, 1244, 8467, 4573, 4578, 6777, 6774, 8462, 6789, 683, 4594, 10437, 3130, 10007, 3995, 2] */
|
||||
function _fun80885(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:6, offset: 0x01e8dcd7, size: 979 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(862) /* metro dependency 862 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.Image;
|
||||
const env0_6 = value.ScrollView;
|
||||
const env0_7 = value.View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */;
|
||||
const env0_10 = (require(6832) /* metro dependency 6832: SocialLayerStorefrontConstants */).SOCIAL_LAYER_DAYS_TO_CLAIM_ITEM;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = value.AnalyticEvents;
|
||||
const env0_12 = value.Orientation;
|
||||
const env0_13 = value.VerticalGradient;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value.jsx;
|
||||
const env0_15 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
object2.root = {flex: 1, backgroundColor: BLACK};
|
||||
object2.backdropImage = {'position': 'absolute', 'inset': 0, 'opacity': 0.45};
|
||||
object2.backdropGradient = {'position': 'absolute', 'inset': 0};
|
||||
BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
object2.curtain = {'position': 'absolute', 'inset': 0, backgroundColor: BLACK};
|
||||
object2.main = {flex: 1};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.header = {'flexDirection': 'row', 'justifyContent': 'flex-start', 'alignItems': 'center',
|
||||
paddingHorizontal: PX_16};
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object2.closeButtonIcon = {tintColor: WHITE};
|
||||
object2.body = {'flexGrow': 1, 'flexDirection': 'column', 'justifyContent': 'center'};
|
||||
object2.preview = {'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
const object3 = {'paddingTop': null, 'flexDirection': 'column', 'alignItems': 'center',
|
||||
'justifyContent': 'flex-start'};
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.paddingTop = PX_24;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.gap = PX_8;
|
||||
object2.messages = object3;
|
||||
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object2.title = {textAlign: 'center', marginHorizontal: PX_32};
|
||||
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object2.description = {textAlign: 'center', marginHorizontal: PX_32};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.footer = {marginBottom: PX_16};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.cta = {marginHorizontal: PX_24};
|
||||
const object4 = {textAlign: 'center'};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.marginHorizontal = PX_24;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.marginBottom = PX_12;
|
||||
object2.finePrint = object4;
|
||||
const env0_16 = Reflect.apply(createStyles, value, [object2]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
const env0_17 = Reflect.apply(createStyles, value, [{linkAccountIcon: {marginRight: PX_4}}]);
|
||||
object2 = {code: 'function SocialLayerStorefrontPoductPurchaseSuccessModalTsx1(){const{interpolate,springInput}=this.__closure;return{opacity:interpolate(springInput.get(),[0,1],[0.1,1]),transform:[{scale:interpolate(springInput.get(),[0,1],[0,1])}]};}'};
|
||||
object2 = {code: 'function SocialLayerStorefrontPoductPurchaseSuccessModalTsx2(){const{interpolate,springInput}=this.__closure;return{opacity:interpolate(springInput.get(),[0,1],[0,1]),transform:[{scale:interpolate(springInput.get(),[0,1],[0.75,1])}]};}'};
|
||||
object2 = {code: 'function SocialLayerStorefrontPoductPurchaseSuccessModalTsx3(){const{interpolate,linearInput}=this.__closure;return{opacity:interpolate(linearInput.get(),[0,1],[0.5,0])};}'};
|
||||
const env0_21 = [80, 79, 78, 75, 72, 50, 45, 35, 70];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SocialLayerStorefrontPoductPurchaseSuccessModal.tsx');
|
||||
exports.SocialLayerStorefrontProductSelfPurchaseSuccessModal = SocialLayerStorefrontProductSelfPurchaseSuccessModal;
|
||||
exports.SocialLayerStorefrontProductGiftPurchaseSuccessModal = SocialLayerStorefrontProductGiftPurchaseSuccessModal;
|
||||
}
|
||||
|
||||
function PurchaseSuccessModalBase({sku, title, body, finePrint, ctaLabel, ctaIcon, ctaLoading, onCtaPress, onClose}) { // fn#80886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:2150, offset: 0x01e8e0aa, size: 1382 bytes, params: 2, frame: 47
|
||||
const styles = useStyles();
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const env0_4 = width;
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const {previewViewStyle, textViewStyle, curtainViewStyle} = _fun80887(useReducedMotion);
|
||||
const binding = env0_4;
|
||||
const value3 = binding.useMemo(_fun80893, [sku]);
|
||||
const value4 = binding.useMemo(function() {
|
||||
return {width: width};
|
||||
}, [width]);
|
||||
const env0_1 = binding.useRef(env0_21);
|
||||
binding.useEffect(_fun80896, [binding.useCallback(_fun80895, [])]);
|
||||
binding.useEffect(function() {
|
||||
require(dependencyMap[17]).lockOrientation(Orientation.PORTRAIT);
|
||||
return _fun80899;
|
||||
}, []);
|
||||
const items4 = [styles.root, value4];
|
||||
const items2 = [value3 != null && <Image source={{uri: value3}} style={styles.backdropImage} blurRadius={4} resizeMode="cover" />];
|
||||
const defaultImport = importDefault(4589) /* metro dependency 4589 */;
|
||||
const {START, END} = VerticalGradient;
|
||||
items2[1] = ((Component) => <Component style={styles.backdropGradient} start={START} end={END} locations={[0.4,
|
||||
0.75, 1]} colors={['rgba(0,0,0,0)', 'rgba(0,0,0,0.6)', '#000000']} />)(defaultImport);
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const HeaderBackButton = (require(5287) /* metro dependency 5287 */).HeaderBackButton;
|
||||
const object = {onPress: onClose, backImage: backImage};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
|
||||
object.labelVisible = false;
|
||||
const items3 = [<View style={styles.header}><HeaderBackButton {...object} /></View>];
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const view = <View2 style={[styles.preview,
|
||||
previewViewStyle]}>{((Component) => <Component sku={sku} size={250} />)(importDefault(8467) /* metro dependency 8467: SlayerStorefrontItemCard */)}</View2>;
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items6 = [styles.messages, textViewStyle];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items3[1] = <ScrollView style={{flex: 1}} contentContainerStyle={styles.body} alwaysBounceVertical={false}>{view}<View3 style={items6}><Text variant="heading-xl/semibold" color="white" style={styles.title}>{title}</Text><Text variant="text-md/medium" color="white" style={styles.description}>{body}</Text></View3></ScrollView>;
|
||||
const r16 = finePrint != null && <Text variant="text-xs/normal" color="text-muted" style={styles.finePrint}>{finePrint}</Text>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items3[2] = <View style={styles.footer}>{r16}<View style={styles.cta}><Button onPress={onCtaPress ?? onClose} text={ctaLabel ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} icon={ctaIcon} loading={ctaLoading} size="lg" grow /></View></View>;
|
||||
items2[2] = <SafeAreaPaddingView style={styles.main} top bottom left right>{items3}</SafeAreaPaddingView>;
|
||||
const View4 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items2[3] = <View4 style={[styles.curtain, curtainViewStyle]} pointerEvents="none" />;
|
||||
return (
|
||||
<View style={items4}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontProductSelfPurchaseSuccessModal(a0) { // fn#80901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:5656, offset: 0x01e8ec2c, size: 996 bytes, params: 2, frame: 29
|
||||
const skuId = a0.skuId;
|
||||
a0.orbsReward;
|
||||
const analyticsLocations = a0.analyticsLocations;
|
||||
const onClose = a0.onClose;
|
||||
const value = undefined;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SKUStore], function() {
|
||||
return SKUStore.get(skuId);
|
||||
});
|
||||
const useGetOrFetchApplicationsModule = require(6777) /* metro dependency 6777: useGetOrFetchApplications */;
|
||||
const value4 = null;
|
||||
const value5 = useGetOrFetchApplicationsModule.useGetOrFetchApplication(value4 == value3 ? value : value3.applicationId);
|
||||
const value6 = (importDefault(6774) /* metro dependency 6774: useStartAuthorize */)(value4 != value5 ? value5 : value4);
|
||||
const fetched = value6.fetched;
|
||||
const env0_4 = fetched;
|
||||
const hasAlreadyLinked = value6.hasAlreadyLinked;
|
||||
const canStartAuthorization = value6.canStartAuthorization;
|
||||
const startAuthorization = value6.startAuthorization;
|
||||
const value7 = (require(8462) /* metro dependency 8462: useSocialLayerStorefrontMobileAccountLinkingDisabled */).useSocialLayerStorefrontMobileAccountLinkingDisabled(value4 == value3 ? value : value3.applicationId);
|
||||
let binding = env0_4;
|
||||
const value8 = binding.useMemo(_fun80903, [analyticsLocations]);
|
||||
const env0_9 = binding.useRef({analyticsLocations: value8, skuId: skuId,
|
||||
applicationId: value4 == value3 ? value : value3.applicationId, canStartAuthorization: canStartAuthorization});
|
||||
binding = env0_4;
|
||||
binding.useEffect(_fun80904, [canStartAuthorization]);
|
||||
binding.useEffect(_fun80905, [fetched, hasAlreadyLinked]);
|
||||
const value9 = binding.useCallback(_fun80906, [startAuthorization, value8, skuId,
|
||||
value4 == value3 ? value : value3.applicationId]);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun80907);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const r10 = hasAlreadyLinked ? Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['5glWta']]) : Reflect.apply(string, intl,
|
||||
[(importDefault(3130) /* metro dependency 3130: SlayerStorefrontMessages */).bRPsNX]);
|
||||
const r7 = !hasAlreadyLinked && canStartAuthorization && !value7;
|
||||
return (
|
||||
<PurchaseSuccessModalBase
|
||||
sku={value3}
|
||||
title={r10}
|
||||
body={env0_4.useMemo(_fun80908, [hasAlreadyLinked, r7, value4 == value5 ? value : value5.name,
|
||||
value4 == value3 ? value : value3.name])}
|
||||
finePrint={hasAlreadyLinked ? value : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.TTj7ME,
|
||||
{numDays: SOCIAL_LAYER_DAYS_TO_CLAIM_ITEM})}
|
||||
ctaLabel={r7 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['VDAhr+']) : value}
|
||||
ctaIcon={r7 ? ((ExperimentalGameControllerLinkIcon) => <ExperimentalGameControllerLinkIcon size="xs" color={(importDefault(697) /* metro dependency 697: native */).colors.WHITE} style={styles.linkAccountIcon} />)((require(10007) /* metro dependency 10007: ExperimentalGameControllerLinkIcon */).ExperimentalGameControllerLinkIcon) : value}
|
||||
ctaLoading={!fetched}
|
||||
onCtaPress={r7 ? value9 : value}
|
||||
onClose={onClose}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontProductGiftPurchaseSuccessModal(a0) { // fn#80909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:8075, offset: 0x01e8f39f, size: 296 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0.skuId;
|
||||
a0.orbsReward;
|
||||
const recipient = a0.recipient;
|
||||
const analyticsLocations = a0.analyticsLocations;
|
||||
const onClose = a0.onClose;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SKUStore], function() {
|
||||
return SKUStore.get(skuId);
|
||||
});
|
||||
const binding = env0_4;
|
||||
var env0_4 = binding.useMemo(_fun80911, [analyticsLocations]);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun80912);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<PurchaseSuccessModalBase
|
||||
sku={value3}
|
||||
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5glWta'])}
|
||||
body={binding.useMemo(_fun80913, [value3 == null ? value2 : value3.name, recipient])}
|
||||
onClose={onClose}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80887(a0) { // fn#80887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:2282, offset: 0x01e8e610, size: 390 bytes, params: 2, frame: 23
|
||||
var object2;
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
env1_4.useEffect(_fun80888, [value2, a0, value3]);
|
||||
object2 = {};
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
let closure = o_80889;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
closure.__closure = {interpolate: interpolate, springInput: value2};
|
||||
closure.__workletHash = 7750024112371;
|
||||
closure.__initData = env1_18;
|
||||
object2.previewViewStyle = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const moduleValue4 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue4.useAnimatedStyle;
|
||||
closure = l_80890;
|
||||
closure.__closure = {interpolate: interpolate, springInput: value2};
|
||||
closure.__workletHash = 3400602564931;
|
||||
closure.__initData = env1_19;
|
||||
object2.textViewStyle = Reflect.apply(useAnimatedStyle, moduleValue4, [closure]);
|
||||
const moduleValue5 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue5.useAnimatedStyle;
|
||||
closure = c_80891;
|
||||
closure.__closure = {interpolate: interpolate, linearInput: value3};
|
||||
closure.__workletHash = 4092396015860;
|
||||
closure.__initData = env1_20;
|
||||
object2.curtainViewStyle = Reflect.apply(useAnimatedStyle, moduleValue5, [closure]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun80893() { // fn#80893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:3455, offset: 0x01e8e9e2, size: 101 bytes, params: 1, frame: 15
|
||||
var r2;
|
||||
let value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const cardBackgroundImageURL = (require(6829) /* metro dependency 6829: SlayerStorefrontUtils */).getCardBackgroundImageURL(sku);
|
||||
if (cardBackgroundImageURL != null) {
|
||||
r2 = cardBackgroundImageURL;
|
||||
} else {
|
||||
value = require(6829) /* metro dependency 6829: SlayerStorefrontUtils */;
|
||||
value = value.getCardImageURL(sku);
|
||||
r2 = value;
|
||||
}
|
||||
return r2 == null ? value2 : r2.toString();
|
||||
}
|
||||
|
||||
function _fun80895() { // fn#80895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:3663, offset: 0x01e8ea56, size: 282 bytes, params: 1, frame: 20
|
||||
const HapticFeedbackTypes = (require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes;
|
||||
let value = environment.__proto__;
|
||||
const value3 = env1_3(env0_1.current);
|
||||
const property = value3[0];
|
||||
const value4 = value3.slice(1);
|
||||
if (property == null) {
|
||||
if (value4.length >= env1_21.length / 2) {
|
||||
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
value.triggerHapticFeedback(HapticFeedbackTypes.IMPACT_LIGHT);
|
||||
} else {
|
||||
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
value.triggerHapticFeedback(HapticFeedbackTypes.IMPACT_MEDIUM);
|
||||
}
|
||||
} else if (value4.length === 0) {
|
||||
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
value.triggerHapticFeedback(HapticFeedbackTypes.IMPACT_HEAVY);
|
||||
} else if (value4.length >= env1_21.length / 2) {
|
||||
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
value.triggerHapticFeedback(HapticFeedbackTypes.IMPACT_LIGHT);
|
||||
} else {
|
||||
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
value.triggerHapticFeedback(HapticFeedbackTypes.IMPACT_MEDIUM);
|
||||
}
|
||||
if (property != null) {
|
||||
global.setTimeout(env0_2, property);
|
||||
}
|
||||
env0_1.current = value4;
|
||||
}
|
||||
|
||||
function _fun80896() { // fn#80896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:4029, offset: 0x01e8eb70, size: 24 bytes, params: 1, frame: 9
|
||||
env0_2();
|
||||
return _fun80897;
|
||||
}
|
||||
|
||||
function _fun80898() { // fn#80898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:4077, offset: 0x01e8eb88, size: 57 bytes, params: 1, frame: 12
|
||||
const deviceOrientationModule = require(7717) /* metro dependency 7717: DeviceOrientation */;
|
||||
const lockOrientation = deviceOrientationModule.lockOrientation;
|
||||
const PORTRAIT = Orientation.PORTRAIT;
|
||||
Reflect.apply(lockOrientation, deviceOrientationModule, [PORTRAIT]);
|
||||
return _fun80899;
|
||||
}
|
||||
|
||||
function PurchaseSuccessModalBaseBackImage() { // fn#80900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:4589, owner: PurchaseSuccessModalBase.backImage, offset: 0x01e8ebe6, size: 70 bytes, params: 1, frame: 14
|
||||
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
|
||||
return <XSmallIcon size="lg" style={styles.closeButtonIcon} />;
|
||||
}
|
||||
|
||||
function _fun80903() { // fn#80903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:6060, offset: 0x01e8f02a, size: 84 bytes, params: 1, frame: 15
|
||||
const r2 = analyticsLocations ?? [];
|
||||
const items2 = [];
|
||||
const value = arraySpread(items2, r2, 0, undefined);
|
||||
const SLAYER_STOREFRONT_NATIVE_PURCHASE_SUCCESS = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).SLAYER_STOREFRONT_NATIVE_PURCHASE_SUCCESS;
|
||||
items2[value] = SLAYER_STOREFRONT_NATIVE_PURCHASE_SUCCESS;
|
||||
value + 1;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun80904() { // fn#80904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:6264, offset: 0x01e8f07e, size: 26 bytes, params: 1, frame: 2
|
||||
env0_9.current.canStartAuthorization = canStartAuthorization;
|
||||
}
|
||||
|
||||
function _fun80905() { // fn#80905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:6323, offset: 0x01e8f098, size: 129 bytes, params: 1, frame: 18
|
||||
var current;
|
||||
var analyticsLocations;
|
||||
var skuId;
|
||||
var applicationId;
|
||||
var canStartAuthorization;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (fetched) {
|
||||
current = env0_9.current;
|
||||
analyticsLocations = current.analyticsLocations;
|
||||
skuId = current.skuId;
|
||||
applicationId = current.applicationId;
|
||||
canStartAuthorization = current.canStartAuthorization;
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.SLAYER_STOREFRONT_LINK_ACCOUNT_STEP_VIEWED,
|
||||
{location_stack: analyticsLocations,
|
||||
sku_id: skuId, application_id: applicationId, is_gift: false, is_account_linked: hasAlreadyLinked,
|
||||
can_start_authorization: canStartAuthorization});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80906() { // fn#80906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:6621, offset: 0x01e8f119, size: 127 bytes, params: 1, frame: 17
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const SLAYER_STOREFRONT_ACCOUNT_LINK_CLICKED = AnalyticEvents.SLAYER_STOREFRONT_ACCOUNT_LINK_CLICKED;
|
||||
Reflect.apply(track, defaultImport, [SLAYER_STOREFRONT_ACCOUNT_LINK_CLICKED, {location_stack: env0_8, sku_id: skuId,
|
||||
application_id: env0_2 == null ? value2 : env0_2.applicationId, is_gift: false}]);
|
||||
startAuthorization({analyticsLocations: env0_8});
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun80907() { // fn#80907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:6846, offset: 0x01e8f198, size: 126 bytes, params: 1, frame: 18
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
const object2 = {};
|
||||
object2.location_stack = env0_8;
|
||||
const SOCIAL_LAYER_STOREFRONT_SELF_PURCHASE_SUCCESS_MODAL_KEY = (require(10437) /* metro dependency 10437: SocialLayerStorefrontNativeActionCreators */).SOCIAL_LAYER_STOREFRONT_SELF_PURCHASE_SUCCESS_MODAL_KEY;
|
||||
object2.type = SOCIAL_LAYER_STOREFRONT_SELF_PURCHASE_SUCCESS_MODAL_KEY;
|
||||
object2.sku_id = skuId;
|
||||
object2.application_id = env0_2 == null ? value2 : env0_2.applicationId;
|
||||
Reflect.apply(track, defaultImport, [OPEN_MODAL, object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun80908() { // fn#80908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:7141, offset: 0x01e8f216, size: 393 bytes, params: 1, frame: 22
|
||||
var name;
|
||||
var r0;
|
||||
var binding;
|
||||
var value3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString;
|
||||
var eNNnIG;
|
||||
var object2;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var property;
|
||||
var value4;
|
||||
var value5;
|
||||
var W2znvX;
|
||||
var value6;
|
||||
var value;
|
||||
if (hasAlreadyLinked) {
|
||||
value5 = undefined;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
W2znvX = t.W2znvX;
|
||||
object2 = {};
|
||||
name = env0_2 == null ? value5 : env0_2.name;
|
||||
value6 = '';
|
||||
object2.skuName = name ?? value6;
|
||||
name = env0_3 == null ? value5 : env0_3.name;
|
||||
object2.applicationName = name ?? value6;
|
||||
r0 = Reflect.apply(formatToPlainString, intl, [W2znvX, object2]);
|
||||
} else {
|
||||
binding = env0_10;
|
||||
value3 = undefined;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
if (binding) {
|
||||
property = t['EgCl+Q'];
|
||||
object2 = {};
|
||||
name = env0_2 == null ? value3 : env0_2.name;
|
||||
value4 = '';
|
||||
object2.skuName = name ?? value4;
|
||||
name = env0_3 == null ? value3 : env0_3.name;
|
||||
object2.applicationName = name ?? value4;
|
||||
r0 = Reflect.apply(formatToPlainString, intl, [property, object2]);
|
||||
} else {
|
||||
eNNnIG = (importDefault(3130) /* metro dependency 3130: SlayerStorefrontMessages */).eNNnIG;
|
||||
name = env0_3 == null ? value3 : env0_3.name;
|
||||
value = '';
|
||||
value = Reflect.apply(formatToPlainString, intl, [eNNnIG, {applicationName: name ?? value}]);
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun80911() { // fn#80911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:8212, offset: 0x01e8f4c7, size: 84 bytes, params: 1, frame: 15
|
||||
const r2 = analyticsLocations ?? [];
|
||||
const items2 = [];
|
||||
const value = arraySpread(items2, r2, 0, undefined);
|
||||
const SLAYER_STOREFRONT_NATIVE_PURCHASE_SUCCESS = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).SLAYER_STOREFRONT_NATIVE_PURCHASE_SUCCESS;
|
||||
items2[value] = SLAYER_STOREFRONT_NATIVE_PURCHASE_SUCCESS;
|
||||
value + 1;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun80912() { // fn#80912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:8301, offset: 0x01e8f51b, size: 126 bytes, params: 1, frame: 18
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
const object2 = {};
|
||||
object2.location_stack = env0_4;
|
||||
const SOCIAL_LAYER_STOREFRONT_GIFT_PURCHASE_SUCCESS_MODAL_KEY = (require(10437) /* metro dependency 10437: SocialLayerStorefrontNativeActionCreators */).SOCIAL_LAYER_STOREFRONT_GIFT_PURCHASE_SUCCESS_MODAL_KEY;
|
||||
object2.type = SOCIAL_LAYER_STOREFRONT_GIFT_PURCHASE_SUCCESS_MODAL_KEY;
|
||||
object2.sku_id = skuId;
|
||||
object2.application_id = env0_3 == null ? value2 : env0_3.applicationId;
|
||||
Reflect.apply(track, defaultImport, [OPEN_MODAL, object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun80913() { // fn#80913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:8544, offset: 0x01e8f599, size: 155 bytes, params: 1, frame: 19
|
||||
let value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const property = (require(1244) /* metro dependency 1244: indexNative */).t['2VjPTw'];
|
||||
const object2 = {};
|
||||
object2.itemName = env0_3 == null ? value2 : env0_3.name;
|
||||
const getName = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName;
|
||||
value = Reflect.apply(getName, value, [recipient]);
|
||||
object2.giftRecipient = value ?? 'your recipient';
|
||||
return Reflect.apply(formatToPlainString, intl, [property, object2]);
|
||||
}
|
||||
|
||||
function _fun80888() { // fn#80888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:2374, offset: 0x01e8e796, size: 204 bytes, params: 1, frame: 20
|
||||
var r1;
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var withDelay;
|
||||
var moduleValue3;
|
||||
var value;
|
||||
let binding = env0_1;
|
||||
let set = binding.set;
|
||||
const value2 = 1;
|
||||
if (env0_0) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
r1 = moduleValue.withDelay(200, (require(4577) /* metro dependency 4577: spring */).withSpring(value2,
|
||||
{'duration': 500, 'dampingRatio': 0.7}));
|
||||
}
|
||||
Reflect.apply(set, binding, [r1]);
|
||||
binding = env0_2;
|
||||
set = binding.set;
|
||||
if (env0_0) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
withDelay = value.withDelay;
|
||||
moduleValue3 = require(4504) /* metro dependency 4504: timing */;
|
||||
value = Reflect.apply(withDelay, value, [200, moduleValue3.withTiming(value2, {duration: 200})]);
|
||||
r0 = value;
|
||||
}
|
||||
Reflect.apply(set, binding, [r0]);
|
||||
}
|
||||
|
||||
function o_80889() { // fn#80889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:2600, offset: 0x01e8e862, size: 150 bytes, params: 1, frame: 21
|
||||
const object3 = {};
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = value.interpolate;
|
||||
const binding = env0_1;
|
||||
object3.opacity = Reflect.apply(interpolate, value, [binding.get(), [0, 1], [0.1, 1]]);
|
||||
const object4 = {};
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
object4.scale = value.interpolate(binding.get(), [0, 1], [0, 1]);
|
||||
object3.transform = [object4];
|
||||
return object3;
|
||||
}
|
||||
|
||||
function l_80890() { // fn#80890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:2874, offset: 0x01e8e8f8, size: 152 bytes, params: 1, frame: 21
|
||||
const object3 = {};
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = value.interpolate;
|
||||
const binding = env0_1;
|
||||
object3.opacity = Reflect.apply(interpolate, value, [binding.get(), [0, 1], [0, 1]]);
|
||||
const object4 = {};
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
object4.scale = value.interpolate(binding.get(), [0, 1], [0.75, 1]);
|
||||
object3.transform = [object4];
|
||||
return object3;
|
||||
}
|
||||
|
||||
function c_80891() { // fn#80891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:3152, offset: 0x01e8e990, size: 82 bytes, params: 1, frame: 16
|
||||
const object2 = {};
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
object2.opacity = value.interpolate(env0_2.get(), [0, 1], [0.5, 0]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun80899() { // fn#80899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10635:4119, offset: 0x01e8ebc1, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(require(7717) /* metro dependency 7717: DeviceOrientation */).restoreDefaultOrientation();
|
||||
}
|
||||
|
||||
+656
@@ -0,0 +1,656 @@
|
||||
/* Metro module 10438; source: modules/slayer_storefront/native/SocialLayerStorefrontProductDetailsModal.tsx; dependencies: [57, 31, 27, 4279, 6831, 10439, 661, 33, 674, 697, 4501, 5314, 10440, 9543, 5475, 4573, 1244, 10441, 1305, 1861, 4141, 1585, 7943, 566, 6777, 6774, 6829, 6789, 6518, 491, 4594, 683, 10437, 8463, 477, 10442, 6833, 5287, 5312, 4589, 8467, 10443, 3130, 4578, 8341, 8329, 10444, 6766, 10109, 2] */
|
||||
function _fun80803(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:6, offset: 0x01e89789, size: 1650 bytes, params: 8, frame: 27
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.ScrollView;
|
||||
const env0_6 = value.StyleSheet;
|
||||
const env0_7 = value.View;
|
||||
const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */;
|
||||
const socialLayerStorefrontStore = importDefault(6831) /* metro dependency 6831: SocialLayerStorefrontStore */;
|
||||
const env0_10 = (require(10439) /* metro dependency 10439: SocialLayerStorefrontAnalyticsConstants */).SlayerShopPDPCTAType;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = value.AnalyticEvents;
|
||||
const env0_12 = value.PaymentGateways;
|
||||
const env0_13 = value.PriceSetAssignmentPurchaseTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value.jsx;
|
||||
const env0_15 = value.jsxs;
|
||||
const env0_16 = value.Fragment;
|
||||
value = importDefault(674) /* metro dependency 674 */;
|
||||
let BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
|
||||
value = value(BRAND_500);
|
||||
value = value.alpha(0.25);
|
||||
const env0_17 = value.hex();
|
||||
value = importDefault(674) /* metro dependency 674 */;
|
||||
BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
|
||||
value = value(BRAND_500);
|
||||
value = value.alpha(0);
|
||||
const env0_18 = value.hex();
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.container = {flex: 1};
|
||||
const object4 = {'height': null, 'flexDirection': 'row', 'alignItems': 'center', 'paddingHorizontal': null,
|
||||
'gap': null, 'borderBottomWidth': 1};
|
||||
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
|
||||
object4.height = NAV_BAR_HEIGHT;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingHorizontal = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.gap = PX_8;
|
||||
let BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object4.borderBottomColor = BORDER_SUBTLE;
|
||||
object2.header = object4;
|
||||
object2.headerTitle = {flexShrink: 1};
|
||||
const INTERACTIVE_ICON_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_ICON_DEFAULT;
|
||||
object2.closeButtonIcon = {tintColor: INTERACTIVE_ICON_DEFAULT};
|
||||
const object5 = {alignItems: 'stretch'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.gap = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingVertical = PX_16;
|
||||
object2.scrollContent = object5;
|
||||
object2.scrollContainer = {flex: 1};
|
||||
const object7 = {width: '100%'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.paddingHorizontal = PX_16;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object7.gap = PX_8;
|
||||
object2.section = object7;
|
||||
const object11 = {flexDirection: 'row'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object11.gap = PX_8;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object11.paddingVertical = PX_4;
|
||||
object2.bundleThumbnailRow = object11;
|
||||
const object14 = {'width': 64, 'height': 64, 'borderRadius': null, 'borderWidth': 2, 'borderColor': 'transparent'};
|
||||
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object2.thumbnail = object14;
|
||||
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
|
||||
object2.thumbnailSelected = {borderColor: BORDER_STRONG};
|
||||
const object16 = {'flex': 1, 'borderRadius': null, 'overflow': 'hidden'};
|
||||
object16.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.thumbnailInner = object16;
|
||||
const object18 = {margin: 2};
|
||||
object18.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.thumbnailInnerSelected = object18;
|
||||
object2.thumbnailImage = {'width': '100%', 'height': '100%'};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.labelRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
|
||||
const object19 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object19.width = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object19.height = PX_16;
|
||||
object2.labelIcon = object19;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.priceRow = {'flexDirection': 'row', 'alignItems': 'center', 'flexWrap': 'wrap', gap: PX_8};
|
||||
const object20 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object20.paddingHorizontal = PX_16;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object20.paddingTop = PX_12;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object20.gap = PX_8;
|
||||
object20.borderTopWidth = 1;
|
||||
BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object20.borderTopColor = BORDER_SUBTLE;
|
||||
object2.footer = object20;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.footerButtonRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
|
||||
object2.buyButton = {flex: 1};
|
||||
object2.availabilityCopy = {textAlign: 'center'};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.legalCopy = {'display': 'flex', 'flexDirection': 'column', gap: PX_4};
|
||||
const object21 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object21.marginHorizontal = PX_16;
|
||||
const MOBILE_HERO_HEIGHT_PX = (require(10440) /* metro dependency 10440: carouselMediaItems */).MOBILE_HERO_HEIGHT_PX;
|
||||
object21.height = MOBILE_HERO_HEIGHT_PX;
|
||||
object21.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object21.overflow = 'hidden';
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object21.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object2.hero = object21;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.priceSection = {width: '100%', gap: PX_8};
|
||||
object2.heroImage = {'width': '100%', 'height': '100%'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.exclusiveBadgeContainer = {paddingHorizontal: PX_16};
|
||||
const env0_19 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/SocialLayerStorefrontProductDetailsModal.tsx');
|
||||
exports.default = WrappedSocialLayerStorefrontProductDetailsModal;
|
||||
}
|
||||
|
||||
function HeroMedia({mediaItem}) { // fn#80804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:2440, offset: 0x01e89dfb, size: 438 bytes, params: 2, frame: 25
|
||||
var r0;
|
||||
var items2;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
if (mediaItem.type === 'video') {
|
||||
r0 = <View style={styles.hero}>{((VideoComponent) => <VideoComponent source={{uri: mediaItem.src}} poster={mediaItem.videoThumbnailSrc} muted resizeMode="cover" style={styles.heroImage} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}</View>;
|
||||
} else if (mediaItem.backgroundSrc != null) {
|
||||
var viewBindingProps = {style: styles.hero};
|
||||
items2 = [((Component) => <Component source={{uri: mediaItem.backgroundSrc}} style={StyleSheet.absoluteFill} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
items2[1] = ((Component) => <Component source={{uri: mediaItem.src}} style={styles.heroImage} resizeMode="cover" />)(value);
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.hero};
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
value = <View {...viewBindingProps}>{((Component) => <Component source={{uri: mediaItem.src}} style={styles.heroImage} resizeMode="cover" />)(value)}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function InGameItemTag() { // fn#80805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:2965, offset: 0x01e89fb1, size: 107 bytes, params: 1, frame: 18
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const V91tvy = (require(1244) /* metro dependency 1244: indexNative */).t.V91tvy;
|
||||
return (
|
||||
<Text variant="text-sm/medium" color="text-muted">
|
||||
{Reflect.apply(string, intl, [V91tvy])}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function ProductPriceSection({sku}) { // fn#80806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:3109, offset: 0x01e8a01c, size: 236 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const storefrontNativeUtilsAndroidModule = require(10441) /* metro dependency 10441: StorefrontNativeUtilsAndroid */;
|
||||
const useFormattedSKUPrice = storefrontNativeUtilsAndroidModule.useFormattedSKUPrice;
|
||||
const DEFAULT = PriceSetAssignmentPurchaseTypes.DEFAULT;
|
||||
const userPrice = Reflect.apply(useFormattedSKUPrice, storefrontNativeUtilsAndroidModule, [{sku: sku,
|
||||
priceSetAssignmentPurchaseType: DEFAULT}]).userPrice;
|
||||
return userPrice == null ? null : <View style={styles.priceSection}><InGameItemTag /><View style={styles.priceRow}>{((Text) => <Text variant="text-md/bold" color="mobile-text-heading-primary">{userPrice}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View></View>;
|
||||
}
|
||||
|
||||
function BundleThumbnailRow({items, mediaItems, selectedIndex, onSelectIndex, trackPDPClick}) { // fn#80807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:3450, offset: 0x01e8a108, size: 312 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const env0_5 = styles.useCallback(function(a0) {
|
||||
trackPDPClick(SlayerShopPDPCTAType.CAROUSEL_ITEM);
|
||||
onSelectIndex(a0);
|
||||
}, [onSelectIndex, trackPDPClick]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const U7DAV9 = (require(1244) /* metro dependency 1244: indexNative */).t.U7DAV9;
|
||||
return (
|
||||
<View style={styles.section}>
|
||||
<Text variant="text-xs/semibold" color="text-muted">
|
||||
{Reflect.apply(string, intl, [U7DAV9])}
|
||||
</Text>
|
||||
<ScrollView
|
||||
horizontal
|
||||
showsHorizontalScrollIndicator={false}
|
||||
contentContainerStyle={styles.bundleThumbnailRow}
|
||||
>
|
||||
{mediaItems.map(_fun80809)}
|
||||
</ScrollView>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function SKUNameAndDescriptionSection({sku}) { // fn#80811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:4327, offset: 0x01e8a3c2, size: 255 bytes, params: 2, frame: 24
|
||||
var r0;
|
||||
var items2;
|
||||
var moduleValue2;
|
||||
const styles = useStyles();
|
||||
const stringUtilsModule = require(1861) /* metro dependency 1861: StringUtils */;
|
||||
if (stringUtilsModule.isNullOrEmpty(sku.name)) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.section};
|
||||
items2 = [((Heading) => <Heading variant="heading-xl/bold" color="mobile-text-heading-primary">{sku.name}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading)];
|
||||
moduleValue2 = stringUtilsModule;
|
||||
items2[1] = !moduleValue2.isNullOrEmpty(sku.description) && ((Text) => <Text variant="text-md/medium" color="text-muted">{sku.description}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
r0 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function ItemDetailsSection({selectedItem, applicationId}) { // fn#80812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:4687, offset: 0x01e8a4c1, size: 669 bytes, params: 2, frame: 30
|
||||
var r20;
|
||||
var r6;
|
||||
var r0;
|
||||
var moduleValue;
|
||||
var moduleValue3;
|
||||
var moduleValue4;
|
||||
var items3;
|
||||
var isNullOrEmpty3;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
if (selectedItem.labelIconAssetId != null) {
|
||||
moduleValue = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
r20 = moduleValue.getAssetURL(applicationId, selectedItem.labelIconAssetId);
|
||||
} else {
|
||||
r20 = null;
|
||||
}
|
||||
const r12 = selectedItem.title?.trim();
|
||||
const r17 = selectedItem.label?.trim();
|
||||
const r10 = selectedItem.description?.trim();
|
||||
const stringUtilsModule = require(1861) /* metro dependency 1861: StringUtils */;
|
||||
if (stringUtilsModule.isNullOrEmpty(r12)) {
|
||||
moduleValue3 = stringUtilsModule;
|
||||
if (moduleValue3.isNullOrEmpty(r17)) {
|
||||
moduleValue4 = require(1861) /* metro dependency 1861: StringUtils */;
|
||||
if (moduleValue4.isNullOrEmpty(r10)) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.section};
|
||||
r6 = !(require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r12) && ((Heading) => <Heading variant="heading-lg/bold" color="mobile-text-heading-primary">{r12}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading);
|
||||
items3 = [r6];
|
||||
isNullOrEmpty3 = (require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r17);
|
||||
if (isNullOrEmpty3) {
|
||||
r6 = !isNullOrEmpty3;
|
||||
} else {
|
||||
var viewBinding2Props = {style: styles.labelRow};
|
||||
items2 = [r20 != null && ((Component) => <Component source={{uri: r20}} style={styles.labelIcon} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
items2[1] = ((Text) => <Text variant="text-sm/medium" color="text-muted">{r17}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
r6 = <View {...viewBinding2Props}>{items2}</View>;
|
||||
}
|
||||
items3[1] = r6;
|
||||
r6 = !(require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r10) && ((Text) => <Text variant="text-md/medium" color="text-default">{r10}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
items3[2] = r6;
|
||||
r0 = <View {...viewBindingProps}>{items3}</View>;
|
||||
}
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.section};
|
||||
r6 = !(require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r12) && ((Heading) => <Heading variant="heading-lg/bold" color="mobile-text-heading-primary">{r12}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading);
|
||||
items3 = [r6];
|
||||
isNullOrEmpty3 = (require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r17);
|
||||
if (isNullOrEmpty3) {
|
||||
r6 = !isNullOrEmpty3;
|
||||
} else {
|
||||
var viewBinding2Props = {style: styles.labelRow};
|
||||
items2 = [r20 != null && ((Component) => <Component source={{uri: r20}} style={styles.labelIcon} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
items2[1] = ((Text) => <Text variant="text-sm/medium" color="text-muted">{r17}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
r6 = <View {...viewBinding2Props}>{items2}</View>;
|
||||
}
|
||||
items3[1] = r6;
|
||||
r6 = !(require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r10) && ((Text) => <Text variant="text-md/medium" color="text-default">{r10}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
items3[2] = r6;
|
||||
r0 = <View {...viewBindingProps}>{items3}</View>;
|
||||
}
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.section};
|
||||
r6 = !(require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r12) && ((Heading) => <Heading variant="heading-lg/bold" color="mobile-text-heading-primary">{r12}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading);
|
||||
items3 = [r6];
|
||||
isNullOrEmpty3 = (require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r17);
|
||||
if (isNullOrEmpty3) {
|
||||
r6 = !isNullOrEmpty3;
|
||||
} else {
|
||||
var viewBinding2Props = {style: styles.labelRow};
|
||||
items2 = [r20 != null && ((Component) => <Component source={{uri: r20}} style={styles.labelIcon} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
items2[1] = ((Text) => <Text variant="text-sm/medium" color="text-muted">{r17}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
r6 = <View {...viewBinding2Props}>{items2}</View>;
|
||||
}
|
||||
items3[1] = r6;
|
||||
r6 = !(require(1861) /* metro dependency 1861: StringUtils */).isNullOrEmpty(r10) && ((Text) => <Text variant="text-md/medium" color="text-default">{r10}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
items3[2] = r6;
|
||||
r0 = <View {...viewBindingProps}>{items3}</View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontProductDetailsModal({skuId, analyticsLocations}) { // fn#80813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:5501, offset: 0x01e8a75e, size: 2816 bytes, params: 2, frame: 54
|
||||
var r34;
|
||||
var r27;
|
||||
var jsxRuntimeEnv0_16Binding;
|
||||
var items7;
|
||||
var moduleValue8;
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
const defaultImport = importDefault(7943) /* metro dependency 7943: NativePaymentHooksAndroid */;
|
||||
const useNativeIAPPayments = defaultImport.useNativeIAPPayments;
|
||||
const storeFront = Reflect.apply(useNativeIAPPayments, defaultImport, []).storeFront;
|
||||
const env0_3 = storeFront;
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SKUStore], function() {
|
||||
return SKUStore.get(skuId);
|
||||
});
|
||||
const env0_4 = value4;
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SKUStore], _fun80815);
|
||||
const value7 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(value4?.applicationId);
|
||||
const hasAlreadyLinked = (importDefault(6774) /* metro dependency 6774: useStartAuthorize */)(value7 ?? null).hasAlreadyLinked;
|
||||
const skuAssets = (require(566) /* metro dependency 566: flux */).useStateFromStores([SocialLayerStorefrontStore],
|
||||
function() {
|
||||
return SocialLayerStorefrontStore.getSkuAssets();
|
||||
});
|
||||
let binding = env0_4;
|
||||
let useMemo = binding.useMemo;
|
||||
const value8 = Reflect.apply(useMemo, binding, [_fun80817, [value4]]);
|
||||
var [property, property2] = env0_3(env0_4.useState(0), 2);
|
||||
const value12 = env0_4.useMemo(_fun80818, [analyticsLocations]);
|
||||
const value13 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun80819);
|
||||
const value14 = env0_4.useMemo(_fun80820, [value12, skuId, value4?.type, value4?.productLine, value4?.applicationId,
|
||||
value13]);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun80821);
|
||||
const env0_10 = env0_4.useRef('not_started');
|
||||
(require(4594) /* metro dependency 4594: useMountEffect */).useUnmountEffect(_fun80822);
|
||||
const value15 = env0_4.useCallback(_fun80823, [skuId, value4?.applicationId, value12]);
|
||||
binding = env0_4;
|
||||
useMemo = binding.useMemo;
|
||||
const value17 = env0_3(Reflect.apply(useMemo, binding, [_fun80824, [value4, skuAssets]]), 2);
|
||||
const property3 = value17[0];
|
||||
const property4 = value17[1];
|
||||
const value18 = property4.length > 1;
|
||||
const r40 = property < property4.length ? property : 0;
|
||||
const r38 = property3[r40] ?? null;
|
||||
const r33 = property4[r40] ?? null;
|
||||
let r10 = (value4 == null || value4.tenantMetadata == null || (value4.tenantMetadata.socialLayer == null || value4.tenantMetadata.socialLayer.carouselItems == null) ? undefined : value4.tenantMetadata.socialLayer.carouselItems.length) ?? 0;
|
||||
const value19 = r10 === property3.length;
|
||||
var [property, env0_13] = env0_3(env0_4.useState(false), 2);
|
||||
const env0_14 = env0_4.useRef(false);
|
||||
env0_4.useEffect(_fun80825, [value4, skuAssets, value19, value5, storeFront?.country]);
|
||||
const value24 = env0_4.useCallback(_fun80830,
|
||||
[(importDefault(10442) /* metro dependency 10442: useMobileSocialLayerPurchaseSKUAndroid */)({skuId: skuId,
|
||||
sku: value4, analyticsLoadId: value13, analyticsLocations: value12, onPurchaseComplete: onPurchaseComplete,
|
||||
onPurchaseError: onPurchaseError, onPurchasePending: function() {
|
||||
}}), value15, value14, env0_4.useCallback(_fun80826, [value14])]);
|
||||
const value25 = env0_4.useCallback(_fun80832, [skuId, value12, value15]);
|
||||
if (value4 == null) {
|
||||
return null;
|
||||
}
|
||||
const isSlayerSkuAvailableOnThisPlatform2 = (require(6833) /* metro dependency 6833: StorefrontUtils */).isSlayerSkuAvailableOnThisPlatform(value4);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const value26 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.boqtTA]);
|
||||
const items2 = [styles.container];
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
items2[1] = {paddingTop: platformUtilsModule.isIOS() ? 0 : value3.top};
|
||||
const HeaderBackButton = (require(5287) /* metro dependency 5287 */).HeaderBackButton;
|
||||
const headerBackButton = <HeaderBackButton onPress={(require(10437) /* metro dependency 10437: SocialLayerStorefrontNativeActionCreators */).closeSocialLayerStorefrontProductDetailsModal} backImage={backImage} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} labelVisible={false} />;
|
||||
const Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
|
||||
const items3 = [<View style={styles.header}>{headerBackButton}<Heading variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.headerTitle}>{value7?.name}</Heading></View>];
|
||||
const r11 = value4.exclusive && ((Component) => <Component style={StyleSheet.absoluteFill} colors={[env0_17,
|
||||
env0_18]} pointerEvents="none" />)(importDefault(4589) /* metro dependency 4589 */);
|
||||
const items6 = [r33 != null ? <HeroMedia mediaItem={r33} /> : value8 != null && ((Component) => <Component sku={value4} />)(importDefault(8467) /* metro dependency 8467: SlayerStorefrontItemCard */)];
|
||||
items6[1] = value4.exclusive && <View style={styles.exclusiveBadgeContainer}>{((ExclusiveBadge) => <ExclusiveBadge />)((require(10443) /* metro dependency 10443: SocialLayerStorefrontBadges */).ExclusiveBadge)}</View>;
|
||||
if (value18) {
|
||||
jsxRuntimeEnv0_16Binding = jsxRuntimeEnv0_16;
|
||||
items7 = [<SKUNameAndDescriptionSection sku={value4} />];
|
||||
items7[1] = <BundleThumbnailRow items={property3} mediaItems={property4} selectedIndex={r40} onSelectIndex={property2} trackPDPClick={value15} />;
|
||||
r34 = value4.applicationId != null && r38 != null;
|
||||
r34 = r34 && <ItemDetailsSection selectedItem={r38} applicationId={value4.applicationId} />;
|
||||
items7[2] = r34;
|
||||
r27 = <>{items7}</>;
|
||||
} else {
|
||||
r27 = <SKUNameAndDescriptionSection sku={value4} />;
|
||||
}
|
||||
items6[2] = r27;
|
||||
items3[1] = <View style={styles.scrollContainer}>{r11}<ScrollView contentContainerStyle={styles.scrollContent}>{items6}</ScrollView></View>;
|
||||
const items8 = [styles.footer];
|
||||
const bottom = value3.bottom;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items8[1] = {paddingBottom: bottom + PX_16};
|
||||
const items9 = [<ProductPriceSection sku={value4} />];
|
||||
const value41 = !isSlayerSkuAvailableOnThisPlatform2;
|
||||
items9[1] = isSlayerSkuAvailableOnThisPlatform2 ? value41 : ((Text) => <Text variant="text-xs/normal" color="text-muted" style={styles.availabilityCopy}>{intl.string((importDefault(3130) /* metro dependency 3130: SlayerStorefrontMessages */).gndWN7)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const view = <View style={styles.buyButton}><Button variant="primary" size="lg" text={value26} loading={property} disabled={property || value41} onPress={value24} /></View>;
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const iconButtonProps = {'icon': null, 'variant': 'primary', 'size': 'lg',
|
||||
icon: importDefault(8329) /* metro dependency 8329 */, disabled: property || value41};
|
||||
string = intl.string;
|
||||
const QAZA5f = (require(1244) /* metro dependency 1244: indexNative */).t.QAZA5f;
|
||||
iconButtonProps.accessibilityLabel = Reflect.apply(string, intl, [QAZA5f]);
|
||||
iconButtonProps.onPress = value25;
|
||||
items9[2] = <View style={styles.footerButtonRow}>{view}<IconButton {...iconButtonProps} /></View>;
|
||||
if (isSlayerSkuAvailableOnThisPlatform2) {
|
||||
var viewBinding8Props = {style: styles.legalCopy};
|
||||
moduleValue8 = require(10444) /* metro dependency 10444: SlayerStorefrontDisclaimerUtils */;
|
||||
r10 = <View {...viewBinding8Props}>{moduleValue8.getMobileFinePrintMessageForApplication(value7 ?? undefined,
|
||||
value26, {shouldAppendDisclaimer: hasAlreadyLinked === false}).map(_fun80834)}</View>;
|
||||
} else {
|
||||
r10 = isSlayerSkuAvailableOnThisPlatform2;
|
||||
}
|
||||
items9[3] = r10;
|
||||
items3[2] = <View style={items8}>{items9}</View>;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function WrappedSocialLayerStorefrontProductDetailsModal(a0) { // fn#80835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:10993, offset: 0x01e8b95c, size: 91 bytes, params: 2, frame: 17
|
||||
const NativePaymentContextProvider = (require(10109) /* metro dependency 10109: NativePaymentContext */).NativePaymentContextProvider;
|
||||
return (
|
||||
<NativePaymentContextProvider skuIDs={[]} activeSubscription={null}>
|
||||
<SocialLayerStorefrontProductDetailsModal {...a0} />
|
||||
</NativePaymentContextProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80809(a0, a1) { // fn#80809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:3878, offset: 0x01e8a269, size: 345 bytes, params: 3, frame: 26
|
||||
const env0_0 = a1;
|
||||
const property = items[a1];
|
||||
const value2 = a1 === selectedIndex;
|
||||
const value4 = undefined;
|
||||
const PressableOpacity = (require(1305) /* metro dependency 1305: native */).PressableOpacity;
|
||||
const pressableOpacityProps = {accessibilityRole: 'button',
|
||||
accessibilityLabel: (property == null ? value4 : property.label) ?? (property == null ? value4 : property.title),
|
||||
accessibilityState: {selected: value2}, onPress: onPress_80810, style: [styles.thumbnail,
|
||||
value2 && styles.thumbnailSelected]};
|
||||
const items3 = [styles.thumbnailInner];
|
||||
items3[1] = value2 && styles.thumbnailInnerSelected;
|
||||
const FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
const object = {};
|
||||
object.uri = (require(10440) /* metro dependency 10440: carouselMediaItems */).getThumbnailSrc(a0);
|
||||
return (
|
||||
<PressableOpacity {...pressableOpacityProps} key={a1}>
|
||||
<View style={items3}>
|
||||
<FastImage
|
||||
source={object}
|
||||
style={styles.thumbnailImage}
|
||||
resizeMode="cover"
|
||||
/>
|
||||
</View>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80815() { // fn#80815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:5746, offset: 0x01e8b278, size: 49 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return SKUStore.isFetching(skuId) || SKUStore.didFetchingSkuFail(skuId);
|
||||
}
|
||||
|
||||
function _fun80817() { // fn#80817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:5977, offset: 0x01e8b2be, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(6829) /* metro dependency 6829: SlayerStorefrontUtils */).getCardImageURL(env0_4);
|
||||
}
|
||||
|
||||
function _fun80818() { // fn#80818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:6067, offset: 0x01e8b2eb, size: 84 bytes, params: 1, frame: 15
|
||||
const r2 = analyticsLocations ?? [];
|
||||
const items2 = [];
|
||||
const value = arraySpread(items2, r2, 0, undefined);
|
||||
const SLAYER_STOREFRONT_NATIVE_PDP = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).SLAYER_STOREFRONT_NATIVE_PDP;
|
||||
items2[value] = SLAYER_STOREFRONT_NATIVE_PDP;
|
||||
value + 1;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun80819() { // fn#80819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:6147, offset: 0x01e8b33f, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(491) /* metro dependency 491 */).v4();
|
||||
}
|
||||
|
||||
function _fun80820() { // fn#80820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:6180, offset: 0x01e8b364, size: 131 bytes, params: 1, frame: 6
|
||||
const value2 = undefined;
|
||||
return {'is_gift': false, 'location_stack': null, 'payment_type': 'sku', location_stack: env0_7, sku_id: skuId,
|
||||
sku_type: env0_4 == null ? value2 : env0_4.type, sku_product_line: env0_4 == null ? value2 : env0_4.productLine,
|
||||
application_id: env0_4 == null ? value2 : env0_4.applicationId, load_id: env0_8};
|
||||
}
|
||||
|
||||
function _fun80821() { // fn#80821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:6480, offset: 0x01e8b3e7, size: 126 bytes, params: 1, frame: 18
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
const object2 = {};
|
||||
object2.location_stack = env0_7;
|
||||
const SOCIAL_LAYER_STOREFRONT_PRODUCT_DETAILS_MODAL_KEY = (require(10437) /* metro dependency 10437: SocialLayerStorefrontNativeActionCreators */).SOCIAL_LAYER_STOREFRONT_PRODUCT_DETAILS_MODAL_KEY;
|
||||
object2.type = SOCIAL_LAYER_STOREFRONT_PRODUCT_DETAILS_MODAL_KEY;
|
||||
object2.sku_id = skuId;
|
||||
object2.application_id = env0_4 == null ? value2 : env0_4.applicationId;
|
||||
Reflect.apply(track, defaultImport, [OPEN_MODAL, object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun80822() { // fn#80822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:6713, offset: 0x01e8b465, size: 74 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_10.current === 'pending') {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.PAYMENT_FLOW_CANCELED, env0_9);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80823(a0) { // fn#80823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:6808, offset: 0x01e8b4af, size: 119 bytes, params: 2, frame: 17
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const SLAYER_STOREFRONT_PDP_ELEMENT_CLICKED = AnalyticEvents.SLAYER_STOREFRONT_PDP_ELEMENT_CLICKED;
|
||||
Reflect.apply(track, defaultImport, [SLAYER_STOREFRONT_PDP_ELEMENT_CLICKED, {slayer_storefront_session_id: value2,
|
||||
sku_id: skuId, guild_id: value2, application_id: env0_4 == null ? value2 : env0_4.applicationId, cta_type: a0,
|
||||
location_stack: env0_7}]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun80824() { // fn#80824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:7059, offset: 0x01e8b526, size: 196 bytes, params: 1, frame: 21
|
||||
var r3;
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var convertCarouselItemsToMediaItems;
|
||||
var tenantMetadata;
|
||||
var object2;
|
||||
var skuAssetsBinding;
|
||||
const value2 = undefined;
|
||||
let applicationId = env0_4 == null ? value2 : env0_4.applicationId;
|
||||
if (applicationId == null) {
|
||||
r0 = [[], []];
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(10440) /* metro dependency 10440: carouselMediaItems */;
|
||||
convertCarouselItemsToMediaItems = moduleValue.convertCarouselItemsToMediaItems;
|
||||
tenantMetadata = env0_4.tenantMetadata;
|
||||
r3 = (tenantMetadata == null || tenantMetadata.socialLayer == null ? value2 : tenantMetadata.socialLayer.carouselItems) ?? [];
|
||||
applicationId = env0_4.applicationId;
|
||||
skuAssetsBinding = skuAssets;
|
||||
object2 = {};
|
||||
object2.heroWidth = (require(10440) /* metro dependency 10440: carouselMediaItems */).MOBILE_HERO_WIDTH_PX;
|
||||
r0 = Reflect.apply(convertCarouselItemsToMediaItems, moduleValue, [r3, applicationId, skuAssetsBinding,
|
||||
object2]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun80825() { // fn#80825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:7638, offset: 0x01e8b5ea, size: 236 bytes, params: 1, frame: 22
|
||||
var applicationId;
|
||||
var binding;
|
||||
var value4;
|
||||
var value5;
|
||||
var moduleValue;
|
||||
var fetchSocialLayerStorefrontSkuForApplication;
|
||||
var id;
|
||||
var object2;
|
||||
var value;
|
||||
let r0 = env0_4 != null && env0_4.applicationId != null;
|
||||
if (r0) {
|
||||
binding = env0_12;
|
||||
r0 = binding || env0_5;
|
||||
r0 = !r0 ? env0_14.current : r0;
|
||||
if (!r0) {
|
||||
env0_14.current = true;
|
||||
value4 = environment.__proto__;
|
||||
value5 = undefined;
|
||||
moduleValue = require(8463) /* metro dependency 8463: SocialLayerStorefrontActionCreators */;
|
||||
fetchSocialLayerStorefrontSkuForApplication = moduleValue.fetchSocialLayerStorefrontSkuForApplication;
|
||||
binding = env0_4;
|
||||
applicationId = binding.applicationId;
|
||||
id = binding.id;
|
||||
object2 = {};
|
||||
object2.withGoogleSkuIds = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
object2.countryCode = storeFront == null ? value5 : storeFront.country;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
object2.paymentGateway = value.isIOS() ? PaymentGateways.APPLE : value5;
|
||||
Reflect.apply(fetchSocialLayerStorefrontSkuForApplication, moduleValue, [applicationId, id, object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80826() { // fn#80826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:7970, offset: 0x01e8b6d6, size: 101 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_10.current === 'pending') {
|
||||
env0_10.current = 'failed';
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.PAYMENT_FLOW_FAILED, env0_9);
|
||||
}
|
||||
env0_13(false);
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontProductDetailsModalOnPurchaseComplete() { // fn#80827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:8160, owner: SocialLayerStorefrontProductDetailsModal.onPurchaseComplete, offset: 0x01e8b73b, size: 201 bytes, params: 1, frame: 19
|
||||
env0_10.current = 'succeeded';
|
||||
const value3 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const PAYMENT_FLOW_SUCCEEDED = AnalyticEvents.PAYMENT_FLOW_SUCCEEDED;
|
||||
Reflect.apply(track, defaultImport, [PAYMENT_FLOW_SUCCEEDED, env0_9]);
|
||||
env0_13(false);
|
||||
const socialLayerStorefrontNativeActionCreatorsModule = require(10437) /* metro dependency 10437: SocialLayerStorefrontNativeActionCreators */;
|
||||
const value = socialLayerStorefrontNativeActionCreatorsModule.openSocialLayerStorefrontProductSelfPurchaseSuccessModal({skuId: skuId,
|
||||
orbsReward: (env0_4 == null ? value3 : env0_4.orbsReward) ?? value3, analyticsLocations: env0_7});
|
||||
value.then(socialLayerStorefrontNativeActionCreatorsModule.closeSocialLayerStorefrontProductDetailsModal);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun80830() { // fn#80830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:8538, offset: 0x01e8b804, size: 127 bytes, params: 1, frame: 15
|
||||
const binding = env0_11;
|
||||
const BUY_BUTTON = SlayerShopPDPCTAType.BUY_BUTTON;
|
||||
binding(BUY_BUTTON);
|
||||
env0_10.current = 'pending';
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const PAYMENT_FLOW_STARTED = AnalyticEvents.PAYMENT_FLOW_STARTED;
|
||||
Reflect.apply(track, defaultImport, [PAYMENT_FLOW_STARTED, env0_9]);
|
||||
env0_13(true);
|
||||
env0_16().catch(_fun80831);
|
||||
}
|
||||
|
||||
function _fun80832() { // fn#80832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:8686, offset: 0x01e8b883, size: 79 bytes, params: 1, frame: 14
|
||||
const binding = env0_11;
|
||||
const GIFT_BUTTON = SlayerShopPDPCTAType.GIFT_BUTTON;
|
||||
binding(GIFT_BUTTON);
|
||||
(require(10437) /* metro dependency 10437: SocialLayerStorefrontNativeActionCreators */).openSocialLayerStorefrontGiftModal({skuId: skuId,
|
||||
analyticsLocations: env0_7});
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontProductDetailsModalBackImage() { // fn#80833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:9127, owner: SocialLayerStorefrontProductDetailsModal.backImage, offset: 0x01e8b8d2, size: 70 bytes, params: 1, frame: 14
|
||||
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
|
||||
return <XSmallIcon size="md" style={styles.closeButtonIcon} />;
|
||||
}
|
||||
|
||||
function _fun80834(a0, a1) { // fn#80834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10624:10756, offset: 0x01e8b918, size: 68 bytes, params: 3, frame: 15
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
return (
|
||||
<TextWithIOSLinkWorkaround
|
||||
variant="text-xs/normal"
|
||||
color="text-muted"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</TextWithIOSLinkWorkaround>
|
||||
);
|
||||
}
|
||||
|
||||
+788
@@ -0,0 +1,788 @@
|
||||
/* Metro module 10572; source: modules/slayer_storefront/native/createSocialLayerStorefrontProductDetailsEmbed.tsx; dependencies: [57, 31, 4234, 4279, 661, 4118, 8189, 1244, 10573, 6833, 6829, 3130, 8354, 7943, 4101, 8463, 478, 566, 1360, 6777, 2] */
|
||||
function _fun81561(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:6, offset: 0x01ed4017, size: 248 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_81564 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).PaymentGateways;
|
||||
const env0_8 = (require(4118) /* metro dependency 4118: Constants */).InviteTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/createSocialLayerStorefrontProductDetailsEmbed.tsx');
|
||||
exports.createSocialLayerStorefrontProductDetailsEmbed = createSocialLayerStorefrontProductDetailsEmbed;
|
||||
exports.useFetchSocialLayerStorefrontProductDetailsEmbedData = useFetchSocialLayerStorefrontProductDetailsEmbedData;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_81562(a0, a1) { // fn#81562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:191, offset: 0x01ed410f, size: 372 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)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun81563;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_81564(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') {
|
||||
value = _arrayLikeToArray_81564(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_81564(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun81563;
|
||||
}
|
||||
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 createSocialLayerStorefrontProductDetailsEmbed({skuId, guildOrApplication, theme}) { // fn#81565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:1270, offset: 0x01ed4283, size: 949 bytes, params: 2, frame: 28
|
||||
var r18;
|
||||
var applicationId;
|
||||
var r9;
|
||||
var r6;
|
||||
var name;
|
||||
var r4;
|
||||
var r5;
|
||||
var acceptLabelGreenColor;
|
||||
var r7;
|
||||
var isFetchingApplication;
|
||||
var isFetchingApplication2;
|
||||
var didFetchingApplicationFail;
|
||||
var value9;
|
||||
const intl = require(dependencyMap[7]).intl;
|
||||
var string;
|
||||
const t = require(dependencyMap[7]).t;
|
||||
var vyaWs7;
|
||||
var value10;
|
||||
var toUpperCase;
|
||||
var value11;
|
||||
var type;
|
||||
var guildId;
|
||||
var guildId2;
|
||||
var id;
|
||||
var moduleValue;
|
||||
var isSlayerSkuAvailableOnThisPlatform;
|
||||
var isSlayerSkuAvailableOnThisPlatform2;
|
||||
var moduleValue2;
|
||||
var getCardImageURL;
|
||||
var value12;
|
||||
var toString;
|
||||
var value13;
|
||||
var getIconURL;
|
||||
var value14;
|
||||
var object2;
|
||||
var headerColor;
|
||||
var titleColor;
|
||||
var V91tvy;
|
||||
var value15;
|
||||
var subtitleColor;
|
||||
var thumbnailBackgroundColor;
|
||||
var BKf0MM;
|
||||
var value16;
|
||||
var boqtTA;
|
||||
var value17;
|
||||
var acceptBlurpleLabelBackgroundColor;
|
||||
var acceptLabelGreenBackgroundColor;
|
||||
var GUILD;
|
||||
const {colors, baseColors} = importDefault(dependencyMap[6])(theme);
|
||||
const value4 = SKUStore.get(skuId);
|
||||
reducibleJoin2: while (true) {
|
||||
if (value4 == null) {
|
||||
applicationId = undefined;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
applicationId = value4.applicationId;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
const application = ApplicationStore.getApplication(applicationId);
|
||||
const isFetching2 = SKUStore.isFetching(skuId);
|
||||
const value6 = SKUStore.didFetchingSkuFail(skuId);
|
||||
const value7 = applicationId != null;
|
||||
reducibleJoin4: while (true) {
|
||||
if (value7) {
|
||||
isFetchingApplication = ApplicationStore.isFetchingApplication;
|
||||
isFetchingApplication2 = Reflect.apply(isFetchingApplication, ApplicationStore, [applicationId]);
|
||||
r9 = isFetchingApplication2;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r9 = value7;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
const value8 = applicationId != null;
|
||||
reducibleJoin6: while (true) {
|
||||
if (value8) {
|
||||
didFetchingApplicationFail = ApplicationStore.didFetchingApplicationFail;
|
||||
value9 = Reflect.apply(didFetchingApplicationFail, ApplicationStore, [applicationId]);
|
||||
r6 = value9;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
r6 = value8;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
reducibleJoin8: while (true) {
|
||||
if (application == null) {
|
||||
name = undefined;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
name = application.name;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
reducibleJoin10: while (true) {
|
||||
if (name != null) {
|
||||
r4 = name;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
string = intl.string;
|
||||
vyaWs7 = t.vyaWs7;
|
||||
value10 = Reflect.apply(string, intl, [vyaWs7]);
|
||||
toUpperCase = value10.toUpperCase;
|
||||
value11 = Reflect.apply(toUpperCase, value10, []);
|
||||
r4 = value11;
|
||||
r18 = dependencyMap;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
if (!isFetching2) {
|
||||
reducibleJoin19: while (true) {
|
||||
reducibleJoin14: while (true) {
|
||||
if (value4 != null) {
|
||||
break reducibleJoin14;
|
||||
}
|
||||
if (isFetching2) {
|
||||
break reducibleJoin14;
|
||||
}
|
||||
if (value6) {
|
||||
break reducibleJoin14;
|
||||
}
|
||||
break reducibleJoin19;
|
||||
}
|
||||
if (!r9) {
|
||||
if (applicationId != null) {
|
||||
reducibleJoin21: while (true) {
|
||||
if (application != null) {
|
||||
break reducibleJoin21;
|
||||
}
|
||||
if (r9) {
|
||||
break reducibleJoin21;
|
||||
}
|
||||
if (r6) {
|
||||
break reducibleJoin21;
|
||||
}
|
||||
break reducibleJoin19;
|
||||
}
|
||||
}
|
||||
if (value4 == null) {
|
||||
return null;
|
||||
}
|
||||
if (application != null) {
|
||||
reducibleJoin42: while (true) {
|
||||
if (importDefault(dependencyMap[8])(application)) {
|
||||
type = guildOrApplication.type;
|
||||
if (type === 'guild') {
|
||||
guildId = application.guildId;
|
||||
guildId2 = guildOrApplication.guildId;
|
||||
reducibleJoin26: while (true) {
|
||||
if (guildId !== guildId2) {
|
||||
break reducibleJoin42;
|
||||
}
|
||||
break reducibleJoin26;
|
||||
}
|
||||
}
|
||||
type = guildOrApplication.type;
|
||||
if (type === 'application') {
|
||||
id = application.id;
|
||||
applicationId = guildOrApplication.applicationId;
|
||||
reducibleJoin28: while (true) {
|
||||
if (id !== applicationId) {
|
||||
break reducibleJoin42;
|
||||
}
|
||||
break reducibleJoin28;
|
||||
}
|
||||
}
|
||||
moduleValue = require(dependencyMap[9]);
|
||||
isSlayerSkuAvailableOnThisPlatform = moduleValue.isSlayerSkuAvailableOnThisPlatform;
|
||||
isSlayerSkuAvailableOnThisPlatform2 = Reflect.apply(isSlayerSkuAvailableOnThisPlatform,
|
||||
moduleValue,
|
||||
[value4]);
|
||||
moduleValue2 = require(dependencyMap[10]);
|
||||
getCardImageURL = moduleValue2.getCardImageURL;
|
||||
value12 = Reflect.apply(getCardImageURL, moduleValue2, [value4]);
|
||||
reducibleJoin30: while (true) {
|
||||
if (value12 == null) {
|
||||
r5 = undefined;
|
||||
break reducibleJoin30;
|
||||
}
|
||||
toString = value12.toString;
|
||||
value13 = Reflect.apply(toString, value12, []);
|
||||
r5 = value13;
|
||||
break reducibleJoin30;
|
||||
}
|
||||
reducibleJoin32: while (true) {
|
||||
if (r5 != null) {
|
||||
break reducibleJoin32;
|
||||
}
|
||||
getIconURL = application.getIconURL;
|
||||
value14 = Reflect.apply(getIconURL, application, [64]);
|
||||
r5 = value14;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
r9 = r5 ?? undefined;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, baseColors, r18);
|
||||
object2['headerText'] = r4;
|
||||
headerColor = colors.headerColor;
|
||||
object2['headerColor'] = headerColor;
|
||||
name = value4.name;
|
||||
object2['titleText'] = name;
|
||||
titleColor = colors.titleColor;
|
||||
object2['titleColor'] = titleColor;
|
||||
string = intl.string;
|
||||
V91tvy = t.V91tvy;
|
||||
value15 = Reflect.apply(string, intl, [V91tvy]);
|
||||
object2['subtitle'] = value15;
|
||||
subtitleColor = colors.subtitleColor;
|
||||
object2['subtitleColor'] = subtitleColor;
|
||||
object2['thumbnailUrl'] = r9;
|
||||
thumbnailBackgroundColor = colors.thumbnailBackgroundColor;
|
||||
object2['thumbnailBackgroundColor'] = thumbnailBackgroundColor;
|
||||
string = intl.string;
|
||||
if (isSlayerSkuAvailableOnThisPlatform2) {
|
||||
boqtTA = t.boqtTA;
|
||||
value17 = Reflect.apply(string, intl, [boqtTA]);
|
||||
r9 = value17;
|
||||
} else {
|
||||
BKf0MM = importDefault(dependencyMap[11]).BKf0MM;
|
||||
value16 = Reflect.apply(string, intl, [BKf0MM]);
|
||||
r9 = value16;
|
||||
}
|
||||
object2['acceptLabelText'] = r9;
|
||||
reducibleJoin38: while (true) {
|
||||
if (isSlayerSkuAvailableOnThisPlatform2) {
|
||||
acceptLabelGreenColor = colors.acceptLabelGreenColor;
|
||||
break reducibleJoin38;
|
||||
}
|
||||
acceptLabelGreenColor = undefined;
|
||||
break reducibleJoin38;
|
||||
}
|
||||
object2['acceptLabelColor'] = acceptLabelGreenColor;
|
||||
if (isSlayerSkuAvailableOnThisPlatform2) {
|
||||
acceptLabelGreenBackgroundColor = colors.acceptLabelGreenBackgroundColor;
|
||||
r7 = acceptLabelGreenBackgroundColor;
|
||||
} else {
|
||||
acceptBlurpleLabelBackgroundColor = colors.acceptBlurpleLabelBackgroundColor;
|
||||
r7 = acceptBlurpleLabelBackgroundColor;
|
||||
}
|
||||
object2['acceptLabelBackgroundColor'] = r7;
|
||||
object2['embedCanBeTapped'] = true;
|
||||
object2['canBeAccepted'] = true;
|
||||
GUILD = InviteTypes.GUILD;
|
||||
object2['type'] = GUILD;
|
||||
return object2;
|
||||
}
|
||||
break reducibleJoin42;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
break reducibleJoin19;
|
||||
}
|
||||
}
|
||||
if (value4 != null) {
|
||||
reducibleJoin44: while (true) {
|
||||
if (application != null) {
|
||||
if (value4 == null) {
|
||||
return null;
|
||||
}
|
||||
if (application != null) {
|
||||
reducibleJoin42: while (true) {
|
||||
if (importDefault(dependencyMap[8])(application)) {
|
||||
type = guildOrApplication.type;
|
||||
if (type === 'guild') {
|
||||
guildId = application.guildId;
|
||||
guildId2 = guildOrApplication.guildId;
|
||||
reducibleJoin26: while (true) {
|
||||
if (guildId !== guildId2) {
|
||||
break reducibleJoin42;
|
||||
}
|
||||
break reducibleJoin26;
|
||||
}
|
||||
}
|
||||
type = guildOrApplication.type;
|
||||
if (type === 'application') {
|
||||
id = application.id;
|
||||
applicationId = guildOrApplication.applicationId;
|
||||
reducibleJoin28: while (true) {
|
||||
if (id !== applicationId) {
|
||||
break reducibleJoin42;
|
||||
}
|
||||
break reducibleJoin28;
|
||||
}
|
||||
}
|
||||
moduleValue = require(dependencyMap[9]);
|
||||
isSlayerSkuAvailableOnThisPlatform = moduleValue.isSlayerSkuAvailableOnThisPlatform;
|
||||
isSlayerSkuAvailableOnThisPlatform2 = Reflect.apply(isSlayerSkuAvailableOnThisPlatform,
|
||||
moduleValue,
|
||||
[value4]);
|
||||
moduleValue2 = require(dependencyMap[10]);
|
||||
getCardImageURL = moduleValue2.getCardImageURL;
|
||||
value12 = Reflect.apply(getCardImageURL, moduleValue2, [value4]);
|
||||
reducibleJoin30: while (true) {
|
||||
if (value12 == null) {
|
||||
r5 = undefined;
|
||||
break reducibleJoin30;
|
||||
}
|
||||
toString = value12.toString;
|
||||
value13 = Reflect.apply(toString, value12, []);
|
||||
r5 = value13;
|
||||
break reducibleJoin30;
|
||||
}
|
||||
reducibleJoin32: while (true) {
|
||||
if (r5 != null) {
|
||||
break reducibleJoin32;
|
||||
}
|
||||
getIconURL = application.getIconURL;
|
||||
value14 = Reflect.apply(getIconURL, application, [64]);
|
||||
r5 = value14;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
r9 = r5 ?? undefined;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, baseColors, r18);
|
||||
object2['headerText'] = r4;
|
||||
headerColor = colors.headerColor;
|
||||
object2['headerColor'] = headerColor;
|
||||
name = value4.name;
|
||||
object2['titleText'] = name;
|
||||
titleColor = colors.titleColor;
|
||||
object2['titleColor'] = titleColor;
|
||||
string = intl.string;
|
||||
V91tvy = t.V91tvy;
|
||||
value15 = Reflect.apply(string, intl, [V91tvy]);
|
||||
object2['subtitle'] = value15;
|
||||
subtitleColor = colors.subtitleColor;
|
||||
object2['subtitleColor'] = subtitleColor;
|
||||
object2['thumbnailUrl'] = r9;
|
||||
thumbnailBackgroundColor = colors.thumbnailBackgroundColor;
|
||||
object2['thumbnailBackgroundColor'] = thumbnailBackgroundColor;
|
||||
string = intl.string;
|
||||
if (isSlayerSkuAvailableOnThisPlatform2) {
|
||||
boqtTA = t.boqtTA;
|
||||
value17 = Reflect.apply(string, intl, [boqtTA]);
|
||||
r9 = value17;
|
||||
} else {
|
||||
BKf0MM = importDefault(dependencyMap[11]).BKf0MM;
|
||||
value16 = Reflect.apply(string, intl, [BKf0MM]);
|
||||
r9 = value16;
|
||||
}
|
||||
object2['acceptLabelText'] = r9;
|
||||
reducibleJoin38: while (true) {
|
||||
if (isSlayerSkuAvailableOnThisPlatform2) {
|
||||
acceptLabelGreenColor = colors.acceptLabelGreenColor;
|
||||
break reducibleJoin38;
|
||||
}
|
||||
acceptLabelGreenColor = undefined;
|
||||
break reducibleJoin38;
|
||||
}
|
||||
object2['acceptLabelColor'] = acceptLabelGreenColor;
|
||||
if (isSlayerSkuAvailableOnThisPlatform2) {
|
||||
acceptLabelGreenBackgroundColor = colors.acceptLabelGreenBackgroundColor;
|
||||
r7 = acceptLabelGreenBackgroundColor;
|
||||
} else {
|
||||
acceptBlurpleLabelBackgroundColor = colors.acceptBlurpleLabelBackgroundColor;
|
||||
r7 = acceptBlurpleLabelBackgroundColor;
|
||||
}
|
||||
object2['acceptLabelBackgroundColor'] = r7;
|
||||
object2['embedCanBeTapped'] = true;
|
||||
object2['canBeAccepted'] = true;
|
||||
GUILD = InviteTypes.GUILD;
|
||||
object2['type'] = GUILD;
|
||||
return object2;
|
||||
}
|
||||
break reducibleJoin42;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
break reducibleJoin44;
|
||||
}
|
||||
}
|
||||
object2 = {};
|
||||
copyDataProperties(object2, baseColors, r18);
|
||||
object2['headerText'] = r4;
|
||||
object2['resolvingGradientEnd'] = colors.resolvingGradientEnd;
|
||||
object2['resolvingGradientStart'] = colors.resolvingGradientStart;
|
||||
GUILD = InviteTypes.GUILD;
|
||||
object2['type'] = GUILD;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function useFetchSocialLayerStorefrontProductDetailsEmbedData(a0) { // fn#81566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:2803, offset: 0x01ed4638, size: 303 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(8354) /* metro dependency 8354: SocialLayerStorefrontMobilePurchasingExperiment */).useIsEligibleForSocialLayerStorefrontMobilePurchasing({location: 'use_fetch_social_layer_storefront_product_details_embed_data'});
|
||||
const defaultImport = importDefault(7943) /* metro dependency 7943: NativePaymentHooksAndroid */;
|
||||
const useNativeIAPPayments = defaultImport.useNativeIAPPayments;
|
||||
const storeFront = Reflect.apply(useNativeIAPPayments, defaultImport, []).storeFront;
|
||||
const country = storeFront == null ? value2 : storeFront.country;
|
||||
const binding = env0_4;
|
||||
const useMemo = binding.useMemo;
|
||||
const value5 = env0_3(Reflect.apply(useMemo, binding, [_fun81567, [value3, a0]]), 2);
|
||||
const property = value5[0];
|
||||
const property2 = value5[1];
|
||||
binding.useEffect(_fun81569, [property, property2, country]);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
||||
(importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)(Reflect.apply(useStateFromStoresArray,
|
||||
fluxModule, [[SKUStore], _fun81570, [property2, property]]));
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun81567() { // fn#81567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:3098, offset: 0x01ed4767, size: 74 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var reduce;
|
||||
let binding = env0_1;
|
||||
const items3 = [];
|
||||
const items2 = [];
|
||||
if (binding) {
|
||||
binding = env0_0;
|
||||
reduce = binding.reduce;
|
||||
items2[0] = items3;
|
||||
items2[1] = [];
|
||||
r0 = Reflect.apply(reduce, binding, [_fun81568, items2]);
|
||||
} else {
|
||||
items2[0] = items3;
|
||||
items2[1] = [];
|
||||
r0 = items2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun81569() { // fn#81569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:3458, offset: 0x01ed48b6, size: 486 bytes, params: 1, frame: 30
|
||||
var r2;
|
||||
var r1;
|
||||
var APPLE;
|
||||
var value6;
|
||||
var value7;
|
||||
var property;
|
||||
var property2;
|
||||
var get;
|
||||
var value8;
|
||||
var isFetching2;
|
||||
var value9;
|
||||
var moduleValue;
|
||||
var fetchSocialLayerStorefrontSku;
|
||||
var object2;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
var isIOS;
|
||||
var value10;
|
||||
var value13;
|
||||
var value14;
|
||||
var property3;
|
||||
var value15;
|
||||
var isFetching3;
|
||||
var value16;
|
||||
var moduleValue4;
|
||||
var fetchSocialLayerStorefrontSkuForApplication;
|
||||
var moduleValue5;
|
||||
var moduleValue6;
|
||||
var value17;
|
||||
const _createForOfIteratorHelperLoose_81562Binding = _createForOfIteratorHelperLoose_81562;
|
||||
const value3 = undefined;
|
||||
const value4 = _createForOfIteratorHelperLoose_81562Binding(env0_3);
|
||||
const value5 = value4();
|
||||
let done = value5.done;
|
||||
if (!done) {
|
||||
r2 = value5;
|
||||
while (true) {
|
||||
value6 = r2.value;
|
||||
value7 = env1_3(value6, 2);
|
||||
property = value7[0];
|
||||
property2 = value7[1];
|
||||
get = SKUStore.get;
|
||||
value8 = Reflect.apply(get, SKUStore, [property]) != null;
|
||||
if (value8) {
|
||||
r1 = value8;
|
||||
} else {
|
||||
isFetching2 = SKUStore.isFetching(property);
|
||||
r1 = isFetching2;
|
||||
}
|
||||
if (r1) {
|
||||
continue;
|
||||
}
|
||||
value9 = SKUStore.didFetchingSkuFail(property);
|
||||
r1 = value9;
|
||||
if (r1) {
|
||||
continue;
|
||||
}
|
||||
moduleValue = require(8463) /* metro dependency 8463: SocialLayerStorefrontActionCreators */;
|
||||
fetchSocialLayerStorefrontSku = moduleValue.fetchSocialLayerStorefrontSku;
|
||||
object2 = {};
|
||||
moduleValue2 = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
object2.withGoogleSkuIds = moduleValue2.isAndroid();
|
||||
object2.countryCode = country;
|
||||
moduleValue3 = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
isIOS = moduleValue3.isIOS;
|
||||
if (!Reflect.apply(isIOS, moduleValue3, [])) {
|
||||
APPLE = value3;
|
||||
continue;
|
||||
}
|
||||
APPLE = PaymentGateways.APPLE;
|
||||
object2.paymentGateway = APPLE;
|
||||
Reflect.apply(fetchSocialLayerStorefrontSku, moduleValue, [property2, property, object2]);
|
||||
value10 = value4();
|
||||
done = value10.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value10;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
const value11 = _createForOfIteratorHelperLoose_81562(env0_4);
|
||||
const value12 = value11();
|
||||
done = value12.done;
|
||||
if (!done) {
|
||||
r2 = value12;
|
||||
while (true) {
|
||||
value13 = r2.value;
|
||||
value14 = env1_3(value13, 2);
|
||||
property = value14[0];
|
||||
property3 = value14[1];
|
||||
get = SKUStore.get;
|
||||
value15 = Reflect.apply(get, SKUStore, [property]) != null;
|
||||
if (value15) {
|
||||
r1 = value15;
|
||||
} else {
|
||||
isFetching3 = SKUStore.isFetching(property);
|
||||
r1 = isFetching3;
|
||||
}
|
||||
if (r1) {
|
||||
continue;
|
||||
}
|
||||
value16 = SKUStore.didFetchingSkuFail(property);
|
||||
r1 = value16;
|
||||
if (r1) {
|
||||
continue;
|
||||
}
|
||||
moduleValue4 = require(8463) /* metro dependency 8463: SocialLayerStorefrontActionCreators */;
|
||||
fetchSocialLayerStorefrontSkuForApplication = moduleValue4.fetchSocialLayerStorefrontSkuForApplication;
|
||||
object2 = {};
|
||||
moduleValue5 = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
object2.withGoogleSkuIds = moduleValue5.isAndroid();
|
||||
object2.countryCode = country;
|
||||
moduleValue6 = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
isIOS = moduleValue6.isIOS;
|
||||
if (!Reflect.apply(isIOS, moduleValue6, [])) {
|
||||
APPLE = value3;
|
||||
continue;
|
||||
}
|
||||
APPLE = PaymentGateways.APPLE;
|
||||
object2.paymentGateway = APPLE;
|
||||
Reflect.apply(fetchSocialLayerStorefrontSkuForApplication, moduleValue4, [property3, property, object2]);
|
||||
value17 = value11();
|
||||
done = value17.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value17;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun81570() { // fn#81570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:4146, offset: 0x01ed4a9c, size: 168 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
let binding = env0_3;
|
||||
const value2 = binding.map(_fun81571);
|
||||
let items2 = [];
|
||||
const value3 = arraySpread(items2, value2, 0, undefined);
|
||||
binding = env0_4;
|
||||
arraySpread(items2, binding.map(_fun81572), value3, binding);
|
||||
const filter = items2.filter;
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply(filter, items2, [(require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish]);
|
||||
const Set = global.Set;
|
||||
value = value.map(function(a0) {
|
||||
return a0.applicationId;
|
||||
});
|
||||
const set = new Set();
|
||||
items2 = [];
|
||||
arraySpread(items2, set, 0, require);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun81568(a0, {codedLinks}) { // fn#81568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:3114, offset: 0x01ed47b1, size: 261 bytes, params: 3, frame: 20
|
||||
var r0;
|
||||
var r1;
|
||||
var r3;
|
||||
var item3;
|
||||
var value3;
|
||||
var value7;
|
||||
var type;
|
||||
var code;
|
||||
const CodedLinkType = (require(4101) /* metro dependency 4101: CodedLink */).CodedLinkType;
|
||||
var SOCIAL_LAYER_STOREFRONT;
|
||||
var SOCIAL_LAYER_STOREFRONT_APP;
|
||||
var push;
|
||||
var split;
|
||||
var value8;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value2 = item2 === undefined;
|
||||
const r2 = value2 ? undefined : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = undefined;
|
||||
r3 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === undefined;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = undefined;
|
||||
r3 = value3;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = item;
|
||||
r3 = value3;
|
||||
}
|
||||
}
|
||||
if (!r3) {
|
||||
r0.return();
|
||||
}
|
||||
const value5 = _createForOfIteratorHelperLoose_81562(codedLinks);
|
||||
const value6 = value5();
|
||||
let done = value6.done;
|
||||
if (!done) {
|
||||
r3 = value6;
|
||||
while (true) {
|
||||
value7 = r3.value;
|
||||
type = value7.type;
|
||||
code = value7.code;
|
||||
SOCIAL_LAYER_STOREFRONT = CodedLinkType.SOCIAL_LAYER_STOREFRONT;
|
||||
if (type !== SOCIAL_LAYER_STOREFRONT) {
|
||||
SOCIAL_LAYER_STOREFRONT_APP = CodedLinkType.SOCIAL_LAYER_STOREFRONT_APP;
|
||||
if (type !== SOCIAL_LAYER_STOREFRONT_APP) {
|
||||
break;
|
||||
}
|
||||
r1.push(code.split('-'));
|
||||
break;
|
||||
}
|
||||
push = r2.push;
|
||||
split = code.split;
|
||||
Reflect.apply(push, r2, [Reflect.apply(split, code, ['-'])]);
|
||||
value8 = value5();
|
||||
done = value8.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value8;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return [r2, r1];
|
||||
}
|
||||
|
||||
function _fun81571(a0) { // fn#81571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10758:4168, offset: 0x01ed4b44, size: 50 bytes, params: 2, frame: 13
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
let item2 = iterator.next();
|
||||
const item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
let value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r2 = value2 ? value : item;
|
||||
if (!value2) {
|
||||
item2.return();
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
return SKUStore.get(r2);
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/* Metro module 10442; source: modules/slayer_storefront/native/hooks/useMobileSocialLayerPurchaseSKU.android.tsx; dependencies: [31, 661, 7298, 10148, 2] */
|
||||
function _fun80848(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10628:6, offset: 0x01e8c227, size: 143 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).PriceSetAssignmentPurchaseTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/hooks/useMobileSocialLayerPurchaseSKU.android.tsx');
|
||||
exports.default = _default_80849;
|
||||
}
|
||||
|
||||
function _default_80849(a0) { // fn#80849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10628:157, offset: 0x01e8c2b6, size: 232 bytes, params: 2, frame: 19
|
||||
var object2;
|
||||
const sku = a0.sku;
|
||||
let value = null;
|
||||
const value2 = Object.create(value);
|
||||
value2.sku = 0;
|
||||
const value3 = copyDataProperties({}, a0, value2, undefined);
|
||||
const value4 = undefined;
|
||||
const giftParams = value3.giftParams;
|
||||
const isGift = value == giftParams ? value4 : giftParams.isGift;
|
||||
const r5 = value == isGift ? PriceSetAssignmentPurchaseTypes.DEFAULT : isGift ? PriceSetAssignmentPurchaseTypes.GIFT : PriceSetAssignmentPurchaseTypes.DEFAULT;
|
||||
const googleSkuIds = value == sku ? value4 : sku.googleSkuIds;
|
||||
const property = (value != googleSkuIds ? googleSkuIds : {})[r5];
|
||||
const r4 = value != property ? property : value;
|
||||
env0_3.useEffect(_fun80850, [r4]);
|
||||
value = importDefault(10148) /* metro dependency 10148: useMobilePurchaseSKUAndroid */;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value3, value2);
|
||||
object2['platformSkuId'] = r4;
|
||||
object2['isFreeForStaffSelfPurchase'] = false;
|
||||
return value(object2);
|
||||
}
|
||||
|
||||
function _fun80850() { // fn#80850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10628:346, offset: 0x01e8c39e, size: 65 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_0 != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(7298) /* metro dependency 7298: GPlayActionCreators */;
|
||||
moduleValue.loadInAppSkus([env0_0]);
|
||||
}
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/* Metro module 8462; source: modules/slayer_storefront/native/hooks/useSocialLayerStorefrontMobileAccountLinkingDisabled.tsx; dependencies: [6831, 566, 2] */
|
||||
function _fun67203(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8647:6, offset: 0x01c19564, size: 114 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const socialLayerStorefrontStore = importDefault(6831) /* metro dependency 6831: SocialLayerStorefrontStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/native/hooks/useSocialLayerStorefrontMobileAccountLinkingDisabled.tsx');
|
||||
exports.useSocialLayerStorefrontMobileAccountLinkingDisabled = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[1]).useStateFromStores([SocialLayerStorefrontStore], _fun67205, [a0]);
|
||||
};
|
||||
}
|
||||
|
||||
function useSocialLayerStorefrontMobileAccountLinkingDisabled(a0) { // fn#67204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8647:290, offset: 0x01c195d6, size: 75 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SocialLayerStorefrontStore], _fun67205,
|
||||
[a0]);
|
||||
}
|
||||
|
||||
function _fun67205() { // fn#67205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8647:394, offset: 0x01c19621, size: 61 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
var value3;
|
||||
var value;
|
||||
const value2 = env0_0 != null;
|
||||
if (value2) {
|
||||
value3 = environment.__proto__;
|
||||
value = SocialLayerStorefrontStore.getConfigForApplicationId(env0_0);
|
||||
value = value?.disableMobileAccountLinking === true;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,197 @@
|
||||
/* Metro module 9477; source: modules/slayer_storefront/navigateToSocialLayerStorefront.tsx; dependencies: [5, 1867, 6831, 661, 8463, 9478, 6829, 1230, 6946, 8879, 2] */
|
||||
function _fun73698(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9663:6, offset: 0x01d74f70, size: 240 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = function() {
|
||||
return _navigateToSocialLayerStorefrontWithGuildPreview.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const socialLayerStorefrontStore = importDefault(6831) /* metro dependency 6831: SocialLayerStorefrontStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = constantsModule.GuildFeatures;
|
||||
const env0_7 = constantsModule.Routes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/navigateToSocialLayerStorefront.tsx');
|
||||
exports.default = navigateToSocialLayerStorefront;
|
||||
exports.eagerNavigateToSocialLayerStorefront = eagerNavigateToSocialLayerStorefront;
|
||||
exports.eagerNavigateToSocialLayerStorefrontForApplication = eagerNavigateToSocialLayerStorefrontForApplication;
|
||||
exports.navigateToSocialLayerStorefrontWithGuildPreview = closure;
|
||||
}
|
||||
|
||||
function _navigateToSocialLayerStorefrontWithGuildPreview() { // fn#73700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9663:302, offset: 0x01d75060, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun73702).apply(this, arguments);
|
||||
}
|
||||
|
||||
function navigateToSocialLayerStorefront({applicationId, guildId, pageIndex, invite, skuId, slug}) { // fn#73703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9663:1040, offset: 0x01d75250, size: 300 bytes, params: 2, frame: 25
|
||||
var r0;
|
||||
var Promise;
|
||||
var resolve;
|
||||
var moduleValue3;
|
||||
const isSocialLayerStorefrontShopShimEnabled = (require(9478) /* metro dependency 9478: SocialLayerStorefrontShopShimExperiment */).getIsSocialLayerStorefrontShopShimEnabled({location: 'navigateToSocialLayerStorefront'});
|
||||
const r7 = applicationId ?? SocialLayerStorefrontStore.getApplicationIdFromGuildId(guildId);
|
||||
const r4 = guildId ?? (require(6829) /* metro dependency 6829: SlayerStorefrontUtils */).getSocialLayerStorefrontGuildId(applicationId);
|
||||
if (r7 != null) {
|
||||
if (isSocialLayerStorefrontShopShimEnabled) {
|
||||
if (r7 != null) {
|
||||
Promise = global.Promise;
|
||||
resolve = Promise.resolve;
|
||||
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
||||
r0 = Reflect.apply(resolve, Promise, [moduleValue3.transitionTo(Routes.COLLECTIBLES_SHOP_GAME_SHOP(r7,
|
||||
pageIndex,
|
||||
skuId, slug))]);
|
||||
} else {
|
||||
r0 = navigateToSocialLayerStorefrontWithGuildPreview({guildId: r4, pageIndex: pageIndex, invite: invite,
|
||||
skuId: skuId, slug: slug});
|
||||
}
|
||||
} else {
|
||||
r0 = navigateToSocialLayerStorefrontWithGuildPreview({guildId: r4, pageIndex: pageIndex, invite: invite,
|
||||
skuId: skuId, slug: slug});
|
||||
}
|
||||
} else if (r4 != null) {
|
||||
if (isSocialLayerStorefrontShopShimEnabled) {
|
||||
if (r7 != null) {
|
||||
Promise = global.Promise;
|
||||
resolve = Promise.resolve;
|
||||
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
||||
r0 = Reflect.apply(resolve, Promise, [moduleValue3.transitionTo(Routes.COLLECTIBLES_SHOP_GAME_SHOP(r7,
|
||||
pageIndex,
|
||||
skuId, slug))]);
|
||||
} else {
|
||||
r0 = navigateToSocialLayerStorefrontWithGuildPreview({guildId: r4, pageIndex: pageIndex, invite: invite,
|
||||
skuId: skuId, slug: slug});
|
||||
}
|
||||
} else {
|
||||
r0 = navigateToSocialLayerStorefrontWithGuildPreview({guildId: r4, pageIndex: pageIndex, invite: invite,
|
||||
skuId: skuId, slug: slug});
|
||||
}
|
||||
} else if (invite == null) {
|
||||
r0 = global.Promise.resolve();
|
||||
} else if (isSocialLayerStorefrontShopShimEnabled) {
|
||||
if (r7 != null) {
|
||||
Promise = global.Promise;
|
||||
resolve = Promise.resolve;
|
||||
moduleValue3 = require(1230) /* metro dependency 1230: router_utils */;
|
||||
r0 = Reflect.apply(resolve, Promise, [moduleValue3.transitionTo(Routes.COLLECTIBLES_SHOP_GAME_SHOP(r7,
|
||||
pageIndex,
|
||||
skuId, slug))]);
|
||||
} else {
|
||||
r0 = navigateToSocialLayerStorefrontWithGuildPreview({guildId: r4, pageIndex: pageIndex, invite: invite,
|
||||
skuId: skuId, slug: slug});
|
||||
}
|
||||
} else {
|
||||
r0 = navigateToSocialLayerStorefrontWithGuildPreview({guildId: r4, pageIndex: pageIndex, invite: invite,
|
||||
skuId: skuId, slug: slug});
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function eagerNavigateToSocialLayerStorefront({guildId, invite, forceFetch}) { // fn#73704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9663:1625, offset: 0x01d7537c, size: 107 bytes, params: 2, frame: 15
|
||||
var value;
|
||||
const r3 = invite == null ? guildId : invite.guild?.id;
|
||||
if (r3 != null) {
|
||||
value = require(8463) /* metro dependency 8463: SocialLayerStorefrontActionCreators */;
|
||||
value.fetchSocialLayerStorefront(r3, {eager: true, forceFetch: forceFetch});
|
||||
}
|
||||
}
|
||||
|
||||
function eagerNavigateToSocialLayerStorefrontForApplication({applicationId, forceFetch}) { // fn#73705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9663:1880, offset: 0x01d753e7, size: 67 bytes, params: 2, frame: 16
|
||||
const socialLayerStorefrontActionCreatorsModule = require(8463) /* metro dependency 8463: SocialLayerStorefrontActionCreators */;
|
||||
socialLayerStorefrontActionCreatorsModule.fetchSocialLayerStorefrontForApplication(applicationId, {eager: true,
|
||||
forceFetch: forceFetch});
|
||||
}
|
||||
|
||||
async function _fun73702({guildId, invite, pageIndex, skuId, slug}) { // fn#73702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9663:421, offset: 0x01d750a6, size: 426 bytes, params: 2, frame: 26
|
||||
var id;
|
||||
var features;
|
||||
var r10;
|
||||
var r12;
|
||||
var guild;
|
||||
var Set;
|
||||
var set;
|
||||
var value8;
|
||||
var binding;
|
||||
var guild2;
|
||||
var value10;
|
||||
var value13;
|
||||
var transitionTo;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
await value;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (invite != null) {
|
||||
guild = invite.guild;
|
||||
id = guild == null ? value : guild.id;
|
||||
Set = global.Set;
|
||||
guild = invite.guild;
|
||||
features = guild == null ? value : guild.features;
|
||||
set = new Set();
|
||||
r10 = id;
|
||||
r12 = set;
|
||||
} else {
|
||||
r10 = guildId;
|
||||
r12 = null;
|
||||
}
|
||||
if (r10 != null) {
|
||||
value8 = environment.__proto__.__proto__;
|
||||
binding = env2_4;
|
||||
guild2 = binding.getGuild(r10);
|
||||
if ((guild2 == null ? value : guild2.joinedAt) != null) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[7]);
|
||||
transitionTo = value.transitionTo;
|
||||
binding = env2_7;
|
||||
return Reflect.apply(transitionTo, value, [binding.CHANNELS_GAME_SHOP(r10, pageIndex, skuId, slug)]);
|
||||
}
|
||||
if (r12 == null) {
|
||||
binding = env2_0;
|
||||
value13 = binding(env2_2[8]);
|
||||
await value13.startLurking(r10, {}, {shouldNavigate: false});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[7]);
|
||||
transitionTo = value.transitionTo;
|
||||
binding = env2_7;
|
||||
return Reflect.apply(transitionTo, value, [binding.CHANNELS_GAME_SHOP(r10, pageIndex, skuId, slug)]);
|
||||
}
|
||||
if (r12.has(env2_6.PREVIEW_ENABLED)) {
|
||||
binding = env2_0;
|
||||
value13 = binding(env2_2[8]);
|
||||
await value13.startLurking(r10, {}, {shouldNavigate: false});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[7]);
|
||||
transitionTo = value.transitionTo;
|
||||
binding = env2_7;
|
||||
return Reflect.apply(transitionTo, value, [binding.CHANNELS_GAME_SHOP(r10, pageIndex, skuId, slug)]);
|
||||
}
|
||||
if (invite == null) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[7]);
|
||||
transitionTo = value.transitionTo;
|
||||
binding = env2_7;
|
||||
return Reflect.apply(transitionTo, value, [binding.CHANNELS_GAME_SHOP(r10, pageIndex, skuId, slug)]);
|
||||
}
|
||||
binding = env2_1;
|
||||
value10 = binding(env2_2[9]);
|
||||
await value10.acceptInvite({inviteKey: invite.code, context: {location: 'game_shop'}, skipOnboarding: true});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[7]);
|
||||
transitionTo = value.transitionTo;
|
||||
binding = env2_7;
|
||||
return Reflect.apply(transitionTo, value, [binding.CHANNELS_GAME_SHOP(r10, pageIndex, skuId, slug)]);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/* Metro module 10444; source: modules/slayer_storefront/utils/SlayerStorefrontDisclaimerUtils.tsx; dependencies: [6831, 661, 10445, 8866, 1244, 3130, 2] */
|
||||
function _fun80853(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10630:6, offset: 0x01e8c663, size: 355 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = getNotSupportedSentence;
|
||||
const closure2 = function(a0) {
|
||||
var value2 = undefined;
|
||||
var intl = require(dependencyMap[4]).intl;
|
||||
var format = intl.format;
|
||||
var Q0dHYO = importDefault(dependencyMap[5]).Q0dHYO;
|
||||
var object = {};
|
||||
object.platforms_info = getNotSupportedSentence(a0 == null ? value2 : a0.id);
|
||||
return Reflect.apply(format, intl, [Q0dHYO, object]);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const socialLayerStorefrontStore = importDefault(6831) /* metro dependency 6831: SocialLayerStorefrontStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).MarketingURLs;
|
||||
object = {};
|
||||
const StorefrontPlatform = (require(10445) /* metro dependency 10445: StorefrontPlatform */).StorefrontPlatform;
|
||||
const DESKTOP = StorefrontPlatform.DESKTOP;
|
||||
object[DESKTOP] = 'PC';
|
||||
const XBOX = StorefrontPlatform.XBOX;
|
||||
object[XBOX] = 'Xbox';
|
||||
let PLAYSTATION = StorefrontPlatform.PLAYSTATION;
|
||||
object[PLAYSTATION] = 'PlayStation';
|
||||
PLAYSTATION = StorefrontPlatform.PLAYSTATION;
|
||||
object = [PLAYSTATION];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/utils/SlayerStorefrontDisclaimerUtils.tsx');
|
||||
exports.getNotSupportedSentence = closure;
|
||||
exports.getCheckoutDisclaimerMessageForApplication = closure2;
|
||||
exports.getFinePrintMessageForApplication = getFinePrintMessageForApplication;
|
||||
exports.getMobileFinePrintMessageForApplication = getMobileFinePrintMessageForApplication;
|
||||
exports.getRedeemPurchaseDescriptionForApplication = function(a0) {
|
||||
var name = a0.name;
|
||||
var intl = require(dependencyMap[4]).intl;
|
||||
var fO4b1C = importDefault(dependencyMap[5]).fO4b1C;
|
||||
var object = {applicationName: name};
|
||||
object.platforms_info = getNotSupportedSentence(a0.id);
|
||||
return intl.format(fO4b1C, object);
|
||||
};
|
||||
exports.getGiftLinkAccountDescriptionForApplication = function(a0, a1) {
|
||||
var r3;
|
||||
var property = a1.hasAlreadyLinked;
|
||||
var name = a0.name;
|
||||
var defaultImport = importDefault(dependencyMap[5]);
|
||||
r3 = property ? defaultImport.yqAKVO : defaultImport.vyAtfo;
|
||||
property = require(dependencyMap[4]).intl;
|
||||
var object = {applicationName: name};
|
||||
object.platforms_info = getNotSupportedSentence(a0.id);
|
||||
return property.format(r3, object);
|
||||
};
|
||||
}
|
||||
|
||||
function getNotSupportedSentence(a0) { // fn#80854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10630:315, offset: 0x01e8c7c6, size: 195 bytes, params: 2, frame: 19
|
||||
var r5;
|
||||
var r0;
|
||||
var configForApplicationId;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
if (a0 == null) {
|
||||
r5 = env0_6;
|
||||
} else {
|
||||
configForApplicationId = SocialLayerStorefrontStore.getConfigForApplicationId(a0);
|
||||
r5 = configForApplicationId == null ? env0_6 : configForApplicationId.excludedPlatforms;
|
||||
}
|
||||
const length = r5.length;
|
||||
let value = '';
|
||||
if (length === 0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (importDefault(3130) /* metro dependency 3130: SlayerStorefrontMessages */)['5h8p5P'];
|
||||
value = require(8866) /* metro dependency 8866: ListUtils */;
|
||||
value = Reflect.apply(formatToPlainString, intl, [property,
|
||||
{platforms: value.getListSummaryLabel(r5.map(_fun80855)), count: r5.length}]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getFinePrintMessageForApplication(a0, {shouldAppendDisclaimer}) { // fn#80857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10630:1103, offset: 0x01e8c8ef, size: 172 bytes, params: 3, frame: 19
|
||||
var r0;
|
||||
var object2;
|
||||
var property;
|
||||
const r8 = a0?.name ?? "game's";
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const format = intl.format;
|
||||
if (shouldAppendDisclaimer) {
|
||||
property = (importDefault(3130) /* metro dependency 3130: SlayerStorefrontMessages */)['3ah/a2'];
|
||||
object2 = {applicationName: r8};
|
||||
object2.platforms_info = getCheckoutDisclaimerMessageForApplication(a0);
|
||||
r0 = Reflect.apply(format, intl, [property, object2]);
|
||||
} else {
|
||||
r0 = Reflect.apply(format, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.CVITgq,
|
||||
{applicationName: r8}]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getMobileFinePrintMessageForApplication(a0, a1, {shouldAppendDisclaimer}) { // fn#80858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10630:1457, offset: 0x01e8c99b, size: 234 bytes, params: 4, frame: 18
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
const r1 = a0?.name ?? "game's";
|
||||
let object = {buyButtonLabel: a1};
|
||||
const PAID_TERMS = MarketingURLs.PAID_TERMS;
|
||||
object.paidServiceTermURL = PAID_TERMS;
|
||||
object.applicationName = r1;
|
||||
if (shouldAppendDisclaimer) {
|
||||
items2 = [getCheckoutDisclaimerMessageForApplication(a0)];
|
||||
items2[1] = intl.format((importDefault(3130) /* metro dependency 3130: SlayerStorefrontMessages */).Ufm9XX,
|
||||
object);
|
||||
r0 = items2;
|
||||
} else {
|
||||
object = [intl.format((importDefault(3130) /* metro dependency 3130: SlayerStorefrontMessages */).Ufm9XX,
|
||||
object)];
|
||||
r0 = object;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,248 @@
|
||||
/* Metro module 10440; source: modules/slayer_storefront/utils/carouselMediaItems.tsx; dependencies: [4141, 6829, 2] */
|
||||
function _fun80837(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10626:6, offset: 0x01e8baf3, size: 194 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_80840 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/slayer_storefront/utils/carouselMediaItems.tsx');
|
||||
exports.WEB_HERO_WIDTH_PX = 747;
|
||||
exports.WEB_HERO_HEIGHT_PX = 560;
|
||||
exports.MOBILE_HERO_WIDTH_PX = 343;
|
||||
exports.MOBILE_HERO_HEIGHT_PX = 257;
|
||||
exports.CAROUSEL_THUMBNAIL_SIZE = 112;
|
||||
exports.getThumbnailSrc = function(a0) {
|
||||
return a0.thumbnailSrc ?? (a0.type === 'video' ? a0.videoThumbnailSrc : a0.src);
|
||||
};
|
||||
exports.convertCarouselItemsToMediaItems = convertCarouselItemsToMediaItems;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_80838(a0, a1) { // fn#80838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10626:46, offset: 0x01e8bbb5, size: 372 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)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun80839;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_80840(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') {
|
||||
value = _arrayLikeToArray_80840(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_80840(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun80839;
|
||||
}
|
||||
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 convertCarouselItemsToMediaItems(a0, a1, a2, {heroWidth}) { // fn#80842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10626:1404, offset: 0x01e8bd5d, size: 675 bytes, params: 5, frame: 39
|
||||
var r3;
|
||||
var r23;
|
||||
var r20;
|
||||
var value6;
|
||||
var assetId;
|
||||
var property;
|
||||
var push;
|
||||
var mime_type;
|
||||
var value7;
|
||||
var object3;
|
||||
var moduleValue;
|
||||
var getAssetURL;
|
||||
var thumbnailAssetId;
|
||||
var moduleValue2;
|
||||
var value8;
|
||||
var backgroundAssetId;
|
||||
var moduleValue3;
|
||||
const LARGE_ASSET_FORMAT = (require(6829) /* metro dependency 6829: SlayerStorefrontUtils */).LARGE_ASSET_FORMAT;
|
||||
var value9;
|
||||
var object4;
|
||||
var moduleValue4;
|
||||
var moduleValue5;
|
||||
var moduleValue6;
|
||||
var value10;
|
||||
var moduleValue7;
|
||||
var value11;
|
||||
var value12;
|
||||
const items3 = [];
|
||||
const items2 = [];
|
||||
if (a0 != null) {
|
||||
if (a0.length === 0) {
|
||||
return [items3, items2];
|
||||
}
|
||||
var value4 = _createForOfIteratorHelperLoose_80838(a0);
|
||||
var value5 = value4();
|
||||
var done = value5.done;
|
||||
if (!done) {
|
||||
r3 = value5;
|
||||
while (true) {
|
||||
value6 = r3.value;
|
||||
assetId = value6.assetId;
|
||||
if (assetId != null) {
|
||||
assetId = value6.assetId;
|
||||
property = a2[assetId];
|
||||
r23 = property;
|
||||
} else {
|
||||
r23 = null;
|
||||
}
|
||||
if (r23 == null) {
|
||||
continue;
|
||||
}
|
||||
items3.push(value6);
|
||||
mime_type = r23.mime_type;
|
||||
value7 = mime_type.startsWith('video/');
|
||||
push = items2.push;
|
||||
if (value7) {
|
||||
object4 = {type: 'video'};
|
||||
moduleValue4 = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
object4.src = moduleValue4.getAssetURL(a1, r23, heroWidth, 'mp4');
|
||||
moduleValue5 = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
object4.videoThumbnailSrc = moduleValue5.getAssetURL(a1, r23, heroWidth, 'webp');
|
||||
thumbnailAssetId = value6.thumbnailAssetId;
|
||||
if (thumbnailAssetId == null) {
|
||||
r20 = undefined;
|
||||
continue;
|
||||
}
|
||||
moduleValue6 = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
getAssetURL = moduleValue6.getAssetURL;
|
||||
thumbnailAssetId = value6.thumbnailAssetId;
|
||||
value10 = Reflect.apply(getAssetURL, moduleValue6, [a1, thumbnailAssetId, 112, 'webp']);
|
||||
r20 = value10;
|
||||
object4.thumbnailSrc = r20;
|
||||
backgroundAssetId = value6.backgroundAssetId;
|
||||
if (backgroundAssetId == null) {
|
||||
r20 = undefined;
|
||||
continue;
|
||||
}
|
||||
moduleValue7 = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
getAssetURL = moduleValue7.getAssetURL;
|
||||
backgroundAssetId = value6.backgroundAssetId;
|
||||
value11 = Reflect.apply(getAssetURL, moduleValue7, [a1, backgroundAssetId, heroWidth,
|
||||
LARGE_ASSET_FORMAT]);
|
||||
r20 = value11;
|
||||
object4.backgroundSrc = r20;
|
||||
Reflect.apply(push, items2, [object4]);
|
||||
} else {
|
||||
object3 = {type: 'image'};
|
||||
moduleValue = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
object3.src = moduleValue.getAssetURL(a1, r23, heroWidth, 'webp');
|
||||
thumbnailAssetId = value6.thumbnailAssetId;
|
||||
if (thumbnailAssetId == null) {
|
||||
r20 = undefined;
|
||||
continue;
|
||||
}
|
||||
moduleValue2 = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
getAssetURL = moduleValue2.getAssetURL;
|
||||
thumbnailAssetId = value6.thumbnailAssetId;
|
||||
value8 = Reflect.apply(getAssetURL, moduleValue2, [a1, thumbnailAssetId, 112, 'webp']);
|
||||
r20 = value8;
|
||||
object3.thumbnailSrc = r20;
|
||||
backgroundAssetId = value6.backgroundAssetId;
|
||||
if (backgroundAssetId == null) {
|
||||
r20 = undefined;
|
||||
continue;
|
||||
}
|
||||
moduleValue3 = require(4141) /* metro dependency 4141: StoreUtils */;
|
||||
getAssetURL = moduleValue3.getAssetURL;
|
||||
backgroundAssetId = value6.backgroundAssetId;
|
||||
value9 = Reflect.apply(getAssetURL, moduleValue3, [a1, backgroundAssetId, heroWidth,
|
||||
LARGE_ASSET_FORMAT]);
|
||||
r20 = value9;
|
||||
object3.backgroundSrc = r20;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
value12 = value4();
|
||||
done = value12.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value12;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
return [items3, items2];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user