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