Files
2026-07-28 01:06:53 +03:00

563 lines
28 KiB
TypeScript

/* Metro module 8450; source: stores/GiftCodeStore.tsx; dependencies: [6, 7, 15, 17, 18, 7671, 661, 4041, 3738, 4129, 694, 8451, 566, 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 GiftCodeRecord from '../records/GiftCodeRecord.tsx'; /* Metro dependency 7671 */
import GiftCodeActionCreators from '../actions/GiftCodeActionCreators.tsx'; /* Metro dependency 8451 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as GiftCodeUtilsModule from '../utils/GiftCodeUtils.tsx'; /* Metro dependency 4129 */
function _fun67037(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:6, offset: 0x01c1458b, size: 786 bytes, params: 8, frame: 24
const env0_0 = require;
const GIFT_CODE_RESOLVE_670472 = GIFT_CODE_RESOLVE_67047;
const closure2 = function({message}) {
resolveMessageGiftCodes(message, true);
return false;
};
const LOCAL_MESSAGES_LOADED_670492 = LOCAL_MESSAGES_LOADED_67049;
const closure4 = function({firstMessages}) {
if (firstMessages == null) {
return false;
}
if (firstMessages != null) {
firstMessages.forEach(_fun67052);
}
};
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_12 = {};
const Map = global.Map;
const map = new Map();
const env0_14 = [];
const env0_15 = [];
const env0_16 = [];
let Set = global.Set;
let set = new Set();
const env0_18 = {};
const env0_19 = {};
Set = global.Set;
set = new Set();
const Store = (Flux).Store;
_fun67053(Store).displayName = 'GiftCodeStore';
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: CONNECTION_OPEN_67067,
CHANNEL_SELECT: CHANNEL_SELECT_67068, GIFT_CODE_RESOLVE: GIFT_CODE_RESOLVE_670472,
GIFT_CODE_RESOLVE_SUCCESS: GIFT_CODE_RESOLVE_SUCCESS_67069,
GIFT_CODE_RESOLVE_FAILURE: GIFT_CODE_RESOLVE_FAILURE, GIFT_CODE_REDEEM: GIFT_CODE_REDEEM_67073,
GIFT_CODE_REDEEM_SUCCESS: GIFT_CODE_REDEEM_SUCCESS, GIFT_CODE_REDEEM_FAILURE: GIFT_CODE_REDEEM_FAILURE,
GIFT_CODE_REVOKE_SUCCESS: GIFT_CODE_REVOKE_SUCCESS, GIFT_CODE_CREATE_SUCCESS: function({giftCode}) {
updateGiftCode(giftCode);
}, GIFT_CODES_FETCH: GIFT_CODES_FETCH, GIFT_CODES_FETCH_SUCCESS: GIFT_CODES_FETCH_SUCCESS,
GIFT_CODES_FETCH_FAILURE: GIFT_CODES_FETCH_FAILURE, MESSAGE_CREATE: closure2, MESSAGE_UPDATE: closure2,
LOCAL_MESSAGES_LOADED: LOCAL_MESSAGES_LOADED_670492, LOAD_MESSAGES_SUCCESS: LOCAL_MESSAGES_LOADED_670492,
LOAD_MESSAGES_AROUND_SUCCESS: LOCAL_MESSAGES_LOADED_670492, LOAD_RECENT_MENTIONS_SUCCESS: function({messages}) {
messages.forEach(_fun67084);
}, LOAD_PINNED_MESSAGES_SUCCESS: function({pins}) {
pins.forEach(_fun67086);
}, SEARCH_MESSAGES_SUCCESS: function({data}) {
data.forEach(_fun67088);
}, GIFT_CODE_UPDATE: GIFT_CODE_UPDATE, LOAD_THREADS_SUCCESS: closure4, LOAD_ARCHIVED_THREADS_SUCCESS: closure4,
LOAD_FORUM_POSTS: function({threads}) {
var Object = global.Object;
Object.values(threads).map(_fun67093);
}});
(FileImportTrackerModule).fileFinishedImporting('stores/GiftCodeStore.tsx');
exports.default = set;
function _isNativeReflectConstruct_67038() { // fn#67038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:216, offset: 0x01c1489d, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_67038_isNativeReflectConstruct = function() {
return !!result;
})();
}
function updateGiftCode(a0) { // fn#67041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:473, offset: 0x01c148ff, size: 172 bytes, params: 2, frame: 17
var Timeout;
var value3;
var timeout;
var value;
const fromServer = GiftCodeRecord.createFromServer(a0);
const code = fromServer.code;
let binding = env0_13;
const value2 = binding.has(code);
binding = env0_13;
const set = binding.set;
if (value2) {
value = env0_13.get(code);
Reflect.apply(set, binding, [code, value.merge(fromServer)]);
} else {
Reflect.apply(set, binding, [code, fromServer]);
if (fromServer.expiresAt != null) {
Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
value3 = Object.create(Timeout.prototype, {constructor: {value: Timeout}});
timeout = new Timeout();
env0_12[code] = timeout instanceof Object ? timeout : value3;
checkGiftCodeExpiry(code);
}
}
}
function checkGiftCodeExpiry(a0) { // fn#67042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:672, offset: 0x01c149ab, size: 205 bytes, params: 2, frame: 19
const env0_0 = a0;
let binding = env0_13;
const value2 = binding.get(a0);
if (value2 != null) {
var expiresAt = value2.expiresAt;
if (expiresAt == null) {
return undefined;
}
expiresAt = value2.expiresAt;
var valueOf = expiresAt.valueOf;
var value3 = Reflect.apply(valueOf, expiresAt, []);
var value4 = (importDefault(3738) /* metro dependency 3738 */)();
valueOf = value4.valueOf;
var value5 = value3 - Reflect.apply(valueOf, value4, []);
if (value5 <= 0) {
binding = env0_13;
binding.delete(a0);
delete env0_12[a0];
binding = env0_21;
binding.emitChange();
return undefined;
}
var property = env0_12[a0];
if (property == null) {
return undefined;
}
var start = property.start;
var Math = global.Math;
Reflect.apply(start, property, [Math.min(MAX_TIMEOUT_MS, value5), _fun67043]);
}
function _fun67043() { // fn#67043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:902, offset: 0x01c14a78, size: 23 bytes, params: 1, frame: 11
checkGiftCodeExpiry(env0_0);
}
}
function resolveMessageGiftCodes(a0) { // fn#67044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:933, offset: 0x01c14a8f, size: 212 bytes, params: 2, frame: 16
var r2;
var binding;
var isGiftCodeEmbed2;
var findGiftCodes;
let value = a1;
const value2 = undefined;
if (value !== value2 ? value : false) {
binding = env0_20;
if (binding.has(a0.channel_id)) {
isGiftCodeEmbed2 = (require(4129) /* metro dependency 4129: GiftCodeUtils */).isGiftCodeEmbed(a0);
value = require(4129) /* metro dependency 4129: GiftCodeUtils */;
findGiftCodes = value.findGiftCodes;
r2 = isGiftCodeEmbed2 ? Reflect.apply(findGiftCodes, value,
[(a0 == null ? value2 : a0.embeds) != null ? a0 == null ? value2 : a0.embeds[0].url : value2]) : Reflect.apply(findGiftCodes,
value, [a0.content]);
if (r2.length !== 0) {
r2.forEach(_fun67045);
}
return false;
}
} else {
isGiftCodeEmbed2 = (require(4129) /* metro dependency 4129: GiftCodeUtils */).isGiftCodeEmbed(a0);
value = require(4129) /* metro dependency 4129: GiftCodeUtils */;
findGiftCodes = value.findGiftCodes;
r2 = isGiftCodeEmbed2 ? Reflect.apply(findGiftCodes, value,
[(a0 == null ? value2 : a0.embeds) != null ? a0 == null ? value2 : a0.embeds[0].url : value2]) : Reflect.apply(findGiftCodes,
value, [a0.content]);
if (r2.length !== 0) {
r2.forEach(_fun67045);
}
}
return false;
function _fun67045(a0) { // fn#67045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:1201, offset: 0x01c14b63, size: 105 bytes, params: 2, frame: 14
var environment;
const env0_0 = a0;
const value = environment.__proto__;
if (!(env1_14.includes(a0) || env1_16.includes(a0))) {
GIFT_CODE_RESOLVE_67047({code: a0});
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun67046);
}
function _fun67046() { // fn#67046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:1283, offset: 0x01c14bcc, size: 66 bytes, params: 1, frame: 16
return (GiftCodeActionCreators).resolveGiftCode(env0_0, false,
true).catch(NOOP_NULL);
}
}
}
function GIFT_CODE_RESOLVE_67047({code}) { // fn#67047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:1339, offset: 0x01c14c0e, size: 65 bytes, params: 2, frame: 15
var items2;
var value2;
let binding = env0_14;
if (!binding.includes(code)) {
binding = env0_14;
items2 = [];
value2 = arraySpread(items2, binding, 0, undefined);
items2[value2] = code;
value2 + 1;
}
}
function LOAD_MESSAGES_AROUND_SUCCESS_67049({channelId, messages}) { // fn#67049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:1481, offset: 0x01c14c6c, size: 54 bytes, params: 2, frame: 12
env0_20.add(channelId);
messages.forEach(function(a0) {
resolveMessageGiftCodes(a0, true);
return false;
});
}
function LOAD_ARCHIVED_THREADS_SUCCESS_67051({firstMessages}) { // fn#67051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:1590, offset: 0x01c14cba, size: 46 bytes, params: 2, frame: 11
if (firstMessages == null) {
return false;
}
if (firstMessages != null) {
firstMessages.forEach(function(a0) {
resolveMessageGiftCodes(a0);
return false;
});
}
function _fun67052(a0) { // fn#67052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:1683, offset: 0x01c14ce8, size: 21 bytes, params: 2, frame: 11
resolveMessageGiftCodes(a0);
return false;
}
}
function _fun67053(a0) { // fn#67053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:1721, offset: 0x01c14cfd, size: 338 bytes, params: 2, frame: 16
const GiftCodeStore2 = GiftCodeStore;
Inherits(GiftCodeStore2, a0);
return CreateClass(GiftCodeStore2, [{key: 'get', value: value_67055}, {key: 'getError', value: value_67056},
{key: 'getForGifterSKUAndPlan', value: value_67057}, {key: 'getIsResolving', value: value_67059},
{key: 'getIsResolved', value: value_67060}, {key: 'getIsAccepting', value: value_67061},
{key: 'getUserGiftCodesFetchingForSKUAndPlan', value: value_67062},
{key: 'getUserGiftCodesLoadedAtForSKUAndPlan', value: value_67063}, {key: 'getResolvingCodes',
value: value_67064}, {key: 'getResolvedCodes', value: value_67065}, {key: 'getAcceptingCodes',
value: value_67066}]);
function GiftCodeStore() { // fn#67054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:1733, offset: 0x00e3fd08, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, GiftCodeStore);
const value3 = env1_6(GiftCodeStore);
return env1_5(this, _isNativeReflectConstruct_67038() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function value_67055(a0) { // fn#67055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2009, offset: 0x01c14e4f, size: 51 bytes, params: 2, frame: 12
let value = environment.__proto__;
value = env1_13.get(a0);
const value2 = null;
return value2 == value || value.isExpired() ? value2 : value;
}
function value_67056(a0) { // fn#67056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2097, offset: 0x01c14e82, size: 25 bytes, params: 2, frame: 3
const value = null;
return value != a0 ? env1_19[a0] : value;
}
function value_67057(a0, a1, a2) { // fn#67057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2172, offset: 0x01c14e9b, size: 76 bytes, params: 4, frame: 13
var environment;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const Array = global.Array;
const from = Array.from;
const value = environment.__proto__;
const binding = env1_13;
return Reflect.apply(from, Array, [binding.values()]).filter(_fun67058);
function _fun67058(a0) { // fn#67058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2226, offset: 0x01c14ee7, size: 86 bytes, params: 2, frame: 12
const userId = a0.userId;
return userId === env0_0 && a0.skuId === require && (importDefault == null || a0.subscriptionPlanId === importDefault) && !a0.isExpired();
}
}
function value_67059(a0) { // fn#67059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2340, offset: 0x01c14f3d, size: 22 bytes, params: 2, frame: 11
return env1_14.includes(a0);
}
function value_67060(a0) { // fn#67060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2402, offset: 0x01c14f53, size: 22 bytes, params: 2, frame: 11
return env1_16.includes(a0);
}
function value_67061(a0) { // fn#67061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2465, offset: 0x01c14f69, size: 22 bytes, params: 2, frame: 11
return env1_15.includes(a0);
}
function value_67062(a0, a1) { // fn#67062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2551, offset: 0x01c14f7f, size: 59 bytes, params: 3, frame: 15
let value = environment.__proto__;
const binding = env1_17;
const has = binding.has;
value = require(4129) /* metro dependency 4129: GiftCodeUtils */;
return Reflect.apply(has, binding, [value.makeComboId(a0, a1)]);
}
function value_67063(a0, a1) { // fn#67063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2657, offset: 0x01c14fba, size: 53 bytes, params: 3, frame: 14
let value = environment.__proto__;
const binding = env1_18;
value = require(4129) /* metro dependency 4129: GiftCodeUtils */;
return binding[value.makeComboId(a0, a1)];
}
function value_67064() { // fn#67064, offset: 0x00df0f5a, size: 9 bytes, params: 1, frame: 1
return env1_14;
}
function value_67065() { // fn#67065, offset: 0x00df0e94, size: 9 bytes, params: 1, frame: 1
return env1_16;
}
function value_67066() { // fn#67066, offset: 0x00df0e8b, size: 9 bytes, params: 1, frame: 1
return env1_15;
}
}
function CONNECTION_OPEN_67067() { // fn#67067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:2953, offset: 0x01c14fef, size: 21 bytes, params: 1, frame: 9
env0_20.clear();
return false;
}
function CHANNEL_SELECT_67068({channelId}) { // fn#67068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:3021, offset: 0x01c15004, size: 35 bytes, params: 2, frame: 11
if (channelId != null) {
env0_20.add(channelId);
}
return false;
}
function GIFT_CODE_RESOLVE_SUCCESS_67069({giftCode}) { // fn#67069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:3160, offset: 0x01c15027, size: 116 bytes, params: 2, frame: 15
var binding2;
var items2;
var value2;
let binding = env0_14;
env0_14 = binding.filter(function(a0) {
return a0 !== giftCode.code;
});
binding = env0_16;
if (!binding.includes(giftCode.code)) {
binding2 = env0_16;
items2 = [];
value2 = arraySpread(items2, binding2, 0, binding);
items2[value2] = giftCode.code;
value2 + 1;
}
updateGiftCode(giftCode);
}
function GIFT_CODE_RESOLVE_FAILURE({code, error}) { // fn#67071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:3330, offset: 0x01c150b0, size: 115 bytes, params: 2, frame: 16
var binding3;
var items2;
var value2;
const binding = env0_14;
env0_14 = binding.filter(function(a0) {
return a0 !== code;
});
const binding2 = env0_16;
if (!binding2.includes(code)) {
binding3 = env0_16;
items2 = [];
value2 = arraySpread(items2, binding3, 0, binding);
items2[value2] = code;
value2 + 1;
}
if (error != null) {
env0_19[code] = error;
}
}
function GIFT_CODE_REDEEM_67073({code}) { // fn#67073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:3473, offset: 0x01c15123, size: 65 bytes, params: 2, frame: 15
var items2;
var value2;
let binding = env0_15;
if (!binding.includes(code)) {
binding = env0_15;
items2 = [];
value2 = arraySpread(items2, binding, 0, undefined);
items2[value2] = code;
value2 + 1;
}
}
function GIFT_CODE_REDEEM_SUCCESS({code}) { // fn#67074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:3567, offset: 0x01c15164, size: 119 bytes, params: 2, frame: 17
let binding = env0_15;
env0_15 = binding.filter(function(a0) {
return a0 !== code;
});
const value2 = env0_13.get(code);
if (value2 != null) {
binding = env0_13;
binding.set(code, value2.merge({redeemed: true, uses: value2.uses + 1}));
}
}
function GIFT_CODE_REDEEM_FAILURE({code, error}) { // fn#67076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:3733, offset: 0x01c151db, size: 182 bytes, params: 2, frame: 17
var code2;
let binding = env0_15;
env0_15 = binding.filter(function(a0) {
return a0 !== code;
});
const value2 = env0_13.get(code);
env0_19[code] = error;
if (value2 != null) {
code2 = error.code;
if (AbortCodes.UNKNOWN_GIFT_CODE === code2) {
binding = env0_13;
binding.set(code, value2.set('revoked', true));
} else if (AbortCodes.INVALID_GIFT_REDEMPTION_EXHAUSTED === code2) {
binding = env0_13;
binding.set(code, value2.set('uses', value2.maxUses));
}
}
}
function GIFT_CODE_REVOKE_SUCCESS({code}) { // fn#67078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:4020, offset: 0x01c15291, size: 111 bytes, params: 2, frame: 15
var items2;
var value2;
let binding = env0_13;
binding.delete(code);
const property = env0_12[code];
if (property != null) {
property.stop();
delete env0_12[code];
}
if (!Reflect.apply(env0_16.includes, binding, [code])) {
binding = env0_16;
items2 = [];
value2 = arraySpread(items2, binding, 0, undefined);
items2[value2] = code;
value2 + 1;
}
}
function GIFT_CODES_FETCH({skuId, subscriptionPlanId}) { // fn#67080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:4249, offset: 0x01c15319, size: 67 bytes, params: 2, frame: 16
const binding = env0_17;
const add = binding.add;
Reflect.apply(add, binding, [GiftCodeUtilsModule.makeComboId(skuId, subscriptionPlanId)]);
}
function GIFT_CODES_FETCH_SUCCESS({giftCodes, skuId, subscriptionPlanId}) { // fn#67081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:4369, offset: 0x01c1535c, size: 112 bytes, params: 2, frame: 15
giftCodes.forEach(updateGiftCode);
const comboId = (GiftCodeUtilsModule).makeComboId(skuId, subscriptionPlanId);
const binding = env0_18;
const Date = global.Date;
binding[comboId] = Date.now();
env0_17.delete(comboId);
}
function GIFT_CODES_FETCH_FAILURE({skuId, subscriptionPlanId}) { // fn#67082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:4561, offset: 0x01c153cc, size: 67 bytes, params: 2, frame: 16
const binding = env0_17;
binding.delete(GiftCodeUtilsModule.makeComboId(skuId, subscriptionPlanId));
}
function LOAD_RECENT_MENTIONS_SUCCESS_67083({messages}) { // fn#67083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:4880, offset: 0x01c1540f, size: 32 bytes, params: 2, frame: 11
messages.forEach(function(a0) {
resolveMessageGiftCodes(a0);
return false;
});
function _fun67084(a0) { // fn#67084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:4939, offset: 0x01c14ce8, size: 21 bytes, params: 2, frame: 11
resolveMessageGiftCodes(a0);
return false;
}
}
function LOAD_PINNED_MESSAGES_SUCCESS_67085({pins}) { // fn#67085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5001, offset: 0x01c1542f, size: 32 bytes, params: 2, frame: 11
pins.forEach(function({message}) {
resolveMessageGiftCodes(message);
return false;
});
function _fun67086({message}) { // fn#67086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5056, offset: 0x01c1544f, size: 26 bytes, params: 2, frame: 11
resolveMessageGiftCodes(message);
return false;
}
}
function SEARCH_MESSAGES_SUCCESS_67087({data}) { // fn#67087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5125, offset: 0x01c15469, size: 31 bytes, params: 2, frame: 11
data.forEach(function({messages}) {
messages.forEach(_fun67089);
});
function _fun67088({messages}) { // fn#67088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5183, offset: 0x01c15488, size: 32 bytes, params: 2, frame: 11
messages.forEach(function(a0) {
a0.forEach(_fun67090);
});
function _fun67089(a0) { // fn#67089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5211, offset: 0x01c154a8, size: 26 bytes, params: 2, frame: 11
a0.forEach(function(a0) {
resolveMessageGiftCodes(a0);
return false;
});
function _fun67090(a0) { // fn#67090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5226, offset: 0x01c154c2, size: 21 bytes, params: 2, frame: 11
resolveMessageGiftCodes(a0);
return false;
}
}
}
}
function GIFT_CODE_UPDATE({uses, code}) { // fn#67091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5282, offset: 0x01c154d7, size: 96 bytes, params: 2, frame: 18
var set;
var set2;
var Math;
let binding = env0_13;
const value2 = binding.get(code);
if (value2 != null) {
binding = env0_13;
set = binding.set;
set2 = value2.set;
Math = global.Math;
Reflect.apply(set, binding, [code, Reflect.apply(set2, value2, ['uses', Math.max(value2.uses, uses)])]);
}
}
function LOAD_FORUM_POSTS_67092({threads}) { // fn#67092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5514, offset: 0x01c15537, size: 50 bytes, params: 2, frame: 11
const Object = global.Object;
Object.values(threads).map(_fun67093);
function _fun67093({first_message}) { // fn#67093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8635:5579, offset: 0x01c15569, size: 36 bytes, params: 2, frame: 12
var r0;
let value = first_message != null;
if (value) {
value = environment.__proto__;
resolveMessageGiftCodes(first_message);
value = false;
r0 = value;
} else {
r0 = value;
}
return r0;
}
}
}
global.__d(_fun67037, 8450, [6, 7, 15, 17, 18, 7671, 661, 4041, 3738, 4129, 694, 8451, 566,
2]) /* metro module 8450, dependencies: [6, 7, 15, 17, 18, 7671, 661, 4041, 3738, 4129, 694, 8451, 566, 2] */;