Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,82 @@
|
||||
/* Metro module 5126; source: modules/collectibles/records/AvatarDecorationRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */
|
||||
function _fun45050(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5304:6, offset: 0x0117ff3b, size: 233 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(102) /* metro dependency 102 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1903) /* metro dependency 1903: BaseCollectibesItemRecord */;
|
||||
value = _fun45054(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/AvatarDecorationRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.isAvatarDecorationRecord = isAvatarDecorationRecord;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45051() { // fn#45051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5304:159, offset: 0x01180024, 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_45051_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun45054(a0) { // fn#45054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5304:358, offset: 0x01180082, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = AvatarDecorationRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure, null, [{key: 'fromServer', value: value_45056}]);
|
||||
}
|
||||
|
||||
function AvatarDecorationRecord(a0) { // fn#45055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5304:370, offset: 0x011800c9, size: 176 bytes, params: 2, frame: 21
|
||||
env1_2(this, AvatarDecorationRecord);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_5(AvatarDecorationRecord);
|
||||
const value6 = env1_4(this, _isNativeReflectConstruct_45051() ? global.Reflect.construct(value3, items2,
|
||||
env1_5(this).constructor) : value3.apply(this, items2));
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
const AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
|
||||
value6.type = AVATAR_DECORATION;
|
||||
value6.asset = a0.asset;
|
||||
value6.label = a0.label;
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_45056(a0) { // fn#45056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5304:795, offset: 0x01180179, size: 125 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_6;
|
||||
value = env1_5(AvatarDecorationRecord);
|
||||
value = binding(value, 'fromServer', this);
|
||||
copyDataProperties(object2, (typeof value !== 'function' ? value : _fun45057)([a0]), undefined);
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
value = Object.create(AvatarDecorationRecord.prototype, {constructor: {value: AvatarDecorationRecord}});
|
||||
const avatarDecorationRecord = new AvatarDecorationRecord(object2);
|
||||
return avatarDecorationRecord instanceof Object ? avatarDecorationRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* Metro module 1903; source: modules/collectibles/records/BaseCollectibesItemRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 2] */
|
||||
function _fun20873(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2030:6, offset: 0x00ede3b7, size: 194 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun20877(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/BaseCollectibesItemRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_20874() { // fn#20874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2030:148, offset: 0x00ede479, 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_20874_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun20877(a0) { // fn#20877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2030:347, offset: 0x00ede4d7, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = BaseCollectiblesItemRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, null, [{key: 'fromServer', value: function(a0) {
|
||||
var sku_id = a0.sku_id;
|
||||
var value = Object.create(null);
|
||||
value.sku_id = 0;
|
||||
var value2 = copyDataProperties({}, a0, value, sku_id);
|
||||
var object = {};
|
||||
copyDataProperties(object, value2, value);
|
||||
object['skuId'] = sku_id;
|
||||
value = Object.create(BaseCollectiblesItemRecord.prototype, {constructor: {value: BaseCollectiblesItemRecord}});
|
||||
var value4 = new BaseCollectiblesItemRecord(object);
|
||||
return value4 instanceof Object ? value4 : value;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function BaseCollectiblesItemRecord({skuId}) { // fn#20878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2030:359, offset: 0x00ede51e, size: 122 bytes, params: 2, frame: 19
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, BaseCollectiblesItemRecord);
|
||||
const value3 = env1_3(BaseCollectiblesItemRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_20874() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value.skuId = skuId;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Metro module 5124; source: modules/collectibles/records/CollectiblesBundledProductRecord.tsx; dependencies: [6, 7, 4275, 2] */
|
||||
function _fun45039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5302:6, offset: 0x0117f68a, size: 132 bytes, params: 8, frame: 18
|
||||
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 value = _fun45040();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesBundledProductRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun45040() { // fn#45040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5302:118, offset: 0x0117f70e, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CollectiblesBundledProductRecord, null, [{key: 'fromServer', value: value_45042}]);
|
||||
}
|
||||
|
||||
function CollectiblesBundledProductRecord({prices, type, premiumType, name, skuId, summary}) { // fn#45041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5302:129, offset: 0x0117f748, size: 99 bytes, params: 2, frame: 14
|
||||
env1_2(this, CollectiblesBundledProductRecord);
|
||||
this.prices = prices;
|
||||
this.type = type;
|
||||
this.premiumType = premiumType;
|
||||
this.name = name;
|
||||
this.skuId = skuId;
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
function value_45042({prices, type, premium_type, name, sku_id, summary}) { // fn#45042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5302:415, offset: 0x0117f7ab, size: 128 bytes, params: 2, frame: 19
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
object2.prices = (importDefault(4275) /* metro dependency 4275: getPricesFromServer */)(prices);
|
||||
object2.type = type;
|
||||
object2.premiumType = premium_type;
|
||||
object2.name = name;
|
||||
object2.skuId = sku_id;
|
||||
object2.summary = summary;
|
||||
value = Object.create(CollectiblesBundledProductRecord.prototype,
|
||||
{constructor: {value: CollectiblesBundledProductRecord}});
|
||||
const collectiblesBundledProductRecord = new CollectiblesBundledProductRecord(object2);
|
||||
return collectiblesBundledProductRecord instanceof Object ? collectiblesBundledProductRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 5147; source: modules/collectibles/records/CollectiblesCategoriesRecord.tsx; dependencies: [6, 7, 5148, 5122, 5151, 2] */
|
||||
function _fun45438(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5325:6, offset: 0x0118e835, size: 178 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const storefrontCollectionRecord = importDefault(5148) /* metro dependency 5148: StorefrontCollectionRecord */;
|
||||
const collectiblesCategoryRecord = importDefault(5122) /* metro dependency 5122: CollectiblesCategoryRecord */;
|
||||
const env0_4 = (require(5151) /* metro dependency 5151: CollectiblesUserDiscountRecord */).CollectiblesUserDiscountRecord;
|
||||
const value = _fun45439();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesCategoriesRecord.tsx');
|
||||
exports.CollectiblesCategoriesRecord = value;
|
||||
}
|
||||
|
||||
function _fun45439() { // fn#45439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5325:179, offset: 0x0118e8e7, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_1(CollectiblesCategoriesRecord, null, [{key: 'fromServer', value: value_45444}]);
|
||||
}
|
||||
|
||||
function CollectiblesCategoriesRecord({categories, collections, user_discounts}) { // fn#45440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5325:190, offset: 0x0118e921, size: 124 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_0;
|
||||
value = undefined;
|
||||
binding(this, CollectiblesCategoriesRecord);
|
||||
this.categories = categories.map(function(a0) {
|
||||
return CollectiblesCategoryRecord.fromServer(a0);
|
||||
});
|
||||
this.collections = collections.map(function(a0) {
|
||||
return StorefrontCollectionRecord.fromServer(a0);
|
||||
});
|
||||
this.userDiscounts = user_discounts == null ? value : user_discounts.map(function(a0) {
|
||||
return CollectiblesUserDiscountRecord.fromServer(a0);
|
||||
});
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
/* Metro module 5122; source: modules/collectibles/records/CollectiblesCategoryRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 5123, 5131, 1904, 5133, 5134, 2] */
|
||||
function _fun45003(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:6, offset: 0x0117e302, size: 243 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(102) /* metro dependency 102 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const collectiblesProductRecord = importDefault(5123) /* metro dependency 5123: CollectiblesProductRecord */;
|
||||
let value = importDefault(5131) /* metro dependency 5131: CollectiblesStoreListingRecord */;
|
||||
value = _fun45008(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesCategoryRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45004() { // fn#45004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:179, offset: 0x0117e3f5, 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_45004_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function allowEmptyItems(a0) { // fn#45007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:392, offset: 0x0117e453, size: 82 bytes, params: 2, frame: 14
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
const VARIANTS_GROUP = CollectiblesItemType.VARIANTS_GROUP;
|
||||
return a0 === VARIANTS_GROUP || a0 === CollectiblesItemType.EXTERNAL_SKU;
|
||||
}
|
||||
|
||||
function _fun45008(a0) { // fn#45008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:494, offset: 0x0117e4a5, size: 96 bytes, params: 2, frame: 17
|
||||
const closure = CollectiblesCategoryRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure, null, [{key: 'fromServer', value: value_45011}, {key: 'fromStorefrontCollectionRecord',
|
||||
value: value_45014}]);
|
||||
}
|
||||
|
||||
function CollectiblesCategoryRecord(a0) { // fn#45009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:506, offset: 0x0117e505, size: 400 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, CollectiblesCategoryRecord);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_5(CollectiblesCategoryRecord);
|
||||
value = env1_4(this, _isNativeReflectConstruct_45004() ? global.Reflect.construct(value3, items2,
|
||||
env1_5(this).constructor) : value3.apply(this, items2));
|
||||
value.products = a0.products;
|
||||
value.heroRanking = a0.heroRanking;
|
||||
value.unpublishedAt = a0.unpublishedAt;
|
||||
const Array = global.Array;
|
||||
value.isOrbsExclusive = Array.isArray(a0.products) && a0.products.length > 0 && a0.products.find(_fun45010) === undefined;
|
||||
value.heroBannerUrl = a0.heroBannerUrl;
|
||||
value.heroBannerAnimatedUrl = a0.heroBannerAnimatedUrl;
|
||||
value.heroRiveUrl = a0.heroRiveUrl;
|
||||
value.heroLogoUrl = a0.heroLogoUrl;
|
||||
value.catalogBannerUrl = a0.catalogBannerUrl;
|
||||
value.catalogBannerAnimatedUrl = a0.catalogBannerAnimatedUrl;
|
||||
value.catalogBannerRiveUrl = a0.catalogBannerRiveUrl;
|
||||
value.featuredBlockUrl = a0.featuredBlockUrl;
|
||||
value.logoUrl = a0.logoUrl;
|
||||
value.pdpBgUrl = a0.pdpBgUrl;
|
||||
value.mobileBannerUrl = a0.mobileBannerUrl;
|
||||
value.mobileBgUrl = a0.mobileBgUrl;
|
||||
value.heroLogoDisplayConfig = a0.heroLogoDisplayConfig;
|
||||
value.heroBannerDisplayConfig = a0.heroBannerDisplayConfig;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_45011(a0) { // fn#45011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:1597, offset: 0x0117e6c1, size: 519 bytes, params: 2, frame: 38
|
||||
const products = a0.products;
|
||||
const unpublished_at = a0.unpublished_at;
|
||||
const hero_ranking = a0.hero_ranking;
|
||||
const hero_logo_display_config = a0.hero_logo_display_config;
|
||||
const hero_banner_display_config = a0.hero_banner_display_config;
|
||||
const hero_banner_url = a0.hero_banner_url;
|
||||
const hero_banner_animated_url = a0.hero_banner_animated_url;
|
||||
const hero_rive_url = a0.hero_rive_url;
|
||||
const hero_logo_url = a0.hero_logo_url;
|
||||
const catalog_banner_url = a0.catalog_banner_url;
|
||||
const catalog_banner_animated_url = a0.catalog_banner_animated_url;
|
||||
const catalog_banner_rive_url = a0.catalog_banner_rive_url;
|
||||
const featured_block_url = a0.featured_block_url;
|
||||
const logo_url = a0.logo_url;
|
||||
const pdp_bg_url = a0.pdp_bg_url;
|
||||
const mobile_banner_url = a0.mobile_banner_url;
|
||||
const mobile_bg_url = a0.mobile_bg_url;
|
||||
const object3 = {'products': 0, 'unpublished_at': 0, 'hero_ranking': 0, 'hero_logo_display_config': 0,
|
||||
'hero_banner_display_config': 0, 'hero_banner_url': 0, 'hero_banner_animated_url': 0, 'hero_rive_url': 0,
|
||||
'hero_logo_url': 0, 'catalog_banner_url': 0, 'catalog_banner_animated_url': 0, 'catalog_banner_rive_url': 0,
|
||||
'featured_block_url': 0, 'logo_url': 0, 'pdp_bg_url': 0, 'mobile_banner_url': 0, 'mobile_bg_url': 0};
|
||||
let value = null;
|
||||
silentSetPrototypeOf(object3, value, undefined);
|
||||
let value2 = copyDataProperties({}, a0, object3, this);
|
||||
const object4 = {};
|
||||
const value6 = env1_6(env1_5(CollectiblesCategoryRecord), 'fromServer', this);
|
||||
copyDataProperties(object4, (typeof value6 !== 'function' ? value6 : _fun45012)([value2]), object3);
|
||||
object4['products'] = products.reduce(function(a0, a1) {
|
||||
var value2 = CollectiblesProductRecord.fromServer(a1);
|
||||
if (allowEmptyItems(value2.type)) {
|
||||
a0.push(value2);
|
||||
} else if (value2.items.length !== 0) {
|
||||
a0.push(value2);
|
||||
}
|
||||
return a0;
|
||||
}, []);
|
||||
object4['unpublishedAt'] = value != unpublished_at ? new global.Date(unpublished_at) : value;
|
||||
object4['heroRanking'] = hero_ranking;
|
||||
object4['heroBannerUrl'] = hero_banner_url;
|
||||
object4['heroBannerAnimatedUrl'] = hero_banner_animated_url;
|
||||
object4['heroRiveUrl'] = hero_rive_url;
|
||||
object4['heroLogoUrl'] = hero_logo_url;
|
||||
object4['catalogBannerUrl'] = catalog_banner_url;
|
||||
object4['catalogBannerAnimatedUrl'] = catalog_banner_animated_url;
|
||||
object4['catalogBannerRiveUrl'] = catalog_banner_rive_url;
|
||||
object4['featuredBlockUrl'] = featured_block_url;
|
||||
object4['logoUrl'] = logo_url;
|
||||
object4['pdpBgUrl'] = pdp_bg_url;
|
||||
object4['mobileBannerUrl'] = mobile_banner_url;
|
||||
object4['mobileBgUrl'] = mobile_bg_url;
|
||||
value = require(5134) /* metro dependency 5134: CollectiblesUtils */;
|
||||
value = value.getAssetDisplayConfig(hero_logo_display_config);
|
||||
object4['heroLogoDisplayConfig'] = value;
|
||||
value = require(5134) /* metro dependency 5134: CollectiblesUtils */;
|
||||
value = value.getAssetDisplayConfig(hero_banner_display_config);
|
||||
object4['heroBannerDisplayConfig'] = value;
|
||||
value = Object.create(CollectiblesCategoryRecord.prototype, {constructor: {value: CollectiblesCategoryRecord}});
|
||||
const collectiblesCategoryRecord = new CollectiblesCategoryRecord(object4);
|
||||
return collectiblesCategoryRecord instanceof Object ? collectiblesCategoryRecord : value;
|
||||
}
|
||||
|
||||
function value_45014(a0) { // fn#45014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:2705, offset: 0x0117e910, size: 296 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
object2.storeListingId = a0.id;
|
||||
object2.skuId = a0.id;
|
||||
object2.name = a0.name;
|
||||
object2.summary = a0.description;
|
||||
object2.unpublishedAt = a0.unpublishedAt;
|
||||
const styles = a0.styles;
|
||||
object2.styles = styles;
|
||||
object2.products = a0.products.reduce(function(a0, a1) {
|
||||
var value2 = CollectiblesProductRecord.fromStorefrontProductRecord(a1);
|
||||
if (value2 != null) {
|
||||
if (allowEmptyItems(value2.type)) {
|
||||
a0.push(value2);
|
||||
} else if (value2.items.length !== 0) {
|
||||
a0.push(value2);
|
||||
}
|
||||
}
|
||||
return a0;
|
||||
}, []);
|
||||
object2.heroRanking = a0.heroRanking;
|
||||
object2.heroBannerUrl = a0.heroBannerUrl;
|
||||
object2.heroBannerAnimatedUrl = a0.heroBannerAnimatedUrl;
|
||||
object2.heroRiveUrl = a0.heroRiveUrl;
|
||||
object2.heroLogoUrl = a0.heroLogoUrl;
|
||||
object2.catalogBannerUrl = a0.catalogBannerUrl;
|
||||
object2.catalogBannerAnimatedUrl = a0.catalogBannerAnimatedUrl;
|
||||
object2.catalogBannerRiveUrl = a0.catalogBannerRiveUrl;
|
||||
object2.featuredBlockUrl = a0.featuredBlockUrl;
|
||||
object2.logoUrl = a0.logoUrl;
|
||||
object2.pdpBgUrl = a0.pdpBgUrl;
|
||||
object2.mobileBannerUrl = a0.mobileBannerUrl;
|
||||
object2.mobileBgUrl = a0.mobileBgUrl;
|
||||
object2.heroLogoDisplayConfig = a0.heroLogoDisplayConfig;
|
||||
object2.heroBannerDisplayConfig = a0.heroDisplayConfig;
|
||||
const value = Object.create(CollectiblesCategoryRecord.prototype,
|
||||
{constructor: {value: CollectiblesCategoryRecord}});
|
||||
const collectiblesCategoryRecord = new CollectiblesCategoryRecord(object2);
|
||||
return collectiblesCategoryRecord instanceof Object ? collectiblesCategoryRecord : value;
|
||||
}
|
||||
|
||||
function _fun45010(a0) { // fn#45010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:938, offset: 0x0117e695, size: 44 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(5133) /* metro dependency 5133: CollectiblesProductUtils */;
|
||||
return !value.isOrbsExclusiveProduct(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,259 @@
|
||||
/* Metro module 5125; source: modules/collectibles/records/CollectiblesItemRecord.tsx; dependencies: [5126, 1902, 5127, 5128, 5130, 661, 1904, 2] */
|
||||
function _fun45043(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5303:6, offset: 0x0117f82b, size: 241 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_45046 = 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 avatarDecorationRecord = importDefault(5126) /* metro dependency 5126: AvatarDecorationRecord */;
|
||||
const nameplateRecord = importDefault(1902) /* metro dependency 1902: NameplateRecord */;
|
||||
const profileEffectRecord = importDefault(5127) /* metro dependency 5127: ProfileEffectRecord */;
|
||||
const profileFrameRecord = importDefault(5128) /* metro dependency 5128: ProfileFrameRecord */;
|
||||
const unknownCollectiblesItemRecord = importDefault(5130) /* metro dependency 5130: UnknownCollectiblesItemRecord */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = constantsModule.SKUProductLines;
|
||||
const env0_8 = constantsModule.SKUTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesItemRecord.tsx');
|
||||
exports.createCollectiblesItemsFromServerResponse = function(a0) {
|
||||
return a0 == null ? [] : a0.reduce(_fun45048, []);
|
||||
};
|
||||
exports.transformSKUToCollectiblesItem = transformSKUToCollectiblesItem;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_45044(a0, a1) { // fn#45044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5303:194, offset: 0x0117f91c, 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 _fun45045;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_45046(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_45046(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_45046(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun45045;
|
||||
}
|
||||
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 createCollectiblesItemsFromServerResponse(a0) { // fn#45047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5303:1239, offset: 0x0117fa8e, size: 40 bytes, params: 2, frame: 13
|
||||
return a0 == null ? [] : a0.reduce(_fun45048, []);
|
||||
}
|
||||
|
||||
function transformSKUToCollectiblesItem(a0) { // fn#45049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5303:1684, offset: 0x0117fbda, size: 865 bytes, params: 2, frame: 19
|
||||
var item;
|
||||
var r1;
|
||||
var r5;
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
var items;
|
||||
var object6;
|
||||
var object7;
|
||||
var object8;
|
||||
var object9;
|
||||
var _createForOfIteratorHelperLoose_45044Binding;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var done;
|
||||
var transformSKUToCollectiblesItemBinding;
|
||||
var value6;
|
||||
var value7;
|
||||
var push;
|
||||
var value8;
|
||||
const productLine = a0.productLine;
|
||||
const COLLECTIBLES = SKUProductLines.COLLECTIBLES;
|
||||
if (productLine === COLLECTIBLES) {
|
||||
var type = a0.type;
|
||||
var BUNDLE = SKUTypes.BUNDLE;
|
||||
if (type === BUNDLE) {
|
||||
items = [];
|
||||
_createForOfIteratorHelperLoose_45044Binding = _createForOfIteratorHelperLoose_45044;
|
||||
r1 = a0.bundledSkus ?? [];
|
||||
value3 = undefined;
|
||||
value4 = _createForOfIteratorHelperLoose_45044Binding(r1);
|
||||
value5 = value4();
|
||||
done = value5.done;
|
||||
if (!done) {
|
||||
r5 = value5;
|
||||
while (true) {
|
||||
transformSKUToCollectiblesItemBinding = transformSKUToCollectiblesItem;
|
||||
value6 = r5.value;
|
||||
value7 = transformSKUToCollectiblesItemBinding(value6);
|
||||
type = value7 == null ? value3 : value7.type;
|
||||
if (type !== 'single') {
|
||||
continue;
|
||||
}
|
||||
push = items.push;
|
||||
item = value7.item;
|
||||
Reflect.apply(push, items, [item]);
|
||||
value8 = value4();
|
||||
done = value8.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r5 = value8;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (items.length === 0) {
|
||||
return value3;
|
||||
}
|
||||
return {type: 'bundle', items: items, previewAssets: a0.previewAssetPaths ?? value3};
|
||||
}
|
||||
var tenantMetadata = a0.tenantMetadata;
|
||||
var value2 = undefined;
|
||||
var collectibles = tenantMetadata == null ? value2 : tenantMetadata.collectibles;
|
||||
item = collectibles == null ? value2 : collectibles.item;
|
||||
if (item != null) {
|
||||
type = item.type;
|
||||
if (CollectiblesItemType.AVATAR_DECORATION === type) {
|
||||
object9 = {};
|
||||
object9.skuId = a0.id;
|
||||
object9.type = item.type;
|
||||
object9.asset = item.asset;
|
||||
object9.label = item.label;
|
||||
return {type: 'single', item: new AvatarDecorationRecord()};
|
||||
}
|
||||
if (CollectiblesItemType.NAMEPLATE === type) {
|
||||
object8 = {};
|
||||
object8.skuId = a0.id;
|
||||
object8.type = item.type;
|
||||
object8.asset = item.asset;
|
||||
object8.label = item.label;
|
||||
object8.palette = item.palette;
|
||||
return {type: 'single', item: new NameplateRecord()};
|
||||
}
|
||||
if (CollectiblesItemType.PROFILE_EFFECT === type) {
|
||||
object7 = {};
|
||||
object7.skuId = a0.id;
|
||||
object7.type = item.type;
|
||||
object7.title = item.title;
|
||||
object7.description = item.description;
|
||||
object7.thumbnailPreviewSrc = item.thumbnailPreviewSrc;
|
||||
object7.reducedMotionSrc = item.reducedMotionSrc;
|
||||
object7.effects = item.effects ?? [];
|
||||
object7.accessibilityLabel = item.accessibilityLabel;
|
||||
object7.animationType = item.animationType;
|
||||
object7.staticFrameSrc = item.staticFrameSrc;
|
||||
return {type: 'single', item: new ProfileEffectRecord()};
|
||||
}
|
||||
if (CollectiblesItemType.PROFILE_FRAME === type) {
|
||||
object6 = {};
|
||||
object6.skuId = a0.id;
|
||||
object6.type = item.type;
|
||||
object6.label = item.label;
|
||||
object6.layers = item.layers;
|
||||
object6.innerWidth = item.innerWidth;
|
||||
object6.overflowTop = item.overflowTop;
|
||||
object6.overflowBottom = item.overflowBottom;
|
||||
object6.overflowHorizontal = item.overflowHorizontal;
|
||||
return {type: 'single', item: new ProfileFrameRecord()};
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun45048(a0, a1) { // fn#45048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5303:1263, offset: 0x0117fab6, size: 292 bytes, params: 3, frame: 16
|
||||
const type = a1.type;
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
const AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
|
||||
if (AVATAR_DECORATION === type) {
|
||||
a0.push(AvatarDecorationRecord.fromServer(a1));
|
||||
} else if (CollectiblesItemType.NAMEPLATE === type) {
|
||||
a0.push(NameplateRecord.fromServer(a1));
|
||||
} else if (CollectiblesItemType.PROFILE_EFFECT === type) {
|
||||
a0.push(ProfileEffectRecord.fromServer(a1));
|
||||
} else if (CollectiblesItemType.PROFILE_FRAME === type) {
|
||||
a0.push(ProfileFrameRecord.fromServer(a1));
|
||||
} else {
|
||||
a0.push(UnknownCollectiblesItemRecord.fromServer(a1));
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 5153; source: modules/collectibles/records/CollectiblesMarketingBadgeRecord.tsx; dependencies: [6, 7, 5154, 2] */
|
||||
function _fun45474(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5331:6, offset: 0x0118fbb9, size: 132 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 value = _fun45475();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesMarketingBadgeRecord.tsx');
|
||||
exports.CollectiblesMarketingBadgeRecord = value;
|
||||
}
|
||||
|
||||
function _fun45475() { // fn#45475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5331:118, offset: 0x0118fc3d, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CollectiblesMarketingBadgeRecord, null, [{key: 'fromServer', value: value_45477}]);
|
||||
}
|
||||
|
||||
function CollectiblesMarketingBadgeRecord({dismissibleContent, version, refTargetBackground, badgeIcon, badgeText, showHoverGradient}) { // fn#45476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5331:129, offset: 0x0118fc77, size: 140 bytes, params: 2, frame: 15
|
||||
env1_2(this, CollectiblesMarketingBadgeRecord);
|
||||
const CollectiblesMarketingType = (require(5154) /* metro dependency 5154: CollectiblesMarketingType */).CollectiblesMarketingType;
|
||||
const BADGE = CollectiblesMarketingType.BADGE;
|
||||
this.type = BADGE;
|
||||
this.dismissibleContent = dismissibleContent;
|
||||
this.version = version;
|
||||
this.refTargetBackground = refTargetBackground;
|
||||
this.badgeIcon = badgeIcon;
|
||||
this.badgeText = badgeText;
|
||||
this.showHoverGradient = showHoverGradient;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 5155; source: modules/collectibles/records/CollectiblesMarketingBannerRecord.tsx; dependencies: [6, 7, 5154, 2] */
|
||||
function _fun45479(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5333:6, offset: 0x0118fe23, size: 132 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 value = _fun45480();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesMarketingBannerRecord.tsx');
|
||||
exports.CollectiblesMarketingBannerRecord = value;
|
||||
}
|
||||
|
||||
function _fun45480() { // fn#45480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5333:118, offset: 0x0118fea7, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CollectiblesMarketingBannerRecord, null, [{key: 'fromServer', value: value_45482}]);
|
||||
}
|
||||
|
||||
function CollectiblesMarketingBannerRecord({title, body, asset, popout_asset, version, revert_text_color}) { // fn#45481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5333:129, offset: 0x0118fee1, size: 146 bytes, params: 2, frame: 15
|
||||
env1_2(this, CollectiblesMarketingBannerRecord);
|
||||
const CollectiblesMarketingType = (require(5154) /* metro dependency 5154: CollectiblesMarketingType */).CollectiblesMarketingType;
|
||||
const BANNER = CollectiblesMarketingType.BANNER;
|
||||
this.type = BANNER;
|
||||
this.title = title;
|
||||
this.body = body;
|
||||
this.asset = asset;
|
||||
this.popoutAsset = popout_asset;
|
||||
this.version = version;
|
||||
this.revertTextColor = revert_text_color;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Metro module 5156; source: modules/collectibles/records/CollectiblesMarketingCoachmarkRecord.tsx; dependencies: [6, 7, 5154, 2] */
|
||||
function _fun45483(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5334:6, offset: 0x0118ff73, size: 132 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 value = _fun45484();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesMarketingCoachmarkRecord.tsx');
|
||||
exports.CollectiblesMarketingCoachmarkRecord = value;
|
||||
}
|
||||
|
||||
function _fun45484() { // fn#45484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5334:118, offset: 0x0118fff7, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CollectiblesMarketingCoachmarkRecord, null, [{key: 'fromServer', value: value_45486}]);
|
||||
}
|
||||
|
||||
function CollectiblesMarketingCoachmarkRecord({title, body, assetDark, assetLight, version, refTargetBackground, badgeIcon, badgeText, buttonLabel}) { // fn#45485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5334:129, offset: 0x01190031, size: 174 bytes, params: 2, frame: 15
|
||||
env1_2(this, CollectiblesMarketingCoachmarkRecord);
|
||||
const CollectiblesMarketingType = (require(5154) /* metro dependency 5154: CollectiblesMarketingType */).CollectiblesMarketingType;
|
||||
const COACHMARK = CollectiblesMarketingType.COACHMARK;
|
||||
this.type = COACHMARK;
|
||||
this.title = title;
|
||||
this.body = body;
|
||||
this.assetDark = assetDark;
|
||||
this.assetLight = assetLight;
|
||||
this.version = version;
|
||||
this.refTargetBackground = refTargetBackground;
|
||||
this.badgeIcon = badgeIcon;
|
||||
this.badgeText = badgeText;
|
||||
this.buttonLabel = buttonLabel;
|
||||
}
|
||||
|
||||
function value_45486(a0) { // fn#45486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5334:600, offset: 0x011900df, size: 141 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['assetDark'] = a0.asset_dark;
|
||||
object2['assetLight'] = a0.asset_light;
|
||||
object2['refTargetBackground'] = a0.ref_target_background;
|
||||
object2['badgeIcon'] = a0.badge_icon;
|
||||
object2['badgeText'] = a0.badge_text;
|
||||
object2['buttonLabel'] = a0.button_label;
|
||||
const value = Object.create(CollectiblesMarketingCoachmarkRecord.prototype,
|
||||
{constructor: {value: CollectiblesMarketingCoachmarkRecord}});
|
||||
const collectiblesMarketingCoachmarkRecord = new CollectiblesMarketingCoachmarkRecord(object2);
|
||||
return collectiblesMarketingCoachmarkRecord instanceof Object ? collectiblesMarketingCoachmarkRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/* Metro module 5152; source: modules/collectibles/records/CollectiblesMarketingRecord.tsx; dependencies: [6, 7, 5153, 5155, 5156, 5157, 5154, 2] */
|
||||
function _fun45469(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5330:6, offset: 0x0118f8b8, size: 214 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 = (require(5153) /* metro dependency 5153: CollectiblesMarketingBadgeRecord */).CollectiblesMarketingBadgeRecord;
|
||||
const env0_5 = (require(5155) /* metro dependency 5155: CollectiblesMarketingBannerRecord */).CollectiblesMarketingBannerRecord;
|
||||
const env0_6 = (require(5156) /* metro dependency 5156: CollectiblesMarketingCoachmarkRecord */).CollectiblesMarketingCoachmarkRecord;
|
||||
const collectiblesMarketingTabTooltipRecord = importDefault(5157) /* metro dependency 5157: CollectiblesMarketingTabTooltipRecord */;
|
||||
const value = _fun45470();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesMarketingRecord.tsx');
|
||||
exports.CollectiblesMarketingsRecord = value;
|
||||
}
|
||||
|
||||
function _fun45470() { // fn#45470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5330:262, offset: 0x0118f98e, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CollectiblesMarketingsRecord, null, [{key: 'fromServer', value: value_45472}]);
|
||||
}
|
||||
|
||||
function CollectiblesMarketingsRecord(a0) { // fn#45471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5330:273, offset: 0x0118f9c8, size: 36 bytes, params: 2, frame: 13
|
||||
env1_2(this, CollectiblesMarketingsRecord);
|
||||
this.marketingsBySurfaces = a0;
|
||||
}
|
||||
|
||||
function value_45472(a0) { // fn#45472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5330:447, offset: 0x0118f9ec, size: 108 bytes, params: 2, frame: 17
|
||||
var value;
|
||||
const Object = global.Object;
|
||||
const fromEntries = Object.fromEntries;
|
||||
const Object2 = global.Object;
|
||||
value = Reflect.apply(fromEntries, Object, [Reflect.apply(Object2.entries(a0?.marketings ?? ({})).map, value,
|
||||
[_fun45473])]);
|
||||
const value2 = Object.create(CollectiblesMarketingsRecord.prototype,
|
||||
{constructor: {value: CollectiblesMarketingsRecord}});
|
||||
const collectiblesMarketingsRecord = new CollectiblesMarketingsRecord();
|
||||
return collectiblesMarketingsRecord instanceof Object ? collectiblesMarketingsRecord : value2;
|
||||
}
|
||||
|
||||
function _fun45473(a0) { // fn#45473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5330:588, offset: 0x0118fa58, size: 353 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
var r1;
|
||||
var r3;
|
||||
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;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value2;
|
||||
r3 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r3 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r3 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
const type = r3 == null ? value : r3.type;
|
||||
const CollectiblesMarketingType = (require(5154) /* metro dependency 5154: CollectiblesMarketingType */).CollectiblesMarketingType;
|
||||
const BADGE = CollectiblesMarketingType.BADGE;
|
||||
if (BADGE === type) {
|
||||
return [r2, CollectiblesMarketingBadgeRecord.fromServer(r3)];
|
||||
}
|
||||
const BANNER = CollectiblesMarketingType.BANNER;
|
||||
if (BANNER === type) {
|
||||
return [r2, CollectiblesMarketingBannerRecord.fromServer(r3)];
|
||||
}
|
||||
const COACHMARK = CollectiblesMarketingType.COACHMARK;
|
||||
if (COACHMARK === type) {
|
||||
return [r2, CollectiblesMarketingCoachmarkRecord.fromServer(r3)];
|
||||
}
|
||||
const TAB_TOOLTIP = CollectiblesMarketingType.TAB_TOOLTIP;
|
||||
if (TAB_TOOLTIP === type) {
|
||||
return [r2, CollectiblesMarketingTabTooltipRecord.fromServer(r3)];
|
||||
}
|
||||
return [r2, value];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 5157; source: modules/collectibles/records/CollectiblesMarketingTabTooltipRecord.tsx; dependencies: [6, 7, 5154, 2] */
|
||||
function _fun45487(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5335:6, offset: 0x0119016c, size: 132 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 value = _fun45488();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesMarketingTabTooltipRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun45488() { // fn#45488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5335:118, offset: 0x011901f0, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CollectiblesMarketingTabTooltipRecord, null, [{key: 'fromServer', value: value_45490}]);
|
||||
}
|
||||
|
||||
function CollectiblesMarketingTabTooltipRecord({title, body, asset, dismissibleContent, version, refTargetBackground, badgeIcon, badgeText, showHoverGradient}) { // fn#45489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5335:129, offset: 0x0119022a, size: 174 bytes, params: 2, frame: 15
|
||||
env1_2(this, CollectiblesMarketingTabTooltipRecord);
|
||||
const CollectiblesMarketingType = (require(5154) /* metro dependency 5154: CollectiblesMarketingType */).CollectiblesMarketingType;
|
||||
const TAB_TOOLTIP = CollectiblesMarketingType.TAB_TOOLTIP;
|
||||
this.type = TAB_TOOLTIP;
|
||||
this.title = title;
|
||||
this.body = body;
|
||||
this.asset = asset;
|
||||
this.dismissibleContent = dismissibleContent;
|
||||
this.version = version;
|
||||
this.refTargetBackground = refTargetBackground;
|
||||
this.badgeIcon = badgeIcon;
|
||||
this.badgeText = badgeText;
|
||||
this.showHoverGradient = showHoverGradient;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,358 @@
|
||||
/* Metro module 5123; source: modules/collectibles/records/CollectiblesProductRecord.tsx; dependencies: [57, 6, 7, 15, 17, 102, 18, 5124, 5125, 5131, 663, 661, 4275, 1904, 2] */
|
||||
function _fun45016(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:6, offset: 0x0117ea88, size: 378 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 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_8 = importDefault(102) /* metro dependency 102 */;
|
||||
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
||||
const collectiblesBundledProductRecord = importDefault(5124) /* metro dependency 5124: CollectiblesBundledProductRecord */;
|
||||
let value = require(5125) /* metro dependency 5125: CollectiblesItemRecord */;
|
||||
const env0_11 = value.createCollectiblesItemsFromServerResponse;
|
||||
const env0_12 = value.transformSKUToCollectiblesItem;
|
||||
value = importDefault(5131) /* metro dependency 5131: CollectiblesStoreListingRecord */;
|
||||
const env0_13 = (require(663) /* metro dependency 663: CollectiblesShopConstants */).REWARD_CATEGORY_AND_REWARD_SKU_IDS;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_14 = constantsModule.PREMIUM_TYPE_NONE;
|
||||
const env0_15 = constantsModule.PriceSetAssignmentPurchaseTypes;
|
||||
value = _fun45023(value);
|
||||
const value3 = _fun45036(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesProductRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.CollectiblesVariantProductRecord = value3;
|
||||
}
|
||||
|
||||
function _callSuper_45017(a0, a1, a2) { // fn#45017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:398, offset: 0x0117ec02, size: 100 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = a2;
|
||||
const value3 = env0_7(a1);
|
||||
const binding = env0_6;
|
||||
if (_isNativeReflectConstruct_45018()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value3, value || [], env0_7(a0).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value3.apply(a0, value);
|
||||
r0 = value;
|
||||
}
|
||||
return binding(a0, r0);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45018() { // fn#45018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:529, offset: 0x0117ec66, 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_45018_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _superPropGet_45021(a0, a1, a2, a3) { // fn#45021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:722, offset: 0x0117ecc4, size: 97 bytes, params: 5, frame: 18
|
||||
let value = a0;
|
||||
const env0_0 = a2;
|
||||
const binding = env0_8;
|
||||
value = env0_7(1 & 2 ? value.prototype : value);
|
||||
value = binding(value, 'fromServer', a2);
|
||||
return 2 & 2 ? typeof value !== 'function' ? value : _fun45022 : value;
|
||||
}
|
||||
|
||||
function _fun45023(a0) { // fn#45023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:862, offset: 0x0117ed25, size: 96 bytes, params: 2, frame: 17
|
||||
const closure = CollectiblesProductRecord;
|
||||
env0_9(closure, a0);
|
||||
return env0_5(closure, null, [{key: 'fromServer', value: value_45025}, {key: 'fromStorefrontProductRecord',
|
||||
value: value_45027}]);
|
||||
}
|
||||
|
||||
function _fun45036(a0) { // fn#45036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:4169, offset: 0x0117f52e, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = CollectiblesVariantProductRecord;
|
||||
env0_9(closure, a0);
|
||||
return env0_5(closure, null, [{key: 'fromServer', value: value_45038}]);
|
||||
}
|
||||
|
||||
function CollectiblesProductRecord(a0) { // fn#45024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:874, offset: 0x0117ed85, size: 216 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
env1_4(this, CollectiblesProductRecord);
|
||||
value = _callSuper_45017(this, CollectiblesProductRecord, [a0]);
|
||||
value.summary = a0.summary;
|
||||
value.type = a0.type;
|
||||
value.premiumType = a0.premiumType;
|
||||
value.items = a0.items;
|
||||
value.categorySkuId = a0.categorySkuId;
|
||||
value.isCategoryReward = a0.isCategoryReward;
|
||||
value.prices = a0.prices;
|
||||
value.bundledProducts = a0.bundledProducts;
|
||||
value.previewAssets = a0.previewAssets;
|
||||
value.googleSkuIds = a0.googleSkuIds;
|
||||
value.variants = a0.variants;
|
||||
value.eligibleOffers = a0.eligibleOffers;
|
||||
value.badgeOverride = a0.badgeOverride;
|
||||
value.hideBadge = a0.hideBadge;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_45025(a0) { // fn#45025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:1482, offset: 0x0117ee5d, size: 499 bytes, params: 2, frame: 31
|
||||
const type = a0.type;
|
||||
const premium_type = a0.premium_type;
|
||||
const category_sku_id = a0.category_sku_id;
|
||||
const prices = a0.prices;
|
||||
const bundled_products = a0.bundled_products;
|
||||
const preview_assets = a0.preview_assets;
|
||||
const variants = a0.variants;
|
||||
const badge_override = a0.badge_override;
|
||||
const hide_badge = a0.hide_badge;
|
||||
let object2 = {'type': 0, 'premium_type': 0, 'category_sku_id': 0, 'prices': 0, 'bundled_products': 0,
|
||||
'preview_assets': 0, 'variants': 0, 'badge_override': 0, 'hide_badge': 0};
|
||||
let value = null;
|
||||
silentSetPrototypeOf(object2, value, undefined);
|
||||
const value2 = copyDataProperties({}, a0, object2, undefined);
|
||||
object2 = {};
|
||||
const _superPropGet_45021Binding = _superPropGet_45021;
|
||||
const value5 = undefined;
|
||||
copyDataProperties(object2, _superPropGet_45021Binding(CollectiblesProductRecord, 'fromServer', this, 2)([value2]),
|
||||
this);
|
||||
object2['type'] = type;
|
||||
object2['premiumType'] = premium_type === PREMIUM_TYPE_NONE ? value : premium_type;
|
||||
object2['categorySkuId'] = category_sku_id;
|
||||
object2['isCategoryReward'] = REWARD_CATEGORY_AND_REWARD_SKU_IDS.some(_fun45026);
|
||||
object2['prices'] = (importDefault(4275) /* metro dependency 4275: getPricesFromServer */)(prices);
|
||||
object2['items'] = createCollectiblesItemsFromServerResponse(value2.items);
|
||||
object2['bundledProducts'] = value == bundled_products ? value5 : bundled_products.map(CollectiblesBundledProductRecord.fromServer);
|
||||
object2['previewAssets'] = value != preview_assets ? {fgStatic: preview_assets.fg_static,
|
||||
fgAnimated: preview_assets.fg_animated, bgStatic: preview_assets.bg_static,
|
||||
bgAnimated: preview_assets.bg_animated} : value5;
|
||||
object2['variants'] = value == variants ? value5 : variants.map(env1_16.fromServer);
|
||||
object2['googleSkuIds'] = value2.google_sku_ids;
|
||||
object2['eligibleOffers'] = value2.eligible_offers;
|
||||
object2['badgeOverride'] = badge_override;
|
||||
object2['hideBadge'] = hide_badge;
|
||||
value = Object.create(CollectiblesProductRecord.prototype, {constructor: {value: CollectiblesProductRecord}});
|
||||
const collectiblesProductRecord = new CollectiblesProductRecord(object2);
|
||||
return collectiblesProductRecord instanceof Object ? collectiblesProductRecord : value;
|
||||
}
|
||||
|
||||
function value_45027(a0) { // fn#45027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:2229, offset: 0x0117f06c, size: 552 bytes, params: 2, frame: 23
|
||||
var environment;
|
||||
var r11;
|
||||
var r0;
|
||||
var premiumType;
|
||||
var r10;
|
||||
var r6;
|
||||
var r1;
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
var value4;
|
||||
var value5;
|
||||
var object2;
|
||||
var items2;
|
||||
var item;
|
||||
var id;
|
||||
var primaryCollectionId;
|
||||
var value8;
|
||||
var googleSkuIds;
|
||||
var bundledSkus;
|
||||
var collectiblesProductRecord;
|
||||
const env0_0 = a0;
|
||||
const property = a0.skus[0];
|
||||
let value = null;
|
||||
if (value != property) {
|
||||
var tenantMetadata = property.tenantMetadata;
|
||||
var value2 = undefined;
|
||||
var collectibles = value == tenantMetadata ? value2 : tenantMetadata.collectibles;
|
||||
if (value != collectibles) {
|
||||
r11 = a0.skus.length > 1 ? CollectiblesItemType.VARIANTS_GROUP : collectibles.type;
|
||||
value4 = environment.__proto__;
|
||||
value5 = transformSKUToCollectiblesItem(property);
|
||||
r0 = value != value5 ? value5 : {};
|
||||
items2 = r0.items;
|
||||
item = r0.item;
|
||||
object2 = {};
|
||||
id = property.id;
|
||||
object2.storeListingId = id;
|
||||
id = property.id;
|
||||
object2.skuId = id;
|
||||
object2.name = a0.name;
|
||||
object2.summary = a0.summary;
|
||||
object2.styles = a0.primaryCollectionStyles;
|
||||
object2.type = r11;
|
||||
premiumType = collectibles.premiumType;
|
||||
premiumType = premiumType === PREMIUM_TYPE_NONE ? value : collectibles.premiumType;
|
||||
object2.premiumType = premiumType;
|
||||
object2.items = value != items2 ? items2 : [item].filter(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
primaryCollectionId = a0.primaryCollectionId;
|
||||
r10 = value != primaryCollectionId ? primaryCollectionId : collectibles.categorySkuId;
|
||||
value8 = '';
|
||||
r6 = value != r10 ? r10 : value8;
|
||||
object2.categorySkuId = r6;
|
||||
object2.isCategoryReward = REWARD_CATEGORY_AND_REWARD_SKU_IDS.some(_fun45029);
|
||||
object2.prices = property.prices;
|
||||
r6 = r11 !== CollectiblesItemType.VARIANTS_GROUP ? value2 : a0.skus.map(_fun45030).filter(_fun45033);
|
||||
object2.variants = r6;
|
||||
googleSkuIds = property.googleSkuIds;
|
||||
r6 = value != googleSkuIds ? googleSkuIds : {[PriceSetAssignmentPurchaseTypes.MOBILE]: value8,
|
||||
[PriceSetAssignmentPurchaseTypes.MOBILE_PREMIUM_TIER_2]: value8};
|
||||
object2.googleSkuIds = r6;
|
||||
object2.eligibleOffers = value2;
|
||||
bundledSkus = property.bundledSkus;
|
||||
if (value == bundledSkus) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
value = bundledSkus.map(_fun45034);
|
||||
value = value.filter(_fun45035);
|
||||
r1 = value;
|
||||
}
|
||||
object2.bundledProducts = r1;
|
||||
value = Object.create(CollectiblesProductRecord.prototype,
|
||||
{constructor: {value: CollectiblesProductRecord}});
|
||||
collectiblesProductRecord = new CollectiblesProductRecord();
|
||||
return collectiblesProductRecord instanceof Object ? collectiblesProductRecord : value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function CollectiblesVariantProductRecord(a0) { // fn#45037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:4181, offset: 0x0117f575, size: 97 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
env1_4(this, CollectiblesVariantProductRecord);
|
||||
value = _callSuper_45017(this, CollectiblesVariantProductRecord, [a0]);
|
||||
value.baseVariantName = a0.baseVariantName;
|
||||
value.baseVariantSkuId = a0.baseVariantSkuId;
|
||||
value.variantLabel = a0.variantLabel;
|
||||
value.variantValue = a0.variantValue;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_45038(a0) { // fn#45038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:4582, offset: 0x0117f5d6, size: 180 bytes, params: 2, frame: 23
|
||||
const base_variant_name = a0.base_variant_name;
|
||||
const base_variant_sku_id = a0.base_variant_sku_id;
|
||||
const variant_label = a0.variant_label;
|
||||
const variant_value = a0.variant_value;
|
||||
let object2 = {'base_variant_name': 0, 'base_variant_sku_id': 0, 'variant_label': 0, 'variant_value': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
let value = copyDataProperties({}, a0, object2, undefined);
|
||||
object2 = {};
|
||||
copyDataProperties(object2, _superPropGet_45021(CollectiblesVariantProductRecord, 'fromServer', this, 2)([value]),
|
||||
this);
|
||||
object2['baseVariantName'] = base_variant_name;
|
||||
object2['baseVariantSkuId'] = base_variant_sku_id;
|
||||
object2['variantLabel'] = variant_label;
|
||||
object2['variantValue'] = variant_value;
|
||||
value = Object.create(CollectiblesVariantProductRecord.prototype,
|
||||
{constructor: {value: CollectiblesVariantProductRecord}});
|
||||
const collectiblesVariantProductRecord = new CollectiblesVariantProductRecord(object2);
|
||||
return collectiblesVariantProductRecord instanceof Object ? collectiblesVariantProductRecord : value;
|
||||
}
|
||||
|
||||
function _fun45026({rewardSkuId}) { // fn#45026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:1805, offset: 0x0117f050, size: 28 bytes, params: 2, frame: 2
|
||||
return rewardSkuId === env0_0.sku_id;
|
||||
}
|
||||
|
||||
function _fun45029({rewardSkuId}) { // fn#45029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:2797, offset: 0x0117f294, size: 27 bytes, params: 2, frame: 2
|
||||
return rewardSkuId === env0_1.id;
|
||||
}
|
||||
|
||||
function _fun45030(a0) { // fn#45030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:2914, offset: 0x0117f2af, size: 467 bytes, params: 2, frame: 24
|
||||
const env0_0 = a0;
|
||||
const tenantMetadata = a0.tenantMetadata;
|
||||
let value = null;
|
||||
const value2 = undefined;
|
||||
const collectibles = value == tenantMetadata ? value2 : tenantMetadata.collectibles;
|
||||
if (value == collectibles) {
|
||||
return value;
|
||||
}
|
||||
const value4 = transformSKUToCollectiblesItem(a0);
|
||||
const {items, item} = value != value4 ? value4 : {};
|
||||
let binding = env2_3;
|
||||
const property = binding(a0.selectedOptions, 1)[0];
|
||||
binding = env2_16;
|
||||
const object2 = {};
|
||||
object2.baseVariantName = env0_0.name;
|
||||
object2.baseVariantSkuId = env0_1.id;
|
||||
const optionValue = value == property ? value2 : property.optionValue;
|
||||
const value7 = '';
|
||||
object2.variantLabel = value != optionValue ? optionValue : value7;
|
||||
const optionSelectorDisplayValue = collectibles.optionSelectorDisplayValue;
|
||||
object2.variantValue = value != optionSelectorDisplayValue ? optionSelectorDisplayValue : value7;
|
||||
object2.storeListingId = a0.id;
|
||||
object2.skuId = a0.id;
|
||||
object2.name = a0.name;
|
||||
object2.summary = a0.summary;
|
||||
object2.styles = value2;
|
||||
object2.type = collectibles.type;
|
||||
let premiumType = collectibles.premiumType;
|
||||
premiumType = premiumType === PREMIUM_TYPE_NONE ? value : collectibles.premiumType;
|
||||
object2.premiumType = premiumType;
|
||||
object2.items = value != items ? items : [item].filter(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
const primaryCollectionId = env0_0.primaryCollectionId;
|
||||
const r9 = value != primaryCollectionId ? primaryCollectionId : collectibles.categorySkuId;
|
||||
object2.categorySkuId = value != r9 ? r9 : value7;
|
||||
object2.isCategoryReward = REWARD_CATEGORY_AND_REWARD_SKU_IDS.some(_fun45032);
|
||||
object2.prices = a0.prices;
|
||||
const googleSkuIds = a0.googleSkuIds;
|
||||
object2.googleSkuIds = value != googleSkuIds ? googleSkuIds : {[PriceSetAssignmentPurchaseTypes.MOBILE]: value7,
|
||||
[PriceSetAssignmentPurchaseTypes.MOBILE_PREMIUM_TIER_2]: value7};
|
||||
object2.eligibleOffers = value2;
|
||||
object2.variants = value2;
|
||||
object2.bundledProducts = value2;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
const binding2 = new binding(object2);
|
||||
return binding2 instanceof Object ? binding2 : value;
|
||||
}
|
||||
|
||||
function _fun45034(a0) { // fn#45034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:3923, offset: 0x0117f49d, size: 145 bytes, params: 2, frame: 16
|
||||
var premiumType;
|
||||
var r0;
|
||||
var value3;
|
||||
var object2;
|
||||
const tenantMetadata = a0.tenantMetadata;
|
||||
const value = null;
|
||||
const collectibles = value == tenantMetadata ? undefined : tenantMetadata.collectibles;
|
||||
if (value == collectibles) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
object2 = {};
|
||||
object2.type = collectibles.type;
|
||||
premiumType = collectibles.premiumType;
|
||||
premiumType = premiumType === PREMIUM_TYPE_NONE ? value : collectibles.premiumType;
|
||||
object2.premiumType = premiumType;
|
||||
object2.name = a0.name;
|
||||
object2.skuId = a0.id;
|
||||
object2.summary = a0.summary;
|
||||
object2.prices = a0.prices;
|
||||
r0 = new CollectiblesBundledProductRecord();
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun45032({rewardSkuId}) { // fn#45032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:3537, offset: 0x0117f482, size: 27 bytes, params: 2, frame: 2
|
||||
return rewardSkuId === env0_0.id;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* Metro module 5158; source: modules/collectibles/records/CollectiblesPurchaseRecord.tsx; dependencies: [6, 7, 5124, 5125, 5123, 663, 661, 4275, 2] */
|
||||
function _fun45491(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5336:6, offset: 0x011902d8, size: 236 bytes, params: 8, frame: 19
|
||||
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 collectiblesBundledProductRecord = importDefault(5124) /* metro dependency 5124: CollectiblesBundledProductRecord */;
|
||||
const env0_5 = (require(5125) /* metro dependency 5125: CollectiblesItemRecord */).createCollectiblesItemsFromServerResponse;
|
||||
const env0_6 = (require(5123) /* metro dependency 5123: CollectiblesProductRecord */).CollectiblesVariantProductRecord;
|
||||
const env0_7 = (require(663) /* metro dependency 663: CollectiblesShopConstants */).REWARD_CATEGORY_AND_REWARD_SKU_IDS;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).PREMIUM_TYPE_NONE;
|
||||
const value = _fun45492();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesPurchaseRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun45492() { // fn#45492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5336:296, offset: 0x011903c4, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CollectiblesPurchaseRecord, null, [{key: 'fromServer', value: value_45494}]);
|
||||
}
|
||||
|
||||
function CollectiblesPurchaseRecord({skuId, name, type, premiumType, items, categorySkuId, isCategoryReward, prices, bundledProducts, googleSkuIds, variants, eligibleOffers, baseVariantName, baseVariantSkuId, variantLabel, variantValue, purchasedAt, purchaseType, expiresAt}) { // fn#45493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5336:307, offset: 0x011903fe, size: 255 bytes, params: 2, frame: 14
|
||||
env1_2(this, CollectiblesPurchaseRecord);
|
||||
this.skuId = skuId;
|
||||
this.name = name;
|
||||
this.type = type;
|
||||
this.premiumType = premiumType;
|
||||
this.items = items;
|
||||
this.categorySkuId = categorySkuId;
|
||||
this.isCategoryReward = isCategoryReward;
|
||||
this.prices = prices;
|
||||
this.bundledProducts = bundledProducts;
|
||||
this.googleSkuIds = googleSkuIds;
|
||||
this.variants = variants;
|
||||
this.eligibleOffers = eligibleOffers;
|
||||
this.baseVariantName = baseVariantName;
|
||||
this.baseVariantSkuId = baseVariantSkuId;
|
||||
this.variantLabel = variantLabel;
|
||||
this.variantValue = variantValue;
|
||||
this.purchasedAt = purchasedAt;
|
||||
this.purchaseType = purchaseType;
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
function value_45494(a0) { // fn#45494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5336:1018, offset: 0x011904fd, size: 486 bytes, params: 2, frame: 30
|
||||
var r3;
|
||||
var date;
|
||||
const type = a0.type;
|
||||
const sku_id = a0.sku_id;
|
||||
const name = a0.name;
|
||||
const premium_type = a0.premium_type;
|
||||
const category_sku_id = a0.category_sku_id;
|
||||
const prices = a0.prices;
|
||||
const bundled_products = a0.bundled_products;
|
||||
const variants = a0.variants;
|
||||
const base_variant_name = a0.base_variant_name;
|
||||
const base_variant_sku_id = a0.base_variant_sku_id;
|
||||
const variant_label = a0.variant_label;
|
||||
const variant_value = a0.variant_value;
|
||||
const purchased_at = a0.purchased_at;
|
||||
const purchase_type = a0.purchase_type;
|
||||
const expires_at = a0.expires_at;
|
||||
let object2 = {'type': 0, 'sku_id': 0, 'name': 0, 'premium_type': 0, 'category_sku_id': 0, 'prices': 0,
|
||||
'bundled_products': 0, 'variants': 0, 'base_variant_name': 0, 'base_variant_sku_id': 0, 'variant_label': 0,
|
||||
'variant_value': 0, 'purchased_at': 0, 'purchase_type': 0, 'expires_at': 0};
|
||||
let value = null;
|
||||
silentSetPrototypeOf(object2, value, undefined);
|
||||
const value2 = copyDataProperties({}, a0, object2, type);
|
||||
object2 = {type: type, name: name, skuId: sku_id};
|
||||
object2.premiumType = premium_type === PREMIUM_TYPE_NONE ? value : premium_type;
|
||||
object2.categorySkuId = category_sku_id;
|
||||
object2.isCategoryReward = REWARD_CATEGORY_AND_REWARD_SKU_IDS.some(function({rewardSkuId}) {
|
||||
return rewardSkuId === sku_id;
|
||||
});
|
||||
const value5 = undefined;
|
||||
object2.prices = (importDefault(4275) /* metro dependency 4275: getPricesFromServer */)(prices);
|
||||
object2.items = createCollectiblesItemsFromServerResponse(value2.items);
|
||||
object2.bundledProducts = value == bundled_products ? value5 : bundled_products.map(CollectiblesBundledProductRecord.fromServer);
|
||||
object2.variants = value == variants ? value5 : variants.map(CollectiblesVariantProductRecord.fromServer);
|
||||
object2.googleSkuIds = value2.google_sku_ids;
|
||||
object2.eligibleOffers = value2.eligible_offers;
|
||||
object2.baseVariantName = base_variant_name;
|
||||
object2.baseVariantSkuId = base_variant_sku_id;
|
||||
object2.variantLabel = variant_label;
|
||||
object2.variantValue = variant_value;
|
||||
object2.purchaseType = purchase_type;
|
||||
if (value == purchased_at) {
|
||||
r3 = purchased_at;
|
||||
} else {
|
||||
date = new global.Date(purchased_at);
|
||||
}
|
||||
object2.purchasedAt = r3;
|
||||
object2.expiresAt = value != expires_at ? new global.Date(expires_at) : value;
|
||||
value = Object.create(CollectiblesPurchaseRecord.prototype, {constructor: {value: CollectiblesPurchaseRecord}});
|
||||
const collectiblesPurchaseRecord = new CollectiblesPurchaseRecord(object2);
|
||||
return collectiblesPurchaseRecord instanceof Object ? collectiblesPurchaseRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* Metro module 5159; source: modules/collectibles/records/CollectiblesShopHomeRecord.tsx; dependencies: [6, 7, 5122, 5151, 5160, 5162, 5165, 5166, 5167, 5168, 5169, 5170, 5171, 5172, 5173, 5161, 2] */
|
||||
function _fun45496(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5337:6, offset: 0x011906f9, size: 412 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 collectiblesCategoryRecord = importDefault(5122) /* metro dependency 5122: CollectiblesCategoryRecord */;
|
||||
const env0_5 = (require(5151) /* metro dependency 5151: CollectiblesUserDiscountRecord */).CollectiblesUserDiscountRecord;
|
||||
const env0_6 = (require(5160) /* metro dependency 5160: CountdownTimerBlockRecord */).CountdownTimerBlockRecord;
|
||||
const env0_7 = (require(5162) /* metro dependency 5162: FeaturedBlockRecord */).FeaturedBlockRecord;
|
||||
const env0_8 = (require(5165) /* metro dependency 5165: FeedBlockRecord */).FeedBlockRecord;
|
||||
const env0_9 = (require(5166) /* metro dependency 5166: FramesBannerBlockRecord */).FramesBannerBlockRecord;
|
||||
const env0_10 = (require(5167) /* metro dependency 5167: FramesProductShelfBlockRecord */).FramesProductShelfBlockRecord;
|
||||
const env0_11 = (require(5168) /* metro dependency 5168: HeroBlockRecord */).HeroBlockRecord;
|
||||
const env0_12 = (require(5169) /* metro dependency 5169: ImmersiveBannerBlockRecord */).ImmersiveBannerBlockRecord;
|
||||
const env0_13 = (require(5170) /* metro dependency 5170: RewardHeroBlockRecord */).RewardHeroBlockRecord;
|
||||
const env0_14 = (require(5171) /* metro dependency 5171: ShelfBlockRecord */).ShelfBlockRecord;
|
||||
const env0_15 = (require(5172) /* metro dependency 5172: SocialLayerStorefrontPromotionalBannerBlockRecord */).SocialLayerStorefrontPromotionalBannerBlockRecord;
|
||||
const env0_16 = (require(5173) /* metro dependency 5173: WideBannerBlockRecord */).WideBannerBlockRecord;
|
||||
const value = _fun45497();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesShopHomeRecord.tsx');
|
||||
exports.CollectiblesShopHomeRecord = value;
|
||||
}
|
||||
|
||||
function _fun45497() { // fn#45497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5337:554, offset: 0x01190895, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CollectiblesShopHomeRecord, null, [{key: 'fromServer', value: value_45503}]);
|
||||
}
|
||||
|
||||
function CollectiblesShopHomeRecord({shop_blocks, categories, user_discounts}) { // fn#45498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5337:565, offset: 0x011908cf, size: 141 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_2;
|
||||
value = undefined;
|
||||
binding(this, CollectiblesShopHomeRecord);
|
||||
const value2 = shop_blocks.map(_fun45499);
|
||||
this.shopBlocks = value2.filter(function(a0) {
|
||||
return a0 !== undefined;
|
||||
});
|
||||
this.categories = categories.map(function(a0) {
|
||||
return CollectiblesCategoryRecord.fromServer(a0);
|
||||
});
|
||||
this.userDiscounts = user_discounts == null ? value : user_discounts.map(function(a0) {
|
||||
return CollectiblesUserDiscountRecord.fromServer(a0);
|
||||
});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun45499(a0) { // fn#45499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5337:680, offset: 0x0119095c, size: 592 bytes, params: 2, frame: 15
|
||||
const type = a0.type;
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const HERO = ShopBlockType.HERO;
|
||||
if (HERO === type) {
|
||||
return HeroBlockRecord.fromServer(a0);
|
||||
}
|
||||
const FEATURED = ShopBlockType.FEATURED;
|
||||
if (FEATURED === type) {
|
||||
return FeaturedBlockRecord.fromServer(a0);
|
||||
}
|
||||
const FEED = ShopBlockType.FEED;
|
||||
if (FEED === type) {
|
||||
return FeedBlockRecord.fromServer(a0);
|
||||
}
|
||||
const WIDE_BANNER = ShopBlockType.WIDE_BANNER;
|
||||
if (WIDE_BANNER === type) {
|
||||
return WideBannerBlockRecord.fromServer(a0);
|
||||
}
|
||||
const SHELF = ShopBlockType.SHELF;
|
||||
if (SHELF === type) {
|
||||
return ShelfBlockRecord.fromServer(a0);
|
||||
}
|
||||
const COUNTDOWN_TIMER = ShopBlockType.COUNTDOWN_TIMER;
|
||||
if (COUNTDOWN_TIMER === type) {
|
||||
return CountdownTimerBlockRecord.fromServer(a0);
|
||||
}
|
||||
const IMMERSIVE_BANNER = ShopBlockType.IMMERSIVE_BANNER;
|
||||
if (IMMERSIVE_BANNER === type) {
|
||||
return ImmersiveBannerBlockRecord.fromServer(a0);
|
||||
}
|
||||
const REWARD_HERO = ShopBlockType.REWARD_HERO;
|
||||
if (REWARD_HERO === type) {
|
||||
return RewardHeroBlockRecord.fromServer(a0);
|
||||
}
|
||||
const SOCIAL_LAYER_STOREFRONT_PROMOTIONAL_BANNER = ShopBlockType.SOCIAL_LAYER_STOREFRONT_PROMOTIONAL_BANNER;
|
||||
if (SOCIAL_LAYER_STOREFRONT_PROMOTIONAL_BANNER === type) {
|
||||
return SocialLayerStorefrontPromotionalBannerBlockRecord.fromServer(a0);
|
||||
}
|
||||
const FRAMES_BANNER = ShopBlockType.FRAMES_BANNER;
|
||||
if (FRAMES_BANNER === type) {
|
||||
return FramesBannerBlockRecord.fromServer(a0);
|
||||
}
|
||||
const FRAMES_PRODUCT_SHELF = ShopBlockType.FRAMES_PRODUCT_SHELF;
|
||||
if (FRAMES_PRODUCT_SHELF === type) {
|
||||
return FramesProductShelfBlockRecord.fromServer(a0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
/* Metro module 5131; source: modules/collectibles/records/CollectiblesStoreListingRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 5132, 673, 2] */
|
||||
function _fun45087(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:6, offset: 0x01180c56, size: 215 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const parseStylesResponse = function(a0) {
|
||||
var r0;
|
||||
var object;
|
||||
var property;
|
||||
var value = a0;
|
||||
if (value == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object = {};
|
||||
property = value.background_colors;
|
||||
object.backgroundColors = property.map(_fun45092);
|
||||
property = value.button_colors;
|
||||
object.buttonColors = property.map(_fun45093);
|
||||
property = value.confetti_colors;
|
||||
object.confettiColors = property.map(_fun45094);
|
||||
r0 = object;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
value = _fun45095(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesStoreListingRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45088() { // fn#45088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:158, offset: 0x01180d2d, 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_45088_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function parseStylesResponse(a0) { // fn#45091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:375, offset: 0x01180d8b, size: 99 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var object2;
|
||||
const value = a0;
|
||||
if (value == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.backgroundColors = value.background_colors.map(_fun45092);
|
||||
object2.buttonColors = value.button_colors.map(_fun45093);
|
||||
object2.confettiColors = value.confetti_colors.map(_fun45094);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun45095(a0) { // fn#45095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:605, offset: 0x01180e2c, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = CollectiblesStoreListingRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, null, [{key: 'fromServer', value: value_45097}]);
|
||||
}
|
||||
|
||||
function _fun45092(a0) { // fn#45092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:431, offset: 0x01180dee, size: 62 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(5132) /* metro dependency 5132 */;
|
||||
value = require(673) /* metro dependency 673: ColorUtils */;
|
||||
return defaultImport(value.int2hex(a0));
|
||||
}
|
||||
|
||||
function CollectiblesStoreListingRecord({storeListingId, skuId, name, summary, styles}) { // fn#45096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:617, offset: 0x01180e73, size: 190 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, CollectiblesStoreListingRecord);
|
||||
const value4 = env1_6(CollectiblesStoreListingRecord);
|
||||
value = env1_5(this, _isNativeReflectConstruct_45088() ? global.Reflect.construct(value4, [],
|
||||
env1_6(this).constructor) : value4.apply(this, undefined));
|
||||
value.storeListingId = storeListingId;
|
||||
value.skuId = skuId;
|
||||
value.name = name;
|
||||
value.summary = summary?.trim();
|
||||
value.styles = styles;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_45097(a0) { // fn#45097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:1121, offset: 0x01180f31, size: 138 bytes, params: 2, frame: 16
|
||||
const store_listing_id = a0.store_listing_id;
|
||||
const sku_id = a0.sku_id;
|
||||
const styles = a0.styles;
|
||||
const object3 = {'store_listing_id': 0, 'sku_id': 0, 'styles': 0};
|
||||
silentSetPrototypeOf(object3, null, undefined);
|
||||
let value = copyDataProperties({}, a0, object3, store_listing_id);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, value, object3);
|
||||
object4['storeListingId'] = store_listing_id;
|
||||
object4['skuId'] = sku_id;
|
||||
value = environment.__proto__;
|
||||
object4['styles'] = parseStylesResponse(styles);
|
||||
value = Object.create(CollectiblesStoreListingRecord.prototype,
|
||||
{constructor: {value: CollectiblesStoreListingRecord}});
|
||||
const collectiblesStoreListingRecord = new CollectiblesStoreListingRecord(object4);
|
||||
return collectiblesStoreListingRecord instanceof Object ? collectiblesStoreListingRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* Metro module 5149; source: modules/collectibles/records/CollectiblesStoreListingStylesRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 5132, 673, 2] */
|
||||
function _fun45449(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5327:6, offset: 0x0118f17a, size: 206 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun45453(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesStoreListingStylesRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45450() { // fn#45450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5327:148, offset: 0x0118f248, 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_45450_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun45453(a0) { // fn#45453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5327:347, offset: 0x0118f2a6, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = CollectiblesStoreListingStylesRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, null, [{key: 'fromServer', value: value_45455}]);
|
||||
}
|
||||
|
||||
function CollectiblesStoreListingStylesRecord({backgroundColors, buttonColors, confettiColors}) { // fn#45454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5327:359, offset: 0x0118f2ed, size: 147 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, CollectiblesStoreListingStylesRecord);
|
||||
const value3 = env1_6(CollectiblesStoreListingStylesRecord);
|
||||
value = env1_5(this, _isNativeReflectConstruct_45450() ? global.Reflect.construct(value3, [],
|
||||
env1_6(this).constructor) : value3.apply(this, undefined));
|
||||
value.backgroundColors = backgroundColors;
|
||||
value.buttonColors = buttonColors;
|
||||
value.confettiColors = confettiColors;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_45455({background_colors, button_colors, confetti_colors}) { // fn#45455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5327:865, offset: 0x0118f380, size: 117 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
object2.backgroundColors = background_colors.map(_fun45456);
|
||||
object2.buttonColors = button_colors.map(_fun45457);
|
||||
object2.confettiColors = confetti_colors.map(_fun45458);
|
||||
const value = Object.create(CollectiblesStoreListingStylesRecord.prototype,
|
||||
{constructor: {value: CollectiblesStoreListingStylesRecord}});
|
||||
const collectiblesStoreListingStylesRecord = new CollectiblesStoreListingStylesRecord(object2);
|
||||
return collectiblesStoreListingStylesRecord instanceof Object ? collectiblesStoreListingStylesRecord : value;
|
||||
}
|
||||
|
||||
function _fun45456(a0) { // fn#45456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5327:1004, offset: 0x0118f3f5, size: 62 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(5132) /* metro dependency 5132 */;
|
||||
value = require(673) /* metro dependency 673: ColorUtils */;
|
||||
return defaultImport(value.int2hex(a0));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 5151; source: modules/collectibles/records/CollectiblesUserDiscountRecord.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun45465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5329:6, offset: 0x0118f793, size: 124 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun45466();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesUserDiscountRecord.tsx');
|
||||
exports.CollectiblesUserDiscountRecord = value;
|
||||
}
|
||||
|
||||
function _fun45466() { // fn#45466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5329:118, offset: 0x0118f80f, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_1(CollectiblesUserDiscountRecord, null, [{key: 'fromServer', value: value_45468}]);
|
||||
}
|
||||
|
||||
function CollectiblesUserDiscountRecord(a0) { // fn#45467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5329:129, offset: 0x0118f849, size: 111 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var date;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_0;
|
||||
value = undefined;
|
||||
binding(this, CollectiblesUserDiscountRecord);
|
||||
this.discountId = a0.discount_id;
|
||||
this.amount = a0.amount;
|
||||
if (a0.expires_at != null) {
|
||||
date = new global.Date(a0.expires_at);
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
this.expiresAt = r1;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 5160; source: modules/collectibles/records/CountdownTimerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
|
||||
function _fun45504(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5338:6, offset: 0x01190bc3, size: 132 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 value = _fun45505();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CountdownTimerBlockRecord.tsx');
|
||||
exports.CountdownTimerBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45505() { // fn#45505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5338:118, offset: 0x01190c47, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(CountdownTimerBlockRecord, null, [{key: 'fromServer', value: value_45507}]);
|
||||
}
|
||||
|
||||
function CountdownTimerBlockRecord({title, body, banner_url, end_time, text_color}) { // fn#45506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5338:129, offset: 0x01190c81, size: 154 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, CountdownTimerBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const COUNTDOWN_TIMER = ShopBlockType.COUNTDOWN_TIMER;
|
||||
this.type = COUNTDOWN_TIMER;
|
||||
this.title = title;
|
||||
this.body = body;
|
||||
this.bannerUrl = banner_url;
|
||||
const Date = global.Date;
|
||||
this.endTime = new Date(end_time);
|
||||
this.textColor = text_color;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 5162; source: modules/collectibles/records/FeaturedBlockRecord.tsx; dependencies: [6, 7, 5163, 5161, 5164, 2] */
|
||||
function _fun45509(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5340:6, offset: 0x01190e23, size: 154 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 = (require(5163) /* metro dependency 5163: FeaturedCategorySubblockRecord */).FeaturedCategorySubblockRecord;
|
||||
const value = _fun45510();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/FeaturedBlockRecord.tsx');
|
||||
exports.FeaturedBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45510() { // fn#45510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5340:159, offset: 0x01190ebd, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(FeaturedBlockRecord, null, [{key: 'fromServer', value: value_45513}]);
|
||||
}
|
||||
|
||||
function FeaturedBlockRecord({subblocks}) { // fn#45511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5340:170, offset: 0x01190ef7, size: 97 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, FeaturedBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const FEATURED = ShopBlockType.FEATURED;
|
||||
this.type = FEATURED;
|
||||
this.subblocks = subblocks.map(function(a0) {
|
||||
var r0;
|
||||
var value = a0;
|
||||
if (value.type === require(dependencyMap[4]).FeaturedSubblockType.CATEGORY) {
|
||||
value = FeaturedCategorySubblockRecord.fromServer(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
value.type;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 5163; source: modules/collectibles/records/FeaturedCategorySubblockRecord.tsx; dependencies: [6, 7, 5164, 2] */
|
||||
function _fun45514(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5341:6, offset: 0x01190fa4, size: 132 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 value = _fun45515();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/FeaturedCategorySubblockRecord.tsx');
|
||||
exports.FeaturedCategorySubblockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45515() { // fn#45515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5341:118, offset: 0x01191028, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(FeaturedCategorySubblockRecord, null, [{key: 'fromServer', value: value_45517}]);
|
||||
}
|
||||
|
||||
function FeaturedCategorySubblockRecord(a0) { // fn#45516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5341:129, offset: 0x01191062, size: 198 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, FeaturedCategorySubblockRecord);
|
||||
const FeaturedSubblockType = (require(5164) /* metro dependency 5164: FeaturedSubblockType */).FeaturedSubblockType;
|
||||
const CATEGORY = FeaturedSubblockType.CATEGORY;
|
||||
this.type = CATEGORY;
|
||||
this.categoryStoreListingId = a0.category_store_listing_id;
|
||||
this.name = a0.name;
|
||||
const unpublished_at = a0.unpublished_at;
|
||||
value = null;
|
||||
this.unpublishedAt = value != unpublished_at ? new global.Date(a0.unpublished_at) : value;
|
||||
this.bodyText = a0.body_text;
|
||||
this.bannerTextColor = a0.banner_text_color;
|
||||
this.bannerUrl = a0.banner_url;
|
||||
this.assetUrl = a0.asset_url;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Metro module 5165; source: modules/collectibles/records/FeedBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
|
||||
function _fun45519(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5343:6, offset: 0x01191186, size: 132 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 value = _fun45520();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/FeedBlockRecord.tsx');
|
||||
exports.FeedBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45520() { // fn#45520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5343:118, offset: 0x0119120a, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(FeedBlockRecord, null, [{key: 'fromServer', value: value_45522}]);
|
||||
}
|
||||
|
||||
function FeedBlockRecord({ranked_sku_ids, sorted_sku_ids}) { // fn#45521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5343:129, offset: 0x01191244, size: 94 bytes, params: 2, frame: 15
|
||||
env1_2(this, FeedBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const FEED = ShopBlockType.FEED;
|
||||
this.type = FEED;
|
||||
this.rankedSkuIds = ranked_sku_ids;
|
||||
this.sortedSkuIds = sorted_sku_ids;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 5166; source: modules/collectibles/records/FramesBannerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
|
||||
function _fun45523(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5344:6, offset: 0x011912a2, size: 132 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 value = _fun45524();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/FramesBannerBlockRecord.tsx');
|
||||
exports.FramesBannerBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45524() { // fn#45524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5344:118, offset: 0x01191326, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(FramesBannerBlockRecord, null, [{key: 'fromServer', value: value_45526}]);
|
||||
}
|
||||
|
||||
function FramesBannerBlockRecord({title, body, mobile_background_image, mobile_foreground_image, desktop_background_image}) { // fn#45525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5344:129, offset: 0x01191360, size: 128 bytes, params: 2, frame: 15
|
||||
env1_2(this, FramesBannerBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const FRAMES_BANNER = ShopBlockType.FRAMES_BANNER;
|
||||
this.type = FRAMES_BANNER;
|
||||
this.title = title;
|
||||
this.body = body;
|
||||
this.mobileBackgroundImage = mobile_background_image;
|
||||
this.mobileForegroundImage = mobile_foreground_image;
|
||||
this.desktopBackgroundImage = desktop_background_image;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 5167; source: modules/collectibles/records/FramesProductShelfBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
|
||||
function _fun45527(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5345:6, offset: 0x011913e0, size: 132 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 value = _fun45528();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/FramesProductShelfBlockRecord.tsx');
|
||||
exports.FramesProductShelfBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45528() { // fn#45528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5345:118, offset: 0x01191464, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(FramesProductShelfBlockRecord, null, [{key: 'fromServer', value: value_45530}]);
|
||||
}
|
||||
|
||||
function FramesProductShelfBlockRecord(a0) { // fn#45529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5345:129, offset: 0x0119149e, size: 181 bytes, params: 2, frame: 15
|
||||
env1_2(this, FramesProductShelfBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const FRAMES_PRODUCT_SHELF = ShopBlockType.FRAMES_PRODUCT_SHELF;
|
||||
this.type = FRAMES_PRODUCT_SHELF;
|
||||
this.title = a0.title;
|
||||
this.categorySkuId = a0.category_sku_id;
|
||||
this.categoryStoreListingId = a0.category_store_listing_id;
|
||||
this.rankedSkuIds = a0.ranked_sku_ids ?? [];
|
||||
this.desktopBackgroundImage = a0.desktop_background_image ?? a0.background_image;
|
||||
this.mobileBackgroundImage = a0.mobile_background_image ?? a0.background_image;
|
||||
this.buttonText = a0.button_text;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 5168; source: modules/collectibles/records/HeroBlockRecord.tsx; dependencies: [6, 7, 5161, 5134, 2] */
|
||||
function _fun45531(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5346:6, offset: 0x01191553, size: 132 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 value = _fun45532();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/HeroBlockRecord.tsx');
|
||||
exports.HeroBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45532() { // fn#45532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5346:118, offset: 0x011915d7, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(HeroBlockRecord, null, [{key: 'fromServer', value: value_45534}]);
|
||||
}
|
||||
|
||||
function HeroBlockRecord(a0) { // fn#45533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5346:129, offset: 0x01191611, size: 398 bytes, params: 2, frame: 18
|
||||
var r4;
|
||||
var date;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, HeroBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const HERO = ShopBlockType.HERO;
|
||||
this.type = HERO;
|
||||
this.categorySkuId = a0.category_sku_id;
|
||||
this.name = a0.name;
|
||||
const summary = a0.summary;
|
||||
this.summary = summary.trim();
|
||||
this.categoryStoreListingId = a0.category_store_listing_id;
|
||||
this.title = a0.title;
|
||||
this.rankedSkuIds = a0.ranked_sku_ids;
|
||||
const unpublished_at = a0.unpublished_at;
|
||||
const value3 = null;
|
||||
if (value3 != unpublished_at) {
|
||||
date = new global.Date(a0.unpublished_at);
|
||||
} else {
|
||||
r4 = value3;
|
||||
}
|
||||
this.unpublishedAt = r4;
|
||||
this.bannerTextColor = a0.banner_text_color;
|
||||
this.mobileTitle = a0.mobile_title;
|
||||
this.mobileSummary = a0.mobile_summary;
|
||||
this.mobileProductsTitle = a0.mobile_products_title;
|
||||
this.heroBannerUrl = a0.hero_banner_url;
|
||||
this.heroBannerAnimatedUrl = a0.hero_banner_animated_url;
|
||||
this.heroRiveUrl = a0.hero_rive_url;
|
||||
this.heroLogoUrl = a0.hero_logo_url;
|
||||
this.mobileHeroUrl = a0.mobile_hero_url;
|
||||
this.mobileHeroAnimatedUrl = a0.mobile_hero_animated_url;
|
||||
value = require(5134) /* metro dependency 5134: CollectiblesUtils */;
|
||||
let getAssetDisplayConfig = value.getAssetDisplayConfig;
|
||||
this.bannerDisplayConfig = Reflect.apply(getAssetDisplayConfig, value, [a0.banner_display_config]);
|
||||
value = require(5134) /* metro dependency 5134: CollectiblesUtils */;
|
||||
getAssetDisplayConfig = value.getAssetDisplayConfig;
|
||||
this.logoDisplayConfig = Reflect.apply(getAssetDisplayConfig, value, [a0.logo_display_config]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 5169; source: modules/collectibles/records/ImmersiveBannerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
|
||||
function _fun45535(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5347:6, offset: 0x0119179f, size: 132 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 value = _fun45536();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/ImmersiveBannerBlockRecord.tsx');
|
||||
exports.ImmersiveBannerBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45536() { // fn#45536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5347:118, offset: 0x01191823, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(ImmersiveBannerBlockRecord, null, [{key: 'fromServer', value: value_45538}]);
|
||||
}
|
||||
|
||||
function ImmersiveBannerBlockRecord(a0) { // fn#45537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5347:129, offset: 0x0119185d, size: 201 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_2;
|
||||
const value3 = undefined;
|
||||
binding(this, ImmersiveBannerBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const IMMERSIVE_BANNER = ShopBlockType.IMMERSIVE_BANNER;
|
||||
this.type = IMMERSIVE_BANNER;
|
||||
this.title = a0.title;
|
||||
this.body = a0.body;
|
||||
this.helpCenterUrl = a0.help_center_url;
|
||||
this.textColor = a0.text_color;
|
||||
this.endTime = a0.end_time != null ? new global.Date(a0.end_time) : value3;
|
||||
this.bannerUrl = a0.banner_url;
|
||||
this.bannerAnimatedUrl = a0.banner_animated_url;
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 1902; source: modules/collectibles/records/NameplateRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */
|
||||
function _fun20864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2029:6, offset: 0x00ede0e0, size: 233 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(102) /* metro dependency 102 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1903) /* metro dependency 1903: BaseCollectibesItemRecord */;
|
||||
value = _fun20868(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/NameplateRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.isNameplateRecord = isNameplateRecord;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_20865() { // fn#20865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2029:159, offset: 0x00ede1c9, 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_20865_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun20868(a0) { // fn#20868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2029:358, offset: 0x00ede227, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = NameplateRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure, null, [{key: 'fromServer', value: value_20870}]);
|
||||
}
|
||||
|
||||
function NameplateRecord(a0) { // fn#20869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2029:370, offset: 0x00ede26e, size: 188 bytes, params: 2, frame: 21
|
||||
env1_2(this, NameplateRecord);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_5(NameplateRecord);
|
||||
const value6 = env1_4(this, _isNativeReflectConstruct_20865() ? global.Reflect.construct(value3, items2,
|
||||
env1_5(this).constructor) : value3.apply(this, items2));
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
const NAMEPLATE = CollectiblesItemType.NAMEPLATE;
|
||||
value6.type = NAMEPLATE;
|
||||
value6.asset = a0.asset;
|
||||
value6.label = a0.label;
|
||||
value6.palette = a0.palette;
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_20870(a0) { // fn#20870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2029:772, offset: 0x00ede32a, size: 125 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_6;
|
||||
value = env1_5(NameplateRecord);
|
||||
value = binding(value, 'fromServer', this);
|
||||
copyDataProperties(object2, (typeof value !== 'function' ? value : _fun20871)([a0]), undefined);
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
value = Object.create(NameplateRecord.prototype, {constructor: {value: NameplateRecord}});
|
||||
const nameplateRecord = new NameplateRecord(object2);
|
||||
return nameplateRecord instanceof Object ? nameplateRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* Metro module 5127; source: modules/collectibles/records/ProfileEffectRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */
|
||||
function _fun45059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5305:6, offset: 0x011801f6, size: 271 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(102) /* metro dependency 102 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1903) /* metro dependency 1903: BaseCollectibesItemRecord */;
|
||||
value = _fun45063(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/ProfileEffectRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.RestartMethod = {FromLoop: 'fromLoop', FromStart: 'fromStart'};
|
||||
exports.isProfileEffectRecord = isProfileEffectRecord;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45060() { // fn#45060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5305:169, offset: 0x01180305, 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_45060_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun45063(a0) { // fn#45063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5305:442, offset: 0x01180363, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = ProfileEffectRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure, null, [{key: 'fromServer', value: value_45065}]);
|
||||
}
|
||||
|
||||
function ProfileEffectRecord(a0) { // fn#45064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5305:454, offset: 0x011803aa, size: 246 bytes, params: 2, frame: 21
|
||||
env1_2(this, ProfileEffectRecord);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_5(ProfileEffectRecord);
|
||||
const value6 = env1_4(this, _isNativeReflectConstruct_45060() ? global.Reflect.construct(value3, items2,
|
||||
env1_5(this).constructor) : value3.apply(this, items2));
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
const PROFILE_EFFECT = CollectiblesItemType.PROFILE_EFFECT;
|
||||
value6.type = PROFILE_EFFECT;
|
||||
value6.title = a0.title;
|
||||
value6.description = a0.description;
|
||||
value6.accessibilityLabel = a0.accessibilityLabel;
|
||||
value6.reducedMotionSrc = a0.reducedMotionSrc;
|
||||
value6.thumbnailPreviewSrc = a0.thumbnailPreviewSrc;
|
||||
value6.effects = a0.effects;
|
||||
value6.animationType = a0.animationType;
|
||||
value6.staticFrameSrc = a0.staticFrameSrc;
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_45065(a0) { // fn#45065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5305:1083, offset: 0x011804a0, size: 125 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_6;
|
||||
value = env1_5(ProfileEffectRecord);
|
||||
value = binding(value, 'fromServer', this);
|
||||
copyDataProperties(object2, (typeof value !== 'function' ? value : _fun45066)([a0]), undefined);
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
value = Object.create(ProfileEffectRecord.prototype, {constructor: {value: ProfileEffectRecord}});
|
||||
const profileEffectRecord = new ProfileEffectRecord(object2);
|
||||
return profileEffectRecord instanceof Object ? profileEffectRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
/* Metro module 5128; source: modules/collectibles/records/ProfileFrameRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 5129, 2] */
|
||||
function _fun45068(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5306:6, offset: 0x0118051d, size: 233 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(102) /* metro dependency 102 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1903) /* metro dependency 1903: BaseCollectibesItemRecord */;
|
||||
value = _fun45072(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/ProfileFrameRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.isProfileFrameRecord = isProfileFrameRecord;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45069() { // fn#45069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5306:159, offset: 0x01180606, 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_45069_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun45072(a0) { // fn#45072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5306:358, offset: 0x01180664, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = ProfileFrameRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure, null, [{key: 'fromServer', value: value_45074}]);
|
||||
}
|
||||
|
||||
function ProfileFrameRecord(a0) { // fn#45073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5306:370, offset: 0x011806ab, size: 370 bytes, params: 2, frame: 21
|
||||
const DefaultProfileFrameDimensions = (require(5129) /* metro dependency 5129: DefaultProfileFrameDimensions */).DefaultProfileFrameDimensions;
|
||||
env1_2(this, ProfileFrameRecord);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_5(ProfileFrameRecord);
|
||||
const value6 = env1_4(this, _isNativeReflectConstruct_45069() ? global.Reflect.construct(value3, items2,
|
||||
env1_5(this).constructor) : value3.apply(this, items2));
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
const PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
|
||||
value6.type = PROFILE_FRAME;
|
||||
value6.label = a0.label;
|
||||
value6.layers = a0.layers;
|
||||
value6.innerWidth = a0.innerWidth ?? DefaultProfileFrameDimensions.INNER_WIDTH;
|
||||
value6.overflowTop = a0.overflowTop ?? DefaultProfileFrameDimensions.OVERFLOW_TOP;
|
||||
value6.overflowBottom = a0.overflowBottom ?? DefaultProfileFrameDimensions.OVERFLOW_BOTTOM;
|
||||
value6.overflowHorizontal = a0.overflowHorizontal ?? DefaultProfileFrameDimensions.OVERFLOW_HORIZONTAL;
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_45074(a0) { // fn#45074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5306:1176, offset: 0x0118081d, size: 220 bytes, params: 2, frame: 23
|
||||
const inner_width = a0.inner_width;
|
||||
const overflow_top = a0.overflow_top;
|
||||
const overflow_bottom = a0.overflow_bottom;
|
||||
const overflow_horizontal = a0.overflow_horizontal;
|
||||
const object3 = {'inner_width': 0, 'overflow_top': 0, 'overflow_bottom': 0, 'overflow_horizontal': 0};
|
||||
silentSetPrototypeOf(object3, null, undefined);
|
||||
let value = copyDataProperties({}, a0, object3, this);
|
||||
const object4 = {};
|
||||
const value5 = env1_6(env1_5(ProfileFrameRecord), 'fromServer', this);
|
||||
copyDataProperties(object4, (typeof value5 !== 'function' ? value5 : _fun45075)([value]), object3);
|
||||
copyDataProperties(object4, value, object3);
|
||||
object4['innerWidth'] = inner_width;
|
||||
object4['overflowTop'] = overflow_top;
|
||||
object4['overflowBottom'] = overflow_bottom;
|
||||
object4['overflowHorizontal'] = overflow_horizontal;
|
||||
value = Object.create(ProfileFrameRecord.prototype, {constructor: {value: ProfileFrameRecord}});
|
||||
const profileFrameRecord = new ProfileFrameRecord(object4);
|
||||
return profileFrameRecord instanceof Object ? profileFrameRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/* Metro module 5170; source: modules/collectibles/records/RewardHeroBlockRecord.tsx; dependencies: [6, 7, 5161, 5134, 2] */
|
||||
function _fun45539(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5348:6, offset: 0x01191926, size: 132 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 value = _fun45540();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/RewardHeroBlockRecord.tsx');
|
||||
exports.RewardHeroBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45540() { // fn#45540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5348:118, offset: 0x011919aa, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(RewardHeroBlockRecord, null, [{key: 'fromServer', value: value_45542}]);
|
||||
}
|
||||
|
||||
function RewardHeroBlockRecord(a0) { // fn#45541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5348:129, offset: 0x011919e4, size: 410 bytes, params: 2, frame: 18
|
||||
var r4;
|
||||
var date;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, RewardHeroBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const REWARD_HERO = ShopBlockType.REWARD_HERO;
|
||||
this.type = REWARD_HERO;
|
||||
this.categorySkuId = a0.category_sku_id;
|
||||
this.name = a0.name;
|
||||
const summary = a0.summary;
|
||||
this.summary = summary.trim();
|
||||
this.categoryStoreListingId = a0.category_store_listing_id;
|
||||
this.title = a0.title;
|
||||
this.rankedSkuIds = a0.ranked_sku_ids;
|
||||
const unpublished_at = a0.unpublished_at;
|
||||
const value3 = null;
|
||||
if (value3 != unpublished_at) {
|
||||
date = new global.Date(a0.unpublished_at);
|
||||
} else {
|
||||
r4 = value3;
|
||||
}
|
||||
this.unpublishedAt = r4;
|
||||
this.bannerTextColor = a0.banner_text_color;
|
||||
this.mobileTitle = a0.mobile_title;
|
||||
this.mobileSummary = a0.mobile_summary;
|
||||
this.mobileProductsTitle = a0.mobile_products_title;
|
||||
this.rewardSkuId = a0.reward_sku_id;
|
||||
this.heroBannerUrl = a0.hero_banner_url;
|
||||
this.heroBannerAnimatedUrl = a0.hero_banner_animated_url;
|
||||
this.heroRiveUrl = a0.hero_rive_url;
|
||||
this.heroLogoUrl = a0.hero_logo_url;
|
||||
this.mobileHeroUrl = a0.mobile_hero_url;
|
||||
this.mobileHeroAnimatedUrl = a0.mobile_hero_animated_url;
|
||||
value = require(5134) /* metro dependency 5134: CollectiblesUtils */;
|
||||
let getAssetDisplayConfig = value.getAssetDisplayConfig;
|
||||
this.logoDisplayConfig = Reflect.apply(getAssetDisplayConfig, value, [a0.logo_display_config]);
|
||||
value = require(5134) /* metro dependency 5134: CollectiblesUtils */;
|
||||
getAssetDisplayConfig = value.getAssetDisplayConfig;
|
||||
this.bannerDisplayConfig = Reflect.apply(getAssetDisplayConfig, value, [a0.banner_display_config]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 5171; source: modules/collectibles/records/ShelfBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
|
||||
function _fun45543(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5349:6, offset: 0x01191b7e, size: 132 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 value = _fun45544();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/ShelfBlockRecord.tsx');
|
||||
exports.ShelfBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45544() { // fn#45544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5349:118, offset: 0x01191c02, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(ShelfBlockRecord, null, [{key: 'fromServer', value: value_45546}]);
|
||||
}
|
||||
|
||||
function ShelfBlockRecord({name, ranked_sku_ids, category_sku_id, show_button, button_text, title_color, desktop_background_image, mobile_background_image}) { // fn#45545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5349:129, offset: 0x01191c3c, size: 235 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, ShelfBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const SHELF = ShopBlockType.SHELF;
|
||||
this.type = SHELF;
|
||||
this.name = name;
|
||||
this.rankedSkuIds = ranked_sku_ids;
|
||||
value = null;
|
||||
this.categorySkuId = value != category_sku_id ? category_sku_id : value;
|
||||
this.showButton = show_button !== false;
|
||||
this.buttonText = value != button_text ? button_text : value;
|
||||
this.titleColor = value != title_color ? title_color : value;
|
||||
this.desktopBackgroundImage = value != desktop_background_image ? desktop_background_image : value;
|
||||
this.mobileBackgroundImage = value != mobile_background_image ? mobile_background_image : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 5135; source: modules/collectibles/records/ShopAssetConfigRecord.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun45252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5313:6, offset: 0x01185b7f, size: 124 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun45253();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/ShopAssetConfigRecord.tsx');
|
||||
exports.AssetDisplayConfigRecord = value;
|
||||
}
|
||||
|
||||
function _fun45253() { // fn#45253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5313:118, offset: 0x01185bfb, size: 110 bytes, params: 1, frame: 16
|
||||
return env0_1(AssetDisplayConfigRecord, [{key: 'toDesktopStyles', value: function() {
|
||||
var object = {};
|
||||
if (this.desktopMaxHeight != null) {
|
||||
object.maxHeight = this.desktopMaxHeight;
|
||||
}
|
||||
if (this.backgroundStyle != null) {
|
||||
object.background = this.backgroundStyle;
|
||||
}
|
||||
var property = global.Object;
|
||||
property = property.keys(object).length;
|
||||
return property > 0 ? object : undefined;
|
||||
}}, {key: 'toMobileStyles', value: function() {
|
||||
var object = {};
|
||||
if (this.mobileMaxHeight != null) {
|
||||
object.maxHeight = this.mobileMaxHeight;
|
||||
}
|
||||
if (this.backgroundStyle != null) {
|
||||
object.background = this.backgroundStyle;
|
||||
}
|
||||
var property = global.Object;
|
||||
property = property.keys(object).length;
|
||||
return property > 0 ? object : undefined;
|
||||
}}], [{key: 'fromServer', value: value_45257}]);
|
||||
}
|
||||
|
||||
function AssetDisplayConfigRecord({desktop_max_height, mobile_max_height, responsive, background_style}) { // fn#45254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5313:129, offset: 0x01185c69, size: 84 bytes, params: 2, frame: 14
|
||||
env1_0(this, AssetDisplayConfigRecord);
|
||||
this.desktopMaxHeight = desktop_max_height;
|
||||
this.mobileMaxHeight = mobile_max_height;
|
||||
this.responsive = responsive;
|
||||
this.backgroundStyle = background_style;
|
||||
}
|
||||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
/* Metro module 5172; source: modules/collectibles/records/SocialLayerStorefrontPromotionalBannerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
|
||||
function _fun45547(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5350:6, offset: 0x01191d27, size: 132 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 value = _fun45548();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/SocialLayerStorefrontPromotionalBannerBlockRecord.tsx');
|
||||
exports.SocialLayerStorefrontPromotionalBannerBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45548() { // fn#45548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5350:118, offset: 0x01191dab, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(SocialLayerStorefrontPromotionalBannerBlockRecord, null, [{key: 'fromServer', value: value_45550}]);
|
||||
}
|
||||
|
||||
function SocialLayerStorefrontPromotionalBannerBlockRecord({application_id, header_text, gradient_colors, gradient_angle, sku_ids, end_time, cta_type, logo_url}) { // fn#45549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5350:129, offset: 0x01191de5, size: 168 bytes, params: 2, frame: 15
|
||||
env1_2(this, SocialLayerStorefrontPromotionalBannerBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const SOCIAL_LAYER_STOREFRONT_PROMOTIONAL_BANNER = ShopBlockType.SOCIAL_LAYER_STOREFRONT_PROMOTIONAL_BANNER;
|
||||
this.type = SOCIAL_LAYER_STOREFRONT_PROMOTIONAL_BANNER;
|
||||
this.applicationId = application_id;
|
||||
this.headerText = header_text;
|
||||
this.gradientColors = gradient_colors;
|
||||
this.gradientAngle = gradient_angle;
|
||||
this.skuIds = sku_ids;
|
||||
this.endTime = end_time;
|
||||
this.ctaType = cta_type;
|
||||
this.logoUrl = logo_url;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Metro module 5130; source: modules/collectibles/records/UnknownCollectiblesItemRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */
|
||||
function _fun45078(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5308:6, offset: 0x01180993, size: 233 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(102) /* metro dependency 102 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1903) /* metro dependency 1903: BaseCollectibesItemRecord */;
|
||||
value = _fun45082(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/UnknownCollectiblesItemRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.isUnknownCollectiblesItemRecord = isUnknownCollectiblesItemRecord;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45079() { // fn#45079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5308:159, offset: 0x01180a7c, 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_45079_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun45082(a0) { // fn#45082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5308:358, offset: 0x01180ada, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = UnknownCollectiblesItemRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure, null, [{key: 'fromServer', value: value_45084}]);
|
||||
}
|
||||
|
||||
function UnknownCollectiblesItemRecord(a0) { // fn#45083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5308:370, offset: 0x01180b21, size: 153 bytes, params: 2, frame: 20
|
||||
env1_2(this, UnknownCollectiblesItemRecord);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_5(UnknownCollectiblesItemRecord);
|
||||
const value6 = env1_4(this, _isNativeReflectConstruct_45079() ? global.Reflect.construct(value3, items2,
|
||||
env1_5(this).constructor) : value3.apply(this, items2));
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
const NONE = CollectiblesItemType.NONE;
|
||||
value6.type = NONE;
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_45084(a0) { // fn#45084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5308:785, offset: 0x01180bba, size: 156 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const value3 = env1_6(env1_5(UnknownCollectiblesItemRecord), 'fromServer', this);
|
||||
copyDataProperties(object2, (typeof value3 !== 'function' ? value3 : _fun45085)([a0]), undefined);
|
||||
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
|
||||
const NONE = CollectiblesItemType.NONE;
|
||||
object2['type'] = NONE;
|
||||
value = Object.create(UnknownCollectiblesItemRecord.prototype,
|
||||
{constructor: {value: UnknownCollectiblesItemRecord}});
|
||||
const unknownCollectiblesItemRecord = new UnknownCollectiblesItemRecord(object2);
|
||||
return unknownCollectiblesItemRecord instanceof Object ? unknownCollectiblesItemRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 5173; source: modules/collectibles/records/WideBannerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
|
||||
function _fun45551(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5351:6, offset: 0x01191e8d, size: 132 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 value = _fun45552();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/WideBannerBlockRecord.tsx');
|
||||
exports.WideBannerBlockRecord = value;
|
||||
}
|
||||
|
||||
function _fun45552() { // fn#45552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5351:118, offset: 0x01191f11, size: 58 bytes, params: 1, frame: 15
|
||||
return env0_3(WideBannerBlockRecord, null, [{key: 'fromServer', value: value_45554}]);
|
||||
}
|
||||
|
||||
function WideBannerBlockRecord({title, body, category_store_listing_id, banner_text_color, banner_body_text_color, disable_cta, wide_banner_url, wide_banner_animated_url, logo_url, cta_text, cta_route, is_dismissible, dismissible_content_version}) { // fn#45553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5351:129, offset: 0x01191f4b, size: 246 bytes, params: 2, frame: 15
|
||||
env1_2(this, WideBannerBlockRecord);
|
||||
const ShopBlockType = (require(5161) /* metro dependency 5161: ShopBlockType */).ShopBlockType;
|
||||
const WIDE_BANNER = ShopBlockType.WIDE_BANNER;
|
||||
this.type = WIDE_BANNER;
|
||||
this.title = title;
|
||||
this.body = body;
|
||||
this.categoryStoreListingId = category_store_listing_id;
|
||||
this.bannerTextColor = banner_text_color;
|
||||
this.bannerBodyTextColor = banner_body_text_color;
|
||||
this.disableCta = disable_cta;
|
||||
this.bannerURL = wide_banner_url;
|
||||
this.bannerAnimatedURL = wide_banner_animated_url;
|
||||
this.logoURL = logo_url;
|
||||
this.ctaText = cta_text;
|
||||
this.ctaRoute = cta_route;
|
||||
this.isDismissible = is_dismissible;
|
||||
this.dismissibleContentVersion = dismissible_content_version;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user