/* Metro module 7066; source: modules/premium/ReferralTrialActionCreators.tsx; dependencies: [5, 6, 7, 1885, 1934, 661, 507, 694, 1216, 7067, 2] */ function _fun56107(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:6, offset: 0x013bd034, size: 439 bytes, params: 8, frame: 20 var object3; const env0_0 = require; const _arrayLikeToArray_56110 = function(a0, a1) { var r0; var r1; var r2; var value3; var length; var value5; var value = undefined; var value2 = value == null; reducibleJoin2: while (true) { if (value2) { r0 = value2; break reducibleJoin2; } value3 = value > a0.length; r0 = value3; break reducibleJoin2; } reducibleJoin4: while (true) { if (r0) { length = a0.length; r1 = length; break reducibleJoin4; } r1 = value; break reducibleJoin4; } value = (0, global.Array)(r1); var value4 = 0; if (value4 < r1) { r2 = value4; reducibleLoop5: while (true) { value[r2] = a0[r2]; value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value5 < r1) { r2 = value5; continue reducibleLoop5; } break reducibleLoop5; } } return value; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const env0_4 = importDefault(6) /* metro dependency 6 */; const env0_5 = importDefault(7) /* metro dependency 7 */; const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */; const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */; let value = require(661) /* metro dependency 661: Constants */; const env0_8 = value.AbortCodes; const env0_9 = value.Endpoints; object3 = {REDEEMED: 1}; object3[1] = 'REDEEMED'; object3.PENDING = 2; object3[2] = 'PENDING'; object3.CONVERTED = 3; object3[3] = 'CONVERTED'; const object4 = {SUCCESS: 1}; object4[1] = 'SUCCESS'; object4.FAIL = 2; object4[2] = 'FAIL'; value = _fun56124(); value = new value(); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/ReferralTrialActionCreators.tsx'); exports.ReferralOfferStatus = object3; exports.CreateReferralStatus = object4; exports.fetchReferralEligibleUsers = function() { return _fetchReferralEligibleUsers.apply(this, arguments); }; exports.fetchReferralsRemaining = fetchReferralsRemaining; exports.createReferralTrials = function() { return _createReferralTrials.apply(this, arguments); }; exports.createReferralTrial = function() { return _createReferralTrial.apply(this, arguments); }; exports.resolveReferralTrialOffer = function() { return _resolveReferralTrialOffer.apply(this, arguments); }; } function _createForOfIteratorHelperLoose_56108(a0, a1) { // fn#56108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:190, offset: 0x013bd1eb, size: 370 bytes, params: 3, frame: 20 var r6; var r9; var r5; var value3; var regexp; const env0_0 = a0; const Symbol = global.Symbol; let value = typeof Symbol !== 'undefined'; let r1 = value && a0[global.Symbol.iterator]; r1 = !r1 ? a0['@@iterator'] : r1; if (r1) { value = r1.call(a0); return value.next.bind(value); } const Array = global.Array; if (Array.isArray(a0)) { if (r1) { } return _fun56109; } value = undefined; if (a0) { if (typeof a0 === 'string') { value = _arrayLikeToArray_56110(a0, value); r5 = value; } else { value3 = ({}).toString.call(a0).slice(8, -1); r6 = value3 === 'Object' && a0.constructor; r9 = r6 ? a0.constructor.name : value3; if (r9 === 'Map') { r6 = global.Array.from(a0); } else if (r9 === 'Set') { r6 = global.Array.from(a0); } else if (r9 === 'Arguments') { value = _arrayLikeToArray_56110(a0, value); r6 = value; } else { regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', ''); if (regexp.test(r9)) { value = _arrayLikeToArray_56110(a0, value); r6 = value; } else { r6 = value; } } r5 = r6; } } else { r5 = value; } if (r5) { if (r5) { } return _fun56109; } 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 _fetchReferralEligibleUsers() { // fn#56111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:1729, offset: 0x013bd35d, size: 48 bytes, params: 1, frame: 14 return env0_3(_fun56113).apply(this, arguments); } function _createReferralTrials() { // fn#56115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:2171, offset: 0x013bd4c4, size: 48 bytes, params: 1, frame: 14 return env0_3(_fun56117).apply(this, arguments); } function _createReferralTrial() { // fn#56118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:2663, offset: 0x013bd684, size: 48 bytes, params: 1, frame: 14 return env0_3(_fun56120).apply(this, arguments); } function _resolveReferralTrialOffer() { // fn#56121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:3194, offset: 0x013bd801, size: 48 bytes, params: 1, frame: 14 return env0_3(_fun56123).apply(this, arguments); } function _fun56124() { // fn#56124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:1291, offset: 0x013bd927, size: 124 bytes, params: 1, frame: 15 return env0_5(EligibleUserCache, [{key: 'set', value: function(a0, a1) { this.cache.set(a0, a1); }}, {key: 'get', value: function(a0) { this._checkExpiration(); return this.cache.get(a0); }}, {key: 'has', value: function(a0) { this._checkExpiration(); return this.cache.has(a0); }}, {key: '_checkExpiration', value: function() { var property = this.expiration; var Date = global.Date; if (property < Date.now()) { this.cache.clear(); } }}]); } function fetchReferralsRemaining() { // fn#56131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:3918, offset: 0x013bda93, size: 129 bytes, params: 1, frame: 17 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'BILLING_REFERRALS_REMAINING_FETCH_START'}); const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const get = HTTP.get; const GET_REFERRALS_REMAINING = Endpoints.GET_REFERRALS_REMAINING; return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false, url: GET_REFERRALS_REMAINING}]).then(_fun56132, _fun56133); } function* _fun56113(a0, a1, a2) { // fn#56113, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:1806, offset: 0x013bd396, size: 270 bytes, params: 4, frame: 20 var object2; let value = a2; if (false) { return undefined; } const JSON = global.JSON; const value4 = JSON.stringify({index: a0, searchQuery: a1}); const binding = env2_11; if (binding.has(value4)) { return env2_11.get(value4); } const HTTP = env2_0(env2_2[6]).HTTP; const post = HTTP.post; const GET_REFERRAL_ELIGIBLE_USERS = env2_9.GET_REFERRAL_ELIGIBLE_USERS; yield Reflect.apply(post, HTTP, [{url: GET_REFERRAL_ELIGIBLE_USERS, body: {index: a0, limit: value ?? 10, search_query: a1}, oldFormErrors: true, rejectWithError: false}]); value = undefined; if (false) { return value; } const body = value.body; const users = body.users; object2 = {users: users.map(_fun56114), nextIndex: body.next_index}; env2_11.set(value4, object2); return object2; } function* _fun56117(a0) { // fn#56117, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:2236, offset: 0x013bd4fd, size: 391 bytes, params: 2, frame: 28 var r14; var binding; var binding2; var property; var value8; var HTTP; var post; var object2; var CREATE_REFERRAL; var value9; var value10; var value11; var value12; var body; var value13; var value14; var push; var set; var SUCCESS; var error; var value15; var captureException; var FAIL; var value16; var value17; var dispatch; if (false) { return undefined; } const items2 = []; const Map = global.Map; const map = new Map(); const value4 = env2_12(a0); const value5 = value4(); let done = value5.done; const value6 = null; if (done) { value17 = env2_1(env2_2[7]); value17.dispatch({type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}); return map; } let r9 = value5; let value7 = r9.value; exceptionMain3: while (true) { reducibleLoop3: while (true) { try { binding = env2_0; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { binding2 = env2_2; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { property = binding2[6]; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { value8 = binding(property); } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { HTTP = value8.HTTP; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { post = HTTP.post; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { binding = env2_9; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { CREATE_REFERRAL = binding.CREATE_REFERRAL; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { value9 = Reflect.apply(CREATE_REFERRAL, binding, [value7]); } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { object2.url = value9; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { value10 = Reflect.apply(post, HTTP, [object2]); } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } yield value10; try { value11 = undefined; value12 = false; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } if (value12) { return value11; } try { body = value11.body; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { value13 = value6 != body; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } reducibleJoin24: while (true) { if (value13) { r14 = body; break reducibleJoin24; } r14 = value6; break reducibleJoin24; } try { value14 = value6 == r14; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } reducibleJoin30: while (true) { if (value14) { break reducibleJoin30; } try { push = items2.push; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { Reflect.apply(push, items2, [r14]); } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } break reducibleJoin30; } try { set = map.set; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { binding = env2_10; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { SUCCESS = binding.SUCCESS; } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } try { Reflect.apply(set, map, [value7, SUCCESS]); } catch (error) { while (true) { binding = env2_1; value15 = binding(env2_2[8]); captureException = value15.captureException; Reflect.apply(captureException, value15, [error]); set = map.set; FAIL = env2_10.FAIL; Reflect.apply(set, map, [value7, FAIL]); value16 = value4(); done = value16.done; if (done) { binding = env2_1; value17 = binding(env2_2[7]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}]); return map; } r9 = value16; value7 = r9.value; break; continue exceptionMain3; } } value16 = value4(); done = value16.done; if (done) { value17 = env2_1(env2_2[7]); value17.dispatch({type: 'CREATE_REFERRALS_SUCCESS', userTrialOffers: items2}); return map; } r9 = value16; value7 = r9.value; continue reducibleLoop3; } } } function* _fun56120(a0) { // fn#56120, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:2726, offset: 0x013bd6bd, size: 324 bytes, params: 2, frame: 21 var binding; var binding2; var property; var value3; var HTTP; var post; var object2; var CREATE_REFERRAL; var value4; var value5; var value6; var value7; var body; var value9; var binding3; var value10; var dispatch; var error; var value11; var code; var INVALID_MESSAGE_SEND_USER; var currentlySelectedChannelId; var sendClydeError; if (false) { return undefined; } value = environment.__proto__.__proto__; try { binding = env2_0; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { binding2 = env2_2; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { property = binding2[6]; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { value3 = binding(property); } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { HTTP = value3.HTTP; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { post = HTTP.post; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false}; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { binding = env2_9; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { CREATE_REFERRAL = binding.CREATE_REFERRAL; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { value4 = Reflect.apply(CREATE_REFERRAL, binding, [a0]); } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { object2.url = value4; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { value5 = Reflect.apply(post, HTTP, [object2]); } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } yield value5; try { value6 = undefined; value7 = false; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } if (value7) { return value6; } try { body = value6.body; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } const value8 = null; try { value9 = value8 != body; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } const r6 = value9 ? body : value8; try { binding = env2_1; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { binding3 = env2_2; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { property = binding3[7]; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { value10 = binding(property); } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { dispatch = value10.dispatch; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { object2 = {}; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { object2.type = 'BILLING_CREATE_REFERRAL_SUCCESS'; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { object2.userTrialOffer = r6; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { Reflect.apply(dispatch, value10, [object2]); } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { object2 = {}; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } try { object2.userTrialOffer = r6; } catch (error) { binding = env2_1; value11 = binding(env2_2[7]); value11.dispatch({type: 'BILLING_CREATE_REFERRAL_FAIL'}); body = error.body; code = body.code; INVALID_MESSAGE_SEND_USER = env2_8.INVALID_MESSAGE_SEND_USER; if (code === INVALID_MESSAGE_SEND_USER) { binding = env2_7; currentlySelectedChannelId = binding.getCurrentlySelectedChannelId(); if (currentlySelectedChannelId != null) { binding = env2_1; value = binding(env2_2[9]); sendClydeError = value.sendClydeError; body = error.body; code = body.code; Reflect.apply(sendClydeError, value, [currentlySelectedChannelId, code]); } } return undefined; } return object2; } function* _fun56123(a0) { // fn#56123, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:3269, offset: 0x013bd83a, size: 237 bytes, params: 2, frame: 19 var binding; var binding2; var property; var value3; var HTTP; var get; var object2; var REFERRAL_OFFER_ID_RESOLVE; var value4; var value5; var value6; var value7; var body; var value9; var binding3; var value10; var dispatch; var error; if (false) { return undefined; } value = environment.__proto__.__proto__; try { binding = env2_0; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { binding2 = env2_2; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { property = binding2[6]; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { value3 = binding(property); } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { HTTP = value3.HTTP; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { get = HTTP.get; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false}; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { binding = env2_9; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { REFERRAL_OFFER_ID_RESOLVE = binding.REFERRAL_OFFER_ID_RESOLVE; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { value4 = Reflect.apply(REFERRAL_OFFER_ID_RESOLVE, binding, [a0]); } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { object2.url = value4; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { value5 = Reflect.apply(get, HTTP, [object2]); } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } yield value5; try { value6 = undefined; value7 = false; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } if (value7) { return value6; } try { body = value6.body; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } const value8 = null; try { value9 = value8 != body; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } const r4 = value9 ? body : value8; try { binding = env2_1; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { binding3 = env2_2; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { property = binding3[7]; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { value10 = binding(property); } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { dispatch = value10.dispatch; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { object2 = {}; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { object2.type = 'BILLING_REFERRAL_RESOLVE_SUCCESS'; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { object2.userTrialOffer = r4; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { Reflect.apply(dispatch, value10, [object2]); } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { object2 = {}; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } try { object2.userTrialOffer = r4; } catch (error) { binding = env2_1; value = binding(env2_2[7]); value.dispatch({type: 'BILLING_REFERRAL_RESOLVE_FAIL', userTrialOfferId: a0}); return undefined; } return object2; } function EligibleUserCache() { // fn#56125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:1312, offset: 0x013bd9a3, size: 92 bytes, params: 1, frame: 14 const value = environment.__proto__; env1_4(this, EligibleUserCache); const Map = global.Map; this.cache = new Map(); const Date = global.Date; this.expiration = Date.now() + 600000; } function _fun56132(a0) { // fn#56132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:4083, offset: 0x013bdb14, size: 375 bytes, params: 2, frame: 20 var referrals_remaining; var propertyName; var recipient_status2; var property; const Map = global.Map; const map = new Map(); let body = a0.body; const value2 = null; if (value2 != body) { body = a0.body; if (value2 != body.recipient_status) { body = a0.body; for (propertyName in body.recipient_status) { body = a0.body; recipient_status2 = body.recipient_status; property = recipient_status2[propertyName]; map.set(propertyName, property); } } } const value4 = undefined; const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; const dispatch = defaultImport.dispatch; body = a0.body; const value5 = 0; if (value2 != body) { referrals_remaining = a0.body.referrals_remaining; referrals_remaining = value2 != referrals_remaining ? a0.body.referrals_remaining : value5; } else { referrals_remaining = value5; } body = a0.body; const refresh_at = value2 == body ? value4 : body.refresh_at; body = a0.body; const has_eligible_friends = value2 == body ? value4 : body.has_eligible_friends; body = a0.body; const reminder_state_id = value2 == body ? value4 : body.reminder_state_id; Reflect.apply(dispatch, defaultImport, [{type: 'BILLING_REFERRALS_REMAINING_FETCH_SUCCESS', referrals_remaining: referrals_remaining, sent_user_ids: value2 == a0.body ? [] : value2 != a0.body.sent_user_ids ? a0.body.sent_user_ids : [], refresh_at: value2 != refresh_at ? refresh_at : value2, recipient_status: map, has_eligible_friends: value2 != has_eligible_friends && has_eligible_friends, reminder_state_id: value2 != reminder_state_id ? reminder_state_id : value2}]); return value4; } function _fun56133(a0) { // fn#56133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:4733, offset: 0x013bdc8b, size: 78 bytes, params: 2, frame: 13 var value2; const value = undefined; if ((a0 == null ? value : a0.status) !== 404) { value2 = environment.__proto__; (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'BILLING_REFERRALS_REMAINING_FETCH_FAIL'}); } return value; } function _fun56114(a0) { // fn#56114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7244:2098, offset: 0x013bd4a4, size: 32 bytes, params: 2, frame: 11 let value = environment.__proto__.__proto__.__proto__; const binding = env3_6; value = Object.create(binding.prototype, {constructor: {value: binding}}); const binding2 = new binding(a0); return binding2 instanceof Object ? binding2 : value; }