This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,82 +1,96 @@
/* Metro module 5126; source: modules/collectibles/records/AvatarDecorationRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import BaseCollectibesItemRecord from './BaseCollectibesItemRecord.tsx'; /* Metro dependency 1903 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
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 */;
let value = BaseCollectibesItemRecord;
value = _fun45054(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/AvatarDecorationRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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 _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 AvatarDecorationRecord2 = AvatarDecorationRecord;
Inherits(AvatarDecorationRecord2, a0);
return CreateClass(AvatarDecorationRecord2, 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 = (CollectiblesItemTypeModule).CollectiblesItemType;
const AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
value6.type = AVATAR_DECORATION;
value6.asset = a0.asset;
value6.label = a0.label;
return value6;
}
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 object = {};
let value = environment.__proto__;
const binding = env1_6;
value = env1_5(AvatarDecorationRecord);
value = binding(value, 'fromServer', this);
copyDataProperties(object, (typeof value !== 'function' ? value : _fun45057)([a0]), undefined);
copyDataProperties(object, a0, undefined);
value = Object.create(AvatarDecorationRecord.prototype, {constructor: {value: AvatarDecorationRecord}});
const avatarDecorationRecord = new AvatarDecorationRecord(object);
return avatarDecorationRecord instanceof Object ? avatarDecorationRecord : value;
function _fun45057(a0) { // fn#45057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5304:953, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(env0_0, a0);
}
}
}
function isAvatarDecorationRecord(a0) { // fn#45058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5304:1160, offset: 0x00ede3a7, size: 16 bytes, params: 2, frame: 2
return a0 instanceof env0_8;
}
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;
}
global.__d(_fun45050, 5126, [6, 7, 15, 17, 102, 18, 1903, 1904,
2]) /* metro module 5126, dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */;
@@ -1,72 +1,77 @@
/* Metro module 1903; source: modules/collectibles/records/BaseCollectibesItemRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Record from '../../../lib/Record.tsx'; /* Metro dependency 1886 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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 */;
let value = Record;
value = _fun20877(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/BaseCollectibesItemRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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 _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 BaseCollectiblesItemRecord2 = BaseCollectiblesItemRecord;
Inherits(BaseCollectiblesItemRecord2, a0);
return CreateClass(BaseCollectiblesItemRecord2, 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;
}
}
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;
}
global.__d(_fun20873, 1903, [6, 7, 15, 17, 18, 1886,
2]) /* metro module 1903, dependencies: [6, 7, 15, 17, 18, 1886, 2] */;
@@ -1,40 +1,43 @@
/* Metro module 5124; source: modules/collectibles/records/CollectiblesBundledProductRecord.tsx; dependencies: [6, 7, 4275, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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 CreateClass(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 object = {};
let value = environment.__proto__;
object.prices = (importDefault(4275) /* metro dependency 4275: getPricesFromServer */)(prices);
object.type = type;
object.premiumType = premium_type;
object.name = name;
object.skuId = sku_id;
object.summary = summary;
value = Object.create(CollectiblesBundledProductRecord.prototype,
{constructor: {value: CollectiblesBundledProductRecord}});
const collectiblesBundledProductRecord = new CollectiblesBundledProductRecord(object);
return collectiblesBundledProductRecord instanceof Object ? collectiblesBundledProductRecord : 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;
}
global.__d(_fun45039, 5124, [6, 7, 4275, 2]) /* metro module 5124, dependencies: [6, 7, 4275, 2] */;
@@ -1,36 +1,47 @@
/* Metro module 5147; source: modules/collectibles/records/CollectiblesCategoriesRecord.tsx; dependencies: [6, 7, 5148, 5122, 5151, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import CollectiblesCategoryRecord from './CollectiblesCategoryRecord.tsx'; /* Metro dependency 5122 */
import StorefrontCollectionRecord from '../../storefront/records/StorefrontCollectionRecord.tsx'; /* Metro dependency 5148 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesUserDiscountRecordModule from './CollectiblesUserDiscountRecord.tsx'; /* Metro dependency 5151 */
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');
(FileImportTrackerModule).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 CreateClass(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;
}
function value_45444(a0) { // fn#45444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5325:535, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(CollectiblesCategoriesRecord.prototype,
{constructor: {value: CollectiblesCategoriesRecord}});
const collectiblesCategoriesRecord = new CollectiblesCategoriesRecord(a0);
return collectiblesCategoriesRecord instanceof Object ? 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;
}
global.__d(_fun45438, 5147, [6, 7, 5148, 5122, 5151,
2]) /* metro module 5147, dependencies: [6, 7, 5148, 5122, 5151, 2] */;
@@ -1,200 +1,210 @@
/* Metro module 5122; source: modules/collectibles/records/CollectiblesCategoryRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 5123, 5131, 1904, 5133, 5134, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import CollectiblesProductRecord from './CollectiblesProductRecord.tsx'; /* Metro dependency 5123 */
import CollectiblesStoreListingRecord from './CollectiblesStoreListingRecord.tsx'; /* Metro dependency 5131 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
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 */;
let value = CollectiblesStoreListingRecord;
value = _fun45008(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesCategoryRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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 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 = (CollectiblesItemTypeModule).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);
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 CollectiblesCategoryRecord2 = CollectiblesCategoryRecord;
Inherits(CollectiblesCategoryRecord2, a0);
return CreateClass(CollectiblesCategoryRecord2, 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 _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);
}
}
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);
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 object = {'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(object, value, undefined);
let value2 = copyDataProperties({}, a0, object, this);
const object2 = {};
const value6 = env1_6(env1_5(CollectiblesCategoryRecord), 'fromServer', this);
copyDataProperties(object2, (typeof value6 !== 'function' ? value6 : _fun45012)([value2]), object);
object2['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;
}, []);
object2['unpublishedAt'] = value != unpublished_at ? new global.Date(unpublished_at) : value;
object2['heroRanking'] = hero_ranking;
object2['heroBannerUrl'] = hero_banner_url;
object2['heroBannerAnimatedUrl'] = hero_banner_animated_url;
object2['heroRiveUrl'] = hero_rive_url;
object2['heroLogoUrl'] = hero_logo_url;
object2['catalogBannerUrl'] = catalog_banner_url;
object2['catalogBannerAnimatedUrl'] = catalog_banner_animated_url;
object2['catalogBannerRiveUrl'] = catalog_banner_rive_url;
object2['featuredBlockUrl'] = featured_block_url;
object2['logoUrl'] = logo_url;
object2['pdpBgUrl'] = pdp_bg_url;
object2['mobileBannerUrl'] = mobile_banner_url;
object2['mobileBgUrl'] = mobile_bg_url;
value = require(5134) /* metro dependency 5134: CollectiblesUtils */;
value = value.getAssetDisplayConfig(hero_logo_display_config);
object2['heroLogoDisplayConfig'] = value;
value = require(5134) /* metro dependency 5134: CollectiblesUtils */;
value = value.getAssetDisplayConfig(hero_banner_display_config);
object2['heroBannerDisplayConfig'] = value;
value = Object.create(CollectiblesCategoryRecord.prototype, {constructor: {value: CollectiblesCategoryRecord}});
const collectiblesCategoryRecord = new CollectiblesCategoryRecord(object2);
return collectiblesCategoryRecord instanceof Object ? collectiblesCategoryRecord : value;
function _fun45012(a0) { // fn#45012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5300:2102, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(env0_0, a0);
}
}
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 object = {};
object.storeListingId = a0.id;
object.skuId = a0.id;
object.name = a0.name;
object.summary = a0.description;
object.unpublishedAt = a0.unpublishedAt;
const styles = a0.styles;
object.styles = styles;
object.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;
}, []);
object.heroRanking = a0.heroRanking;
object.heroBannerUrl = a0.heroBannerUrl;
object.heroBannerAnimatedUrl = a0.heroBannerAnimatedUrl;
object.heroRiveUrl = a0.heroRiveUrl;
object.heroLogoUrl = a0.heroLogoUrl;
object.catalogBannerUrl = a0.catalogBannerUrl;
object.catalogBannerAnimatedUrl = a0.catalogBannerAnimatedUrl;
object.catalogBannerRiveUrl = a0.catalogBannerRiveUrl;
object.featuredBlockUrl = a0.featuredBlockUrl;
object.logoUrl = a0.logoUrl;
object.pdpBgUrl = a0.pdpBgUrl;
object.mobileBannerUrl = a0.mobileBannerUrl;
object.mobileBgUrl = a0.mobileBgUrl;
object.heroLogoDisplayConfig = a0.heroLogoDisplayConfig;
object.heroBannerDisplayConfig = a0.heroDisplayConfig;
const value = Object.create(CollectiblesCategoryRecord.prototype,
{constructor: {value: CollectiblesCategoryRecord}});
const collectiblesCategoryRecord = new CollectiblesCategoryRecord(object);
return collectiblesCategoryRecord instanceof Object ? collectiblesCategoryRecord : value;
}
}
}
global.__d(_fun45003, 5122, [6, 7, 15, 17, 102, 18, 5123, 5131, 1904, 5133, 5134,
2]) /* metro module 5122, dependencies: [6, 7, 15, 17, 102, 18, 5123, 5131, 1904, 5133, 5134, 2] */;
@@ -1,4 +1,13 @@
/* Metro module 5125; source: modules/collectibles/records/CollectiblesItemRecord.tsx; dependencies: [5126, 1902, 5127, 5128, 5130, 661, 1904, 2] */
import NameplateRecord from './NameplateRecord.tsx'; /* Metro dependency 1902 */
import AvatarDecorationRecord from './AvatarDecorationRecord.tsx'; /* Metro dependency 5126 */
import ProfileEffectRecord from './ProfileEffectRecord.tsx'; /* Metro dependency 5127 */
import ProfileFrameRecord from './ProfileFrameRecord.tsx'; /* Metro dependency 5128 */
import UnknownCollectiblesItemRecord from './UnknownCollectiblesItemRecord.tsx'; /* Metro dependency 5130 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
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) {
@@ -46,214 +55,237 @@ function _fun45043(global, require, importDefault, importAll, module, exports, d
};
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');
(FileImportTrackerModule).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)) {
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);
}
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') {
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);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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 {
r6 = value;
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;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun45045;
}
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 _fun45045() { // fn#45045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5303:765, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
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 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 _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
var push;
var unknownCollectiblesItemRecordBinding;
var profileFrameRecordBinding;
var profileEffectRecordBinding;
var nameplateRecordBinding;
var avatarDecorationRecordBinding;
const type = a1.type;
const CollectiblesItemType = (CollectiblesItemTypeModule).CollectiblesItemType;
const AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
if (AVATAR_DECORATION === type) {
push = a0.push;
avatarDecorationRecordBinding = AvatarDecorationRecord;
Reflect.apply(push, a0, [avatarDecorationRecordBinding.fromServer(a1)]);
} else if (CollectiblesItemType.NAMEPLATE === type) {
push = a0.push;
nameplateRecordBinding = NameplateRecord;
Reflect.apply(push, a0, [nameplateRecordBinding.fromServer(a1)]);
} else if (CollectiblesItemType.PROFILE_EFFECT === type) {
push = a0.push;
profileEffectRecordBinding = ProfileEffectRecord;
Reflect.apply(push, a0, [profileEffectRecordBinding.fromServer(a1)]);
} else if (CollectiblesItemType.PROFILE_FRAME === type) {
push = a0.push;
profileFrameRecordBinding = ProfileFrameRecord;
Reflect.apply(push, a0, [profileFrameRecordBinding.fromServer(a1)]);
} else {
push = a0.push;
unknownCollectiblesItemRecordBinding = UnknownCollectiblesItemRecord;
Reflect.apply(push, a0, [unknownCollectiblesItemRecordBinding.fromServer(a1)]);
}
return a0;
}
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') {
}
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 = (CollectiblesItemTypeModule).CollectiblesItemType;
var items2;
var profileFrameRecordBinding;
var object;
var profileEffectRecordBinding;
var object2;
var nameplateRecordBinding;
var object3;
var avatarDecorationRecordBinding;
var object4;
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) {
items2 = [];
_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 = items2.push;
item = value7.item;
Reflect.apply(push, items2, [item]);
value8 = value4();
done = value8.done;
if (done) {
break;
}
r5 = value8;
continue;
}
push = items.push;
item = value7.item;
Reflect.apply(push, items, [item]);
value8 = value4();
done = value8.done;
if (done) {
break;
}
r5 = value8;
continue;
}
if (items2.length === 0) {
return value3;
}
return {type: 'bundle', items: items2, previewAssets: a0.previewAssetPaths ?? value3};
}
if (items.length === 0) {
return 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) {
avatarDecorationRecordBinding = AvatarDecorationRecord;
object4 = {};
object4.skuId = a0.id;
object4.type = item.type;
object4.asset = item.asset;
object4.label = item.label;
return {type: 'single', item: new avatarDecorationRecordBinding()};
}
if (CollectiblesItemType.NAMEPLATE === type) {
nameplateRecordBinding = NameplateRecord;
object3 = {};
object3.skuId = a0.id;
object3.type = item.type;
object3.asset = item.asset;
object3.label = item.label;
object3.palette = item.palette;
return {type: 'single', item: new nameplateRecordBinding()};
}
if (CollectiblesItemType.PROFILE_EFFECT === type) {
profileEffectRecordBinding = ProfileEffectRecord;
object2 = {};
object2.skuId = a0.id;
object2.type = item.type;
object2.title = item.title;
object2.description = item.description;
object2.thumbnailPreviewSrc = item.thumbnailPreviewSrc;
object2.reducedMotionSrc = item.reducedMotionSrc;
object2.effects = item.effects ?? [];
object2.accessibilityLabel = item.accessibilityLabel;
object2.animationType = item.animationType;
object2.staticFrameSrc = item.staticFrameSrc;
return {type: 'single', item: new profileEffectRecordBinding()};
}
if (CollectiblesItemType.PROFILE_FRAME === type) {
profileFrameRecordBinding = ProfileFrameRecord;
object = {};
object.skuId = a0.id;
object.type = item.type;
object.label = item.label;
object.layers = item.layers;
object.innerWidth = item.innerWidth;
object.overflowTop = item.overflowTop;
object.overflowBottom = item.overflowBottom;
object.overflowHorizontal = item.overflowHorizontal;
return {type: 'single', item: new profileFrameRecordBinding()};
}
return value2;
}
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;
}
global.__d(_fun45043, 5125, [5126, 1902, 5127, 5128, 5130, 661, 1904,
2]) /* metro module 5125, dependencies: [5126, 1902, 5127, 5128, 5130, 661, 1904, 2] */;
@@ -1,29 +1,47 @@
/* Metro module 5153; source: modules/collectibles/records/CollectiblesMarketingBadgeRecord.tsx; dependencies: [6, 7, 5154, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesMarketingTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesMarketingType.tsx'; /* Metro dependency 5154 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (CollectiblesMarketingTypeModule).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;
}
function value_45477(a0) { // fn#45477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5331:549, offset: 0x0118fd03, size: 122 bytes, params: 2, frame: 14
const object = {};
copyDataProperties(object, a0, undefined);
object['dismissibleContent'] = a0.dismissible_content;
object['refTargetBackground'] = a0.ref_target_background;
object['badgeIcon'] = a0.badge_icon;
object['badgeText'] = a0.badge_text;
object['showHoverGradient'] = a0.show_hover_gradient;
const value = Object.create(CollectiblesMarketingBadgeRecord.prototype,
{constructor: {value: CollectiblesMarketingBadgeRecord}});
const collectiblesMarketingBadgeRecord = new CollectiblesMarketingBadgeRecord(object);
return collectiblesMarketingBadgeRecord instanceof Object ? 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;
}
global.__d(_fun45474, 5153, [6, 7, 5154, 2]) /* metro module 5153, dependencies: [6, 7, 5154, 2] */;
@@ -1,29 +1,40 @@
/* Metro module 5155; source: modules/collectibles/records/CollectiblesMarketingBannerRecord.tsx; dependencies: [6, 7, 5154, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesMarketingTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesMarketingType.tsx'; /* Metro dependency 5154 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (CollectiblesMarketingTypeModule).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;
}
function value_45482(a0) { // fn#45482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5333:492, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(CollectiblesMarketingBannerRecord.prototype,
{constructor: {value: CollectiblesMarketingBannerRecord}});
const collectiblesMarketingBannerRecord = new CollectiblesMarketingBannerRecord(a0);
return collectiblesMarketingBannerRecord instanceof Object ? 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;
}
global.__d(_fun45479, 5155, [6, 7, 5154, 2]) /* metro module 5155, dependencies: [6, 7, 5154, 2] */;
@@ -1,47 +1,51 @@
/* Metro module 5156; source: modules/collectibles/records/CollectiblesMarketingCoachmarkRecord.tsx; dependencies: [6, 7, 5154, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesMarketingTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesMarketingType.tsx'; /* Metro dependency 5154 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (CollectiblesMarketingTypeModule).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 object = {};
copyDataProperties(object, a0, undefined);
object['assetDark'] = a0.asset_dark;
object['assetLight'] = a0.asset_light;
object['refTargetBackground'] = a0.ref_target_background;
object['badgeIcon'] = a0.badge_icon;
object['badgeText'] = a0.badge_text;
object['buttonLabel'] = a0.button_label;
const value = Object.create(CollectiblesMarketingCoachmarkRecord.prototype,
{constructor: {value: CollectiblesMarketingCoachmarkRecord}});
const collectiblesMarketingCoachmarkRecord = new CollectiblesMarketingCoachmarkRecord(object);
return collectiblesMarketingCoachmarkRecord instanceof Object ? 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;
}
global.__d(_fun45483, 5156, [6, 7, 5154, 2]) /* metro module 5156, dependencies: [6, 7, 5154, 2] */;
@@ -1,95 +1,102 @@
/* Metro module 5152; source: modules/collectibles/records/CollectiblesMarketingRecord.tsx; dependencies: [6, 7, 5153, 5155, 5156, 5157, 5154, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import CollectiblesMarketingTabTooltipRecord from './CollectiblesMarketingTabTooltipRecord.tsx'; /* Metro dependency 5157 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesMarketingBadgeRecordModule from './CollectiblesMarketingBadgeRecord.tsx'; /* Metro dependency 5153 */
import * as CollectiblesMarketingTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesMarketingType.tsx'; /* Metro dependency 5154 */
import * as CollectiblesMarketingBannerRecordModule from './CollectiblesMarketingBannerRecord.tsx'; /* Metro dependency 5155 */
import * as CollectiblesMarketingCoachmarkRecordModule from './CollectiblesMarketingCoachmarkRecord.tsx'; /* Metro dependency 5156 */
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');
(FileImportTrackerModule).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;
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 CreateClass(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;
var collectiblesMarketingTabTooltipRecordBinding;
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 = (CollectiblesMarketingTypeModule).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) {
collectiblesMarketingTabTooltipRecordBinding = CollectiblesMarketingTabTooltipRecord;
return [r2, collectiblesMarketingTabTooltipRecordBinding.fromServer(r3)];
}
return [r2, value];
}
}
}
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];
}
global.__d(_fun45469, 5152, [6, 7, 5153, 5155, 5156, 5157, 5154,
2]) /* metro module 5152, dependencies: [6, 7, 5153, 5155, 5156, 5157, 5154, 2] */;
@@ -1,32 +1,50 @@
/* Metro module 5157; source: modules/collectibles/records/CollectiblesMarketingTabTooltipRecord.tsx; dependencies: [6, 7, 5154, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesMarketingTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesMarketingType.tsx'; /* Metro dependency 5154 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (CollectiblesMarketingTypeModule).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;
}
function value_45490(a0) { // fn#45490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5335:625, offset: 0x0118fd03, size: 122 bytes, params: 2, frame: 14
const object = {};
copyDataProperties(object, a0, undefined);
object['dismissibleContent'] = a0.dismissible_content;
object['refTargetBackground'] = a0.ref_target_background;
object['badgeIcon'] = a0.badge_icon;
object['badgeText'] = a0.badge_text;
object['showHoverGradient'] = a0.show_hover_gradient;
const value = Object.create(CollectiblesMarketingTabTooltipRecord.prototype,
{constructor: {value: CollectiblesMarketingTabTooltipRecord}});
const collectiblesMarketingTabTooltipRecord = new CollectiblesMarketingTabTooltipRecord(object);
return collectiblesMarketingTabTooltipRecord instanceof Object ? collectiblesMarketingTabTooltipRecord : 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;
}
global.__d(_fun45487, 5157, [6, 7, 5154, 2]) /* metro module 5157, dependencies: [6, 7, 5154, 2] */;
@@ -1,358 +1,374 @@
/* 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] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import CollectiblesBundledProductRecord from './CollectiblesBundledProductRecord.tsx'; /* Metro dependency 5124 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as CollectiblesShopConstantsModule from '../CollectiblesShopConstants.tsx'; /* Metro dependency 663 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
import * as CollectiblesItemRecordModule from './CollectiblesItemRecord.tsx'; /* Metro dependency 5125 */
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 */;
let value = CollectiblesItemRecordModule;
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');
(FileImportTrackerModule).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 _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 = Module00017(a1);
if (_isNativeReflectConstruct_45018()) {
Reflect = global.Reflect;
value = Reflect.construct(value3, value || [], Module00017(a0).constructor);
r0 = value;
} else {
value = value3.apply(a0, value);
r0 = value;
}
return PossibleConstructorReturn(a0, r0);
}
}
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;
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;
})();
}
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();
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;
value = Module00017(1 & 2 ? value.prototype : value);
value = Module00102(value, 'fromServer', a2);
return 2 & 2 ? typeof value !== 'function' ? value : _fun45022 : value;
function _fun45022(a0) { // fn#45022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:821, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(importDefault, a0);
}
}
return r0;
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 CollectiblesProductRecord2 = CollectiblesProductRecord;
Inherits(CollectiblesProductRecord2, a0);
return CreateClass(CollectiblesProductRecord2, null, [{key: 'fromServer', value: value_45025},
{key: 'fromStorefrontProductRecord', value: value_45027}]);
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 object = {'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(object, value, undefined);
const value2 = copyDataProperties({}, a0, object, undefined);
object = {};
const _superPropGet_45021Binding = _superPropGet_45021;
const value5 = undefined;
copyDataProperties(object, _superPropGet_45021Binding(CollectiblesProductRecord, 'fromServer', this, 2)([value2]),
this);
object['type'] = type;
object['premiumType'] = premium_type === PREMIUM_TYPE_NONE ? value : premium_type;
object['categorySkuId'] = category_sku_id;
object['isCategoryReward'] = REWARD_CATEGORY_AND_REWARD_SKU_IDS.some(_fun45026);
object['prices'] = (importDefault(4275) /* metro dependency 4275: getPricesFromServer */)(prices);
object['items'] = createCollectiblesItemsFromServerResponse(value2.items);
object['bundledProducts'] = value == bundled_products ? value5 : bundled_products.map(CollectiblesBundledProductRecord.fromServer);
object['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;
object['variants'] = value == variants ? value5 : variants.map(env1_16.fromServer);
object['googleSkuIds'] = value2.google_sku_ids;
object['eligibleOffers'] = value2.eligible_offers;
object['badgeOverride'] = badge_override;
object['hideBadge'] = hide_badge;
value = Object.create(CollectiblesProductRecord.prototype, {constructor: {value: CollectiblesProductRecord}});
const collectiblesProductRecord = new CollectiblesProductRecord(object);
return collectiblesProductRecord instanceof Object ? collectiblesProductRecord : 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 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 = (CollectiblesItemTypeModule).CollectiblesItemType;
var value4;
var value5;
var object;
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;
object = {};
id = property.id;
object.storeListingId = id;
id = property.id;
object.skuId = id;
object.name = a0.name;
object.summary = a0.summary;
object.styles = a0.primaryCollectionStyles;
object.type = r11;
premiumType = collectibles.premiumType;
premiumType = premiumType === PREMIUM_TYPE_NONE ? value : collectibles.premiumType;
object.premiumType = premiumType;
object.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;
object.categorySkuId = r6;
object.isCategoryReward = REWARD_CATEGORY_AND_REWARD_SKU_IDS.some(_fun45029);
object.prices = property.prices;
r6 = r11 !== CollectiblesItemType.VARIANTS_GROUP ? value2 : a0.skus.map(_fun45030).filter(_fun45033);
object.variants = r6;
googleSkuIds = property.googleSkuIds;
r6 = value != googleSkuIds ? googleSkuIds : {[PriceSetAssignmentPurchaseTypes.MOBILE]: value8,
[PriceSetAssignmentPurchaseTypes.MOBILE_PREMIUM_TIER_2]: value8};
object.googleSkuIds = r6;
object.eligibleOffers = value2;
bundledSkus = property.bundledSkus;
if (value == bundledSkus) {
r1 = value2;
} else {
value = bundledSkus.map(_fun45034);
value = value.filter(_fun45035);
r1 = value;
}
object.bundledProducts = r1;
value = Object.create(CollectiblesProductRecord.prototype,
{constructor: {value: CollectiblesProductRecord}});
collectiblesProductRecord = new CollectiblesProductRecord();
return collectiblesProductRecord instanceof Object ? collectiblesProductRecord : value;
}
}
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 object = {};
object.baseVariantName = env0_0.name;
object.baseVariantSkuId = env0_1.id;
const optionValue = value == property ? value2 : property.optionValue;
const value7 = '';
object.variantLabel = value != optionValue ? optionValue : value7;
const optionSelectorDisplayValue = collectibles.optionSelectorDisplayValue;
object.variantValue = value != optionSelectorDisplayValue ? optionSelectorDisplayValue : value7;
object.storeListingId = a0.id;
object.skuId = a0.id;
object.name = a0.name;
object.summary = a0.summary;
object.styles = value2;
object.type = collectibles.type;
let premiumType = collectibles.premiumType;
premiumType = premiumType === PREMIUM_TYPE_NONE ? value : collectibles.premiumType;
object.premiumType = premiumType;
object.items = value != items ? items : [item].filter(function(a0) {
return a0 != null;
});
const primaryCollectionId = env0_0.primaryCollectionId;
const r9 = value != primaryCollectionId ? primaryCollectionId : collectibles.categorySkuId;
object.categorySkuId = value != r9 ? r9 : value7;
object.isCategoryReward = REWARD_CATEGORY_AND_REWARD_SKU_IDS.some(_fun45032);
object.prices = a0.prices;
const googleSkuIds = a0.googleSkuIds;
object.googleSkuIds = value != googleSkuIds ? googleSkuIds : {[PriceSetAssignmentPurchaseTypes.MOBILE]: value7,
[PriceSetAssignmentPurchaseTypes.MOBILE_PREMIUM_TIER_2]: value7};
object.eligibleOffers = value2;
object.variants = value2;
object.bundledProducts = value2;
value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding2 = new binding(object);
return binding2 instanceof Object ? binding2 : value;
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;
}
}
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 collectiblesBundledProductRecordBinding;
var object;
const tenantMetadata = a0.tenantMetadata;
const value = null;
const collectibles = value == tenantMetadata ? undefined : tenantMetadata.collectibles;
if (value == collectibles) {
r0 = value;
} else {
value3 = environment.__proto__.__proto__;
collectiblesBundledProductRecordBinding = CollectiblesBundledProductRecord;
object = {};
object.type = collectibles.type;
premiumType = collectibles.premiumType;
premiumType = premiumType === PREMIUM_TYPE_NONE ? value : collectibles.premiumType;
object.premiumType = premiumType;
object.name = a0.name;
object.skuId = a0.id;
object.summary = a0.summary;
object.prices = a0.prices;
r0 = new collectiblesBundledProductRecordBinding();
}
return r0;
}
}
}
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 CollectiblesVariantProductRecord2 = CollectiblesVariantProductRecord;
Inherits(CollectiblesVariantProductRecord2, a0);
return CreateClass(CollectiblesVariantProductRecord2, null, [{key: 'fromServer', value: value_45038}]);
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 object = {'base_variant_name': 0, 'base_variant_sku_id': 0, 'variant_label': 0, 'variant_value': 0};
silentSetPrototypeOf(object, null, undefined);
let value = copyDataProperties({}, a0, object, undefined);
object = {};
copyDataProperties(object, _superPropGet_45021(CollectiblesVariantProductRecord, 'fromServer', this, 2)([value]),
this);
object['baseVariantName'] = base_variant_name;
object['baseVariantSkuId'] = base_variant_sku_id;
object['variantLabel'] = variant_label;
object['variantValue'] = variant_value;
value = Object.create(CollectiblesVariantProductRecord.prototype,
{constructor: {value: CollectiblesVariantProductRecord}});
const collectiblesVariantProductRecord = new CollectiblesVariantProductRecord(object);
return collectiblesVariantProductRecord instanceof Object ? collectiblesVariantProductRecord : value;
}
}
}
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;
function _fun45033(a0) { // fn#45033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:3742, offset: 0x00d0b2f0, size: 11 bytes, params: 2, frame: 2
return a0 != null;
}
function _fun45035(a0) { // fn#45035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5301:4142, offset: 0x00d0b2f0, size: 11 bytes, params: 2, frame: 2
return a0 != null;
}
global.__d(_fun45016, 5123, [57, 6, 7, 15, 17, 102, 18, 5124, 5125, 5131, 663, 661, 4275, 1904,
2]) /* metro module 5123, dependencies: [57, 6, 7, 15, 17, 102, 18, 5124, 5125, 5131, 663, 661, 4275, 1904, 2] */;
@@ -1,97 +1,101 @@
/* Metro module 5158; source: modules/collectibles/records/CollectiblesPurchaseRecord.tsx; dependencies: [6, 7, 5124, 5125, 5123, 663, 661, 4275, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import CollectiblesBundledProductRecord from './CollectiblesBundledProductRecord.tsx'; /* Metro dependency 5124 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as CollectiblesShopConstantsModule from '../CollectiblesShopConstants.tsx'; /* Metro dependency 663 */
import * as CollectiblesProductRecordModule from './CollectiblesProductRecord.tsx'; /* Metro dependency 5123 */
import * as CollectiblesItemRecordModule from './CollectiblesItemRecord.tsx'; /* Metro dependency 5125 */
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');
(FileImportTrackerModule).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 CreateClass(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 _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 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 object = {'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(object, value, undefined);
const value2 = copyDataProperties({}, a0, object, type);
object = {type: type, name: name, skuId: sku_id};
object.premiumType = premium_type === PREMIUM_TYPE_NONE ? value : premium_type;
object.categorySkuId = category_sku_id;
object.isCategoryReward = REWARD_CATEGORY_AND_REWARD_SKU_IDS.some(function({rewardSkuId}) {
return rewardSkuId === sku_id;
});
const value5 = undefined;
object.prices = (importDefault(4275) /* metro dependency 4275: getPricesFromServer */)(prices);
object.items = createCollectiblesItemsFromServerResponse(value2.items);
object.bundledProducts = value == bundled_products ? value5 : bundled_products.map(CollectiblesBundledProductRecord.fromServer);
object.variants = value == variants ? value5 : variants.map(CollectiblesVariantProductRecord.fromServer);
object.googleSkuIds = value2.google_sku_ids;
object.eligibleOffers = value2.eligible_offers;
object.baseVariantName = base_variant_name;
object.baseVariantSkuId = base_variant_sku_id;
object.variantLabel = variant_label;
object.variantValue = variant_value;
object.purchaseType = purchase_type;
if (value == purchased_at) {
r3 = purchased_at;
} else {
date = new global.Date(purchased_at);
}
object.purchasedAt = r3;
object.expiresAt = value != expires_at ? new global.Date(expires_at) : value;
value = Object.create(CollectiblesPurchaseRecord.prototype, {constructor: {value: CollectiblesPurchaseRecord}});
const collectiblesPurchaseRecord = new CollectiblesPurchaseRecord(object);
return collectiblesPurchaseRecord instanceof Object ? collectiblesPurchaseRecord : value;
}
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;
}
global.__d(_fun45491, 5158, [6, 7, 5124, 5125, 5123, 663, 661, 4275,
2]) /* metro module 5158, dependencies: [6, 7, 5124, 5125, 5123, 663, 661, 4275, 2] */;
@@ -1,97 +1,110 @@
/* 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] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import CollectiblesCategoryRecord from './CollectiblesCategoryRecord.tsx'; /* Metro dependency 5122 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesUserDiscountRecordModule from './CollectiblesUserDiscountRecord.tsx'; /* Metro dependency 5151 */
import * as CountdownTimerBlockRecordModule from './CountdownTimerBlockRecord.tsx'; /* Metro dependency 5160 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
import * as FeaturedBlockRecordModule from './FeaturedBlockRecord.tsx'; /* Metro dependency 5162 */
import * as FeedBlockRecordModule from './FeedBlockRecord.tsx'; /* Metro dependency 5165 */
import * as FramesBannerBlockRecordModule from './FramesBannerBlockRecord.tsx'; /* Metro dependency 5166 */
import * as FramesProductShelfBlockRecordModule from './FramesProductShelfBlockRecord.tsx'; /* Metro dependency 5167 */
import * as HeroBlockRecordModule from './HeroBlockRecord.tsx'; /* Metro dependency 5168 */
import * as ImmersiveBannerBlockRecordModule from './ImmersiveBannerBlockRecord.tsx'; /* Metro dependency 5169 */
import * as RewardHeroBlockRecordModule from './RewardHeroBlockRecord.tsx'; /* Metro dependency 5170 */
import * as ShelfBlockRecordModule from './ShelfBlockRecord.tsx'; /* Metro dependency 5171 */
import * as SocialLayerStorefrontPromotionalBannerBlockRecordModule from './SocialLayerStorefrontPromotionalBannerBlockRecord.tsx'; /* Metro dependency 5172 */
import * as WideBannerBlockRecordModule from './WideBannerBlockRecord.tsx'; /* Metro dependency 5173 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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);
}
}
}
function value_45503(a0) { // fn#45503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5337:1665, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(CollectiblesShopHomeRecord.prototype,
{constructor: {value: CollectiblesShopHomeRecord}});
const collectiblesShopHomeRecord = new CollectiblesShopHomeRecord(a0);
return collectiblesShopHomeRecord instanceof Object ? 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);
}
}
global.__d(_fun45496, 5159, [6, 7, 5122, 5151, 5160, 5162, 5165, 5166, 5167, 5168, 5169, 5170, 5171, 5172, 5173,
5161,
2]) /* metro module 5159, dependencies: [6, 7, 5122, 5151, 5160, 5162, 5165, 5166, 5167, 5168, 5169, 5170, 5171, 5172, 5173, 5161, 2] */;
@@ -1,14 +1,18 @@
/* Metro module 5131; source: modules/collectibles/records/CollectiblesStoreListingRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 5132, 673, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Record from '../../../lib/Record.tsx'; /* Metro dependency 1886 */
import Module05132 from '../../../by-id/module-05132.js'; /* Metro dependency 5132 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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 */;
let value = Record;
const parseStylesResponse = function(a0) {
var r0;
var object;
@@ -29,99 +33,115 @@ function _fun45087(global, require, importDefault, importAll, module, exports, d
return r0;
};
value = _fun45095(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesStoreListingRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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;
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 object;
const value = a0;
if (value == null) {
r0 = value;
} else {
object = {};
object.backgroundColors = value.background_colors.map(_fun45092);
object.buttonColors = value.button_colors.map(_fun45093);
object.confettiColors = value.confetti_colors.map(_fun45094);
r0 = object;
}
return r0;
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 = Module05132;
value = require(673) /* metro dependency 673: ColorUtils */;
return defaultImport(value.int2hex(a0));
}
function _fun45093(a0) { // fn#45093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:498, offset: 0x01180dee, size: 62 bytes, params: 2, frame: 13
let value = environment.__proto__;
const defaultImport = Module05132;
value = require(673) /* metro dependency 673: ColorUtils */;
return defaultImport(value.int2hex(a0));
}
function _fun45094(a0) { // fn#45094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5309:569, offset: 0x01180dee, size: 62 bytes, params: 2, frame: 13
let value = environment.__proto__;
const defaultImport = Module05132;
value = require(673) /* metro dependency 673: ColorUtils */;
return defaultImport(value.int2hex(a0));
}
}
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 _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 CollectiblesStoreListingRecord2 = CollectiblesStoreListingRecord;
Inherits(CollectiblesStoreListingRecord2, a0);
return CreateClass(CollectiblesStoreListingRecord2, null, [{key: 'fromServer', value: value_45097}]);
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 _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 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 object = {'store_listing_id': 0, 'sku_id': 0, 'styles': 0};
silentSetPrototypeOf(object, null, undefined);
let value = copyDataProperties({}, a0, object, store_listing_id);
const object2 = {};
copyDataProperties(object2, value, object);
object2['storeListingId'] = store_listing_id;
object2['skuId'] = sku_id;
value = environment.__proto__;
object2['styles'] = parseStylesResponse(styles);
value = Object.create(CollectiblesStoreListingRecord.prototype,
{constructor: {value: CollectiblesStoreListingRecord}});
const collectiblesStoreListingRecord = new CollectiblesStoreListingRecord(object2);
return collectiblesStoreListingRecord instanceof Object ? collectiblesStoreListingRecord : value;
}
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;
}
global.__d(_fun45087, 5131, [6, 7, 15, 17, 18, 1886, 5132, 673,
2]) /* metro module 5131, dependencies: [6, 7, 15, 17, 18, 1886, 5132, 673, 2] */;
@@ -1,82 +1,102 @@
/* Metro module 5149; source: modules/collectibles/records/CollectiblesStoreListingStylesRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 5132, 673, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Record from '../../../lib/Record.tsx'; /* Metro dependency 1886 */
import Module05132 from '../../../by-id/module-05132.js'; /* Metro dependency 5132 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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 */;
let value = Record;
value = _fun45453(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/CollectiblesStoreListingStylesRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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 _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 CollectiblesStoreListingStylesRecord2 = CollectiblesStoreListingStylesRecord;
Inherits(CollectiblesStoreListingStylesRecord2, a0);
return CreateClass(CollectiblesStoreListingStylesRecord2, 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 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 object = {};
object.backgroundColors = background_colors.map(_fun45456);
object.buttonColors = button_colors.map(_fun45457);
object.confettiColors = confetti_colors.map(_fun45458);
const value = Object.create(CollectiblesStoreListingStylesRecord.prototype,
{constructor: {value: CollectiblesStoreListingStylesRecord}});
const collectiblesStoreListingStylesRecord = new CollectiblesStoreListingStylesRecord(object);
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 = Module05132;
value = require(673) /* metro dependency 673: ColorUtils */;
return defaultImport(value.int2hex(a0));
}
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 _fun45457(a0) { // fn#45457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5327:1057, offset: 0x0118f3f5, size: 62 bytes, params: 2, frame: 13
let value = environment.__proto__.__proto__;
const defaultImport = Module05132;
value = require(673) /* metro dependency 673: ColorUtils */;
return defaultImport(value.int2hex(a0));
}
function _fun45458(a0) { // fn#45458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5327:1112, offset: 0x0118f3f5, size: 62 bytes, params: 2, frame: 13
let value = environment.__proto__.__proto__;
const defaultImport = Module05132;
value = require(673) /* metro dependency 673: ColorUtils */;
return defaultImport(value.int2hex(a0));
}
}
}
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));
}
global.__d(_fun45449, 5149, [6, 7, 15, 17, 18, 1886, 5132, 673,
2]) /* metro module 5149, dependencies: [6, 7, 15, 17, 18, 1886, 5132, 673, 2] */;
@@ -1,33 +1,43 @@
/* Metro module 5151; source: modules/collectibles/records/CollectiblesUserDiscountRecord.tsx; dependencies: [6, 7, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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 CreateClass(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;
}
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 value_45468(a0) { // fn#45468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5329:396, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(CollectiblesUserDiscountRecord.prototype,
{constructor: {value: CollectiblesUserDiscountRecord}});
const collectiblesUserDiscountRecord = new CollectiblesUserDiscountRecord(a0);
return collectiblesUserDiscountRecord instanceof Object ? collectiblesUserDiscountRecord : value;
}
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;
}
global.__d(_fun45465, 5151, [6, 7, 2]) /* metro module 5151, dependencies: [6, 7, 2] */;
@@ -1,30 +1,40 @@
/* Metro module 5160; source: modules/collectibles/records/CountdownTimerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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;
}
function value_45507(a0) { // fn#45507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5338:440, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(CountdownTimerBlockRecord.prototype, {constructor: {value: CountdownTimerBlockRecord}});
const countdownTimerBlockRecord = new CountdownTimerBlockRecord(a0);
return countdownTimerBlockRecord instanceof Object ? 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;
}
global.__d(_fun45504, 5160, [6, 7, 5161, 2]) /* metro module 5160, dependencies: [6, 7, 5161, 2] */;
@@ -1,38 +1,49 @@
/* Metro module 5162; source: modules/collectibles/records/FeaturedBlockRecord.tsx; dependencies: [6, 7, 5163, 5161, 5164, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
import * as FeaturedCategorySubblockRecordModule from './FeaturedCategorySubblockRecord.tsx'; /* Metro dependency 5163 */
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');
(FileImportTrackerModule).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;
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 CreateClass(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 = (ShopBlockTypeModule).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;
});
}
return r0;
});
function value_45513(a0) { // fn#45513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5340:441, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(FeaturedBlockRecord.prototype, {constructor: {value: FeaturedBlockRecord}});
const featuredBlockRecord = new FeaturedBlockRecord(a0);
return featuredBlockRecord instanceof Object ? featuredBlockRecord : value;
}
}
}
global.__d(_fun45509, 5162, [6, 7, 5163, 5161, 5164,
2]) /* metro module 5162, dependencies: [6, 7, 5163, 5161, 5164, 2] */;
@@ -1,33 +1,44 @@
/* Metro module 5163; source: modules/collectibles/records/FeaturedCategorySubblockRecord.tsx; dependencies: [6, 7, 5164, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FeaturedSubblockTypeModule from '../../../external/discord_common/js/shared/shared-constants/FeaturedSubblockType.tsx'; /* Metro dependency 5164 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (FeaturedSubblockTypeModule).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;
}
function value_45517(a0) { // fn#45517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5341:597, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(FeaturedCategorySubblockRecord.prototype,
{constructor: {value: FeaturedCategorySubblockRecord}});
const featuredCategorySubblockRecord = new FeaturedCategorySubblockRecord(a0);
return featuredCategorySubblockRecord instanceof Object ? 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;
}
global.__d(_fun45514, 5163, [6, 7, 5164, 2]) /* metro module 5163, dependencies: [6, 7, 5164, 2] */;
@@ -1,25 +1,35 @@
/* Metro module 5165; source: modules/collectibles/records/FeedBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).ShopBlockType;
const FEED = ShopBlockType.FEED;
this.type = FEED;
this.rankedSkuIds = ranked_sku_ids;
this.sortedSkuIds = sorted_sku_ids;
}
function value_45522(a0) { // fn#45522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5343:343, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(FeedBlockRecord.prototype, {constructor: {value: FeedBlockRecord}});
const feedBlockRecord = new FeedBlockRecord(a0);
return feedBlockRecord instanceof Object ? 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;
}
global.__d(_fun45519, 5165, [6, 7, 5161, 2]) /* metro module 5165, dependencies: [6, 7, 5161, 2] */;
@@ -1,28 +1,38 @@
/* Metro module 5166; source: modules/collectibles/records/FramesBannerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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;
}
function value_45526(a0) { // fn#45526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5344:503, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(FramesBannerBlockRecord.prototype, {constructor: {value: FramesBannerBlockRecord}});
const framesBannerBlockRecord = new FramesBannerBlockRecord(a0);
return framesBannerBlockRecord instanceof Object ? 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;
}
global.__d(_fun45523, 5166, [6, 7, 5161, 2]) /* metro module 5166, dependencies: [6, 7, 5161, 2] */;
@@ -1,30 +1,41 @@
/* Metro module 5167; source: modules/collectibles/records/FramesProductShelfBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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;
}
function value_45530(a0) { // fn#45530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5345:703, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(FramesProductShelfBlockRecord.prototype,
{constructor: {value: FramesProductShelfBlockRecord}});
const framesProductShelfBlockRecord = new FramesProductShelfBlockRecord(a0);
return framesProductShelfBlockRecord instanceof Object ? 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;
}
global.__d(_fun45527, 5167, [6, 7, 5161, 2]) /* metro module 5167, dependencies: [6, 7, 5161, 2] */;
@@ -1,57 +1,67 @@
/* Metro module 5168; source: modules/collectibles/records/HeroBlockRecord.tsx; dependencies: [6, 7, 5161, 5134, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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]);
}
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 value_45534(a0) { // fn#45534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5346:1103, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(HeroBlockRecord.prototype, {constructor: {value: HeroBlockRecord}});
const heroBlockRecord = new HeroBlockRecord(a0);
return heroBlockRecord instanceof Object ? heroBlockRecord : value;
}
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]);
}
global.__d(_fun45531, 5168, [6, 7, 5161, 5134, 2]) /* metro module 5168, dependencies: [6, 7, 5161, 5134, 2] */;
@@ -1,34 +1,45 @@
/* Metro module 5169; source: modules/collectibles/records/ImmersiveBannerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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;
}
function value_45538(a0) { // fn#45538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5347:550, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(ImmersiveBannerBlockRecord.prototype,
{constructor: {value: ImmersiveBannerBlockRecord}});
const immersiveBannerBlockRecord = new ImmersiveBannerBlockRecord(a0);
return immersiveBannerBlockRecord instanceof Object ? 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;
}
global.__d(_fun45535, 5169, [6, 7, 5161, 2]) /* metro module 5169, dependencies: [6, 7, 5161, 2] */;
@@ -1,83 +1,97 @@
/* Metro module 1902; source: modules/collectibles/records/NameplateRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import BaseCollectibesItemRecord from './BaseCollectibesItemRecord.tsx'; /* Metro dependency 1903 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
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 */;
let value = BaseCollectibesItemRecord;
value = _fun20868(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/NameplateRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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 _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 NameplateRecord2 = NameplateRecord;
Inherits(NameplateRecord2, a0);
return CreateClass(NameplateRecord2, 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 = (CollectiblesItemTypeModule).CollectiblesItemType;
const NAMEPLATE = CollectiblesItemType.NAMEPLATE;
value6.type = NAMEPLATE;
value6.asset = a0.asset;
value6.label = a0.label;
value6.palette = a0.palette;
return value6;
}
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 object = {};
let value = environment.__proto__;
const binding = env1_6;
value = env1_5(NameplateRecord);
value = binding(value, 'fromServer', this);
copyDataProperties(object, (typeof value !== 'function' ? value : _fun20871)([a0]), undefined);
copyDataProperties(object, a0, undefined);
value = Object.create(NameplateRecord.prototype, {constructor: {value: NameplateRecord}});
const nameplateRecord = new NameplateRecord(object);
return nameplateRecord instanceof Object ? nameplateRecord : value;
function _fun20871(a0) { // fn#20871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2029:916, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(env0_0, a0);
}
}
}
function isNameplateRecord(a0) { // fn#20872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2029:1109, offset: 0x00ede3a7, size: 16 bytes, params: 2, frame: 2
return a0 instanceof env0_8;
}
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;
}
global.__d(_fun20864, 1902, [6, 7, 15, 17, 102, 18, 1903, 1904,
2]) /* metro module 1902, dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */;
@@ -1,89 +1,103 @@
/* Metro module 5127; source: modules/collectibles/records/ProfileEffectRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import BaseCollectibesItemRecord from './BaseCollectibesItemRecord.tsx'; /* Metro dependency 1903 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
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 */;
let value = BaseCollectibesItemRecord;
value = _fun45063(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/ProfileEffectRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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 _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 ProfileEffectRecord2 = ProfileEffectRecord;
Inherits(ProfileEffectRecord2, a0);
return CreateClass(ProfileEffectRecord2, 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 = (CollectiblesItemTypeModule).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 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 object = {};
let value = environment.__proto__;
const binding = env1_6;
value = env1_5(ProfileEffectRecord);
value = binding(value, 'fromServer', this);
copyDataProperties(object, (typeof value !== 'function' ? value : _fun45066)([a0]), undefined);
copyDataProperties(object, a0, undefined);
value = Object.create(ProfileEffectRecord.prototype, {constructor: {value: ProfileEffectRecord}});
const profileEffectRecord = new ProfileEffectRecord(object);
return profileEffectRecord instanceof Object ? profileEffectRecord : value;
function _fun45066(a0) { // fn#45066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5305:1235, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(env0_0, a0);
}
}
}
function isProfileEffectRecord(a0) { // fn#45067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5305:1449, offset: 0x00ede3a7, size: 16 bytes, params: 2, frame: 2
return a0 instanceof env0_8;
}
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;
}
global.__d(_fun45059, 5127, [6, 7, 15, 17, 102, 18, 1903, 1904,
2]) /* metro module 5127, dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */;
@@ -1,94 +1,109 @@
/* Metro module 5128; source: modules/collectibles/records/ProfileFrameRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 5129, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import BaseCollectibesItemRecord from './BaseCollectibesItemRecord.tsx'; /* Metro dependency 1903 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
import * as DefaultProfileFrameDimensionsModule from '../../../external/discord_common/js/shared/shared-constants/DefaultProfileFrameDimensions.tsx'; /* Metro dependency 5129 */
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 */;
let value = BaseCollectibesItemRecord;
value = _fun45072(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/ProfileFrameRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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 _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 ProfileFrameRecord2 = ProfileFrameRecord;
Inherits(ProfileFrameRecord2, a0);
return CreateClass(ProfileFrameRecord2, 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 = (DefaultProfileFrameDimensionsModule).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 = (CollectiblesItemTypeModule).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 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 object = {'inner_width': 0, 'overflow_top': 0, 'overflow_bottom': 0, 'overflow_horizontal': 0};
silentSetPrototypeOf(object, null, undefined);
let value = copyDataProperties({}, a0, object, this);
const object2 = {};
const value5 = env1_6(env1_5(ProfileFrameRecord), 'fromServer', this);
copyDataProperties(object2, (typeof value5 !== 'function' ? value5 : _fun45075)([value]), object);
copyDataProperties(object2, value, object);
object2['innerWidth'] = inner_width;
object2['overflowTop'] = overflow_top;
object2['overflowBottom'] = overflow_bottom;
object2['overflowHorizontal'] = overflow_horizontal;
value = Object.create(ProfileFrameRecord.prototype, {constructor: {value: ProfileFrameRecord}});
const profileFrameRecord = new ProfileFrameRecord(object2);
return profileFrameRecord instanceof Object ? profileFrameRecord : value;
function _fun45075(a0) { // fn#45075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5306:1400, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(env0_0, a0);
}
}
}
function isProfileFrameRecord(a0) { // fn#45076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5306:1664, offset: 0x00ede3a7, size: 16 bytes, params: 2, frame: 2
return a0 instanceof env0_8;
}
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;
}
global.__d(_fun45068, 5128, [6, 7, 15, 17, 102, 18, 1903, 1904, 5129,
2]) /* metro module 5128, dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 5129, 2] */;
@@ -1,58 +1,68 @@
/* Metro module 5170; source: modules/collectibles/records/RewardHeroBlockRecord.tsx; dependencies: [6, 7, 5161, 5134, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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]);
}
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 value_45542(a0) { // fn#45542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5348:1161, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(RewardHeroBlockRecord.prototype, {constructor: {value: RewardHeroBlockRecord}});
const rewardHeroBlockRecord = new RewardHeroBlockRecord(a0);
return rewardHeroBlockRecord instanceof Object ? rewardHeroBlockRecord : value;
}
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]);
}
global.__d(_fun45539, 5170, [6, 7, 5161, 5134, 2]) /* metro module 5170, dependencies: [6, 7, 5161, 5134, 2] */;
@@ -1,33 +1,43 @@
/* Metro module 5171; source: modules/collectibles/records/ShelfBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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;
}
function value_45546(a0) { // fn#45546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5349:668, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(ShelfBlockRecord.prototype, {constructor: {value: ShelfBlockRecord}});
const shelfBlockRecord = new ShelfBlockRecord(a0);
return shelfBlockRecord instanceof Object ? 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;
}
global.__d(_fun45543, 5171, [6, 7, 5161, 2]) /* metro module 5171, dependencies: [6, 7, 5161, 2] */;
@@ -1,45 +1,54 @@
/* Metro module 5135; source: modules/collectibles/records/ShopAssetConfigRecord.tsx; dependencies: [6, 7, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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 CreateClass(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;
}
function value_45257(a0) { // fn#45257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5313:850, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(AssetDisplayConfigRecord.prototype, {constructor: {value: AssetDisplayConfigRecord}});
const assetDisplayConfigRecord = new AssetDisplayConfigRecord(a0);
return assetDisplayConfigRecord instanceof Object ? 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;
}
global.__d(_fun45252, 5135, [6, 7, 2]) /* metro module 5135, dependencies: [6, 7, 2] */;
@@ -1,31 +1,42 @@
/* Metro module 5172; source: modules/collectibles/records/SocialLayerStorefrontPromotionalBannerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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;
}
function value_45550(a0) { // fn#45550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5350:647, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(SocialLayerStorefrontPromotionalBannerBlockRecord.prototype,
{constructor: {value: SocialLayerStorefrontPromotionalBannerBlockRecord}});
const socialLayerStorefrontPromotionalBannerBlockRecord = new SocialLayerStorefrontPromotionalBannerBlockRecord(a0);
return socialLayerStorefrontPromotionalBannerBlockRecord instanceof Object ? 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;
}
global.__d(_fun45547, 5172, [6, 7, 5161, 2]) /* metro module 5172, dependencies: [6, 7, 5161, 2] */;
@@ -1,81 +1,95 @@
/* Metro module 5130; source: modules/collectibles/records/UnknownCollectiblesItemRecord.tsx; dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import BaseCollectibesItemRecord from './BaseCollectibesItemRecord.tsx'; /* Metro dependency 1903 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
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 */;
let value = BaseCollectibesItemRecord;
value = _fun45082(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/records/UnknownCollectiblesItemRecord.tsx');
(FileImportTrackerModule).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) {
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;
})();
}
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 _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 UnknownCollectiblesItemRecord2 = UnknownCollectiblesItemRecord;
Inherits(UnknownCollectiblesItemRecord2, a0);
return CreateClass(UnknownCollectiblesItemRecord2, 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 = (CollectiblesItemTypeModule).CollectiblesItemType;
const NONE = CollectiblesItemType.NONE;
value6.type = NONE;
return value6;
}
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 object = {};
let value = environment.__proto__;
const value3 = env1_6(env1_5(UnknownCollectiblesItemRecord), 'fromServer', this);
copyDataProperties(object, (typeof value3 !== 'function' ? value3 : _fun45085)([a0]), undefined);
const CollectiblesItemType = (CollectiblesItemTypeModule).CollectiblesItemType;
const NONE = CollectiblesItemType.NONE;
object['type'] = NONE;
value = Object.create(UnknownCollectiblesItemRecord.prototype,
{constructor: {value: UnknownCollectiblesItemRecord}});
const unknownCollectiblesItemRecord = new UnknownCollectiblesItemRecord(object);
return unknownCollectiblesItemRecord instanceof Object ? unknownCollectiblesItemRecord : value;
function _fun45085(a0) { // fn#45085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5308:957, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(env0_0, a0);
}
}
}
function isUnknownCollectiblesItemRecord(a0) { // fn#45086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5308:1213, offset: 0x00ede3a7, size: 16 bytes, params: 2, frame: 2
return a0 instanceof env0_8;
}
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;
}
global.__d(_fun45078, 5130, [6, 7, 15, 17, 102, 18, 1903, 1904,
2]) /* metro module 5130, dependencies: [6, 7, 15, 17, 102, 18, 1903, 1904, 2] */;
@@ -1,36 +1,46 @@
/* Metro module 5173; source: modules/collectibles/records/WideBannerBlockRecord.tsx; dependencies: [6, 7, 5161, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ShopBlockTypeModule from '../../../external/discord_common/js/shared/shared-constants/ShopBlockType.tsx'; /* Metro dependency 5161 */
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');
(FileImportTrackerModule).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 CreateClass(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 = (ShopBlockTypeModule).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;
}
function value_45554(a0) { // fn#45554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5351:765, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(WideBannerBlockRecord.prototype, {constructor: {value: WideBannerBlockRecord}});
const wideBannerBlockRecord = new WideBannerBlockRecord(a0);
return wideBannerBlockRecord instanceof Object ? 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;
}
global.__d(_fun45551, 5173, [6, 7, 5161, 2]) /* metro module 5173, dependencies: [6, 7, 5161, 2] */;