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,14 +1,17 @@
/* Metro module 7038; source: modules/premium/gifting/GiftPromotionStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 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 Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun55839(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:6, offset: 0x013b4c2c, size: 321 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 */;
object = {giftOptionsReceiptMap: {}};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun55843(PersistedStore);
value.displayName = 'GiftPromotionStore';
value.persistKey = 'GiftPromotionStore';
@@ -21,69 +24,83 @@ function _fun55839(global, require, importDefault, importAll, module, exports, d
env0_5 = {giftOptionsReceiptMap: {}};
}, GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION: GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION,
GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION: GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/GiftPromotionStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftPromotionStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_55840() { // fn#55840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:148, offset: 0x013b4d6d, 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_55840() { // fn#55840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:148, offset: 0x013b4d6d, 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_55840_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_55840_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun55843(a0) { // fn#55843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:380, offset: 0x013b4dcb, size: 114 bytes, params: 2, frame: 16
const closure = GiftPromotionStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: value_55845}, {key: 'getState', value: value_55846},
{key: 'getGiftOptionsForKey', value: value_55847}]);
}
function _fun55843(a0) { // fn#55843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:380, offset: 0x013b4dcb, size: 114 bytes, params: 2, frame: 16
const GiftPromotionStore2 = GiftPromotionStore;
Inherits(GiftPromotionStore2, a0);
return CreateClass(GiftPromotionStore2, [{key: 'initialize', value: value_55845}, {key: 'getState', value: value_55846},
{key: 'getGiftOptionsForKey', value: value_55847}]);
function GiftPromotionStore() { // fn#55844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:392, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, GiftPromotionStore);
const value3 = env1_3(GiftPromotionStore);
return env1_2(this, _isNativeReflectConstruct_55840() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION({key, giftOptions}) { // fn#55850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1231, offset: 0x013b4eba, size: 35 bytes, params: 2, frame: 3
env0_5.giftOptionsReceiptMap[key] = giftOptions;
}
function value_55845(a0) { // fn#55845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:700, offset: 0x013b4e3d, size: 41 bytes, params: 2, frame: 12
var value;
var binding;
var object;
if (a0 != null) {
value = environment.__proto__;
binding = env1_5;
object = {};
copyDataProperties(object, a0.giftOptionsReceiptMap, a0);
binding.giftOptionsReceiptMap = object;
}
}
function GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION({key}) { // fn#55851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1363, offset: 0x013b4edd, size: 29 bytes, params: 2, frame: 2
delete env0_5.giftOptionsReceiptMap[key];
}
function value_55846() { // fn#55846, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
function value_55847(a0) { // fn#55847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:856, offset: 0x013b4e66, size: 22 bytes, params: 2, frame: 2
return env1_5.giftOptionsReceiptMap[a0];
}
function value_55845(a0) { // fn#55845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:700, offset: 0x013b4e3d, size: 41 bytes, params: 2, frame: 12
var value;
var binding;
var object2;
if (a0 != null) {
value = environment.__proto__;
binding = env1_5;
object2 = {};
copyDataProperties(object2, a0.giftOptionsReceiptMap, a0);
binding.giftOptionsReceiptMap = object2;
}
function GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION({key, giftOptions}) { // fn#55850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1231, offset: 0x013b4eba, size: 35 bytes, params: 2, frame: 3
env0_5.giftOptionsReceiptMap[key] = giftOptions;
}
function GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION({key}) { // fn#55851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1363, offset: 0x013b4edd, size: 29 bytes, params: 2, frame: 2
delete env0_5.giftOptionsReceiptMap[key];
}
}
function value_55847(a0) { // fn#55847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:856, offset: 0x013b4e66, size: 22 bytes, params: 2, frame: 2
return env1_5.giftOptionsReceiptMap[a0];
}
global.__d(_fun55839, 7038, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 7038, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2320; source: modules/premium/gifting/GiftingBadge.messages.js; dependencies: [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2321, 1282, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22916(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:6, offset: 0x00f07a56, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_22917, cs: cs_22919, da: da_22921, de: de_22923, el: el_22925};
object2['en-GB'] = _fun22927;
object2['es-419'] = _fun22929;
object2['es-ES'] = _fun22931;
object2.fi = fi_22933;
object2.fr = fr_22935;
object2.hi = hi_22937;
object2.hr = hr_22939;
object2.hu = hu_22941;
object2.it = it_22943;
object2.ja = ja_22945;
object2.ko = ko_22947;
object2.lt = lt_22949;
object2.nl = nl_22951;
object2.no = no_22953;
object2.pl = pl_22955;
object2['pt-BR'] = _fun22957;
object2.ro = ro_22959;
object2.ru = ru_22961;
object2['sv-SE'] = _fun22963;
object2.th = th_22965;
object2.tr = tr_22967;
object2.uk = uk_22969;
object2.vi = vi_22971;
object2['zh-CN'] = _fun22973;
object2['zh-TW'] = _fun22975;
object2['en-US'] = _fun22977;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/GiftingBadge.messages.js');
object = {bg: bg_22917, cs: cs_22919, da: da_22921, de: de_22923, el: el_22925};
object['en-GB'] = _fun22927;
object['es-419'] = _fun22929;
object['es-ES'] = _fun22931;
object.fi = fi_22933;
object.fr = fr_22935;
object.hi = hi_22937;
object.hr = hr_22939;
object.hu = hu_22941;
object.it = it_22943;
object.ja = ja_22945;
object.ko = ko_22947;
object.lt = lt_22949;
object.nl = nl_22951;
object.no = no_22953;
object.pl = pl_22955;
object['pt-BR'] = _fun22957;
object.ro = ro_22959;
object.ru = ru_22961;
object['sv-SE'] = _fun22963;
object.th = th_22965;
object.tr = tr_22967;
object.uk = uk_22969;
object.vi = vi_22971;
object['zh-CN'] = _fun22973;
object['zh-TW'] = _fun22975;
object['en-US'] = _fun22977;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftingBadge.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_22917() { // fn#22917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:102, offset: 0x00f07c1b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2289) /* metro dependency 2289 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22919() { // fn#22919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:165, offset: 0x00f07c5c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2290) /* metro dependency 2290 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22921() { // fn#22921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:228, offset: 0x00f07c9d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2291) /* metro dependency 2291 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22923() { // fn#22923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:291, offset: 0x00f07cde, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2292) /* metro dependency 2292 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22925() { // fn#22925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:354, offset: 0x00f07d1f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2293) /* metro dependency 2293 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22927() { // fn#22927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:422, offset: 0x00f07d60, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2294) /* metro dependency 2294 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22929() { // fn#22929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:491, offset: 0x00f07da1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2295) /* metro dependency 2295 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22931() { // fn#22931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:559, offset: 0x00f07de2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2296) /* metro dependency 2296 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22933() { // fn#22933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:622, offset: 0x00f07e23, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2297) /* metro dependency 2297 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22935() { // fn#22935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:685, offset: 0x00f07e64, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2298) /* metro dependency 2298 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22937() { // fn#22937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:749, offset: 0x00f07ea5, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2299) /* metro dependency 2299 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22939() { // fn#22939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:813, offset: 0x00f07ee6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2300) /* metro dependency 2300 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22941() { // fn#22941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:877, offset: 0x00f07f27, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2301) /* metro dependency 2301 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22943() { // fn#22943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:941, offset: 0x00f07f68, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2302) /* metro dependency 2302 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22945() { // fn#22945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1005, offset: 0x00f07fa9, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2303) /* metro dependency 2303 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22947() { // fn#22947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1069, offset: 0x00f07fea, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2304) /* metro dependency 2304 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22949() { // fn#22949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1133, offset: 0x00f0802b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2305) /* metro dependency 2305 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22951() { // fn#22951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1197, offset: 0x00f0806c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2306) /* metro dependency 2306 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22953() { // fn#22953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1261, offset: 0x00f080ad, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2307) /* metro dependency 2307 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22955() { // fn#22955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1325, offset: 0x00f080ee, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2308) /* metro dependency 2308 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22957() { // fn#22957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1394, offset: 0x00f0812f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2309) /* metro dependency 2309 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22959() { // fn#22959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1458, offset: 0x00f08170, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2310) /* metro dependency 2310 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22961() { // fn#22961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1522, offset: 0x00f081b1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2311) /* metro dependency 2311 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22963() { // fn#22963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1591, offset: 0x00f081f2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2312) /* metro dependency 2312 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22965() { // fn#22965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1655, offset: 0x00f08233, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2313) /* metro dependency 2313 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22967() { // fn#22967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1719, offset: 0x00f08274, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2314) /* metro dependency 2314 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22969() { // fn#22969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1783, offset: 0x00f082b5, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2315) /* metro dependency 2315 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22971() { // fn#22971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1847, offset: 0x00f082f6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2316) /* metro dependency 2316 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22973() { // fn#22973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1916, offset: 0x00f08337, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2317) /* metro dependency 2317 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22975() { // fn#22975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1985, offset: 0x00f08378, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2318) /* metro dependency 2318 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22977() { // fn#22977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:2054, offset: 0x00f083b9, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2321) /* metro dependency 2321 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_22917() { // fn#22917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:102, offset: 0x00f07c1b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2289) /* metro dependency 2289 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22919() { // fn#22919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:165, offset: 0x00f07c5c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2290) /* metro dependency 2290 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22921() { // fn#22921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:228, offset: 0x00f07c9d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2291) /* metro dependency 2291 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22923() { // fn#22923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:291, offset: 0x00f07cde, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2292) /* metro dependency 2292 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22925() { // fn#22925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:354, offset: 0x00f07d1f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2293) /* metro dependency 2293 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22927() { // fn#22927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:422, offset: 0x00f07d60, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2294) /* metro dependency 2294 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22929() { // fn#22929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:491, offset: 0x00f07da1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2295) /* metro dependency 2295 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22931() { // fn#22931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:559, offset: 0x00f07de2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2296) /* metro dependency 2296 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22933() { // fn#22933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:622, offset: 0x00f07e23, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2297) /* metro dependency 2297 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22935() { // fn#22935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:685, offset: 0x00f07e64, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2298) /* metro dependency 2298 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22937() { // fn#22937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:749, offset: 0x00f07ea5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2299) /* metro dependency 2299 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22939() { // fn#22939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:813, offset: 0x00f07ee6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2300) /* metro dependency 2300 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22941() { // fn#22941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:877, offset: 0x00f07f27, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2301) /* metro dependency 2301 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22943() { // fn#22943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:941, offset: 0x00f07f68, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2302) /* metro dependency 2302 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22945() { // fn#22945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1005, offset: 0x00f07fa9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2303) /* metro dependency 2303 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22947() { // fn#22947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1069, offset: 0x00f07fea, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2304) /* metro dependency 2304 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22949() { // fn#22949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1133, offset: 0x00f0802b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2305) /* metro dependency 2305 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22951() { // fn#22951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1197, offset: 0x00f0806c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2306) /* metro dependency 2306 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22953() { // fn#22953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1261, offset: 0x00f080ad, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2307) /* metro dependency 2307 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22955() { // fn#22955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1325, offset: 0x00f080ee, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2308) /* metro dependency 2308 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22957() { // fn#22957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1394, offset: 0x00f0812f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2309) /* metro dependency 2309 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22959() { // fn#22959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1458, offset: 0x00f08170, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2310) /* metro dependency 2310 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22961() { // fn#22961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1522, offset: 0x00f081b1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2311) /* metro dependency 2311 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22963() { // fn#22963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1591, offset: 0x00f081f2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2312) /* metro dependency 2312 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22965() { // fn#22965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1655, offset: 0x00f08233, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2313) /* metro dependency 2313 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22967() { // fn#22967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1719, offset: 0x00f08274, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2314) /* metro dependency 2314 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22969() { // fn#22969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1783, offset: 0x00f082b5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2315) /* metro dependency 2315 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22971() { // fn#22971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1847, offset: 0x00f082f6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2316) /* metro dependency 2316 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22973() { // fn#22973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1916, offset: 0x00f08337, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2317) /* metro dependency 2317 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22975() { // fn#22975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1985, offset: 0x00f08378, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2318) /* metro dependency 2318 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22977() { // fn#22977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:2054, offset: 0x00f083b9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2321) /* metro dependency 2321 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22916, 2320, [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301,
2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2321,
1282,
2]) /* metro module 2320, dependencies: [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2321, 1282, 2] */;
@@ -1,4 +1,7 @@
/* Metro module 10469; source: modules/premium/gifting/GiftingBadgeConstants.tsx; dependencies: [7670, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BadgeDirectoryStoreModule from '../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun81014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:6, offset: 0x01e956e8, size: 139 bytes, params: 8, frame: 19
const closure = function(a0, a1) {
var env0_0 = a1;
@@ -6,39 +9,54 @@ function _fun81014(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let env0_0 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/GiftingBadgeConstants.tsx');
let env0_0 = (BadgeDirectoryStoreModule).getSingleRequirementThreshold;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftingBadgeConstants.tsx');
exports.getTierForProgress = function(a0, a1) {
var env0_0 = a1;
return a0.reduce(_fun81018, null);
};
exports.getNextTierForProgress = closure;
exports.getRemainingGiftsToNextTier = getRemainingGiftsToNextTier;
function getNextTierForProgress(a0, a1) { // fn#81015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:136, offset: 0x01e95773, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require >= value4 ? value : value == null || value4 < getSingleRequirementThreshold(value) ? value2 : value;
}, null);
function _fun81016(a0, a1) { // fn#81016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:190, offset: 0x01e95796, size: 61 bytes, params: 3, frame: 15
const value = a0;
const value2 = a1;
const singleRequirementThreshold = getSingleRequirementThreshold(value2);
return require >= singleRequirementThreshold ? value : value == null || singleRequirementThreshold < getSingleRequirementThreshold(value) ? value2 : value;
}
}
function getTierForProgress(a0, a1) { // fn#81017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:355, offset: 0x01e957d3, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require < value4 ? value : value == null || value4 > getSingleRequirementThreshold(value) ? value2 : value;
}, null);
function _fun81018(a0, a1) { // fn#81018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:405, offset: 0x01e957f6, size: 61 bytes, params: 3, frame: 15
const value = a0;
const value2 = a1;
const singleRequirementThreshold = getSingleRequirementThreshold(value2);
return require < singleRequirementThreshold ? value : value == null || singleRequirementThreshold > getSingleRequirementThreshold(value) ? value2 : value;
}
}
function getRemainingGiftsToNextTier(a0, a1) { // fn#81019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:544, offset: 0x01e95833, size: 45 bytes, params: 3, frame: 15
const nextTierForProgress = getNextTierForProgress(a0, a1);
const value3 = null;
return value3 == nextTierForProgress ? value3 : getSingleRequirementThreshold(nextTierForProgress) - a1;
}
}
function getNextTierForProgress(a0, a1) { // fn#81015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:136, offset: 0x01e95773, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require >= value4 ? value : value == null || value4 < getSingleRequirementThreshold(value) ? value2 : value;
}, null);
}
function getTierForProgress(a0, a1) { // fn#81017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:355, offset: 0x01e957d3, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require < value4 ? value : value == null || value4 > getSingleRequirementThreshold(value) ? value2 : value;
}, null);
}
function getRemainingGiftsToNextTier(a0, a1) { // fn#81019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:544, offset: 0x01e95833, size: 45 bytes, params: 3, frame: 15
const nextTierForProgress = getNextTierForProgress(a0, a1);
const value3 = null;
return value3 == nextTierForProgress ? value3 : getSingleRequirementThreshold(nextTierForProgress) - a1;
}
global.__d(_fun81014, 10469, [7670, 2]) /* metro module 10469, dependencies: [7670, 2] */;
@@ -1,24 +1,28 @@
/* Metro module 2322; source: modules/premium/gifting/GiftingBadgeTier.messages.js; dependencies: [1247, 2323, 1282, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22980(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2449:6, offset: 0x00f08440, size: 155 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {};
object2['en-US'] = _fun22981;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/GiftingBadgeTier.messages.js');
object = {};
object['en-US'] = _fun22981;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftingBadgeTier.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function _fun22981() { // fn#22981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2449:107, offset: 0x00f084db, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2323) /* metro dependency 2323 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function _fun22981() { // fn#22981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2449:107, offset: 0x00f084db, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2323) /* metro dependency 2323 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22980, 2322, [1247, 2323, 1282, 2]) /* metro module 2322, dependencies: [1247, 2323, 1282, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2288; source: modules/premium/gifting/PremiumGifting.messages.js; dependencies: [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 1282, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22822(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:6, offset: 0x00f06838, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_22823, cs: cs_22825, da: da_22827, de: de_22829, el: el_22831};
object2['en-GB'] = _fun22833;
object2['es-419'] = _fun22835;
object2['es-ES'] = _fun22837;
object2.fi = fi_22839;
object2.fr = fr_22841;
object2.hi = hi_22843;
object2.hr = hr_22845;
object2.hu = hu_22847;
object2.it = it_22849;
object2.ja = ja_22851;
object2.ko = ko_22853;
object2.lt = lt_22855;
object2.nl = nl_22857;
object2.no = no_22859;
object2.pl = pl_22861;
object2['pt-BR'] = _fun22863;
object2.ro = ro_22865;
object2.ru = ru_22867;
object2['sv-SE'] = _fun22869;
object2.th = th_22871;
object2.tr = tr_22873;
object2.uk = uk_22875;
object2.vi = vi_22877;
object2['zh-CN'] = _fun22879;
object2['zh-TW'] = _fun22881;
object2['en-US'] = _fun22883;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/PremiumGifting.messages.js');
object = {bg: bg_22823, cs: cs_22825, da: da_22827, de: de_22829, el: el_22831};
object['en-GB'] = _fun22833;
object['es-419'] = _fun22835;
object['es-ES'] = _fun22837;
object.fi = fi_22839;
object.fr = fr_22841;
object.hi = hi_22843;
object.hr = hr_22845;
object.hu = hu_22847;
object.it = it_22849;
object.ja = ja_22851;
object.ko = ko_22853;
object.lt = lt_22855;
object.nl = nl_22857;
object.no = no_22859;
object.pl = pl_22861;
object['pt-BR'] = _fun22863;
object.ro = ro_22865;
object.ru = ru_22867;
object['sv-SE'] = _fun22869;
object.th = th_22871;
object.tr = tr_22873;
object.uk = uk_22875;
object.vi = vi_22877;
object['zh-CN'] = _fun22879;
object['zh-TW'] = _fun22881;
object['en-US'] = _fun22883;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/PremiumGifting.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_22823() { // fn#22823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:102, offset: 0x00f069fd, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2289) /* metro dependency 2289 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22825() { // fn#22825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:165, offset: 0x00f06a3e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2290) /* metro dependency 2290 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22827() { // fn#22827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:228, offset: 0x00f06a7f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2291) /* metro dependency 2291 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22829() { // fn#22829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:291, offset: 0x00f06ac0, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2292) /* metro dependency 2292 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22831() { // fn#22831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:354, offset: 0x00f06b01, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2293) /* metro dependency 2293 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22833() { // fn#22833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:422, offset: 0x00f06b42, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2294) /* metro dependency 2294 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22835() { // fn#22835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:491, offset: 0x00f06b83, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2295) /* metro dependency 2295 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22837() { // fn#22837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:559, offset: 0x00f06bc4, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2296) /* metro dependency 2296 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22839() { // fn#22839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:622, offset: 0x00f06c05, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2297) /* metro dependency 2297 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22841() { // fn#22841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:685, offset: 0x00f06c46, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2298) /* metro dependency 2298 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22843() { // fn#22843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:749, offset: 0x00f06c87, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2299) /* metro dependency 2299 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22845() { // fn#22845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:813, offset: 0x00f06cc8, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2300) /* metro dependency 2300 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22847() { // fn#22847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:877, offset: 0x00f06d09, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2301) /* metro dependency 2301 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22849() { // fn#22849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:941, offset: 0x00f06d4a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2302) /* metro dependency 2302 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22851() { // fn#22851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1005, offset: 0x00f06d8b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2303) /* metro dependency 2303 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22853() { // fn#22853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1069, offset: 0x00f06dcc, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2304) /* metro dependency 2304 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22855() { // fn#22855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1133, offset: 0x00f06e0d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2305) /* metro dependency 2305 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22857() { // fn#22857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1197, offset: 0x00f06e4e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2306) /* metro dependency 2306 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22859() { // fn#22859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1261, offset: 0x00f06e8f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2307) /* metro dependency 2307 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22861() { // fn#22861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1325, offset: 0x00f06ed0, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2308) /* metro dependency 2308 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22863() { // fn#22863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1394, offset: 0x00f06f11, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2309) /* metro dependency 2309 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22865() { // fn#22865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1458, offset: 0x00f06f52, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2310) /* metro dependency 2310 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22867() { // fn#22867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1522, offset: 0x00f06f93, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2311) /* metro dependency 2311 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22869() { // fn#22869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1591, offset: 0x00f06fd4, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2312) /* metro dependency 2312 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22871() { // fn#22871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1655, offset: 0x00f07015, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2313) /* metro dependency 2313 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22873() { // fn#22873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1719, offset: 0x00f07056, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2314) /* metro dependency 2314 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22875() { // fn#22875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1783, offset: 0x00f07097, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2315) /* metro dependency 2315 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22877() { // fn#22877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1847, offset: 0x00f070d8, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2316) /* metro dependency 2316 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22879() { // fn#22879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1916, offset: 0x00f07119, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2317) /* metro dependency 2317 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22881() { // fn#22881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1985, offset: 0x00f0715a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2318) /* metro dependency 2318 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22883() { // fn#22883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:2054, offset: 0x00f0719b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2319) /* metro dependency 2319 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_22823() { // fn#22823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:102, offset: 0x00f069fd, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2289) /* metro dependency 2289 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22825() { // fn#22825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:165, offset: 0x00f06a3e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2290) /* metro dependency 2290 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22827() { // fn#22827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:228, offset: 0x00f06a7f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2291) /* metro dependency 2291 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22829() { // fn#22829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:291, offset: 0x00f06ac0, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2292) /* metro dependency 2292 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22831() { // fn#22831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:354, offset: 0x00f06b01, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2293) /* metro dependency 2293 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22833() { // fn#22833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:422, offset: 0x00f06b42, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2294) /* metro dependency 2294 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22835() { // fn#22835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:491, offset: 0x00f06b83, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2295) /* metro dependency 2295 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22837() { // fn#22837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:559, offset: 0x00f06bc4, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2296) /* metro dependency 2296 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22839() { // fn#22839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:622, offset: 0x00f06c05, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2297) /* metro dependency 2297 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22841() { // fn#22841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:685, offset: 0x00f06c46, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2298) /* metro dependency 2298 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22843() { // fn#22843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:749, offset: 0x00f06c87, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2299) /* metro dependency 2299 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22845() { // fn#22845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:813, offset: 0x00f06cc8, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2300) /* metro dependency 2300 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22847() { // fn#22847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:877, offset: 0x00f06d09, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2301) /* metro dependency 2301 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22849() { // fn#22849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:941, offset: 0x00f06d4a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2302) /* metro dependency 2302 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22851() { // fn#22851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1005, offset: 0x00f06d8b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2303) /* metro dependency 2303 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22853() { // fn#22853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1069, offset: 0x00f06dcc, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2304) /* metro dependency 2304 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22855() { // fn#22855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1133, offset: 0x00f06e0d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2305) /* metro dependency 2305 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22857() { // fn#22857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1197, offset: 0x00f06e4e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2306) /* metro dependency 2306 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22859() { // fn#22859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1261, offset: 0x00f06e8f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2307) /* metro dependency 2307 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22861() { // fn#22861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1325, offset: 0x00f06ed0, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2308) /* metro dependency 2308 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22863() { // fn#22863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1394, offset: 0x00f06f11, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2309) /* metro dependency 2309 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22865() { // fn#22865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1458, offset: 0x00f06f52, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2310) /* metro dependency 2310 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22867() { // fn#22867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1522, offset: 0x00f06f93, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2311) /* metro dependency 2311 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22869() { // fn#22869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1591, offset: 0x00f06fd4, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2312) /* metro dependency 2312 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22871() { // fn#22871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1655, offset: 0x00f07015, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2313) /* metro dependency 2313 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22873() { // fn#22873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1719, offset: 0x00f07056, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2314) /* metro dependency 2314 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22875() { // fn#22875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1783, offset: 0x00f07097, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2315) /* metro dependency 2315 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22877() { // fn#22877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1847, offset: 0x00f070d8, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2316) /* metro dependency 2316 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22879() { // fn#22879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1916, offset: 0x00f07119, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2317) /* metro dependency 2317 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22881() { // fn#22881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1985, offset: 0x00f0715a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2318) /* metro dependency 2318 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22883() { // fn#22883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:2054, offset: 0x00f0719b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2319) /* metro dependency 2319 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22822, 2288, [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301,
2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319,
1282,
2]) /* metro module 2288, dependencies: [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 1282, 2] */;
@@ -1,40 +1,43 @@
/* Metro module 12159; source: modules/premium/gifting/PremiumGiftingConstants.tsx; dependencies: [1880, 2288, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun93252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12345:6, offset: 0x020ac83a, size: 440 bytes, params: 8, frame: 20
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PremiumGiftStyles = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumGiftStyles;
object2 = {};
const PremiumGiftStyles = (PremiumConstantsModule).PremiumGiftStyles;
object = {};
const SNOWGLOBE = PremiumGiftStyles.SNOWGLOBE;
const M6cPwB = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).M6cPwB;
object2[SNOWGLOBE] = M6cPwB;
object[SNOWGLOBE] = M6cPwB;
const BOX = PremiumGiftStyles.BOX;
const B9XqQk = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).B9XqQk;
object2[BOX] = B9XqQk;
object[BOX] = B9XqQk;
const CUP = PremiumGiftStyles.CUP;
object2[CUP] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['6dCq/u'];
object[CUP] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['6dCq/u'];
const STANDARD_BOX = PremiumGiftStyles.STANDARD_BOX;
const GzPel1 = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).GzPel1;
object2[STANDARD_BOX] = GzPel1;
object[STANDARD_BOX] = GzPel1;
const CAKE = PremiumGiftStyles.CAKE;
const AJ4iir = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).AJ4iir;
object2[CAKE] = AJ4iir;
object[CAKE] = AJ4iir;
const CHEST = PremiumGiftStyles.CHEST;
const P5keo3 = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).P5keo3;
object2[CHEST] = P5keo3;
object[CHEST] = P5keo3;
const COFFEE = PremiumGiftStyles.COFFEE;
object2[COFFEE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).w84vET;
object[COFFEE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).w84vET;
const SEASONAL_STANDARD_BOX = PremiumGiftStyles.SEASONAL_STANDARD_BOX;
object2[SEASONAL_STANDARD_BOX] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['vd1fu/'];
object[SEASONAL_STANDARD_BOX] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['vd1fu/'];
const SEASONAL_CAKE = PremiumGiftStyles.SEASONAL_CAKE;
object2[SEASONAL_CAKE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).aubYGR;
object[SEASONAL_CAKE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).aubYGR;
const SEASONAL_CHEST = PremiumGiftStyles.SEASONAL_CHEST;
object2[SEASONAL_CHEST] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).vjxYqU;
object[SEASONAL_CHEST] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).vjxYqU;
const SEASONAL_COFFEE = PremiumGiftStyles.SEASONAL_COFFEE;
object2[SEASONAL_COFFEE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).bHuJLa;
object[SEASONAL_COFFEE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).bHuJLa;
const NITROWEEN_STANDARD = PremiumGiftStyles.NITROWEEN_STANDARD;
object2[NITROWEEN_STANDARD] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['+HMF8k'];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/PremiumGiftingConstants.tsx');
exports.GIFT_STYLE_DESCRIPTIONS = object2;
object[NITROWEEN_STANDARD] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['+HMF8k'];
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/PremiumGiftingConstants.tsx');
exports.GIFT_STYLE_DESCRIPTIONS = object;
}
global.__d(_fun93252, 12159, [1880, 2288, 2]) /* metro module 12159, dependencies: [1880, 2288, 2] */;
@@ -1,76 +1,82 @@
/* Metro module 7677; source: modules/premium/gifting/PremiumGiftingIntentActionCreators.tsx; dependencies: [1226, 661, 507, 694, 2] */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun61337(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:6, offset: 0x01b3bb64, size: 203 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/PremiumGiftingIntentActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/PremiumGiftingIntentActionCreators.tsx');
exports.fetchAndReconcileGiftIntentDismissals = fetchAndReconcileGiftIntentDismissals;
exports.logFriendsListGiftIntentsShown = logFriendsListGiftIntentsShown;
exports.logMessageGiftIntentShown = logMessageGiftIntentShown;
exports.logGiftIntentFlowPurchasedGift = logGiftIntentFlowPurchasedGift;
exports.logGiftIntentUnreadNotificationDismiss = logGiftIntentUnreadNotificationDismiss;
exports.logProfilePopoutGiftIntentsDismiss = logProfilePopoutGiftIntentsDismiss;
}
function fetchAndReconcileGiftIntentDismissals(a0) { // fn#61338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:262, offset: 0x01b3bc2f, size: 116 bytes, params: 2, frame: 14
const env0_0 = a0;
const env0_1 = AuthenticationStore.getId();
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const GIFT_INTENT_DISMISSALS = Endpoints.GIFT_INTENT_DISMISSALS;
return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true,
url: GIFT_INTENT_DISMISSALS}]).then(_fun61339, _fun61341);
function _fun61339(a0) { // fn#61339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:426, offset: 0x01b3bca3, size: 177 bytes, params: 2, frame: 15
var environment;
var dispatch;
var object;
let value = environment.__proto__;
if (AuthenticationStore.getId() === env0_1) {
value = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = value.dispatch;
object = {type: 'GIFT_INTENT_DISMISSALS_FETCH_SUCCESS'};
object.dismissals = (a0.body.dismissals ?? []).map(function(a0) {
var object = {targetId: a0.target_id};
var Number = global.Number;
object.dismissedAtMs = Number(a0.dismissed_at_ms);
return object;
});
object.settingsTimestampMs = env0_0;
Reflect.apply(dispatch, value, [object]);
} else {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_INTENT_DISMISSALS_FETCH_FAILURE'});
}
}
function fetchAndReconcileGiftIntentDismissals(a0) { // fn#61338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:262, offset: 0x01b3bc2f, size: 116 bytes, params: 2, frame: 14
const env0_0 = a0;
const env0_1 = AuthenticationStore.getId();
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const GIFT_INTENT_DISMISSALS = Endpoints.GIFT_INTENT_DISMISSALS;
return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true,
url: GIFT_INTENT_DISMISSALS}]).then(_fun61339, _fun61341);
}
function _fun61341() { // fn#61341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:724, offset: 0x01b3bd82, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GIFT_INTENT_DISMISSALS_FETCH_FAILURE'});
}
function logFriendsListGiftIntentsShown() { // fn#61342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:830, offset: 0x01b3bdb3, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRIENDS_LIST_GIFT_INTENTS_SHOWN'});
}
function logMessageGiftIntentShown(a0) { // fn#61343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:960, offset: 0x01b3bde4, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MESSAGE_GIFT_INTENT_SHOWN',
recipientUserId: a0});
}
function logGiftIntentFlowPurchasedGift(a0) { // fn#61344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1103, offset: 0x01b3be1d, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_INTENT_FLOW_PURCHASED_GIFT',
recipientUserId: a0});
}
function logGiftIntentUnreadNotificationDismiss() { // fn#61345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1265, offset: 0x01b3be56, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_UNREAD_NOTIFICATION_DISMISS'});
}
function logProfilePopoutGiftIntentsDismiss(a0) { // fn#61346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1413, offset: 0x01b3be87, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PROFILE_POPOUT_GIFT_INTENTS_DISMISS',
recipientUserId: a0});
}
function _fun61339(a0) { // fn#61339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:426, offset: 0x01b3bca3, size: 177 bytes, params: 2, frame: 15
var environment;
var dispatch;
var object2;
let value = environment.__proto__;
if (AuthenticationStore.getId() === env0_1) {
value = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = value.dispatch;
object2 = {type: 'GIFT_INTENT_DISMISSALS_FETCH_SUCCESS'};
object2.dismissals = (a0.body.dismissals ?? []).map(function(a0) {
var object = {targetId: a0.target_id};
var Number = global.Number;
object.dismissedAtMs = Number(a0.dismissed_at_ms);
return object;
});
object2.settingsTimestampMs = env0_0;
Reflect.apply(dispatch, value, [object2]);
} else {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_INTENT_DISMISSALS_FETCH_FAILURE'});
}
function logFriendsListGiftIntentsShown() { // fn#61342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:830, offset: 0x01b3bdb3, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'FRIENDS_LIST_GIFT_INTENTS_SHOWN'});
}
function logMessageGiftIntentShown(a0) { // fn#61343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:960, offset: 0x01b3bde4, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'MESSAGE_GIFT_INTENT_SHOWN',
recipientUserId: a0});
}
function logGiftIntentFlowPurchasedGift(a0) { // fn#61344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1103, offset: 0x01b3be1d, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'GIFT_INTENT_FLOW_PURCHASED_GIFT',
recipientUserId: a0});
}
function logGiftIntentUnreadNotificationDismiss() { // fn#61345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1265, offset: 0x01b3be56, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'GIFT_UNREAD_NOTIFICATION_DISMISS'});
}
function logProfilePopoutGiftIntentsDismiss(a0) { // fn#61346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1413, offset: 0x01b3be87, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'PROFILE_POPOUT_GIFT_INTENTS_DISMISS',
recipientUserId: a0});
}
}
function _fun61341() { // fn#61341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:724, offset: 0x01b3bd82, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_INTENT_DISMISSALS_FETCH_FAILURE'});
}
global.__d(_fun61337, 7677, [1226, 661, 507, 694,
2]) /* metro module 7677, dependencies: [1226, 661, 507, 694, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,12 +1,16 @@
/* Metro module 7676; source: modules/premium/gifting/experiments/GiftPromotionReminderExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun61336(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7854:6, offset: 0x01b3bacd, size: 151 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-04-gift-promotion-reminder', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/experiments/GiftPromotionReminderExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/experiments/GiftPromotionReminderExperiment.tsx');
exports.default = value;
exports.GiftPromotionReminderExperiment = value;
}
global.__d(_fun61336, 7676, [1854, 2]) /* metro module 7676, dependencies: [1854, 2] */;
@@ -1,12 +1,16 @@
/* Metro module 7633; source: modules/premium/gifting/experiments/GiftingBadgeExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun61142(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7811:6, offset: 0x0171b983, size: 151 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-04-gifting-badge', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/experiments/GiftingBadgeExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/experiments/GiftingBadgeExperiment.tsx');
exports.default = value;
exports.GiftingBadgeExperiment = value;
}
global.__d(_fun61142, 7633, [1854, 2]) /* metro module 7633, dependencies: [1854, 2] */;
@@ -1,14 +1,18 @@
/* Metro module 7672; source: modules/premium/gifting/experiments/NitroGiftPriceCopyExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun61303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7850:6, offset: 0x01b3ac66, size: 195 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-06-nitro-gifting-price-copy-tweaks', 'kind': 'user',
defaultConfig: {'showGiftPrice': true, 'useNewCopy': false, 'monthlyDefaultSelected': false},
variations: {[1]: {'showGiftPrice': false, 'useNewCopy': false, 'monthlyDefaultSelected': false},
[2]: {'showGiftPrice': true, 'useNewCopy': true, 'monthlyDefaultSelected': false}, [3]: {'showGiftPrice': true,
'useNewCopy': true, 'monthlyDefaultSelected': true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/experiments/NitroGiftPriceCopyExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/experiments/NitroGiftPriceCopyExperiment.tsx');
exports.default = value;
}
global.__d(_fun61303, 7672, [1854, 2]) /* metro module 7672, dependencies: [1854, 2] */;
@@ -1,12 +1,15 @@
/* Metro module 7640; source: modules/premium/gifting/hooks/useGiftStyles.tsx; dependencies: [1880, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from '../../PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun61178(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7818:6, offset: 0x0171cf68, size: 107 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumGiftStyles;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/hooks/useGiftStyles.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/hooks/useGiftStyles.tsx');
exports.useGiftStyles = function() {
var STANDARD_BOX = PremiumGiftStyles.STANDARD_BOX;
return [STANDARD_BOX];
};
}
global.__d(_fun61178, 7640, [1880, 2]) /* metro module 7640, dependencies: [1880, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 10464; source: modules/premium/gifting/hooks/useGiftingPromotionConfig.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun80986(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10650:6, offset: 0x01e936c9, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionConfig.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionConfig.tsx');
exports.default = function() {
return null;
};
}
global.__d(_fun80986, 10464, [2]) /* metro module 10464, dependencies: [2] */;
@@ -1,8 +1,10 @@
/* Metro module 10459; source: modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun80956(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10645:6, offset: 0x01e9168c, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx');
exports.useGiftingPromotionDefaultSelectionV2 = function(a0, a1) {
var value = a1;
if (a0 != null) {
@@ -13,3 +15,4 @@ function _fun80956(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun80956, 10459, [2]) /* metro module 10459, dependencies: [2] */;
@@ -1,74 +1,84 @@
/* Metro module 11433; source: modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx; dependencies: [31, 1244, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun87500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:6, offset: 0x01fc0ef7, size: 256 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['7vWJmY']);
};
const closure2 = useGiftIntentExpressionPickerConfig;
const useGiftIntentExpressionPickerConfig2 = useGiftIntentExpressionPickerConfig;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const Set = global.Set;
const set = new Set();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx');
exports.setGiftIntentExpressionPickerConfig = function(a0) {
env0_3 = a0;
emitChange();
};
exports.getGiftIntentCustomMessagePlaceholder = closure;
exports.useGiftIntentExpressionPickerConfig = closure2;
exports.useGiftIntentExpressionPickerConfig = useGiftIntentExpressionPickerConfig2;
exports.clearGiftIntentExpressionPickerConfig = clearGiftIntentExpressionPickerConfig;
exports.useGiftIntentExpressionPickerActive = useGiftIntentExpressionPickerActive;
exports.useGiftIntentExpressionPickerPlaceholder = useGiftIntentExpressionPickerPlaceholder;
}
function emitChange() { // fn#87501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:123, offset: 0x01fc0ff7, size: 30 bytes, params: 1, frame: 11
env0_4.forEach(function(a0) {
return a0();
});
}
function subscribe_87503(a0) { // fn#87503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:165, offset: 0x01fc1015, size: 35 bytes, params: 2, frame: 12
const env0_0 = a0;
env0_4.add(a0);
return _fun87504;
}
function useGiftIntentExpressionPickerConfig(a0) { // fn#87507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:380, offset: 0x01fc1092, size: 67 bytes, params: 2, frame: 16
const binding = env0_2;
const useSyncExternalStore = binding.useSyncExternalStore;
const subscribe_87503Binding = subscribe_87503;
const getGiftIntentExpressionPickerConfigSnapshotBinding = getGiftIntentExpressionPickerConfigSnapshot;
const value = Reflect.apply(useSyncExternalStore, binding, [subscribe_87503Binding,
getGiftIntentExpressionPickerConfigSnapshotBinding, getGiftIntentExpressionPickerConfigSnapshotBinding]);
const value2 = null;
return value2 == a0 || (value2 == value ? undefined : value.channelId) !== a0 ? value2 : value;
}
function clearGiftIntentExpressionPickerConfig(a0) { // fn#87509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1008, offset: 0x01fc10eb, size: 61 bytes, params: 2, frame: 13
var r0;
var binding;
let value = a0 != null;
if (value) {
binding = env0_3;
value = undefined;
value = (binding == null ? value : binding.channelId) !== a0;
r0 = value;
} else {
r0 = value;
function emitChange() { // fn#87501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:123, offset: 0x01fc0ff7, size: 30 bytes, params: 1, frame: 11
env0_4.forEach(function(a0) {
return a0();
});
}
if (!r0) {
emitChange();
function subscribe_87503(a0) { // fn#87503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:165, offset: 0x01fc1015, size: 35 bytes, params: 2, frame: 12
const env0_0 = a0;
env0_4.add(a0);
return _fun87504;
function _fun87504() { // fn#87504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:203, offset: 0x01fc1038, size: 26 bytes, params: 1, frame: 11
return env1_4.delete(env0_0);
}
}
function getGiftIntentExpressionPickerConfigSnapshot() { // fn#87505, offset: 0x00c7c381, size: 9 bytes, params: 1, frame: 1
return env0_3;
}
function useGiftIntentExpressionPickerConfig(a0) { // fn#87507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:380, offset: 0x01fc1092, size: 67 bytes, params: 2, frame: 16
const useSyncExternalStore = ReactModule.useSyncExternalStore;
const subscribe_87503Binding = subscribe_87503;
const getGiftIntentExpressionPickerConfigSnapshotBinding = getGiftIntentExpressionPickerConfigSnapshot;
const value = Reflect.apply(useSyncExternalStore, ReactModule, [subscribe_87503Binding,
getGiftIntentExpressionPickerConfigSnapshotBinding, getGiftIntentExpressionPickerConfigSnapshotBinding]);
const value2 = null;
return value2 == a0 || (value2 == value ? undefined : value.channelId) !== a0 ? value2 : value;
}
function clearGiftIntentExpressionPickerConfig(a0) { // fn#87509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1008, offset: 0x01fc10eb, size: 61 bytes, params: 2, frame: 13
var r0;
var binding;
let value = a0 != null;
if (value) {
binding = env0_3;
value = undefined;
value = (binding == null ? value : binding.channelId) !== a0;
r0 = value;
} else {
r0 = value;
}
if (!r0) {
emitChange();
}
}
function useGiftIntentExpressionPickerActive(a0) { // fn#87510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1172, offset: 0x0102b252, size: 25 bytes, params: 2, frame: 11
return useGiftIntentExpressionPickerConfig(a0) != null;
}
function useGiftIntentExpressionPickerPlaceholder(a0) { // fn#87511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1316, offset: 0x01fc1128, size: 36 bytes, params: 2, frame: 12
const value2 = useGiftIntentExpressionPickerConfig(a0);
const value3 = null;
return value3 == value2 ? value3 : getGiftIntentCustomMessagePlaceholder();
}
}
function useGiftIntentExpressionPickerPlaceholder(a0) { // fn#87511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1316, offset: 0x01fc1128, size: 36 bytes, params: 2, frame: 12
const value2 = useGiftIntentExpressionPickerConfig(a0);
const value3 = null;
return value3 == value2 ? value3 : getGiftIntentCustomMessagePlaceholder();
}
function _fun87504() { // fn#87504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:203, offset: 0x01fc1038, size: 26 bytes, params: 1, frame: 11
return env1_4.delete(env0_0);
}
global.__d(_fun87500, 11433, [31, 1244, 2]) /* metro module 11433, dependencies: [31, 1244, 2] */;
@@ -1,113 +1,156 @@
/* Metro module 10387; source: modules/premium/gifting/native/GiftingBadgeInfoActionSheet.tsx; dependencies: [31, 27, 4502, 7670, 661, 33, 4501, 697, 1585, 566, 7635, 683, 6275, 4573, 1244, 2320, 10388, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import BadgeDirectoryStore from '../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as BadgeDirectoryStoreModule from '../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun80468(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:6, offset: 0x01e7c2a7, size: 519 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const badgeDirectoryStore = importDefault(7670) /* metro dependency 7670: BadgeDirectoryStore */;
const env0_7 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {alignItems: 'center'};
object = {};
const object2 = {alignItems: 'center'};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingTop = PX_16;
object2.paddingTop = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object3.container = object4;
object2.paddingHorizontal = PX_16;
object.container = object2;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.title = {textAlign: 'center', marginBottom: PX_8};
object.title = {textAlign: 'center', marginBottom: PX_8};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.description = {textAlign: 'center', marginBottom: PX_16};
object.description = {textAlign: 'center', marginBottom: PX_16};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.tierCards = {'flexDirection': 'row', 'flexWrap': 'wrap', rowGap: PX_8};
object.tierCards = {'flexDirection': 'row', 'flexWrap': 'wrap', rowGap: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.tierCard = {'width': '33.33%', 'alignItems': 'center', padding: PX_8};
object.tierCard = {'width': '33.33%', 'alignItems': 'center', padding: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.iconWrapper = {paddingVertical: PX_8};
const env0_11 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/GiftingBadgeInfoActionSheet.tsx');
object.iconWrapper = {paddingVertical: PX_8};
const env0_11 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/GiftingBadgeInfoActionSheet.tsx');
exports.default = GiftingBadgeInfoActionSheet;
}
function GiftingBadgeInfoActionSheet() { // fn#80469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:788, offset: 0x01e7c4ae, size: 555 bytes, params: 1, frame: 30
const value2 = undefined;
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const badgeById = (require(566) /* metro dependency 566: flux */).useStateFromStores([BadgeDirectoryStore],
function() {
return BadgeDirectoryStore.getBadgeById(require(dependencyMap[10]).BadgeId.GIFTING);
});
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.useReducedMotion;
});
env0_3.useEffect(function() {
importDefault(dependencyMap[11]).track(AnalyticEvents.GIFTING_BADGE_INFO_ACTION_SHEET_OPENED);
}, []);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const items3 = [styles.container];
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
items3[1] = {paddingBottom: bottom + PX_16};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const items2 = [<Text style={styles.title} variant="heading-xl/semibold" color="text-strong" accessibilityRole="header">{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['0MB2C6'])}</Text>];
items2[1] = <Text style={styles.description} variant="text-md/medium" color="text-default">{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).k9sNVH)}</Text>;
items2[2] = <View style={styles.tierCards}>{badgeById == null || badgeById.tiers == null ? value2 : badgeById.tiers.map(_fun80473)}</View>;
return (
<BottomSheet scrollable={false} startExpanded>
<View style={items3}>
{items2}
function GiftingBadgeInfoActionSheet() { // fn#80469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:788, offset: 0x01e7c4ae, size: 555 bytes, params: 1, frame: 30
const value2 = undefined;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const badgeById = (require(566) /* metro dependency 566: flux */).useStateFromStores([BadgeDirectoryStore],
function() {
return BadgeDirectoryStore.getBadgeById(require(dependencyMap[10]).BadgeId.GIFTING);
});
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.useReducedMotion;
});
ReactModule.useEffect(function() {
importDefault(dependencyMap[11]).track(AnalyticEvents.GIFTING_BADGE_INFO_ACTION_SHEET_OPENED);
}, []);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const items3 = [styles.container];
const PX_16 = (Native).space.PX_16;
items3[1] = {paddingBottom: bottom + PX_16};
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const items2 = [
<Text
style={styles.title}
variant="heading-xl/semibold"
color="text-strong"
accessibilityRole="header"
>
{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['0MB2C6'])}
</Text>,
];
items2[1] = (
<Text
style={styles.description}
variant="text-md/medium"
color="text-default"
>
{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).k9sNVH)}
</Text>
);
items2[2] = (
<View style={styles.tierCards}>
{badgeById == null || badgeById.tiers == null ? value2 : badgeById.tiers.map(_fun80473)}
</View>
</BottomSheet>
);
}
);
return (
<BottomSheet scrollable={false} startExpanded>
<View style={items3}>
{items2}
</View>
</BottomSheet>
);
function _fun80473(a0) { // fn#80473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:1588, offset: 0x01e7c73e, size: 391 bytes, params: 2, frame: 26
var r13;
var r7;
var r6;
var intl;
var value;
if (useReducedMotion) {
r13 = a0.complex_icon_static_url ?? a0.simple_icon_url;
} else {
r13 = a0.complex_icon_animated_url ?? a0.complex_icon_static_url;
r13 = r13 ?? a0.simple_icon_url;
}
const singleRequirementThreshold = getSingleRequirementThreshold(a0);
const value4 = r13 != null;
if (value4) {
var viewBinding2Props = {style: styles.iconWrapper};
value = importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */;
value = (
<View {...viewBinding2Props}>
{((Component) => <Component icon={r13} size={58} />)(value)}
</View>
);
r7 = value;
} else {
r7 = value4;
}
const items2 = [r7];
const Text = (TextModule).Text;
items2[1] = (
<Text variant="text-lg/semibold" color="text-strong">
{a0.name}
</Text>
);
value = singleRequirementThreshold != null;
if (value) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r6 = (
<Text variant="text-md/normal" color="text-subtle">
{intl.formatToPlainString((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).qvx9E4,
{count: singleRequirementThreshold})}
</Text>
);
} else {
r6 = value;
}
items2[2] = r6;
return (
<View style={styles.tierCard} key={a0.key}>
{items2}
</View>
);
}
function _fun80473(a0) { // fn#80473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:1588, offset: 0x01e7c73e, size: 391 bytes, params: 2, frame: 26
var r13;
var r7;
var r6;
var intl;
var value;
if (useReducedMotion) {
r13 = a0.complex_icon_static_url ?? a0.simple_icon_url;
} else {
r13 = a0.complex_icon_animated_url ?? a0.complex_icon_static_url;
r13 = r13 ?? a0.simple_icon_url;
}
const singleRequirementThreshold = getSingleRequirementThreshold(a0);
const value4 = r13 != null;
if (value4) {
var viewBinding2Props = {style: styles.iconWrapper};
value = importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */;
value = <View {...viewBinding2Props}>{((Component) => <Component icon={r13} size={58} />)(value)}</View>;
r7 = value;
} else {
r7 = value4;
}
const items2 = [r7];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text variant="text-lg/semibold" color="text-strong">{a0.name}</Text>;
value = singleRequirementThreshold != null;
if (value) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r6 = <Text variant="text-md/normal" color="text-subtle">{intl.formatToPlainString((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).qvx9E4,
{count: singleRequirementThreshold})}</Text>;
} else {
r6 = value;
}
items2[2] = r6;
return (
<View style={styles.tierCard} key={a0.key}>
{items2}
</View>
);
}
global.__d(_fun80468, 10387, [31, 27, 4502, 7670, 661, 33, 4501, 697, 1585, 566, 7635, 683, 6275, 4573, 1244, 2320,
10388,
2]) /* metro module 10387, dependencies: [31, 27, 4502, 7670, 661, 33, 4501, 697, 1585, 566, 7635, 683, 6275, 4573, 1244, 2320, 10388, 2] */;
@@ -1,11 +1,15 @@
/* Metro module 13896; source: modules/premium/gifting/native/MobileFriendAnniversaryExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun105573(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14093:6, offset: 0x022bcfe3, size: 145 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-06-mobile-friendship-anniversary', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/MobileFriendAnniversaryExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/MobileFriendAnniversaryExperiment.tsx');
exports.default = value;
}
global.__d(_fun105573, 13896, [1854, 2]) /* metro module 13896, dependencies: [1854, 2] */;
@@ -1,16 +1,20 @@
/* Metro module 10392; source: modules/premium/gifting/native/hooks/useShouldShowGiftingPromotionDeco.tsx; dependencies: [1880, 7669, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from '../../../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as NativeGiftContextModule from '../../../../payments/native/NativeGiftContext.tsx'; /* Metro dependency 7669 */
function _fun80487(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10578:6, offset: 0x01e7d90c, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/hooks/useShouldShowGiftingPromotionDeco.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/hooks/useShouldShowGiftingPromotionDeco.tsx');
exports.default = useShouldShowGiftingPromotionDeco;
function useShouldShowGiftingPromotionDeco(a0) { // fn#80488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10578:237, offset: 0x01e7d981, size: 112 bytes, params: 2, frame: 14
const value2 = (NativeGiftContextModule).useNativeGiftContext();
const claimableRewards = value2.claimableRewards;
return claimableRewards != null && claimableRewards.length > 0 && (a0 != null ? a0 === PremiumTypes.TIER_2 : value2.premiumType === PremiumTypes.TIER_2);
}
}
function useShouldShowGiftingPromotionDeco(a0) { // fn#80488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10578:237, offset: 0x01e7d981, size: 112 bytes, params: 2, frame: 14
const value2 = (require(7669) /* metro dependency 7669: NativeGiftContext */).useNativeGiftContext();
const claimableRewards = value2.claimableRewards;
return claimableRewards != null && claimableRewards.length > 0 && (a0 != null ? a0 === PremiumTypes.TIER_2 : value2.premiumType === PremiumTypes.TIER_2);
}
global.__d(_fun80487, 10392, [1880, 7669, 2]) /* metro module 10392, dependencies: [1880, 7669, 2] */;
@@ -1,17 +1,20 @@
/* Metro module 10386; source: modules/premium/gifting/native/openGiftingBadgeInfoActionSheet.tsx; dependencies: [4080, 10387, 1962, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun80466(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10572:6, offset: 0x01e7c1f2, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/openGiftingBadgeInfoActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/openGiftingBadgeInfoActionSheet.tsx');
exports.default = openGiftingBadgeInfoActionSheet;
function openGiftingBadgeInfoActionSheet() { // fn#80467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10572:202, offset: 0x01e7c259, size: 78 bytes, params: 1, frame: 15
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'GiftingBadgeInfoActionSheet']);
}
}
function openGiftingBadgeInfoActionSheet() { // fn#80467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10572:202, offset: 0x01e7c259, size: 78 bytes, params: 1, frame: 15
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'GiftingBadgeInfoActionSheet']);
}
global.__d(_fun80466, 10386, [4080, 10387, 1962, 2]) /* metro module 10386, dependencies: [4080, 10387, 1962, 2] */;
@@ -1,15 +1,19 @@
/* Metro module 10388; source: modules/premium/gifting/native/views/GiftingBadgeIcon.tsx; dependencies: [31, 27, 33, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun80474(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10574:6, offset: 0x01e7c8c5, size: 145 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_0 = (require(27) /* metro dependency 27 */).Image;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeIcon.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeIcon.tsx');
exports.default = GiftingBadgeIcon;
function GiftingBadgeIcon({icon, size, style}) { // fn#80475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10574:235, offset: 0x01e7c956, size: 77 bytes, params: 2, frame: 16
return <Image source={{uri: icon}} style={[{width: size, height: size}, style]} />;
}
}
function GiftingBadgeIcon({icon, size, style}) { // fn#80475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10574:235, offset: 0x01e7c956, size: 77 bytes, params: 2, frame: 16
return <Image source={{uri: icon}} style={[{width: size, height: size}, style]} />;
}
global.__d(_fun80474, 10388, [31, 27, 33, 2]) /* metro module 10388, dependencies: [31, 27, 33, 2] */;
@@ -1,60 +1,78 @@
/* Metro module 10471; source: modules/premium/gifting/native/views/GiftingBadgeLevelUpProgress.tsx; dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */
import GiftingBadgeMessages from '../../GiftingBadge.messages.js'; /* Metro dependency 2320 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BadgeDirectoryStoreModule from '../../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun81023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10657:6, offset: 0x01e95d44, size: 453 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.container = {gap: PX_4, width: '100%'};
object.container = {gap: PX_4, width: '100%'};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.barRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
const object3 = {'flex': 1, 'height': 6, 'borderRadius': null, 'backgroundColor': null, 'overflow': 'hidden'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.barRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
const object4 = {'flex': 1, 'height': 6, 'borderRadius': null, 'backgroundColor': null, 'overflow': 'hidden'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object3.backgroundColor = BACKGROUND_MOD_NORMAL;
object2.progressBarTrack = object3;
const object6 = {height: 6};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object4.backgroundColor = BACKGROUND_MOD_NORMAL;
object.progressBarTrack = object4;
const object5 = {height: 6};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object6.backgroundColor = BACKGROUND_BRAND;
object2.progressBarFill = object6;
object2.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end'};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeLevelUpProgress.tsx');
object5.backgroundColor = BACKGROUND_BRAND;
object.progressBarFill = object5;
object.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end'};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeLevelUpProgress.tsx');
exports.default = GiftingBadgeLevelUpProgress;
}
function GiftingBadgeLevelUpProgress({progress, currentTier, newTier, style}) { // fn#81024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10657:747, offset: 0x01e95f09, size: 568 bytes, params: 2, frame: 31
const styles = useStyles();
const singleRequirementThreshold = getSingleRequirementThreshold(newTier);
const r21 = singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
const items3 = [styles.container, style];
const items2 = [currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)];
items2[1] = <View style={styles.progressBarTrack}><View style={[styles.progressBarFill,
{width: '' + r21 + '%'}]} /></View>;
items2[2] = newTier.simple_icon_url != null && ((Component) => <Component icon={newTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
const view = <View style={styles.barRow}>{items2}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={items3}>
{view}
<View style={styles.labels}>
<Text variant="text-xs/normal" color="text-muted">
{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).iIpfQe,
{count: progress, threshold: singleRequirementThreshold})}
</Text>
function GiftingBadgeLevelUpProgress({progress, currentTier, newTier, style}) { // fn#81024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10657:747, offset: 0x01e95f09, size: 568 bytes, params: 2, frame: 31
const styles = useStyles();
const singleRequirementThreshold = getSingleRequirementThreshold(newTier);
const r21 = singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
const items3 = [styles.container, style];
const items2 = [
currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */),
];
items2[1] = (
<View style={styles.progressBarTrack}>
<View style={[styles.progressBarFill, {width: '' + r21 + '%'}]} />
</View>
</View>
);
);
items2[2] = newTier.simple_icon_url != null && ((Component) => <Component icon={newTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
const view = (
<View style={styles.barRow}>
{items2}
</View>
);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<View style={items3}>
{view}
<View style={styles.labels}>
<Text variant="text-xs/normal" color="text-muted">
{intl.format((GiftingBadgeMessages).iIpfQe,
{count: progress, threshold: singleRequirementThreshold})}
</Text>
</View>
</View>
);
}
}
global.__d(_fun81023, 10471, [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320,
2]) /* metro module 10471, dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */;
@@ -1,87 +1,109 @@
/* Metro module 10470; source: modules/premium/gifting/native/views/GiftingBadgeProgress.tsx; dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BadgeDirectoryStoreModule from '../../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun81020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:6, offset: 0x01e95860, size: 501 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {'flexDirection': 'row', 'alignItems': 'center', padding: PX_16};
const object6 = {flex: 1};
object.container = {'flexDirection': 'row', 'alignItems': 'center', padding: PX_16};
const object3 = {flex: 1};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.paddingHorizontal = PX_8;
object3.paddingHorizontal = PX_8;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object6.gap = PX_4;
object2.content = object6;
const object7 = {height: 6};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object3.gap = PX_4;
object.content = object3;
const object4 = {height: 6};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object7.backgroundColor = BACKGROUND_MOD_NORMAL;
object7.overflow = 'hidden';
object2.progressBarTrack = object7;
const object8 = {height: 6};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object4.backgroundColor = BACKGROUND_MOD_NORMAL;
object4.overflow = 'hidden';
object.progressBarTrack = object4;
const object5 = {height: 6};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object8.backgroundColor = BACKGROUND_BRAND;
object2.progressBarFill = object8;
object5.backgroundColor = BACKGROUND_BRAND;
object.progressBarFill = object5;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end', 'alignItems': 'center', minHeight: PX_16};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgress.tsx');
object.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end', 'alignItems': 'center', minHeight: PX_16};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgress.tsx');
exports.default = GiftingBadgeProgress;
}
function GiftingBadgeProgressBar({percent}) { // fn#81021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:186, offset: 0x01e95a55, size: 164 bytes, params: 2, frame: 25
const styles = useStyles();
const items2 = [styles.progressBarFill];
const Math = global.Math;
const min = Math.min;
const Math2 = global.Math;
let value = Math2.max(percent, 0);
value = Reflect.apply(min, Math, [value, 100]);
items2[1] = {width: '' + value + '%'};
return (
<View style={styles.progressBarTrack}>
<View style={items2} />
</View>
);
}
function GiftingBadgeProgress({progress, currentTier, nextTier, iconSize, title}) { // fn#81022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:1003, offset: 0x01e95af9, size: 587 bytes, params: 2, frame: 36
var r16;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var intl;
iconSize = iconSize === undefined ? 24 : iconSize;
const styles = useStyles();
const singleRequirementThreshold = getSingleRequirementThreshold(nextTier);
const r17 = nextTier != null && singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
const items3 = [currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)];
const items2 = [title != null && <Text variant="text-md/semibold">{title}</Text>];
items2[1] = <GiftingBadgeProgressBar percent={r17} />;
const value13 = nextTier != null;
if (value13) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r16 = <Text variant="text-xs/normal" color="text-muted">{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).iIpfQe,
{count: progress, threshold: singleRequirementThreshold})}</Text>;
} else {
r16 = value13;
function GiftingBadgeProgressBar({percent}) { // fn#81021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:186, offset: 0x01e95a55, size: 164 bytes, params: 2, frame: 25
const styles = useStyles();
const items2 = [styles.progressBarFill];
const Math = global.Math;
const min = Math.min;
const Math2 = global.Math;
let value = Math2.max(percent, 0);
value = Reflect.apply(min, Math, [value, 100]);
items2[1] = {width: '' + value + '%'};
return (
<View style={styles.progressBarTrack}>
<View style={items2} />
</View>
);
}
items2[2] = <View style={styles.labels}>{r16}</View>;
items3[1] = <View style={styles.content}>{items2}</View>;
items3[2] = nextTier?.simple_icon_url != null && ((Component) => <Component icon={nextTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
return (
<View style={styles.container}>
{items3}
</View>
);
function GiftingBadgeProgress({progress, currentTier, nextTier, iconSize, title}) { // fn#81022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:1003, offset: 0x01e95af9, size: 587 bytes, params: 2, frame: 36
var r16;
const Text = (TextModule).Text;
var intl;
iconSize = iconSize === undefined ? 24 : iconSize;
const styles = useStyles();
const singleRequirementThreshold = getSingleRequirementThreshold(nextTier);
const r17 = nextTier != null && singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
const items3 = [
currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */),
];
const items2 = [
title != null && <Text variant="text-md/semibold">{title}</Text>,
];
items2[1] = <GiftingBadgeProgressBar percent={r17} />;
const value13 = nextTier != null;
if (value13) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r16 = (
<Text variant="text-xs/normal" color="text-muted">
{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).iIpfQe,
{count: progress, threshold: singleRequirementThreshold})}
</Text>
);
} else {
r16 = value13;
}
items2[2] = (
<View style={styles.labels}>
{r16}
</View>
);
items3[1] = (
<View style={styles.content}>
{items2}
</View>
);
items3[2] = nextTier?.simple_icon_url != null && ((Component) => <Component icon={nextTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
return (
<View style={styles.container}>
{items3}
</View>
);
}
}
global.__d(_fun81020, 10470, [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320,
2]) /* metro module 10470, dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */;
@@ -1,69 +1,84 @@
/* Metro module 10396; source: modules/premium/gifting/native/views/GiftingBadgeProgressBanner.tsx; dependencies: [31, 27, 33, 4501, 697, 6771, 8742, 480, 10388, 4573, 1244, 2320, 2] */
import GiftingBadgeMessages from '../../GiftingBadge.messages.js'; /* Metro dependency 2320 */
import UseAnalyticsLocations from '../../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import UseTrackImpression from '../../../../app_analytics/useTrackImpression.tsx'; /* Metro dependency 8742 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AnalyticsUtilsModule from '../../../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun80503(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10582:6, offset: 0x01e7e2b1, size: 409 bytes, params: 8, frame: 22
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {};
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'padding': null, 'backgroundColor': null,
object = {};
const object2 = {'flexDirection': 'row', 'alignItems': 'center', 'padding': null, 'backgroundColor': null,
'borderRadius': null, 'borderWidth': 1, 'borderStyle': 'solid'};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object5.padding = PX_8;
object2.padding = PX_8;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
object5.borderColor = BORDER_MUTED;
object2.borderColor = BORDER_MUTED;
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
copyDataProperties(object5, SHADOW_LOW, undefined);
object4.container = object5;
const object6 = {'alignItems': 'center', 'justifyContent': 'center'};
copyDataProperties(object2, SHADOW_LOW, undefined);
object.container = object2;
const object3 = {'alignItems': 'center', 'justifyContent': 'center'};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.padding = PX_8;
object3.padding = PX_8;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.marginInlineEnd = PX_8;
object4.iconContainer = object6;
const env0_6 = Reflect.apply(createStyles, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgressBanner.tsx');
object3.marginInlineEnd = PX_8;
object.iconContainer = object3;
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgressBanner.tsx');
exports.default = GiftingBadgeProgressBanner;
function GiftingBadgeProgressBanner({giftsToNextTier, nextTierName, nextTierIcon, analyticsLocation}) { // fn#80504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10582:674, offset: 0x01e7e44a, size: 467 bytes, params: 2, frame: 25
const styles = useStyles();
const defaultImport = UseAnalyticsLocations;
const r4 = analyticsLocation != null ? [analyticsLocation] : [];
let object = [];
arraySpread(object, r4, 0, undefined);
const analyticsLocations = apply(defaultImport, object, undefined, undefined).analyticsLocations;
const defaultImport2 = UseTrackImpression;
object = {};
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const GIFTING_BADGE_PROGRESS_BANNER = ImpressionNames.GIFTING_BADGE_PROGRESS_BANNER;
object.name = GIFTING_BADGE_PROGRESS_BANNER;
const ImpressionTypes = (AnalyticsUtilsModule).ImpressionTypes;
const VIEW = ImpressionTypes.VIEW;
object.type = VIEW;
object.properties = {gifts_to_next_tier: giftsToNextTier, next_tier: nextTierName,
location_stack: analyticsLocations};
defaultImport2(object, {trackOnInitialLoad: true});
const view = (
<View style={styles.iconContainer}>
{nextTierIcon != null && ((Component) => <Component icon={nextTierIcon} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}
</View>
);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<View style={styles.container}>
{view}
<Text variant="text-md/semibold">
{intl.formatToPlainString((GiftingBadgeMessages)['0+xfd9'],
{giftsRemaining: giftsToNextTier, nextTier: nextTierName})}
</Text>
</View>
);
}
}
function GiftingBadgeProgressBanner({giftsToNextTier, nextTierName, nextTierIcon, analyticsLocation}) { // fn#80504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10582:674, offset: 0x01e7e44a, size: 467 bytes, params: 2, frame: 25
const styles = useStyles();
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const r4 = analyticsLocation != null ? [analyticsLocation] : [];
let object = [];
arraySpread(object, r4, 0, undefined);
const analyticsLocations = apply(defaultImport, object, undefined, undefined).analyticsLocations;
const defaultImport2 = importDefault(8742) /* metro dependency 8742: useTrackImpression */;
object = {};
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const GIFTING_BADGE_PROGRESS_BANNER = ImpressionNames.GIFTING_BADGE_PROGRESS_BANNER;
object.name = GIFTING_BADGE_PROGRESS_BANNER;
const ImpressionTypes = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes;
const VIEW = ImpressionTypes.VIEW;
object.type = VIEW;
object.properties = {gifts_to_next_tier: giftsToNextTier, next_tier: nextTierName,
location_stack: analyticsLocations};
defaultImport2(object, {trackOnInitialLoad: true});
const view = <View style={styles.iconContainer}>{nextTierIcon != null && ((Component) => <Component icon={nextTierIcon} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.container}>
{view}
<Text variant="text-md/semibold">
{intl.formatToPlainString((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['0+xfd9'],
{giftsRemaining: giftsToNextTier, nextTier: nextTierName})}
</Text>
</View>
);
}
global.__d(_fun80503, 10396, [31, 27, 33, 4501, 697, 6771, 8742, 480, 10388, 4573, 1244, 2320,
2]) /* metro module 10396, dependencies: [31, 27, 33, 4501, 697, 6771, 8742, 480, 10388, 4573, 1244, 2320, 2] */;
@@ -1,145 +1,229 @@
/* Metro module 15293; source: modules/premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet.tsx; dependencies: [31, 27, 7670, 1376, 33, 4501, 697, 4080, 4008, 6275, 10388, 4573, 1244, 2320, 4578, 10381, 6789, 15294, 10112, 566, 7635, 2] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import AnalyticsLocation from '../../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import BadgeDirectoryStore from '../../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as DismissibleContentConstantsModule from '../../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as BottomSheetNativeModule from '../../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as BadgeIdModule from '../../../../../external/discord_common/js/shared/shared-constants/BadgeId.tsx'; /* Metro dependency 7635 */
import * as GiftIconModule from '../../../../../design/components/Icon/native/redesign/generated/GiftIcon.tsx'; /* Metro dependency 10112 */
function _fun116950(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:6, offset: 0x0249d24d, size: 437 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_4 = value.Image;
const env0_5 = value.View;
const badgeDirectoryStore = importDefault(7670) /* metro dependency 7670: BadgeDirectoryStore */;
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.container = {'alignItems': 'center', 'paddingHorizontal': 20, 'paddingBottom': 20, gap: PX_24};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.graphicContainer = {'height': 188, 'width': 335, 'alignItems': 'center', 'justifyContent': 'center',
object = {};
const PX_24 = (Native).space.PX_24;
object.container = {'alignItems': 'center', 'paddingHorizontal': 20, 'paddingBottom': 20, gap: PX_24};
const PX_16 = (Native).space.PX_16;
object.graphicContainer = {'height': 188, 'width': 335, 'alignItems': 'center', 'justifyContent': 'center',
padding: PX_16};
object2.newBadgeImage = {'width': '100%', 'height': '100%', 'objectFit': 'contain'};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.textContainer = {gap: PX_8};
object2.text = {textAlign: 'center'};
object2.footer = {width: '100%'};
const env0_10 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet.tsx');
object.newBadgeImage = {'width': '100%', 'height': '100%', 'objectFit': 'contain'};
const PX_8 = (Native).space.PX_8;
object.textContainer = {gap: PX_8};
object.text = {textAlign: 'center'};
object.footer = {width: '100%'};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet.tsx');
exports.default = GiftingBadgesCoachmarkActionSheet;
}
function HasBadgeCoachmark({markAsDismissed, currentTier, giftCount}) { // fn#116951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:589, offset: 0x0249d402, size: 729 bytes, params: 2, frame: 39
const styles = useStyles();
const value2 = env0_3.useCallback(_fun116952, [markAsDismissed]);
const value3 = env0_3.useCallback(function() {
markAsDismissed(ContentDismissActionType.USER_DISMISS);
}, [markAsDismissed]);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const items2 = [<View style={styles.graphicContainer}>{currentTier.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={120} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}</View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let text = styles.text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const text2 = <Text style={text} variant="heading-xl/bold" color="text-strong">{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['a+jfuy'],
{tierName: currentTier.name ?? ''})}</Text>;
text = styles.text;
const formatToPlainString = intl.formatToPlainString;
const QxRA6w = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).QxRA6w;
items2[1] = <View style={styles.textContainer}>{text2}<Text style={text} variant="text-sm/medium" color="text-default">{Reflect.apply(formatToPlainString,
intl, [QxRA6w, {giftCount: giftCount ?? 0}])}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const string = intl.string;
const RzWDqY = (require(1244) /* metro dependency 1244: indexNative */).t.RzWDqY;
items2[2] = <View style={styles.footer}><Button grow text={Reflect.apply(string, intl,
[RzWDqY])} onPress={value2} /></View>;
return (
<BottomSheet startExpanded onDismiss={value3}>
<View style={styles.container}>
{items2}
function HasBadgeCoachmark({markAsDismissed, currentTier, giftCount}) { // fn#116951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:589, offset: 0x0249d402, size: 729 bytes, params: 2, frame: 39
const styles = useStyles();
const value2 = ReactModule.useCallback(_fun116952, [markAsDismissed]);
const value3 = ReactModule.useCallback(function() {
markAsDismissed(ContentDismissActionType.USER_DISMISS);
}, [markAsDismissed]);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const items2 = [
<View style={styles.graphicContainer}>
{currentTier.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={120} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}
</View>,
];
const Text = (TextModule).Text;
let text = styles.text;
const intl = (IndexNativeModule).intl;
const text2 = (
<Text
style={text}
variant="heading-xl/bold"
color="text-strong"
>
{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['a+jfuy'],
{tierName: currentTier.name ?? ''})}
</Text>
);
text = styles.text;
const formatToPlainString = intl.formatToPlainString;
const QxRA6w = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).QxRA6w;
items2[1] = (
<View style={styles.textContainer}>
{text2}
<Text
style={text}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(formatToPlainString, intl, [QxRA6w, {giftCount: giftCount ?? 0}])}
</Text>
</View>
</BottomSheet>
);
}
function NewBadgeCoachmark({markAsDismissed}) { // fn#116954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1556, offset: 0x0249d745, size: 690 bytes, params: 2, frame: 36
const styles = useStyles();
const value2 = env0_3.useCallback(_fun116955, [markAsDismissed]);
const value3 = env0_3.useCallback(function() {
markAsDismissed(ContentDismissActionType.USER_DISMISS);
}, [markAsDismissed]);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const object = {};
object.uri = importDefault(15294) /* metro dependency 15294: new_gifting_badgesPng */;
const items2 = [<View style={styles.graphicContainer}><Image source={object} style={styles.newBadgeImage} /></View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Q2RQka = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).Q2RQka;
items2[1] = <View style={styles.textContainer}><Text style={styles.text} variant="heading-xl/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl,
[Q2RQka])}</Text><Text style={styles.text} variant="text-sm/medium" color="text-muted">{(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['3EQnkg'])}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const DZnomS = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).DZnomS;
const GiftIcon = (require(10112) /* metro dependency 10112: GiftIcon */).GiftIcon;
const CONTROL_PRIMARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_PRIMARY_TEXT_DEFAULT;
items2[2] = <View style={styles.footer}><Button grow text={Reflect.apply(string, intl,
[DZnomS])} icon={<GiftIcon size="sm" color={CONTROL_PRIMARY_TEXT_DEFAULT} />} onPress={value2} /></View>;
return (
<BottomSheet startExpanded onDismiss={value3}>
<View style={styles.container}>
{items2}
);
const Button = (ButtonNativeModule).Button;
const string = intl.string;
const RzWDqY = (IndexNativeModule).t.RzWDqY;
items2[2] = (
<View style={styles.footer}>
<Button
grow
text={Reflect.apply(string, intl, [RzWDqY])}
onPress={value2}
/>
</View>
</BottomSheet>
);
}
);
return (
<BottomSheet startExpanded onDismiss={value3}>
<View style={styles.container}>
{items2}
</View>
</BottomSheet>
);
function _fun116952() { // fn#116952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:692, offset: 0x0249d6db, size: 106 bytes, params: 1, frame: 13
let value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
value = value.getRootNavigationRef();
if (value != null) {
value.navigate('you');
}
}
function GiftingBadgesCoachmarkActionSheet({markAsDismissed}) { // fn#116957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2638, offset: 0x0249da6e, size: 141 bytes, params: 2, frame: 18
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([BadgeDirectoryStore],
_fun116958);
const currentTier = value2.currentTier;
return currentTier != null ? <HasBadgeCoachmark markAsDismissed={markAsDismissed} currentTier={currentTier} giftCount={value2.giftCount} /> : <NewBadgeCoachmark markAsDismissed={markAsDismissed} />;
}
function _fun116952() { // fn#116952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:692, offset: 0x0249d6db, size: 106 bytes, params: 1, frame: 13
let value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
value = value.getRootNavigationRef();
if (value != null) {
value.navigate('you');
}
function NewBadgeCoachmark({markAsDismissed}) { // fn#116954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1556, offset: 0x0249d745, size: 690 bytes, params: 2, frame: 36
const styles = useStyles();
const value2 = ReactModule.useCallback(_fun116955, [markAsDismissed]);
const value3 = ReactModule.useCallback(function() {
markAsDismissed(ContentDismissActionType.USER_DISMISS);
}, [markAsDismissed]);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const object2 = {};
object2.uri = importDefault(15294) /* metro dependency 15294: new_gifting_badgesPng */;
const items2 = [
<View style={styles.graphicContainer}>
<Image source={object2} style={styles.newBadgeImage} />
</View>,
];
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Q2RQka = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).Q2RQka;
items2[1] = (
<View style={styles.textContainer}>
<Text
style={styles.text}
variant="heading-xl/bold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [Q2RQka])}
</Text>
<Text
style={styles.text}
variant="text-sm/medium"
color="text-muted"
>
{(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['3EQnkg'])}
</Text>
</View>
);
const Button = (ButtonNativeModule).Button;
string = intl.string;
const DZnomS = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).DZnomS;
const GiftIcon = (GiftIconModule).GiftIcon;
const CONTROL_PRIMARY_TEXT_DEFAULT = (Native).colors.CONTROL_PRIMARY_TEXT_DEFAULT;
items2[2] = (
<View style={styles.footer}>
<Button
grow
text={Reflect.apply(string, intl, [DZnomS])}
icon={<GiftIcon size="sm" color={CONTROL_PRIMARY_TEXT_DEFAULT} />}
onPress={value2}
/>
</View>
);
return (
<BottomSheet startExpanded onDismiss={value3}>
<View style={styles.container}>
{items2}
</View>
</BottomSheet>
);
function _fun116955() { // fn#116955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1631, offset: 0x0249d9f7, size: 119 bytes, params: 1, frame: 15
let value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
value = require(10381) /* metro dependency 10381: openGiftModal */;
const openGiftModal = value.openGiftModal;
const GIFTING_BADGE_COACHMARK = (AnalyticsLocation).GIFTING_BADGE_COACHMARK;
Reflect.apply(openGiftModal, value, [{analyticsLocations: [GIFTING_BADGE_COACHMARK]}]);
}
}
function GiftingBadgesCoachmarkActionSheet({markAsDismissed}) { // fn#116957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2638, offset: 0x0249da6e, size: 141 bytes, params: 2, frame: 18
const value2 = (FluxModule).useStateFromStoresObject([BadgeDirectoryStore],
_fun116958);
const currentTier = value2.currentTier;
return (
currentTier != null
? (
<HasBadgeCoachmark
markAsDismissed={markAsDismissed}
currentTier={currentTier}
giftCount={value2.giftCount}
/>
)
: (
<NewBadgeCoachmark markAsDismissed={markAsDismissed} />
)
);
function _fun116958() { // fn#116958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2747, offset: 0x0249dafb, size: 112 bytes, params: 1, frame: 16
const object = {};
let value = environment.__proto__;
const badgeDirectoryStoreBinding = BadgeDirectoryStore;
const getCurrentTier = badgeDirectoryStoreBinding.getCurrentTier;
value = undefined;
const BadgeId = (BadgeIdModule).BadgeId;
let GIFTING = BadgeId.GIFTING;
object.currentTier = Reflect.apply(getCurrentTier, badgeDirectoryStoreBinding, [GIFTING]);
const getSingleRequirementProgress = badgeDirectoryStoreBinding.getSingleRequirementProgress;
GIFTING = BadgeId.GIFTING;
const value2 = Reflect.apply(getSingleRequirementProgress, badgeDirectoryStoreBinding, [GIFTING]);
object.giftCount = value2 == null ? value : value2.current;
return object;
}
}
}
function _fun116955() { // fn#116955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1631, offset: 0x0249d9f7, size: 119 bytes, params: 1, frame: 15
let value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
value = require(10381) /* metro dependency 10381: openGiftModal */;
const openGiftModal = value.openGiftModal;
const GIFTING_BADGE_COACHMARK = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GIFTING_BADGE_COACHMARK;
Reflect.apply(openGiftModal, value, [{analyticsLocations: [GIFTING_BADGE_COACHMARK]}]);
}
function _fun116958() { // fn#116958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2747, offset: 0x0249dafb, size: 112 bytes, params: 1, frame: 16
const object2 = {};
let value = environment.__proto__;
const getCurrentTier = BadgeDirectoryStore.getCurrentTier;
value = undefined;
const BadgeId = (require(7635) /* metro dependency 7635: BadgeId */).BadgeId;
let GIFTING = BadgeId.GIFTING;
object2.currentTier = Reflect.apply(getCurrentTier, BadgeDirectoryStore, [GIFTING]);
const getSingleRequirementProgress = BadgeDirectoryStore.getSingleRequirementProgress;
GIFTING = BadgeId.GIFTING;
const value2 = Reflect.apply(getSingleRequirementProgress, BadgeDirectoryStore, [GIFTING]);
object2.giftCount = value2 == null ? value : value2.current;
return object2;
}
global.__d(_fun116950, 15293, [31, 27, 7670, 1376, 33, 4501, 697, 4080, 4008, 6275, 10388, 4573, 1244, 2320, 4578,
10381, 6789, 15294, 10112, 566, 7635,
2]) /* metro module 15293, dependencies: [31, 27, 7670, 1376, 33, 4501, 697, 4080, 4008, 6275, 10388, 4573, 1244, 2320, 4578, 10381, 6789, 15294, 10112, 566, 7635, 2] */;
@@ -1,35 +1,41 @@
/* Metro module 10462; source: modules/premium/gifting/native/views/GiftingRewardPreviewAvatar.tsx; dependencies: [31, 4502, 1878, 33, 566, 1305, 2] */
import UserStore from '../../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import AccessibilityStore from '../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../../design/void/native.tsx'; /* Metro dependency 1305 */
function _fun80977(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10648:6, offset: 0x01e93073, size: 166 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingRewardPreviewAvatar.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingRewardPreviewAvatar.tsx');
exports.default = GiftingRewardPreviewAvatar;
function GiftingRewardPreviewAvatar(a0) { // fn#80978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10648:249, offset: 0x01e93119, size: 203 bytes, params: 2, frame: 20
const value2 = undefined;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r6 = a0.asset != null ? {asset: a0.asset} : value2;
const Avatar = (NativeModule).Avatar;
return (
<Avatar
user={currentUser}
guildId={value2}
avatarDecoration={r6}
animate={!useReducedMotion}
{...a0}
/>
);
}
}
function GiftingRewardPreviewAvatar(a0) { // fn#80978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10648:249, offset: 0x01e93119, size: 203 bytes, params: 2, frame: 20
const value2 = undefined;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r6 = a0.asset != null ? {asset: a0.asset} : value2;
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar
user={currentUser}
guildId={value2}
avatarDecoration={r6}
animate={!useReducedMotion}
{...a0}
/>
);
}
global.__d(_fun80977, 10462, [31, 4502, 1878, 33, 566, 1305,
2]) /* metro module 10462, dependencies: [31, 4502, 1878, 33, 566, 1305, 2] */;
@@ -1,126 +1,171 @@
/* Metro module 15280; source: modules/premium/gifting/native/views/promotions/GiftingPromotionCoachmark.tsx; dependencies: [31, 27, 4502, 661, 1376, 33, 4501, 697, 566, 10390, 6771, 6789, 4080, 10381, 6275, 477, 7601, 5475, 4573, 4578, 1244, 2] */
import ActionSheetActionCreators from '../../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import AccessibilityStore from '../../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import UseAnalyticsLocations from '../../../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AnalyticsLocation from '../../../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as DismissibleContentConstantsModule from '../../../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as OpenGiftModalModule from '../../../../native/utils/openGiftModal.tsx'; /* Metro dependency 10381 */
function _fun116880(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:6, offset: 0x0249972b, size: 467 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_6 = value.AnalyticsSections;
const env0_7 = value.AnalyticsObjects;
const env0_8 = value.AnalyticsPages;
const env0_9 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {alignItems: 'center', padding: PX_16};
const object4 = {};
object.container = {alignItems: 'center', padding: PX_16};
const object3 = {};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_8;
object3.gap = PX_8;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object3.paddingHorizontal = PX_16;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.paddingVertical = PX_24;
object2.textContainer = object4;
object2.text = {textAlign: 'center'};
const object6 = {'height': 188, 'width': 335};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.imageShared = object6;
object2.imageWrapperAndroid = {overflow: 'hidden'};
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingPromotionCoachmark.tsx');
object3.paddingVertical = PX_24;
object.textContainer = object3;
object.text = {textAlign: 'center'};
const object5 = {'height': 188, 'width': 335};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.imageShared = object5;
object.imageWrapperAndroid = {overflow: 'hidden'};
const env0_12 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingPromotionCoachmark.tsx');
exports.default = GiftingPromotionCoachmarkActionSheet;
}
function GiftingPromotionCoachmarkActionSheet({coachmarkComponent, markAsDismissed}) { // fn#116881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:717, offset: 0x024998fe, size: 778 bytes, params: 2, frame: 32
var r8;
var r9;
var r0;
var BottomSheet;
var value6;
var moduleValue3;
var object;
var imageShared;
var APNGDecorationNativeComponent;
var items2;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var text;
var items3;
var Button;
var intl;
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value4 = (require(10390) /* metro dependency 10390: MarketingComponentHooks */).useThemeAndReducedMotionAwareAssetUrl(coachmarkComponent?.asset);
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const GIFTING_PROMOTION_COACHMARK = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GIFTING_PROMOTION_COACHMARK;
const analyticsLocations = defaultImport(GIFTING_PROMOTION_COACHMARK).analyticsLocations;
const binding = env0_3;
const useCallback = binding.useCallback;
if (coachmarkComponent == null) {
r0 = null;
} else {
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
var viewBindingProps = {style: styles.container};
value6 = value4 != null;
if (value6) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue3.isAndroid()) {
if (useReducedMotion) {
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
} else {
object = {};
imageShared = styles.imageShared;
object.style = [imageShared, styles.imageWrapperAndroid];
APNGDecorationNativeComponent = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
imageShared = styles.imageShared;
r8 = <View {...object}><APNGDecorationNativeComponent url={value4} style={imageShared} /></View>;
}
} else {
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
}
r9 = r8;
function GiftingPromotionCoachmarkActionSheet({coachmarkComponent, markAsDismissed}) { // fn#116881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:717, offset: 0x024998fe, size: 778 bytes, params: 2, frame: 32
var r8;
var r9;
var r0;
var BottomSheet;
var value6;
var moduleValue3;
var object2;
var imageShared;
var APNGDecorationNativeComponent;
var items2;
const Text = (TextModule).Text;
var text;
var items3;
var Button;
var intl;
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value4 = (require(10390) /* metro dependency 10390: MarketingComponentHooks */).useThemeAndReducedMotionAwareAssetUrl(coachmarkComponent?.asset);
const defaultImport = UseAnalyticsLocations;
const GIFTING_PROMOTION_COACHMARK = (AnalyticsLocation).GIFTING_PROMOTION_COACHMARK;
const analyticsLocations = defaultImport(GIFTING_PROMOTION_COACHMARK).analyticsLocations;
const useCallback = ReactModule.useCallback;
if (coachmarkComponent == null) {
r0 = null;
} else {
r9 = value6;
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
var viewBindingProps = {style: styles.container};
value6 = value4 != null;
if (value6) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue3.isAndroid()) {
if (useReducedMotion) {
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
} else {
object2 = {};
imageShared = styles.imageShared;
object2.style = [imageShared, styles.imageWrapperAndroid];
APNGDecorationNativeComponent = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
imageShared = styles.imageShared;
r8 = (
<View {...object2}>
<APNGDecorationNativeComponent url={value4} style={imageShared} />
</View>
);
}
} else {
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
}
r9 = r8;
} else {
r9 = value6;
}
items2 = [r9];
var viewBinding3Props = {style: styles.textContainer};
text = styles.text;
items3 = [
<Text
style={text}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{coachmarkComponent.header}
</Text>,
];
text = styles.text;
items3[1] = (
<Text
style={text}
variant="text-md/normal"
color="text-default"
>
{coachmarkComponent.body}
</Text>
);
items2[1] = (
<View {...viewBinding3Props}>
{items3}
</View>
);
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[2] = (
<Button
grow
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.RzWDqY)}
onPress={Reflect.apply(useCallback, ReactModule, [_fun116883, [analyticsLocations, markAsDismissed]])}
/>
);
r0 = (
<BottomSheet
startExpanded
onDismiss={function() {
return markAsDismissed(ContentDismissActionType.USER_DISMISS);
}}
>
<View {...viewBindingProps}>
{items2}
</View>
</BottomSheet>
);
}
items2 = [r9];
var viewBinding3Props = {style: styles.textContainer};
text = styles.text;
items3 = [<Text style={text} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{coachmarkComponent.header}</Text>];
text = styles.text;
items3[1] = <Text style={text} variant="text-md/normal" color="text-default">{coachmarkComponent.body}</Text>;
items2[1] = <View {...viewBinding3Props}>{items3}</View>;
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[2] = <Button grow text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.RzWDqY)} onPress={Reflect.apply(useCallback,
binding, [_fun116883, [analyticsLocations, markAsDismissed]])} />;
r0 = <BottomSheet startExpanded onDismiss={function() {
return markAsDismissed(ContentDismissActionType.USER_DISMISS);
}}><View {...viewBindingProps}>{items2}</View></BottomSheet>;
return r0;
function _fun116883() { // fn#116883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:1031, offset: 0x02499c08, size: 149 bytes, params: 1, frame: 16
(ActionSheetActionCreators).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
const openGiftModal = OpenGiftModalModule.openGiftModal;
const PREMUIM_UPSELL_GIFTING_PROMOTION = AnalyticsPages.PREMUIM_UPSELL_GIFTING_PROMOTION;
const FOOTER = AnalyticsSections.FOOTER;
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
Reflect.apply(openGiftModal, OpenGiftModalModule, [{analyticsLocation: {page: PREMUIM_UPSELL_GIFTING_PROMOTION,
section: FOOTER, object: BUTTON_CTA}, analyticsLocations: analyticsLocations}]);
}
}
return r0;
}
function _fun116883() { // fn#116883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:1031, offset: 0x02499c08, size: 149 bytes, params: 1, frame: 16
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
const openGiftModalModule = require(10381) /* metro dependency 10381: openGiftModal */;
const openGiftModal = openGiftModalModule.openGiftModal;
const PREMUIM_UPSELL_GIFTING_PROMOTION = AnalyticsPages.PREMUIM_UPSELL_GIFTING_PROMOTION;
const FOOTER = AnalyticsSections.FOOTER;
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
Reflect.apply(openGiftModal, openGiftModalModule, [{analyticsLocation: {page: PREMUIM_UPSELL_GIFTING_PROMOTION,
section: FOOTER, object: BUTTON_CTA}, analyticsLocations: analyticsLocations}]);
}
global.__d(_fun116880, 15280, [31, 27, 4502, 661, 1376, 33, 4501, 697, 566, 10390, 6771, 6789, 4080, 10381, 6275,
477, 7601, 5475, 4573, 4578, 1244,
2]) /* metro module 15280, dependencies: [31, 27, 4502, 661, 1376, 33, 4501, 697, 566, 10390, 6771, 6789, 4080, 10381, 6275, 477, 7601, 5475, 4573, 4578, 1244, 2] */;
@@ -1,115 +1,146 @@
/* Metro module 10457; source: modules/premium/gifting/native/views/promotions/GiftingSKUCardsGrid.tsx; dependencies: [31, 27, 5126, 1902, 33, 4501, 697, 7594, 3874, 8461, 5278, 10050, 7596, 9294, 4573, 1244, 2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NameplateRecordModule from '../../../../../collectibles/records/NameplateRecord.tsx'; /* Metro dependency 1902 */
import * as UseA11yRolesNativeModule from '../../../../../../external/discord_common/js/packages/design/hooks/useA11yRolesNative.tsx'; /* Metro dependency 3874 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as AvatarDecorationRecordModule from '../../../../../collectibles/records/AvatarDecorationRecord.tsx'; /* Metro dependency 5126 */
import * as PressablesModule from '../../../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as UseCurrentUserModule from '../../../../../collectibles/hooks/useCurrentUser.tsx'; /* Metro dependency 7594 */
import * as UseFetchCollectiblesProductModule from '../../../../../collectibles/hooks/useFetchCollectiblesProduct.tsx'; /* Metro dependency 8461 */
function _fun80944(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:6, offset: 0x01e90adb, size: 561 bytes, params: 8, frame: 24
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(5126) /* metro dependency 5126: AvatarDecorationRecord */).isAvatarDecorationRecord;
const env0_6 = (require(1902) /* metro dependency 1902: NameplateRecord */).isNameplateRecord;
const value2 = require(33) /* metro dependency 33 */;
const env0_7 = value2.jsx;
const env0_8 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'height': 178, 'width': 150, 'display': 'flex', 'flexDirection': 'column', 'alignItems': 'center',
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'height': 178, 'width': 150, 'display': 'flex', 'flexDirection': 'column', 'alignItems': 'center',
'justifyContent': 'center', 'borderWidth': 1, 'borderRadius': null, 'overflow': 'hidden'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.borderColor = BORDER_SUBTLE;
object2.borderColor = BORDER_SUBTLE;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object4.margin = PX_4;
object3.card = object4;
object3.overlayContainer = {'position': 'absolute', 'top': 10, 'zIndex': 2, 'display': 'flex',
object2.margin = PX_4;
object.card = object2;
object.overlayContainer = {'position': 'absolute', 'top': 10, 'zIndex': 2, 'display': 'flex',
'justifyContent': 'center', 'alignItems': 'center', 'width': '100%', 'height': '75%'};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object3.selected = {borderColor: BACKGROUND_BRAND};
object3.claimed = {opacity: 0.4};
object3.checkmark = {'position': 'absolute', 'opacity': 1, 'fontWeight': 'bold'};
object3.checkmarkContainer = {'position': 'absolute', 'top': 10, 'zIndex': 3, 'display': 'flex',
object.selected = {borderColor: BACKGROUND_BRAND};
object.claimed = {opacity: 0.4};
object.checkmark = {'position': 'absolute', 'opacity': 1, 'fontWeight': 'bold'};
object.checkmarkContainer = {'position': 'absolute', 'top': 10, 'zIndex': 3, 'display': 'flex',
'justifyContent': 'center', 'alignItems': 'center', 'width': '100%', 'height': '75%'};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.textContainer = {'position': 'absolute', 'bottom': 20, 'left': 0, 'right': 0, 'paddingHorizontal': null,
object.textContainer = {'position': 'absolute', 'bottom': 20, 'left': 0, 'right': 0, 'paddingHorizontal': null,
'alignItems': 'flex-start', paddingHorizontal: PX_16};
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object3]);
const env0_10 = value.memo(_fun80945);
const env0_11 = createStylesModule.createStyles({grid: {'flexDirection': 'row', 'flexWrap': 'wrap',
const env0_9 = Reflect.apply(createStyles, CreateStylesModule, [object]);
const env0_10 = ReactModule.memo(_fun80945);
const env0_11 = CreateStylesModule.createStyles({grid: {'flexDirection': 'row', 'flexWrap': 'wrap',
'justifyContent': 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUCardsGrid.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUCardsGrid.tsx');
exports.default = GiftingSKUCardsGrid;
}
function _fun80945({rewardSkuId, claimed, onSelect, isSelected}) { // fn#80945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1027, offset: 0x01e90d0c, size: 823 bytes, params: 2, frame: 29
const styles = useStyles();
const value3 = (require(7594) /* metro dependency 7594: useCurrentUser */).useCurrentUser();
const env0_3 = value3;
const {accessibilityRole,
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: isSelected});
const useFetchCollectiblesProductModule = require(8461) /* metro dependency 8461: useFetchCollectiblesProduct */;
const useFetchCollectiblesProduct = useFetchCollectiblesProductModule.useFetchCollectiblesProduct;
const product = Reflect.apply(useFetchCollectiblesProduct, useFetchCollectiblesProductModule, [rewardSkuId]).product;
const value5 = env0_3.useMemo(_fun80946, [isSelected, value3]);
if (product == null) {
return null;
}
const property = product.items[0];
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const items2 = [styles.card];
items2[1] = isSelected && styles.selected;
const view = <View style={[styles.overlayContainer,
claimed && styles.claimed]}>{isNameplateRecord(property) ? ((Component) => <Component item={property} animate={isSelected} />)(importDefault(10050) /* metro dependency 10050: NameplateCardPreview */) : isAvatarDecorationRecord(property) ? ((Component) => <Component item={property} size={100} animate={isSelected} avatarSource={value5} />)(importDefault(7596) /* metro dependency 7596: AvatarDecorationSampleV2 */) : undefined}</View>;
const r6 = claimed && <View style={styles.checkmarkContainer}>{((CheckmarkLargeBoldIcon) => <CheckmarkLargeBoldIcon size="lg" style={styles.checkmark} />)((require(9294) /* metro dependency 9294: CheckmarkLargeBoldIcon */).CheckmarkLargeBoldIcon)}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text variant="heading-sm/bold" color="mobile-text-heading-primary" lineClamp={1} accessibilityRole="header">{product.name}</Text>;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return (
<PressableOpacity
style={items2}
onPress={function() {
return onSelect(rewardSkuId);
}}
activeOpacity={0.8}
disabled={claimed}
accessibilityRole={accessibilityRole}
accessibilityState={accessibilityState}
>
{view}
{r6}
<View style={styles.textContainer}>
{text}
<Text
variant="text-xs/semibold"
color="mobile-text-heading-primary"
lineClamp={1}
>
{claimed ? Reflect.apply(string, intl, [t['6cfuDj']]) : Reflect.apply(string, intl, [t.QQsaCc])}
</Text>
function _fun80945({rewardSkuId, claimed, onSelect, isSelected}) { // fn#80945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1027, offset: 0x01e90d0c, size: 823 bytes, params: 2, frame: 29
const styles = useStyles();
const value3 = (UseCurrentUserModule).useCurrentUser();
const env0_3 = value3;
const {accessibilityRole,
accessibilityState} = (UseA11yRolesNativeModule).useRadioA11yNative({selected: isSelected});
const useFetchCollectiblesProduct = UseFetchCollectiblesProductModule.useFetchCollectiblesProduct;
const product = Reflect.apply(useFetchCollectiblesProduct, UseFetchCollectiblesProductModule, [rewardSkuId]).product;
const value5 = env0_3.useMemo(_fun80946, [isSelected, value3]);
if (product == null) {
return null;
}
const property = product.items[0];
const PressableOpacity = (PressablesModule).PressableOpacity;
const items2 = [styles.card];
items2[1] = isSelected && styles.selected;
const view = (
<View style={[styles.overlayContainer, claimed && styles.claimed]}>
{
isNameplateRecord(property)
? ((Component) => <Component item={property} animate={isSelected} />)(importDefault(10050) /* metro dependency 10050: NameplateCardPreview */)
: (
isAvatarDecorationRecord(property)
? ((Component) => <Component item={property} size={100} animate={isSelected} avatarSource={value5} />)(importDefault(7596) /* metro dependency 7596: AvatarDecorationSampleV2 */)
: undefined
)
}
</View>
</PressableOpacity>
);
}
);
const r6 = claimed && <View style={styles.checkmarkContainer}>{((CheckmarkLargeBoldIcon) => <CheckmarkLargeBoldIcon size="lg" style={styles.checkmark} />)((require(9294) /* metro dependency 9294: CheckmarkLargeBoldIcon */).CheckmarkLargeBoldIcon)}</View>;
const Text = (TextModule).Text;
const text = (
<Text
variant="heading-sm/bold"
color="mobile-text-heading-primary"
lineClamp={1}
accessibilityRole="header"
>
{product.name}
</Text>
);
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
return (
<PressableOpacity
style={items2}
onPress={function() {
return onSelect(rewardSkuId);
}}
activeOpacity={0.8}
disabled={claimed}
accessibilityRole={accessibilityRole}
accessibilityState={accessibilityState}
>
{view}
{r6}
<View style={styles.textContainer}>
{text}
<Text
variant="text-xs/semibold"
color="mobile-text-heading-primary"
lineClamp={1}
>
{claimed ? Reflect.apply(string, intl, [t['6cfuDj']]) : Reflect.apply(string, intl, [t.QQsaCc])}
</Text>
</View>
</PressableOpacity>
);
function _fun80946() { // fn#80946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1274, offset: 0x01e91043, size: 38 bytes, params: 1, frame: 16
return isSelected ? env0_3.getAvatarSource(null, true, 100) : undefined;
}
function GiftingSKUCardsGrid({rewardsToDisplay, claimableRewards, onSelect, highlightedSkuId}) { // fn#80948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2376, offset: 0x01e91069, size: 103 bytes, params: 2, frame: 16
const styles = useStyles();
return (
<View style={styles.grid}>
{rewardsToDisplay.map(_fun80949)}
</View>
);
}
}
function _fun80946() { // fn#80946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1274, offset: 0x01e91043, size: 38 bytes, params: 1, frame: 16
return isSelected ? env0_3.getAvatarSource(null, true, 100) : undefined;
}
function GiftingSKUCardsGrid({rewardsToDisplay, claimableRewards, onSelect, highlightedSkuId}) { // fn#80948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2376, offset: 0x01e91069, size: 103 bytes, params: 2, frame: 16
const styles = useStyles();
return (
<View style={styles.grid}>
{rewardsToDisplay.map(_fun80949)}
</View>
);
function _fun80949(a0) { // fn#80949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2527, offset: 0x01e910d0, size: 93 bytes, params: 2, frame: 18
const env0_0 = a0;
const binding = env1_10;
const claimableRewardsBinding = claimableRewards;
return ((Component) => <Component rewardSkuId={a0} claimed={!claimableRewardsBinding.some(_fun80950)} isSelected={highlightedSkuId === a0} onSelect={onSelect} key={a0} />)(binding);
function _fun80950(a0) { // fn#80950, offset: 0x00fcba1c, size: 16 bytes, params: 2, frame: 2
return a0 === env0_0;
}
}
}
function _fun80949(a0) { // fn#80949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2527, offset: 0x01e910d0, size: 93 bytes, params: 2, frame: 18
const env0_0 = a0;
const binding = env1_10;
const claimableRewardsBinding = claimableRewards;
return ((Component) => <Component rewardSkuId={a0} claimed={!claimableRewardsBinding.some(_fun80950)} isSelected={highlightedSkuId === a0} onSelect={onSelect} key={a0} />)(binding);
}
global.__d(_fun80944, 10457, [31, 27, 5126, 1902, 33, 4501, 697, 7594, 3874, 8461, 5278, 10050, 7596, 9294, 4573,
1244,
2]) /* metro module 10457, dependencies: [31, 27, 5126, 1902, 33, 4501, 697, 7594, 3874, 8461, 5278, 10050, 7596, 9294, 4573, 1244, 2] */;
@@ -1,12 +1,18 @@
/* Metro module 10456; source: modules/premium/gifting/native/views/promotions/GiftingSKUSelectScreen.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 1585, 4573, 1244, 10457, 4578, 2] */
import Module00057 from '../../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseSafeAreaInsetsNative from '../../../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import GiftingSKUCardsGrid from './GiftingSKUCardsGrid.tsx'; /* Metro dependency 10457 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun80934(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:6, offset: 0x01e904d6, size: 451 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.View;
const env0_6 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
@@ -14,109 +20,155 @@ function _fun80934(global, require, importDefault, importAll, module, exports, d
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
object2.scroll = {flex: 1};
object.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
object.scroll = {flex: 1};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.contentContainer = {'display': 'flex', 'flexDirection': 'column', padding: PX_24};
object.contentContainer = {'display': 'flex', 'flexDirection': 'column', padding: PX_24};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.header = {textAlign: 'center', padding: PX_8};
object2.subtitle = {textAlign: 'center'};
const object3 = {};
object.header = {textAlign: 'center', padding: PX_8};
object.subtitle = {textAlign: 'center'};
const object4 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.marginHorizontal = PX_16;
object4.marginHorizontal = PX_16;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.marginBottom = PX_24;
object2.buttonContainer = object3;
object4.marginBottom = PX_24;
object.buttonContainer = object4;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.headerContainer = {marginBottom: PX_24};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUSelectScreen.tsx');
object.headerContainer = {marginBottom: PX_24};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUSelectScreen.tsx');
exports.default = GiftingSKUSelectScreen;
}
function GiftingSKUSelectScreen({defaultHighlightedReward, allRewards, claimableRewards, onSelect}) { // fn#80935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:717, offset: 0x01e90699, size: 804 bytes, params: 2, frame: 35
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const binding = env0_4;
let useState = binding.useState;
let value2 = Reflect.apply(useState, binding, [defaultHighlightedReward]);
const value3 = Module00057(value2, 2);
const property = value3[0];
var env0_4 = value3[1];
useState = binding.useState;
const value4 = Module00057(Reflect.apply(useState, binding, [false]), 2);
const property2 = value4[0];
const env0_6 = value4[1];
const value5 = binding.useCallback(function() {
var value2 = claimableRewards.find(_fun80937);
if (value2 != null) {
onSelect(value2);
}
}, [onSelect, property, claimableRewards]);
const value6 = binding.useCallback(_fun80938, []);
const value7 = binding.useMemo(_fun80939, [property, claimableRewards]);
binding.useEffect(_fun80941, [property, claimableRewards, property2, defaultHighlightedReward, value7]);
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let value = (
<Text
style={styles.header}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
accessibilityRole="header"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+ByEeM'])}
</Text>
);
value = (
<View style={styles.headerContainer}>
{value}
<Text
style={styles.subtitle}
variant="text-md/medium"
color="text-default"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vPeaOS)}
</Text>
</View>
);
const items3 = [
<ScrollView style={styles.scroll} contentContainerStyle={styles.contentContainer}>
{value}
{((Component) => <Component rewardsToDisplay={allRewards} claimableRewards={claimableRewards} onSelect={value6} highlightedSkuId={property} />)(GiftingSKUCardsGrid)}
</ScrollView>,
];
const items4 = [styles.buttonContainer];
items4[1] = {paddingBottom: bottom};
const Button = (ButtonNativeModule).Button;
items3[1] = (
<View style={items4}>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3d0Nmb'])}
onPress={value5}
disabled={property == null || !value7}
/>
</View>
);
return (
<View style={styles.container}>
{items3}
</View>
);
function _fun80936() { // fn#80936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:947, offset: 0x01e909bd, size: 48 bytes, params: 1, frame: 12
const value2 = claimableRewards.find(_fun80937);
if (value2 != null) {
onSelect(value2);
}
function _fun80937(a0) { // fn#80937, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
return a0 === env1_3;
}
function GiftingSKUSelectScreen({defaultHighlightedReward, allRewards, claimableRewards, onSelect}) { // fn#80935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:717, offset: 0x01e90699, size: 804 bytes, params: 2, frame: 35
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const binding = env0_4;
let useState = binding.useState;
let value2 = Reflect.apply(useState, binding, [defaultHighlightedReward]);
const binding2 = env0_3;
const value3 = binding2(value2, 2);
const property = value3[0];
var env0_4 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value4[0];
const env0_6 = value4[1];
const value5 = binding.useCallback(function() {
var value2 = claimableRewards.find(_fun80937);
if (value2 != null) {
onSelect(value2);
}
}, [onSelect, property, claimableRewards]);
const value6 = binding.useCallback(_fun80938, []);
const value7 = binding.useMemo(_fun80939, [property, claimableRewards]);
binding.useEffect(_fun80941, [property, claimableRewards, property2, defaultHighlightedReward, value7]);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let value = <Text style={styles.header} variant="heading-xl/extrabold" color="mobile-text-heading-primary" accessibilityRole="header">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+ByEeM'])}</Text>;
value = <View style={styles.headerContainer}>{value}<Text style={styles.subtitle} variant="text-md/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vPeaOS)}</Text></View>;
const items3 = [<ScrollView style={styles.scroll} contentContainerStyle={styles.contentContainer}>{value}{((Component) => <Component rewardsToDisplay={allRewards} claimableRewards={claimableRewards} onSelect={value6} highlightedSkuId={property} />)(importDefault(10457) /* metro dependency 10457: GiftingSKUCardsGrid */)}</ScrollView>];
const items4 = [styles.buttonContainer];
items4[1] = {paddingBottom: bottom};
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items3[1] = <View style={items4}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3d0Nmb'])} onPress={value5} disabled={property == null || !value7} /></View>;
return (
<View style={styles.container}>
{items3}
</View>
);
}
function _fun80936() { // fn#80936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:947, offset: 0x01e909bd, size: 48 bytes, params: 1, frame: 12
const value2 = claimableRewards.find(_fun80937);
if (value2 != null) {
onSelect(value2);
}
}
function _fun80938(a0) { // fn#80938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1019, offset: 0x01e909fd, size: 30 bytes, params: 2, frame: 12
env0_4(a0);
env0_6(true);
}
function _fun80938(a0) { // fn#80938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1019, offset: 0x01e909fd, size: 30 bytes, params: 2, frame: 12
env0_4(a0);
env0_6(true);
}
function _fun80939() { // fn#80939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1053, offset: 0x01e90a1b, size: 42 bytes, params: 1, frame: 12
return Module00057 != null && claimableRewards.some(_fun80940);
function _fun80940(a0) { // fn#80940, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
return a0 === env1_3;
}
function _fun80939() { // fn#80939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1053, offset: 0x01e90a1b, size: 42 bytes, params: 1, frame: 12
return env0_3 != null && claimableRewards.some(_fun80940);
}
}
function _fun80941() { // fn#80941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1113, offset: 0x01e90a45, size: 134 bytes, params: 1, frame: 13
var r4;
var binding;
if (claimableRewards.length === 0) {
env0_4(undefined);
} else if (env0_7) {
claimableRewardsBinding = claimableRewards;
if (!claimableRewardsBinding.some(_fun80942)) {
binding = env0_5;
r4 = !binding && defaultHighlightedReward != null;
r4 = r4 && claimableRewards.some(function(a0) {
function _fun80941() { // fn#80941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1113, offset: 0x01e90a45, size: 134 bytes, params: 1, frame: 13
var r4;
var binding;
if (claimableRewards.length === 0) {
env0_4(undefined);
} else if (env0_7) {
claimableRewardsBinding = claimableRewards;
if (!claimableRewardsBinding.some(_fun80942)) {
binding = env0_5;
r4 = !binding && defaultHighlightedReward != null;
r4 = r4 && claimableRewards.some(function(a0) {
return a0 === defaultHighlightedReward;
});
binding = env0_4;
binding(r4 ? defaultHighlightedReward : undefined);
}
} else {
binding = env0_5;
r4 = !binding && defaultHighlightedReward != null;
r4 = r4 && claimableRewards.some(_fun80943);
binding = env0_4;
binding(r4 ? defaultHighlightedReward : undefined);
}
function _fun80942(a0) { // fn#80942, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
return a0 === env1_3;
}
function _fun80943(a0) { // fn#80943, offset: 0x01e90acb, size: 16 bytes, params: 2, frame: 2
return a0 === defaultHighlightedReward;
});
binding = env0_4;
binding(r4 ? defaultHighlightedReward : undefined);
}
}
} else {
binding = env0_5;
r4 = !binding && defaultHighlightedReward != null;
r4 = r4 && claimableRewards.some(_fun80943);
binding = env0_4;
binding(r4 ? defaultHighlightedReward : undefined);
}
}
function _fun80937(a0) { // fn#80937, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
return a0 === env1_3;
}
global.__d(_fun80934, 10456, [57, 31, 27, 33, 4501, 697, 1585, 4573, 1244, 10457, 4578,
2]) /* metro module 10456, dependencies: [57, 31, 27, 33, 4501, 697, 1585, 4573, 1244, 10457, 4578, 2] */;
@@ -1,4 +1,7 @@
/* Metro module 8327; source: modules/premium/gifting/shared/FriendAnniversaryUtils.tsx; dependencies: [3381, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module03381Module from '../../../../by-id/module-03381.js'; /* Metro dependency 3381 */
function _fun66336(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:6, offset: 0x01bf72a9, size: 166 bytes, params: 8, frame: 18
const env0_0 = require;
const _arrayLikeToArray_66339 = function(a0, a1) {
@@ -46,7 +49,7 @@ function _fun66336(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/shared/FriendAnniversaryUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/shared/FriendAnniversaryUtils.tsx');
exports.FRIEND_ANNIVERSARY_ELIGIBILITY_WINDOW_DAYS = 7;
exports.isFriendAnniversary = isFriendAnniversary;
exports.yearsSince = yearsSince;
@@ -68,198 +71,212 @@ function _fun66336(global, require, importDefault, importAll, module, exports, d
}
return object;
};
}
function _createForOfIteratorHelperLoose_66337(a0, a1) { // fn#66337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:46, offset: 0x01bf734f, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_66337(a0, a1) { // fn#66337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:46, offset: 0x01bf734f, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun66338;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_66339(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 _fun66338;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_66339(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_66339(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun66338;
}
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 isFriendAnniversary(a0) { // fn#66340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1169, offset: 0x01bf74c3, size: 224 bytes, params: 2, frame: 24
var r1;
var property;
var moduleValue;
var setYear;
var value5;
var moduleValue2;
var isSameDay;
var Math;
var abs;
var moduleValue3;
var differenceInDays;
var value6;
const Date = global.Date;
const date = new Date();
const fullYear = date.getFullYear();
const items2 = [-1];
const value3 = 0;
items2[1] = value3;
items2[2] = 1;
let length = items2.length;
if (value3 < length) {
r1 = value3;
reducibleLoop1: while (true) {
property = items2[r1];
moduleValue = require(dependencyMap[value3]);
setYear = moduleValue.setYear;
value5 = Reflect.apply(setYear, moduleValue, [a0, fullYear + property]);
moduleValue2 = require(dependencyMap[value3]);
isSameDay = moduleValue2.isSameDay;
if (!Reflect.apply(isSameDay, moduleValue2, [value5, a0])) {
Math = global.Math;
abs = Math.abs;
moduleValue3 = require(dependencyMap[value3]);
differenceInDays = moduleValue3.differenceInDays;
reducibleJoin4: while (true) {
if (Reflect.apply(abs, Math, [Reflect.apply(differenceInDays, moduleValue3, [date,
value5])]) <= 7) {
return true;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_66339(a0, value);
r6 = value;
} else {
r6 = value;
}
break reducibleJoin4;
}
r5 = r6;
}
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
length = items2.length;
if (!(value6 < length)) {
return false;
}
r1 = value6;
continue reducibleLoop1;
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun66338;
}
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 _fun66338() { // fn#66338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:617, 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]};
}
}
return false;
}
function yearsSince(a0) { // fn#66341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1412, offset: 0x01bf75a3, size: 92 bytes, params: 2, frame: 15
const Math = global.Math;
const round = Math.round;
var value;
const differenceInMonths = (require(3381) /* metro dependency 3381 */).differenceInMonths;
const Date = global.Date;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date();
value = Reflect.apply(differenceInMonths, value, [date instanceof Object ? date : value2, a0]);
return Reflect.apply(round, Math, [value / 12]);
}
function categorizeFriendAnniversariesByAffinity(a0, a1, a2) { // fn#66342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1541, offset: 0x01bf75ff, size: 295 bytes, params: 4, frame: 25
var r6;
var r5;
var value5;
var value6;
var done;
var value7;
var value8;
var value9;
var value10;
var value11;
var value12;
var value13;
var Math;
let Set = global.Set;
let set = new Set();
Set = global.Set;
set = new Set();
if (a2) {
Math = global.Math;
a0.slice(0, Math.ceil(a0.length / 2)).forEach(_fun66343);
a0.forEach(_fun66344);
} else {
value5 = _createForOfIteratorHelperLoose_66337(a0);
value6 = value5();
done = value6.done;
if (!done) {
r6 = value6;
while (true) {
value7 = r6.value;
value8 = a1(value7);
value9 = value8 != null;
if (value9) {
value10 = value8 > 0.7;
r5 = value10;
} else {
r5 = value9;
function isFriendAnniversary(a0) { // fn#66340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1169, offset: 0x01bf74c3, size: 224 bytes, params: 2, frame: 24
var r1;
var property;
var moduleValue;
var setYear;
var value5;
var moduleValue2;
var isSameDay;
var Math;
var abs;
var moduleValue3;
var differenceInDays;
var value6;
const Date = global.Date;
const date = new Date();
const fullYear = date.getFullYear();
const items2 = [-1];
const value3 = 0;
items2[1] = value3;
items2[2] = 1;
let length = items2.length;
if (value3 < length) {
r1 = value3;
reducibleLoop1: while (true) {
property = items2[r1];
moduleValue = require(dependencyMap[value3]);
setYear = moduleValue.setYear;
value5 = Reflect.apply(setYear, moduleValue, [a0, fullYear + property]);
moduleValue2 = require(dependencyMap[value3]);
isSameDay = moduleValue2.isSameDay;
if (!Reflect.apply(isSameDay, moduleValue2, [value5, a0])) {
Math = global.Math;
abs = Math.abs;
moduleValue3 = require(dependencyMap[value3]);
differenceInDays = moduleValue3.differenceInDays;
reducibleJoin4: while (true) {
if (Reflect.apply(abs, Math, [Reflect.apply(differenceInDays, moduleValue3, [date,
value5])]) <= 7) {
return true;
}
break reducibleJoin4;
}
}
if (!r5) {
continue;
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
length = items2.length;
if (!(value6 < length)) {
return false;
}
set.add(value7);
value11 = value8 != null;
if (!value11) {
r5 = value11;
continue;
}
value12 = value8 > 0.5;
r5 = value12;
if (!r5) {
continue;
}
set.add(value7);
value13 = value5();
done = value13.done;
if (done) {
break;
}
r6 = value13;
continue;
r1 = value6;
continue reducibleLoop1;
}
}
return false;
}
return {highestAffinity: set, highAffinity: set};
function yearsSince(a0) { // fn#66341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1412, offset: 0x01bf75a3, size: 92 bytes, params: 2, frame: 15
const Math = global.Math;
const round = Math.round;
var value;
const differenceInMonths = (Module03381Module).differenceInMonths;
const Date = global.Date;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date();
value = Reflect.apply(differenceInMonths, value, [date instanceof Object ? date : value2, a0]);
return Reflect.apply(round, Math, [value / 12]);
}
function categorizeFriendAnniversariesByAffinity(a0, a1, a2) { // fn#66342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1541, offset: 0x01bf75ff, size: 295 bytes, params: 4, frame: 25
var r6;
var r5;
var value5;
var value6;
var done;
var value7;
var value8;
var value9;
var value10;
var value11;
var value12;
var value13;
var Math;
let Set = global.Set;
let set = new Set();
Set = global.Set;
set = new Set();
if (a2) {
Math = global.Math;
a0.slice(0, Math.ceil(a0.length / 2)).forEach(_fun66343);
a0.forEach(_fun66344);
} else {
value5 = _createForOfIteratorHelperLoose_66337(a0);
value6 = value5();
done = value6.done;
if (!done) {
r6 = value6;
while (true) {
value7 = r6.value;
value8 = a1(value7);
value9 = value8 != null;
if (value9) {
value10 = value8 > 0.7;
r5 = value10;
} else {
r5 = value9;
}
if (!r5) {
continue;
}
set.add(value7);
value11 = value8 != null;
if (!value11) {
r5 = value11;
continue;
}
value12 = value8 > 0.5;
r5 = value12;
if (!r5) {
continue;
}
set.add(value7);
value13 = value5();
done = value13.done;
if (done) {
break;
}
r6 = value13;
continue;
}
}
}
return {highestAffinity: set, highAffinity: set};
function _fun66343(a0) { // fn#66343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1677, offset: 0x00c38a0f, size: 24 bytes, params: 2, frame: 11
env0_0.add(a0);
}
function _fun66344(a0) { // fn#66344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1704, offset: 0x01bf7726, size: 24 bytes, params: 2, frame: 11
env0_1.add(a0);
}
}
}
global.__d(_fun66336, 8327, [3381, 2]) /* metro module 8327, dependencies: [3381, 2] */;
@@ -1,16 +1,19 @@
/* Metro module 11432; source: modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx; dependencies: [1880, 661, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as PremiumConstantsModule from '../../PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun87496(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11618:6, offset: 0x01fc0dab, size: 228 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1880) /* metro dependency 1880: PremiumConstants */).GiftIntentType;
const AnalyticsLocations = (require(661) /* metro dependency 661: Constants */).AnalyticsLocations;
const AnalyticsLocations = (ConstantsModule).AnalyticsLocations;
const Set = global.Set;
const FRIEND_ANNIVERSARIES_CHAT = AnalyticsLocations.FRIEND_ANNIVERSARIES_CHAT;
const FRIEND_ANNIVERSARIES_ACTION_BUTTON = AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON;
const FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK = AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK;
const set = new Set([FRIEND_ANNIVERSARIES_CHAT, FRIEND_ANNIVERSARIES_ACTION_BUTTON,
FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx');
exports.getPremiumGiftingIntentAnalyticsLocation = function(a0) {
return a0 === GiftIntentType.FRIEND_ANNIVERSARY ? {chat: AnalyticsLocations.FRIEND_ANNIVERSARIES_CHAT,
actionButton: AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON,
@@ -20,9 +23,10 @@ function _fun87496(global, require, importDefault, importAll, module, exports, d
exports.parseGiftIntentType = function(a0) {
return a0 !== GiftIntentType.FRIEND_ANNIVERSARY ? null : GiftIntentType.FRIEND_ANNIVERSARY;
};
function isGiftingIntentLocation(a0) { // fn#87498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11618:680, offset: 0x00d715d9, size: 22 bytes, params: 2, frame: 11
return env0_2.has(a0);
}
}
function isGiftingIntentLocation(a0) { // fn#87498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11618:680, offset: 0x00d715d9, size: 22 bytes, params: 2, frame: 11
return env0_2.has(a0);
}
global.__d(_fun87496, 11432, [1880, 661, 2]) /* metro module 11432, dependencies: [1880, 661, 2] */;
@@ -1,99 +1,105 @@
/* Metro module 10436; source: modules/premium/gifting/utils/WishlistBannerUtils.tsx; dependencies: [31, 1244, 10034, 6829, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseWishlistHooksModule from '../../../wishlists/hooks/useWishlistHooks.tsx'; /* Metro dependency 10034 */
function _fun80777(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:6, offset: 0x01e88dc8, size: 507 bytes, params: 8, frame: 25
const env0_0 = require;
const closure = getBannerMode;
const getBannerMode2 = getBannerMode;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(31) /* metro dependency 31 */).useMemo;
const object = {};
let intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const object2 = {};
let intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object.FULL_WISHLIST = {title: Reflect.apply(string, intl, [t['7lZ31J']]), getSubtitle: function(a0) {
const t = (IndexNativeModule).t;
object2.FULL_WISHLIST = {title: Reflect.apply(string, intl, [t['7lZ31J']]), getSubtitle: function(a0) {
var intl = require(dependencyMap[1]).intl;
var BjEX38 = require(dependencyMap[1]).t.BjEX38;
return intl.formatToPlainString(BjEX38, {username: a0});
}, showIcons: false};
object.MIXED = {title: intl.string(t.pWG4ze), getSubtitle: function(a0) {
object2.MIXED = {title: intl.string(t.pWG4ze), getSubtitle: function(a0) {
return require(dependencyMap[1]).intl.formatToPlainString(require(dependencyMap[1]).t.dIDKgi, {username: a0});
}, showIcons: true};
string = intl.string;
const SK5rmi = t.SK5rmi;
object.SHOP_ONLY = {title: Reflect.apply(string, intl, [SK5rmi]), getSubtitle: function(a0) {
object2.SHOP_ONLY = {title: Reflect.apply(string, intl, [SK5rmi]), getSubtitle: function(a0) {
return require(dependencyMap[1]).intl.formatToPlainString(require(dependencyMap[1]).t.wyMp1j, {username: a0});
}, showIcons: false};
string = intl.string;
const BCi1gT = t.BCi1gT;
object.SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY = {title: Reflect.apply(string, intl, [BCi1gT]),
object2.SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY = {title: Reflect.apply(string, intl, [BCi1gT]),
getSubtitle: function(a0) {
var intl = require(dependencyMap[1]).intl;
var BjEX38 = require(dependencyMap[1]).t.BjEX38;
return intl.formatToPlainString(BjEX38, {username: a0});
}, showIcons: false};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/utils/WishlistBannerUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/utils/WishlistBannerUtils.tsx');
exports.BannerMode = {FULL_WISHLIST: 'FULL_WISHLIST', MIXED: 'MIXED', SHOP_ONLY: 'SHOP_ONLY',
SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY: 'SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY'};
exports.BANNER_CONFIG_MOBILE = object;
exports.BANNER_CONFIG_MOBILE = object2;
exports.getBannerModeFromDisplayItems = getBannerModeFromDisplayItems;
exports.getBannerMode = closure;
exports.getBannerMode = getBannerMode2;
exports.useWishlistBannerConfig = useWishlistBannerConfig;
}
function getBannerMode({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems}) { // fn#80778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:942, offset: 0x01e88fc3, size: 123 bytes, params: 2, frame: 11
return totalUnownedWishlistItemCount >= wishlistInDmLength ? env0_3.FULL_WISHLIST : totalUnownedWishlistItemCount > 0 ? env0_3.MIXED : displayItems.length > 0 && displayItems.every(_fun80779) ? env0_3.SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY : env0_3.SHOP_ONLY;
function _fun80779({sku, source}) { // fn#80779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1097, offset: 0x01e8903e, size: 91 bytes, params: 2, frame: 14
var r0;
let value = environment.__proto__;
const WishlistItemSource = (UseWishlistHooksModule).WishlistItemSource;
const POPULAR = WishlistItemSource.POPULAR;
const value2 = source === POPULAR;
if (value2) {
value = require(6829) /* metro dependency 6829: SlayerStorefrontUtils */;
value = value.isGameItemSKU(sku);
r0 = value;
} else {
r0 = value2;
}
return r0;
}
function getBannerMode({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems}) { // fn#80778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:942, offset: 0x01e88fc3, size: 123 bytes, params: 2, frame: 11
return totalUnownedWishlistItemCount >= wishlistInDmLength ? env0_3.FULL_WISHLIST : totalUnownedWishlistItemCount > 0 ? env0_3.MIXED : displayItems.length > 0 && displayItems.every(_fun80779) ? env0_3.SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY : env0_3.SHOP_ONLY;
}
function getBannerModeFromDisplayItems({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems}) { // fn#80784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1402, offset: 0x01e89176, size: 90 bytes, params: 2, frame: 14
const getBannerModeBinding = getBannerMode;
const object2 = {totalUnownedWishlistItemCount: totalUnownedWishlistItemCount,
wishlistInDmLength: wishlistInDmLength};
object2.displayItems = displayItems.filter(function(a0) {
return a0.item.sku != null;
}).map(function({item, source}) {
return {sku: item.sku, source: source};
});
return getBannerModeBinding(object2);
}
function useWishlistBannerConfig({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems, recipientName}) { // fn#80787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1742, offset: 0x01e89206, size: 114 bytes, params: 2, frame: 16
let items2 = [totalUnownedWishlistItemCount, wishlistInDmLength, displayItems];
items2 = [useMemo(function() {
return getBannerMode({totalUnownedWishlistItemCount: totalUnownedWishlistItemCount,
wishlistInDmLength: wishlistInDmLength, displayItems: displayItems});
}, items2), recipientName];
return useMemo(_fun80789, items2);
}
function _fun80779({sku, source}) { // fn#80779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1097, offset: 0x01e8903e, size: 91 bytes, params: 2, frame: 14
var r0;
let value = environment.__proto__;
const WishlistItemSource = (require(10034) /* metro dependency 10034: useWishlistHooks */).WishlistItemSource;
const POPULAR = WishlistItemSource.POPULAR;
const value2 = source === POPULAR;
if (value2) {
value = require(6829) /* metro dependency 6829: SlayerStorefrontUtils */;
value = value.isGameItemSKU(sku);
r0 = value;
} else {
r0 = value2;
}
return r0;
}
function _fun80789() { // fn#80789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1980, offset: 0x01e892a8, size: 283 bytes, params: 1, frame: 18
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const binding = env0_4;
const FULL_WISHLIST = env1_3.FULL_WISHLIST;
if (FULL_WISHLIST === binding) {
return {title: intl.formatToPlainString(t['YcL/Vr'], {username: recipientName}), showIcons: false};
function getBannerModeFromDisplayItems({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems}) { // fn#80784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1402, offset: 0x01e89176, size: 90 bytes, params: 2, frame: 14
const getBannerModeBinding = getBannerMode;
const object = {totalUnownedWishlistItemCount: totalUnownedWishlistItemCount,
wishlistInDmLength: wishlistInDmLength};
object.displayItems = displayItems.filter(function(a0) {
return a0.item.sku != null;
}).map(function({item, source}) {
return {sku: item.sku, source: source};
});
return getBannerModeBinding(object);
}
const MIXED = env1_3.MIXED;
if (MIXED === binding) {
return {title: intl.formatToPlainString(t.dIDKgi, {username: recipientName}), showIcons: true};
function useWishlistBannerConfig({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems, recipientName}) { // fn#80787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1742, offset: 0x01e89206, size: 114 bytes, params: 2, frame: 16
let items2 = [totalUnownedWishlistItemCount, wishlistInDmLength, displayItems];
items2 = [useMemo(function() {
return getBannerMode({totalUnownedWishlistItemCount: totalUnownedWishlistItemCount,
wishlistInDmLength: wishlistInDmLength, displayItems: displayItems});
}, items2), recipientName];
return useMemo(_fun80789, items2);
function _fun80789() { // fn#80789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1980, offset: 0x01e892a8, size: 283 bytes, params: 1, frame: 18
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const binding = env0_4;
const FULL_WISHLIST = env1_3.FULL_WISHLIST;
if (FULL_WISHLIST === binding) {
return {title: intl.formatToPlainString(t['YcL/Vr'], {username: recipientName}), showIcons: false};
}
const MIXED = env1_3.MIXED;
if (MIXED === binding) {
return {title: intl.formatToPlainString(t.dIDKgi, {username: recipientName}), showIcons: true};
}
const string = intl.string;
const BCi1gT = t.BCi1gT;
return {title: Reflect.apply(string, intl, [BCi1gT]), showIcons: false};
}
}
const string = intl.string;
const BCi1gT = t.BCi1gT;
return {title: Reflect.apply(string, intl, [BCi1gT]), showIcons: false};
}
global.__d(_fun80777, 10436, [31, 1244, 10034, 6829,
2]) /* metro module 10436, dependencies: [31, 1244, 10034, 6829, 2] */;
@@ -1,14 +1,19 @@
/* Metro module 7674; source: modules/premium/gifting/utils/promotions/GiftingPromotionUtils.tsx; dependencies: [57, 31, 7261, 1880, 566, 7675, 7676, 7583, 3968, 1365, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import PromotionsStore from '../../../promotions/PromotionsStore.tsx'; /* Metro dependency 7261 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as Dismissible_contentModule from '../../../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as PremiumConstantsModule from '../../../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as UseFetchCollectiblesCategoriesAndPurchasesModule from '../../../../collectibles/hooks/useFetchCollectiblesCategoriesAndPurchases.tsx'; /* Metro dependency 7675 */
import * as GiftPromotionReminderExperimentModule from '../../experiments/GiftPromotionReminderExperiment.tsx'; /* Metro dependency 7676 */
function _fun61309(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:6, offset: 0x01b3aef3, size: 277 bytes, params: 8, frame: 20
let env0_0 = require;
const closure = useIsPlanEligibleForGiftingPromotion;
const useIsPlanEligibleForGiftingPromotion2 = useIsPlanEligibleForGiftingPromotion;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
const promotionsStore = importDefault(7261) /* metro dependency 7261: PromotionsStore */;
const env0_5 = (require(1880) /* metro dependency 1880: PremiumConstants */).SubscriptionPlans;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/utils/promotions/GiftingPromotionUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/utils/promotions/GiftingPromotionUtils.tsx');
exports.useFetchClaimableGiftingPromotionRewardSkuIds = useFetchClaimableGiftingPromotionRewardSkuIds;
exports.getRewardAssetIdMap = function(a0) {
var Map = global.Map;
@@ -23,7 +28,7 @@ function _fun61309(global, require, importDefault, importAll, module, exports, d
exports.useShouldAutoSelectGiftingPromotionReward = function(a0, a1, a2) {
return a2 != null && a2.length === 1 && useIsPlanEligibleForGiftingPromotion(a0) && a1;
};
exports.useIsPlanEligibleForGiftingPromotion = closure;
exports.useIsPlanEligibleForGiftingPromotion = useIsPlanEligibleForGiftingPromotion2;
exports.createGradientStyle = createGradientStyle;
exports.createBackgroundStyle = function(a0) {
if (a0 != null) {
@@ -33,76 +38,143 @@ function _fun61309(global, require, importDefault, importAll, module, exports, d
};
exports.combinePromotionStyles = combinePromotionStyles;
exports.shouldShowGiftPromotionReminderNotice = shouldShowGiftPromotionReminderNotice;
}
function useIsPlanEligibleForGiftingPromotion(a0) { // fn#61310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:154, offset: 0x01b3b008, size: 66 bytes, params: 2, frame: 13
const PREMIUM_YEAR_TIER_2 = SubscriptionPlans.PREMIUM_YEAR_TIER_2;
const items2 = [PREMIUM_YEAR_TIER_2];
const PREMIUM_MONTH_TIER_2 = SubscriptionPlans.PREMIUM_MONTH_TIER_2;
items2[1] = PREMIUM_MONTH_TIER_2;
return items2.includes(a0?.id);
}
function useFetchClaimableGiftingPromotionRewardSkuIds() { // fn#61311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:435, offset: 0x01b3b04a, size: 209 bytes, params: 1, frame: 19
const binding = env0_3;
const [property, env0_0] = env0_2(binding.useState(), 2);
const value = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([PromotionsStore],
function() {
return PromotionsStore.getGiftPromotionRewardSkuIds();
});
const {purchases, hasPreviouslyFetched,
fetchPurchasesError} = (require(7675) /* metro dependency 7675: useFetchCollectiblesCategoriesAndPurchases */).useFetchPurchases();
const env0_5 = binding.useRef(false);
binding.useEffect(_fun61313, [value, purchases, hasPreviouslyFetched, fetchPurchasesError]);
return property;
}
function getRewardAssetIdMap(a0) { // fn#61315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:879, offset: 0x01b3b1af, size: 54 bytes, params: 2, frame: 12
const Map = global.Map;
const map = new Map();
a0.forEach(_fun61316);
return map;
}
function createGradientStyle(a0, a1) { // fn#61319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:1423, offset: 0x01b3b27b, size: 272 bytes, params: 3, frame: 21
var r1;
var r0;
var r9;
var r4;
var r7;
var r6;
var r5;
var reverse;
var colorStops;
var defaultAngle;
var Array;
var isArray;
let value = a0;
if (value != null) {
r1 = a1 ?? ({});
reverse = r1.reverse;
r0 = reverse !== undefined && reverse;
colorStops = r1.colorStops;
defaultAngle = r1.defaultAngle;
r9 = defaultAngle === undefined ? 78.98 : defaultAngle;
Array = global.Array;
isArray = Array.isArray;
r4 = Reflect.apply(isArray, Array, [value]) ? value : value.gradient;
Array = global.Array;
isArray = Array.isArray;
r7 = Reflect.apply(isArray, Array, [value]) || value.angle == null ? r9 : value.angle;
r6 = r0 ? (r7 + 180) % 360 : r7;
if (colorStops != null) {
value = r4.map(function(a0, a1) {
return '' + a0 + ' ' + colorStops[a1] + '%';
});
value = value.join(', ');
r5 = value;
} else {
r5 = r4.join(', ');
}
return {background: 'linear-gradient(' + r6 + 'deg, ' + r5 + ')'};
function useIsPlanEligibleForGiftingPromotion(a0) { // fn#61310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:154, offset: 0x01b3b008, size: 66 bytes, params: 2, frame: 13
const PREMIUM_YEAR_TIER_2 = SubscriptionPlans.PREMIUM_YEAR_TIER_2;
const items2 = [PREMIUM_YEAR_TIER_2];
const PREMIUM_MONTH_TIER_2 = SubscriptionPlans.PREMIUM_MONTH_TIER_2;
items2[1] = PREMIUM_MONTH_TIER_2;
return items2.includes(a0?.id);
}
function useFetchClaimableGiftingPromotionRewardSkuIds() { // fn#61311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:435, offset: 0x01b3b04a, size: 209 bytes, params: 1, frame: 19
const [property, env0_0] = Module00057(ReactModule.useState(), 2);
const value = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([PromotionsStore],
function() {
return PromotionsStore.getGiftPromotionRewardSkuIds();
});
const {purchases, hasPreviouslyFetched,
fetchPurchasesError} = (UseFetchCollectiblesCategoriesAndPurchasesModule).useFetchPurchases();
const env0_5 = ReactModule.useRef(false);
ReactModule.useEffect(_fun61313, [value, purchases, hasPreviouslyFetched, fetchPurchasesError]);
return property;
function _fun61313() { // fn#61313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:740, offset: 0x01b3b12e, size: 101 bytes, params: 1, frame: 13
if (hasPreviouslyFetched) {
if (!env0_5.current) {
if (env0_1.length > 0) {
env0_0(fetchPurchasesError == null ? env0_1.filter(_fun61314) : []);
env0_5.current = true;
}
}
}
function _fun61314(a0) { // fn#61314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:799, offset: 0x01b3b193, size: 28 bytes, params: 2, frame: 11
const value = environment.__proto__;
return purchases.get(a0) == null;
}
}
}
function getRewardAssetIdMap(a0) { // fn#61315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:879, offset: 0x01b3b1af, size: 54 bytes, params: 2, frame: 12
const Map = global.Map;
const map = new Map();
a0.forEach(_fun61316);
return map;
function _fun61316({skuId, assetId}) { // fn#61316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:943, offset: 0x01b3b1e5, size: 34 bytes, params: 2, frame: 13
return env0_0.set(skuId, assetId);
}
}
function createGradientStyle(a0, a1) { // fn#61319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:1423, offset: 0x01b3b27b, size: 272 bytes, params: 3, frame: 21
var r1;
var r0;
var r9;
var r4;
var r7;
var r6;
var r5;
var reverse;
var colorStops;
var defaultAngle;
var Array;
var isArray;
let value = a0;
if (value != null) {
r1 = a1 ?? ({});
reverse = r1.reverse;
r0 = reverse !== undefined && reverse;
colorStops = r1.colorStops;
defaultAngle = r1.defaultAngle;
r9 = defaultAngle === undefined ? 78.98 : defaultAngle;
Array = global.Array;
isArray = Array.isArray;
r4 = Reflect.apply(isArray, Array, [value]) ? value : value.gradient;
Array = global.Array;
isArray = Array.isArray;
r7 = Reflect.apply(isArray, Array, [value]) || value.angle == null ? r9 : value.angle;
r6 = r0 ? (r7 + 180) % 360 : r7;
if (colorStops != null) {
value = r4.map(function(a0, a1) {
return '' + a0 + ' ' + colorStops[a1] + '%';
});
value = value.join(', ');
r5 = value;
} else {
r5 = r4.join(', ');
}
return {background: 'linear-gradient(' + r6 + 'deg, ' + r5 + ')'};
}
}
function shouldShowGiftPromotionReminderNotice() { // fn#61323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:2410, offset: 0x01b3b498, size: 299 bytes, params: 1, frame: 19
var id;
var r1;
var r0;
var promotionsStoreBinding;
var giftPromotion;
var value5;
var moduleValue;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
var isDismissed;
var value;
const value2 = undefined;
const GiftPromotionReminderExperiment = (GiftPromotionReminderExperimentModule).GiftPromotionReminderExperiment;
const getConfig = GiftPromotionReminderExperiment.getConfig;
if (Reflect.apply(getConfig, GiftPromotionReminderExperiment,
[{location: 'shouldShowGiftPromotionReminderNotice'}]).enabled) {
promotionsStoreBinding = PromotionsStore;
if (promotionsStoreBinding.getMarketingComponentByType((require(7583) /* metro dependency 7583: MarketingComponentType */).MarketingComponentType.GIFT_REMINDER_NAGBAR) == null) {
return false;
}
giftPromotion = PromotionsStore.getGiftPromotion();
id = giftPromotion == null ? value2 : giftPromotion.id;
value5 = id != null;
if (value5) {
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
isDismissed = moduleValue.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_DESKTOP_FIRST_TIME_COACHMARK,
id).isDismissed;
if (isDismissed) {
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
value = !value.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_REMINDER,
id).isDismissed;
r1 = value;
} else {
r1 = !!isDismissed;
}
r0 = r1;
} else {
r0 = value5;
}
return r0;
}
return false;
}
}
function combinePromotionStyles(a0, a1) { // fn#61322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:1992, offset: 0x01b3b3ff, size: 153 bytes, params: 3, frame: 17
@@ -125,69 +197,5 @@ function combinePromotionStyles(a0, a1) { // fn#61322, source: /ci/build/discord
return value ?? (value2 ?? ({}));
}
function shouldShowGiftPromotionReminderNotice() { // fn#61323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:2410, offset: 0x01b3b498, size: 299 bytes, params: 1, frame: 19
var id;
var r1;
var r0;
var giftPromotion;
var value5;
var moduleValue;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
var isDismissed;
var value;
const value2 = undefined;
const GiftPromotionReminderExperiment = (require(7676) /* metro dependency 7676: GiftPromotionReminderExperiment */).GiftPromotionReminderExperiment;
const getConfig = GiftPromotionReminderExperiment.getConfig;
if (Reflect.apply(getConfig, GiftPromotionReminderExperiment,
[{location: 'shouldShowGiftPromotionReminderNotice'}]).enabled) {
if (PromotionsStore.getMarketingComponentByType((require(7583) /* metro dependency 7583: MarketingComponentType */).MarketingComponentType.GIFT_REMINDER_NAGBAR) == null) {
return false;
}
giftPromotion = PromotionsStore.getGiftPromotion();
id = giftPromotion == null ? value2 : giftPromotion.id;
value5 = id != null;
if (value5) {
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
isDismissed = moduleValue.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_DESKTOP_FIRST_TIME_COACHMARK,
id).isDismissed;
if (isDismissed) {
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
value = !value.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_REMINDER,
id).isDismissed;
r1 = value;
} else {
r1 = !!isDismissed;
}
r0 = r1;
} else {
r0 = value5;
}
return r0;
}
return false;
}
function _fun61313() { // fn#61313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:740, offset: 0x01b3b12e, size: 101 bytes, params: 1, frame: 13
if (hasPreviouslyFetched) {
if (!env0_5.current) {
if (env0_1.length > 0) {
env0_0(fetchPurchasesError == null ? env0_1.filter(_fun61314) : []);
env0_5.current = true;
}
}
}
}
function _fun61316({skuId, assetId}) { // fn#61316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:943, offset: 0x01b3b1e5, size: 34 bytes, params: 2, frame: 13
return env0_0.set(skuId, assetId);
}
function _fun61314(a0) { // fn#61314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:799, offset: 0x01b3b193, size: 28 bytes, params: 2, frame: 11
const value = environment.__proto__;
return purchases.get(a0) == null;
}
global.__d(_fun61309, 7674, [57, 31, 7261, 1880, 566, 7675, 7676, 7583, 3968, 1365,
2]) /* metro module 7674, dependencies: [57, 31, 7261, 1880, 566, 7675, 7676, 7583, 3968, 1365, 2] */;