1235 lines
39 KiB
TypeScript
1235 lines
39 KiB
TypeScript
/* Metro module 8451; source: actions/GiftCodeActionCreators.tsx; dependencies: [5, 4234, 5121, 5130, 661, 1880, 694, 4129, 6772, 5120, 4131, 507, 8452, 8453, 2] */
|
|
function _fun67094(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:6, offset: 0x01c1558d, size: 334 bytes, params: 8, frame: 20
|
|
var object2;
|
|
const env0_0 = require;
|
|
const closure = function() {
|
|
return _resolveGiftCode_67096.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
|
const collectiblesCategoryStore = importDefault(5121) /* metro dependency 5121: CollectiblesCategoryStore */;
|
|
const env0_6 = (require(5130) /* metro dependency 5130: UnknownCollectiblesItemRecord */).isUnknownCollectiblesItemRecord;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_7 = constantsModule.COLLECTIBLES_APPLICATION_ID;
|
|
const env0_8 = constantsModule.Endpoints;
|
|
const env0_9 = constantsModule.RPCCommands;
|
|
const env0_10 = (require(1880) /* metro dependency 1880: PremiumConstants */).PREMIUM_SUBSCRIPTION_APPLICATION;
|
|
object2 = {resolveGiftCode: closure, fetchUserGiftCodesForSKU: fetchUserGiftCodesForSKU,
|
|
createGiftCode: createGiftCode, revokeGiftCode: revokeGiftCode, openNativeGiftCodeModal: function(a0) {
|
|
importDefault(dependencyMap[12]).openNativeAppModal(a0, RPCCommands.GIFT_CODE_BROWSER);
|
|
}};
|
|
copyDataProperties(object2, (require(8453) /* metro dependency 8453: GiftCodeActionCreators */).default, undefined);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/GiftCodeActionCreators.tsx');
|
|
exports.default = object2;
|
|
exports.resolveGiftCode = closure;
|
|
}
|
|
|
|
function _resolveGiftCode_67096() { // fn#67096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:358, offset: 0x01c156db, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun67098).apply(this, arguments);
|
|
}
|
|
|
|
function fetchUserGiftCodesForSKU(a0) { // fn#67099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1190, offset: 0x01c1595f, size: 49 bytes, params: 2, frame: 12
|
|
const value = a1;
|
|
const env0_0 = a0;
|
|
const env0_1 = value !== undefined ? value : null;
|
|
return env0_3(_fun67101)();
|
|
}
|
|
|
|
function createGiftCode(a0) { // fn#67102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1634, offset: 0x01c15ad0, size: 62 bytes, params: 2, frame: 13
|
|
const value = a1;
|
|
const value2 = a2;
|
|
const env0_0 = a0;
|
|
const env0_1 = value !== undefined ? value : null;
|
|
const env0_2 = value2 !== undefined ? value2 : null;
|
|
return env0_3(_fun67104)();
|
|
}
|
|
|
|
function revokeGiftCode(a0) { // fn#67105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:2094, offset: 0x01c15c4c, size: 36 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return env0_3(_fun67107)();
|
|
}
|
|
|
|
async function _fun67098(a0) { // fn#67098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:413, offset: 0x01c15721, size: 574 bytes, params: 2, frame: 24
|
|
var r7;
|
|
var r1;
|
|
var r10;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var binding;
|
|
var value7;
|
|
var dispatch;
|
|
var object2;
|
|
var binding2;
|
|
var property;
|
|
var value8;
|
|
var resolveGiftCode;
|
|
var giftCode;
|
|
var value9;
|
|
var value10;
|
|
var application_id;
|
|
var value11;
|
|
var value12;
|
|
var getApplication;
|
|
var value13;
|
|
var value14;
|
|
var binding3;
|
|
var value15;
|
|
var fetchApplication;
|
|
var application;
|
|
var value16;
|
|
var value17;
|
|
var error;
|
|
var value18;
|
|
var binding4;
|
|
var value19;
|
|
var fetchCollectiblesProduct;
|
|
var sku_id;
|
|
var collectiblesProduct;
|
|
var value20;
|
|
var value21;
|
|
var getProduct;
|
|
var value22;
|
|
var value23;
|
|
var items2;
|
|
var some;
|
|
var value24;
|
|
var value25;
|
|
var binding5;
|
|
var value26;
|
|
var binding6;
|
|
var value27;
|
|
var ClientOutdatedAcceptGiftError;
|
|
var prototype;
|
|
var clientOutdatedAcceptGiftError;
|
|
var value29;
|
|
exceptionLanding105: while (true) {
|
|
value = a1;
|
|
value2 = a2;
|
|
value3 = undefined;
|
|
value4 = false;
|
|
if (value4) {
|
|
return value3;
|
|
}
|
|
value5 = undefined;
|
|
reducibleJoin3: while (true) {
|
|
if (value !== value5) {
|
|
r7 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
value = false;
|
|
r7 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
if (value2 !== value5) {
|
|
r1 = value2;
|
|
break reducibleJoin5;
|
|
}
|
|
value = false;
|
|
r1 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
await value5;
|
|
value = undefined;
|
|
value6 = false;
|
|
if (value6) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
value7 = binding(env2_2[6]);
|
|
dispatch = value7.dispatch;
|
|
Reflect.apply(dispatch, value7, [{type: 'GIFT_CODE_RESOLVE', code: a0}]);
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
property = binding2[7];
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
resolveGiftCode = value8.resolveGiftCode;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
giftCode = Reflect.apply(resolveGiftCode, value8, [a0, r7, r1]);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
await giftCode;
|
|
try {
|
|
value9 = undefined;
|
|
value10 = false;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
if (value10) {
|
|
return value9;
|
|
}
|
|
try {
|
|
application_id = value9.application_id;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
reducibleJoin49: while (true) {
|
|
reduciblePort48: while (true) {
|
|
exceptionLanding47: while (true) {
|
|
try {
|
|
value11 = application_id == null;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
if (value11) {
|
|
break reduciblePort48;
|
|
}
|
|
try {
|
|
application_id = value9.application_id;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value12 = application_id === binding;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
if (value12) {
|
|
break reduciblePort48;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
getApplication = binding.getApplication;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
application_id = value9.application_id;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(getApplication, binding, [application_id]);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value14 = value13 != null;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
if (value14) {
|
|
break reduciblePort48;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding3[8];
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
try {
|
|
fetchApplication = value15.fetchApplication;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
try {
|
|
application_id = value9.application_id;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
try {
|
|
application = Reflect.apply(fetchApplication, value15, [application_id]);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
await application;
|
|
try {
|
|
try {
|
|
value16 = undefined;
|
|
value17 = false;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
if (value17) {
|
|
return value16;
|
|
}
|
|
break reduciblePort48;
|
|
}
|
|
break reduciblePort48;
|
|
}
|
|
break reducibleJoin49;
|
|
}
|
|
try {
|
|
application_id = value9.application_id;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value18 = application_id !== binding;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
if (!value18) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
property = binding4[9];
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value19 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
fetchCollectiblesProduct = value19.fetchCollectiblesProduct;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
sku_id = value9.sku_id;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
collectiblesProduct = Reflect.apply(fetchCollectiblesProduct, value19, [sku_id]);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
await collectiblesProduct;
|
|
try {
|
|
value20 = undefined;
|
|
value21 = false;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
if (value21) {
|
|
return value20;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
getProduct = binding.getProduct;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
sku_id = value9.sku_id;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value22 = Reflect.apply(getProduct, binding, [sku_id]);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value23 = value22 == null;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
reducibleJoin76: while (true) {
|
|
if (value23) {
|
|
r10 = value5;
|
|
break reducibleJoin76;
|
|
}
|
|
try {
|
|
items2 = value22.items;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
some = items2.some;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value24 = Reflect.apply(some, items2, [binding]);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
r10 = value24;
|
|
break reducibleJoin76;
|
|
}
|
|
try {
|
|
value25 = r10 === true;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
reducibleJoin78: while (true) {
|
|
if (!value25) {
|
|
break reducibleJoin78;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
binding6 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
property = binding6[10];
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value27 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
ClientOutdatedAcceptGiftError = value27.ClientOutdatedAcceptGiftError;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
prototype = ClientOutdatedAcceptGiftError.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
clientOutdatedAcceptGiftError = new ClientOutdatedAcceptGiftError('Client update required to redeem this gift');
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value29 = clientOutdatedAcceptGiftError instanceof Object ? clientOutdatedAcceptGiftError : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
throw value29;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
binding5 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
property = binding5[6];
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
value26 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
dispatch = value26.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
object2.type = 'GIFT_CODE_RESOLVE_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
object2.giftCode = value9;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value26, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
try {
|
|
object2.giftCode = value9;
|
|
} catch (error) {
|
|
break exceptionLanding105;
|
|
}
|
|
return object2;
|
|
}
|
|
value = env2_1(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_RESOLVE_FAILURE', code: a0, error: error});
|
|
throw error;
|
|
}
|
|
|
|
function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1205, offset: 0x01c1599b, size: 309 bytes, params: 1, frame: 18
|
|
var object4;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var get;
|
|
var USER_GIFT_CODES;
|
|
var object3;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var binding3;
|
|
var value9;
|
|
var body;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_1;
|
|
var value3 = binding(env2_2[6]);
|
|
var dispatch = value3.dispatch;
|
|
Reflect.apply(dispatch, value3, [{type: 'GIFT_CODES_FETCH', skuId: require,
|
|
subscriptionPlanId: importDefault}]);
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort43: while (true) {
|
|
exceptionLanding42: while (true) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
Reflect.apply(dispatch, value, [{type: 'GIFT_CODES_FETCH_FAILURE', skuId: require,
|
|
subscriptionPlanId: importDefault}]);
|
|
break reduciblePort43;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
property = binding2[11];
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
binding = env2_8;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
USER_GIFT_CODES = binding.USER_GIFT_CODES;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4.url = USER_GIFT_CODES;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object3.sku_id = require;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object3.subscription_plan_id = importDefault;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4.query = object3;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4.oldFormErrors = true;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4.rejectWithError = true;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(get, HTTP, [object4]);
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
dispatch = value9.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4.type = 'GIFT_CODES_FETCH_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4.giftCodes = body;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4.skuId = require;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
object4.subscriptionPlanId = importDefault;
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value9, [object4]);
|
|
} catch (error) {
|
|
break exceptionLanding42;
|
|
}
|
|
}
|
|
}
|
|
|
|
function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1656, offset: 0x01c15b19, size: 307 bytes, params: 1, frame: 18
|
|
var object4;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var post;
|
|
var USER_GIFT_CODE_CREATE;
|
|
var object3;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var binding3;
|
|
var value9;
|
|
var body;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_1;
|
|
const value3 = binding(env2_2[6]);
|
|
let dispatch = value3.dispatch;
|
|
Reflect.apply(dispatch, value3, [{type: 'GIFT_CODE_CREATE_START', skuId: require,
|
|
subscriptionPlanId: importDefault}]);
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[11];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_8;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
USER_GIFT_CODE_CREATE = binding.USER_GIFT_CODE_CREATE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4.url = USER_GIFT_CODE_CREATE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object3.sku_id = require;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object3.subscription_plan_id = importDefault;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object3.gift_style = dependencyMap;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4.body = object3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4.oldFormErrors = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(post, HTTP, [object4]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatch = value9.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4.type = 'GIFT_CODE_CREATE_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object4.giftCode = body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value9, [object4]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'GIFT_CODE_CREATE_FAILURE', skuId: require, subscriptionPlanId: importDefault});
|
|
return undefined;
|
|
}
|
|
return body;
|
|
}
|
|
|
|
function* _fun67107() { // fn#67107, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:2100, offset: 0x01c15c7b, size: 256 bytes, params: 1, frame: 19
|
|
var object2;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var del;
|
|
var USER_GIFT_CODE_REVOKE;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var binding3;
|
|
var value10;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_1;
|
|
var value3 = binding(env2_2[6]);
|
|
var dispatch = value3.dispatch;
|
|
Reflect.apply(dispatch, value3, [{type: 'GIFT_CODE_REVOKE', code: require}]);
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort32: while (true) {
|
|
exceptionLanding31: while (true) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
Reflect.apply(dispatch, value, [{type: 'GIFT_CODE_REVOKE_FAILURE', code: require}]);
|
|
break reduciblePort32;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
property = binding2[11];
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
del = HTTP.del;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
binding = env2_8;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
USER_GIFT_CODE_REVOKE = binding.USER_GIFT_CODE_REVOKE;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(USER_GIFT_CODE_REVOKE, binding, [require]);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
object2.url = value6;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(del, HTTP, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
object2.type = 'GIFT_CODE_REVOKE_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
object2.code = require;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value10, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
}
|
|
}
|
|
|