Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,144 @@
/* Metro module 5148; source: modules/storefront/records/StorefrontCollectionRecord.tsx; dependencies: [6, 7, 5149, 5135, 5150, 2] */
function _fun45445(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5326:6, offset: 0x0118e9e2, 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 collectiblesStoreListingStylesRecord = importDefault(5149) /* metro dependency 5149: CollectiblesStoreListingStylesRecord */;
const env0_3 = (require(5135) /* metro dependency 5135: ShopAssetConfigRecord */).AssetDisplayConfigRecord;
const storefrontProductRecord = importDefault(5150) /* metro dependency 5150: StorefrontProductRecord */;
const value = _fun45446();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/storefront/records/StorefrontCollectionRecord.tsx');
exports.default = value;
}
function _fun45446() { // fn#45446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5326:173, offset: 0x0118ea94, size: 58 bytes, params: 1, frame: 15
return env0_1(StorefrontCollectionRecord, null, [{key: 'fromServer', value: value_45448}]);
}
function StorefrontCollectionRecord({id, applicationId, name, description, products, createdAt, updatedAt, unpublishedAt, willUnpublishAt, styles, bannerTextColor, heroRanking, heroDisplayConfig, heroLogoDisplayConfig, heroUrl, heroRiveUrl, heroAnimatedUrl, heroLogoUrl, heroBannerUrl, heroBannerAnimatedUrl, catalogBannerUrl, catalogBannerRiveUrl, catalogBannerAnimatedUrl, featuredBlockUrl, logoUrl, pdpBgUrl, wideBannerUrl, wideBannerAnimatedUrl, mobileHeroUrl, mobileHeroAnimatedUrl, mobileBannerUrl, mobileBgUrl, shopButtonBgHoverUrl, upsellBannerPopoutUrl, upsellBannerUrl, heroBlockTitle, featuredBlockBody, mobileHeroBlockTitle, mobileProductsTitle, mobileSummary, wideBannerTitle, wideBannerBody}) { // fn#45447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5326:184, offset: 0x0118eace, size: 530 bytes, params: 2, frame: 14
env1_0(this, StorefrontCollectionRecord);
this.id = id;
this.applicationId = applicationId;
this.name = name;
this.description = description;
this.products = products;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.unpublishedAt = unpublishedAt;
this.willUnpublishAt = willUnpublishAt;
this.styles = styles;
this.bannerTextColor = bannerTextColor;
this.heroRanking = heroRanking;
this.heroDisplayConfig = heroDisplayConfig;
this.heroLogoDisplayConfig = heroLogoDisplayConfig;
this.heroUrl = heroUrl;
this.heroRiveUrl = heroRiveUrl;
this.heroAnimatedUrl = heroAnimatedUrl;
this.heroLogoUrl = heroLogoUrl;
this.heroBannerUrl = heroBannerUrl;
this.heroBannerAnimatedUrl = heroBannerAnimatedUrl;
this.catalogBannerUrl = catalogBannerUrl;
this.catalogBannerRiveUrl = catalogBannerRiveUrl;
this.catalogBannerAnimatedUrl = catalogBannerAnimatedUrl;
this.featuredBlockUrl = featuredBlockUrl;
this.logoUrl = logoUrl;
this.pdpBgUrl = pdpBgUrl;
this.wideBannerUrl = wideBannerUrl;
this.wideBannerAnimatedUrl = wideBannerAnimatedUrl;
this.mobileHeroUrl = mobileHeroUrl;
this.mobileHeroAnimatedUrl = mobileHeroAnimatedUrl;
this.mobileBannerUrl = mobileBannerUrl;
this.mobileBgUrl = mobileBgUrl;
this.shopButtonBgHoverUrl = shopButtonBgHoverUrl;
this.upsellBannerPopoutUrl = upsellBannerPopoutUrl;
this.upsellBannerUrl = upsellBannerUrl;
this.heroBlockTitle = heroBlockTitle;
this.featuredBlockBody = featuredBlockBody;
this.mobileHeroBlockTitle = mobileHeroBlockTitle;
this.mobileProductsTitle = mobileProductsTitle;
this.mobileSummary = mobileSummary;
this.wideBannerTitle = wideBannerTitle;
this.wideBannerBody = wideBannerBody;
}
function value_45448(a0) { // fn#45448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5326:1872, offset: 0x0118ece0, size: 1178 bytes, params: 2, frame: 22
var r9;
var r7;
const application_id = a0.application_id;
const created_at = a0.created_at;
const updated_at = a0.updated_at;
const unpublished_at = a0.unpublished_at;
const unpublish_settings = a0.unpublish_settings;
const tenant_metadata = a0.tenant_metadata;
const object3 = {'application_id': 0, 'created_at': 0, 'updated_at': 0, 'unpublished_at': 0,
'unpublish_settings': 0, 'tenant_metadata': 0};
silentSetPrototypeOf(object3, null, undefined);
let value = copyDataProperties({}, a0, object3, unpublished_at);
const object4 = {};
copyDataProperties(object4, value, object3);
object4['applicationId'] = application_id;
const products = value.products;
const map = products.map;
value = environment.__proto__;
object4['products'] = Reflect.apply(map, products, [StorefrontProductRecord.fromServer]);
let Date = global.Date;
const value4 = Object.create(Date.prototype, {constructor: {value: Date}});
let date = new Date(created_at);
object4['createdAt'] = date instanceof Object ? date : value4;
Date = global.Date;
const value6 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(updated_at);
object4['updatedAt'] = date instanceof Object ? date : value6;
const value8 = undefined;
if (unpublished_at != null) {
date = new global.Date(unpublished_at);
} else {
r9 = value8;
}
object4['unpublishedAt'] = r9;
if ((unpublish_settings == null ? value8 : unpublish_settings.will_unpublish_at) != null) {
date = new global.Date(unpublish_settings.will_unpublish_at);
} else {
r7 = value8;
}
object4['willUnpublishAt'] = r7;
const styles = tenant_metadata.collectibles.styles;
object4['styles'] = styles != null ? CollectiblesStoreListingStylesRecord.fromServer(tenant_metadata.collectibles.styles) : value8;
object4['bannerTextColor'] = tenant_metadata.collectibles.banner_text_color;
object4['heroRanking'] = tenant_metadata.collectibles.hero_ranking;
object4['heroDisplayConfig'] = tenant_metadata.collectibles.hero_display_config != null ? AssetDisplayConfigRecord.fromServer(tenant_metadata.collectibles.hero_display_config) : value8;
object4['heroLogoDisplayConfig'] = tenant_metadata.collectibles.hero_logo_display_config != null ? AssetDisplayConfigRecord.fromServer(tenant_metadata.collectibles.hero_logo_display_config) : value8;
object4['heroUrl'] = tenant_metadata.collectibles.hero_url;
object4['heroRiveUrl'] = tenant_metadata.collectibles.hero_rive_url;
object4['heroAnimatedUrl'] = tenant_metadata.collectibles.hero_animated_url;
object4['heroLogoUrl'] = tenant_metadata.collectibles.hero_logo_url;
object4['heroBannerUrl'] = tenant_metadata.collectibles.hero_banner_url;
object4['heroBannerAnimatedUrl'] = tenant_metadata.collectibles.hero_banner_animated_url;
object4['catalogBannerUrl'] = tenant_metadata.collectibles.catalog_banner_url;
object4['catalogBannerRiveUrl'] = tenant_metadata.collectibles.catalog_banner_rive_url;
object4['catalogBannerAnimatedUrl'] = tenant_metadata.collectibles.catalog_banner_animated_url;
object4['featuredBlockUrl'] = tenant_metadata.collectibles.featured_block_url;
object4['logoUrl'] = tenant_metadata.collectibles.logo_url;
object4['pdpBgUrl'] = tenant_metadata.collectibles.pdp_bg_url;
object4['wideBannerUrl'] = tenant_metadata.collectibles.wide_banner_url;
object4['wideBannerAnimatedUrl'] = tenant_metadata.collectibles.wide_banner_animated_url;
object4['mobileHeroUrl'] = tenant_metadata.collectibles.mobile_hero_url;
object4['mobileHeroAnimatedUrl'] = tenant_metadata.collectibles.mobile_hero_animated_url;
object4['mobileBannerUrl'] = tenant_metadata.collectibles.mobile_banner_url;
object4['mobileBgUrl'] = tenant_metadata.collectibles.mobile_bg_url;
object4['shopButtonBgHoverUrl'] = tenant_metadata.collectibles.shop_button_bg_hover_url;
object4['upsellBannerPopoutUrl'] = tenant_metadata.collectibles.upsell_banner_popout_url;
object4['upsellBannerUrl'] = tenant_metadata.collectibles.upsell_banner_url;
object4['heroBlockTitle'] = tenant_metadata.collectibles.hero_block_title;
object4['featuredBlockBody'] = tenant_metadata.collectibles.featured_block_body;
object4['mobileHeroBlockTitle'] = tenant_metadata.collectibles.mobile_hero_block_title;
object4['mobileProductsTitle'] = tenant_metadata.collectibles.mobile_products_title;
object4['mobileSummary'] = tenant_metadata.collectibles.mobile_summary;
object4['wideBannerTitle'] = tenant_metadata.collectibles.wide_banner_title;
object4['wideBannerBody'] = tenant_metadata.collectibles.wide_banner_body;
value = Object.create(StorefrontCollectionRecord.prototype, {constructor: {value: StorefrontCollectionRecord}});
const storefrontCollectionRecord = new StorefrontCollectionRecord(object4);
return storefrontCollectionRecord instanceof Object ? storefrontCollectionRecord : value;
}
@@ -0,0 +1,67 @@
/* Metro module 5150; source: modules/storefront/records/StorefrontProductRecord.tsx; dependencies: [6, 7, 5149, 4273, 2] */
function _fun45459(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5328:6, offset: 0x0118f433, size: 156 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 collectiblesStoreListingStylesRecord = importDefault(5149) /* metro dependency 5149: CollectiblesStoreListingStylesRecord */;
const skuRecord = importDefault(4273) /* metro dependency 4273: SKURecord */;
const value = _fun45460();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/storefront/records/StorefrontProductRecord.tsx');
exports.default = value;
}
function _fun45460() { // fn#45460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5328:138, offset: 0x0118f4cf, size: 58 bytes, params: 1, frame: 15
return env0_1(StorefrontProductRecord, null, [{key: 'fromServer', value: value_45462}]);
}
function StorefrontProductRecord({id, skuIds, name, summary, options, createdAt, updatedAt, skus, primaryCollectionId, primaryCollectionStyles, primaryCollectionPdpBgUrl, primaryCollectionWillUnpublishAt}) { // fn#45461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5328:149, offset: 0x0118f509, size: 171 bytes, params: 2, frame: 14
env1_0(this, StorefrontProductRecord);
this.id = id;
this.skuIds = skuIds;
this.name = name;
this.summary = summary;
this.options = options;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.skus = skus;
this.primaryCollectionId = primaryCollectionId;
this.primaryCollectionStyles = primaryCollectionStyles;
this.primaryCollectionPdpBgUrl = primaryCollectionPdpBgUrl;
this.primaryCollectionWillUnpublishAt = primaryCollectionWillUnpublishAt;
}
function value_45462(a0) { // fn#45462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5328:682, offset: 0x0118f5b4, size: 427 bytes, params: 2, frame: 21
const sku_ids = a0.sku_ids;
const options = a0.options;
const created_at = a0.created_at;
const updated_at = a0.updated_at;
const skus = a0.skus;
const tenant_metadata = a0.tenant_metadata;
const object3 = {'sku_ids': 0, 'options': 0, 'created_at': 0, 'updated_at': 0, 'skus': 0, 'tenant_metadata': 0};
silentSetPrototypeOf(object3, null, undefined);
const value = copyDataProperties({}, a0, object3, created_at);
const object4 = {};
copyDataProperties(object4, value, object3);
object4['skuIds'] = sku_ids;
object4['options'] = options.map(function(a0) {
return {name: a0.name, optionValues: a0.option_values};
});
let Date = global.Date;
let date = new Date(created_at);
object4['createdAt'] = date;
Date = global.Date;
date = new Date(updated_at);
object4['updatedAt'] = date;
object4['skus'] = skus.map(function(a0) {
return SKURecord.createFromServer(a0);
});
object4['primaryCollectionId'] = tenant_metadata.collectibles.primary_collection_id;
object4['primaryCollectionStyles'] = tenant_metadata.collectibles.primary_collection_styles != null ? CollectiblesStoreListingStylesRecord.fromServer(tenant_metadata.collectibles.primary_collection_styles) : undefined;
object4['primaryCollectionPdpBgUrl'] = tenant_metadata.collectibles.primary_collection_pdp_bg_url;
object4['primaryCollectionWillUnpublishAt'] = tenant_metadata.collectibles.primary_collection_will_unpublish_at != null ? new global.Date(tenant_metadata.collectibles.primary_collection_will_unpublish_at) : date;
date = Object.create(StorefrontProductRecord.prototype, {constructor: {value: StorefrontProductRecord}});
const storefrontProductRecord = new StorefrontProductRecord(object4);
return storefrontProductRecord instanceof Object ? storefrontProductRecord : date;
}
@@ -0,0 +1,136 @@
/* Metro module 10043; source: modules/storefront/records/StorefrontPromotionRecord.tsx; dependencies: [57, 6, 7, 15, 17, 18, 1886, 2] */
function _fun78523(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10229:6, offset: 0x01e2b607, size: 236 bytes, params: 8, frame: 18
const parseRewardConfig = function(a0) {
var value = null;
return value == a0 ? value : {discount: value != a0.discount ? {id: a0.discount.id, type: a0.discount.type,
amount: a0.discount.amount} : value};
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(57) /* metro dependency 57 */;
const env0_1 = importDefault(6) /* metro dependency 6 */;
const env0_2 = importDefault(7) /* metro dependency 7 */;
const env0_3 = importDefault(15) /* metro dependency 15 */;
const env0_4 = importDefault(17) /* metro dependency 17 */;
const env0_5 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(1886) /* metro dependency 1886: Record */;
value = _fun78529(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/storefront/records/StorefrontPromotionRecord.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_78524() { // fn#78524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10229:158, offset: 0x01e2b6f3, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_78524_isNativeReflectConstruct = function() {
return !!result;
})();
}
function parseSkuIds(a0) { // fn#78528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10229:1520, offset: 0x01e2b7b2, size: 114 bytes, params: 2, frame: 21
var r3;
var property;
var value4;
var property2;
var price_tiers;
var value5;
if (a0 == null) {
return null;
}
const object2 = {};
const Object = global.Object;
const value = Object.entries(a0);
let length = value.length;
const value2 = 0;
if (value2 < length) {
r3 = value2;
reducibleLoop2: while (true) {
property = value[r3];
value4 = env0_0(property, 2);
property = value4[value2];
property2 = value4[1];
price_tiers = property2.price_tiers;
object2[property] = {priceTiers: price_tiers};
value5 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
length = value.length;
if (value5 < length) {
r3 = value5;
continue reducibleLoop2;
}
break reducibleLoop2;
}
}
return object2;
}
function _fun78529(a0) { // fn#78529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10229:357, offset: 0x01e2b824, size: 75 bytes, params: 2, frame: 16
const closure = StorefrontPromotionRecord;
env0_5(closure, a0);
return env0_2(closure, null, [{key: 'createFromServer', value: value_78531}]);
}
function StorefrontPromotionRecord({id, applicationId, displayName, rewardType, rewardConfig, skuIds, appliesToAllSkus, startsAt, endsAt}) { // fn#78530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10229:369, offset: 0x01e2b86f, size: 216 bytes, params: 2, frame: 20
let value = environment.__proto__;
env1_1(this, StorefrontPromotionRecord);
const value3 = env1_4(StorefrontPromotionRecord);
value = env1_3(this, _isNativeReflectConstruct_78524() ? global.Reflect.construct(value3, [],
env1_4(this).constructor) : value3.apply(this, undefined));
value.id = id;
value.applicationId = applicationId;
value.displayName = displayName;
value.rewardType = rewardType;
value.rewardConfig = rewardConfig;
value.skuIds = skuIds;
value.appliesToAllSkus = appliesToAllSkus;
value.startsAt = startsAt;
value.endsAt = endsAt;
return value;
}
function value_78531(a0) { // fn#78531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10229:946, offset: 0x01e2b947, size: 281 bytes, params: 2, frame: 16
var date;
const object2 = {};
object2.id = a0.id;
object2.applicationId = a0.application_id;
const display_name = a0.display_name;
let value = null;
let r4 = value != display_name ? display_name : value;
object2.displayName = r4;
object2.rewardType = a0.reward_type;
object2.rewardConfig = value != a0.reward_config ? parseRewardConfig(a0.reward_config) : value;
object2.skuIds = parseSkuIds(a0.sku_ids);
object2.appliesToAllSkus = a0.applies_to_all_skus;
if (value != a0.starts_at) {
date = new global.Date(a0.starts_at);
} else {
r4 = value;
}
object2.startsAt = r4;
object2.endsAt = value != a0.ends_at ? new global.Date(a0.ends_at) : value;
value = Object.create(StorefrontPromotionRecord.prototype, {constructor: {value: StorefrontPromotionRecord}});
const storefrontPromotionRecord = new StorefrontPromotionRecord(object2);
return storefrontPromotionRecord instanceof Object ? storefrontPromotionRecord : value;
}