1197 lines
55 KiB
TypeScript
1197 lines
55 KiB
TypeScript
/* Metro module 4224; source: modules/billing/actions/BillingSharedActionCreators.tsx; dependencies: [5, 3806, 4225, 661, 507, 3824, 694, 1244, 683, 4131, 3817, 2] */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import PaymentSourceRecord from '../../../records/PaymentSourceRecord.tsx'; /* Metro dependency 3806 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as ErrorsModule from '../../../errors/index.tsx'; /* Metro dependency 4131 */
|
|
import * as ConstantsModule2 from '../Constants.tsx'; /* Metro dependency 4225 */
|
|
|
|
function _fun34691(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:6, offset: 0x0105f2bd, size: 246 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/billing/actions/BillingSharedActionCreators.tsx');
|
|
exports.validatePaymentSourceBillingAddress = function() {
|
|
return _validatePaymentSourceBillingAddress.apply(this, arguments);
|
|
};
|
|
exports.dispatchConfirmationError = dispatchConfirmationError;
|
|
exports.popupBridgeState = function() {
|
|
return _popupBridgeState.apply(this, arguments);
|
|
};
|
|
exports.createPaymentSource = function() {
|
|
return _createPaymentSource.apply(this, arguments);
|
|
};
|
|
function _validatePaymentSourceBillingAddress() { // fn#34692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:186, offset: 0x0105f3b3, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun34694).apply(this, arguments);
|
|
function* _fun34694(a0) { // fn#34694, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:281, offset: 0x0105f3ec, size: 285 bytes, params: 2, frame: 16
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var HTTP;
|
|
var post;
|
|
var object;
|
|
var BILLING_PAYMENT_SOURCES_VALIDATE_BILLING_ADDRESS;
|
|
var object2;
|
|
var object3;
|
|
var name;
|
|
var line1;
|
|
var line2;
|
|
var city;
|
|
var state;
|
|
var postalCode;
|
|
var country;
|
|
var email;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var body;
|
|
var token;
|
|
var error;
|
|
var binding3;
|
|
var value7;
|
|
var v8BillingAddressSkemaErrorToBillingError;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
HTTP = value3.HTTP;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
BILLING_PAYMENT_SOURCES_VALIDATE_BILLING_ADDRESS = binding.BILLING_PAYMENT_SOURCES_VALIDATE_BILLING_ADDRESS;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object.url = BILLING_PAYMENT_SOURCES_VALIDATE_BILLING_ADDRESS;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
name = a0.name;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3.name = name;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
line1 = a0.line1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3.line_1 = line1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
line2 = a0.line2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3.line_2 = line2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
city = a0.city;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3.city = city;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
state = a0.state;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3.state = state;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
postalCode = a0.postalCode;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3.postal_code = postalCode;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
country = a0.country;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3.country = country;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
email = a0.email;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object3.email = email;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object2.billing_address = object3;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
body = value5.body;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
token = body.token;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
return token;
|
|
}
|
|
|
|
}
|
|
|
|
function _popupBridgeState() { // fn#34695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:751, offset: 0x0105f509, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun34697).apply(this, arguments);
|
|
function* _fun34697(a0) { // fn#34697, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:808, offset: 0x0105f542, size: 165 bytes, params: 2, frame: 17
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const HTTP = env2_0(env2_2[4]).HTTP;
|
|
const post = HTTP.post;
|
|
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
|
object.url = env2_7.BILLING_POPUP_BRIDGE(a0);
|
|
yield Reflect.apply(post, HTTP, [object]);
|
|
const value3 = undefined;
|
|
if (false) {
|
|
return value3;
|
|
}
|
|
const state = value3.body.state;
|
|
value = env2_1(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_POPUP_BRIDGE_STATE_UPDATE', state: state, paymentSourceType: a0});
|
|
return state;
|
|
}
|
|
|
|
}
|
|
|
|
function _createPaymentSource() { // fn#34698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:1057, offset: 0x0105f5e7, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun34700).apply(this, arguments);
|
|
async function _fun34700(a0, a1, a2, a3) { // fn#34700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:1120, offset: 0x0105f629, size: 591 bytes, params: 5, frame: 24
|
|
var r1;
|
|
var r10;
|
|
var r11;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var binding;
|
|
var value6;
|
|
var dispatch;
|
|
var object;
|
|
var binding2;
|
|
var property;
|
|
var value7;
|
|
var HTTP;
|
|
var post;
|
|
var BILLING_PAYMENT_SOURCES;
|
|
var object2;
|
|
var analyticsLocation;
|
|
var object3;
|
|
var object4;
|
|
var name;
|
|
var line1;
|
|
var line2;
|
|
var city;
|
|
var state;
|
|
var postalCode;
|
|
var country;
|
|
var email;
|
|
var billingAddressToken;
|
|
var bank;
|
|
var returnUrl;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var createFromServer;
|
|
var body;
|
|
var fromServer;
|
|
var binding3;
|
|
var value11;
|
|
var error;
|
|
var binding4;
|
|
var value12;
|
|
var parseV8BillingAddressSkemaErrorToBillingError;
|
|
var v8BillingAddressSkemaErrorToBillingError;
|
|
var value13;
|
|
var fields;
|
|
var code;
|
|
var ErrorCodes;
|
|
var CONFIRMATION_REQUIRED;
|
|
exceptionSkip72: while (true) {
|
|
exceptionLanding72: while (true) {
|
|
value = a4;
|
|
value2 = undefined;
|
|
value3 = false;
|
|
if (value3) {
|
|
return value2;
|
|
}
|
|
value4 = undefined;
|
|
if (value !== value4) {
|
|
r1 = value;
|
|
} else {
|
|
r1 = false;
|
|
}
|
|
await value4;
|
|
value = undefined;
|
|
value5 = false;
|
|
if (value5) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
value6 = binding(env2_2[6]);
|
|
dispatch = value6.dispatch;
|
|
Reflect.apply(dispatch, value6, [{type: 'BILLING_PAYMENT_SOURCE_CREATE_START'}]);
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
HTTP = value7.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
BILLING_PAYMENT_SOURCES = binding.BILLING_PAYMENT_SOURCES;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object.url = BILLING_PAYMENT_SOURCES;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
analyticsLocation = a3.analyticsLocation;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object2.location = analyticsLocation;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object.query = object2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3.payment_gateway = a0;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3.token = a1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
name = a2.name;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.name = name;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
line1 = a2.line1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.line_1 = line1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
line2 = a2.line2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.line_2 = line2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
city = a2.city;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.city = city;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
state = a2.state;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.state = state;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
postalCode = a2.postalCode;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.postal_code = postalCode;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
country = a2.country;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.country = country;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
email = a2.email;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object4.email = email;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3.billing_address = object4;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
billingAddressToken = a3.billingAddressToken;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3.billing_address_token = billingAddressToken;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
bank = a3.bank;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3.bank = bank;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
returnUrl = a3.returnUrl;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3.return_url = returnUrl;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object3.default = r1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object.body = object3;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
await value8;
|
|
try {
|
|
value9 = undefined;
|
|
value10 = false;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
if (value10) {
|
|
return value9;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
createFromServer = binding.createFromServer;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
body = value9.body;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
fromServer = Reflect.apply(createFromServer, binding, [body]);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
dispatch = value11.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object.type = 'BILLING_PAYMENT_SOURCE_CREATE_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object.paymentSource = fromServer;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value11, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
return fromServer;
|
|
break exceptionSkip72;
|
|
}
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value12 = binding(binding4[5]);
|
|
parseV8BillingAddressSkemaErrorToBillingError = value12.parseV8BillingAddressSkemaErrorToBillingError;
|
|
v8BillingAddressSkemaErrorToBillingError = Reflect.apply(parseV8BillingAddressSkemaErrorToBillingError, value12,
|
|
[error]);
|
|
value13 = error != null;
|
|
if (value13) {
|
|
body = error.body;
|
|
r10 = body != null;
|
|
if (r10) {
|
|
if (body.adyen_redirect_url) {
|
|
fields = v8BillingAddressSkemaErrorToBillingError.fields;
|
|
if (error == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
fields.adyen_redirect_url = body.adyen_redirect_url;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (r10) {
|
|
fields = v8BillingAddressSkemaErrorToBillingError.fields;
|
|
if (error == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
fields.adyen_redirect_url = body.adyen_redirect_url;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
r10 = value13;
|
|
r11 = value4;
|
|
if (r10) {
|
|
if (r11.adyen_redirect_url) {
|
|
fields = v8BillingAddressSkemaErrorToBillingError.fields;
|
|
if (error == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
fields.adyen_redirect_url = body.adyen_redirect_url;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (r10) {
|
|
fields = v8BillingAddressSkemaErrorToBillingError.fields;
|
|
if (error == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
fields.adyen_redirect_url = body.adyen_redirect_url;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
code = v8BillingAddressSkemaErrorToBillingError.code;
|
|
ErrorCodes = binding(binding4[5]).ErrorCodes;
|
|
CONFIRMATION_REQUIRED = ErrorCodes.CONFIRMATION_REQUIRED;
|
|
if (code === CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
Reflect.apply(dispatch, value, [{type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError}]);
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
break exceptionSkip72;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function dispatchConfirmationError(a0) { // fn#34702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:2397, offset: 0x0105f878, size: 704 bytes, params: 2, frame: 26
|
|
var r14;
|
|
var r2;
|
|
var r5;
|
|
var r6;
|
|
var intl;
|
|
var object;
|
|
const BillingError = (ErrorsModule).BillingError;
|
|
var billingError;
|
|
var code;
|
|
var payment_method;
|
|
var defaultImport;
|
|
var track;
|
|
var PAYMENT_SOURCE_CREATION_FAILED;
|
|
var object2;
|
|
var Error;
|
|
var value14;
|
|
var error;
|
|
var moduleValue;
|
|
var captureBillingException;
|
|
var object3;
|
|
const value = a0;
|
|
const value2 = a1;
|
|
const value3 = a2;
|
|
const value4 = a3;
|
|
const value5 = undefined;
|
|
let r9 = !(value2 !== value5) || value2;
|
|
if (value3 !== value5) {
|
|
r14 = value3;
|
|
} else {
|
|
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
r14 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.khEaRI);
|
|
}
|
|
const r4 = value4 !== value5 ? value4 : {};
|
|
const includes = StripeErrorTypes.includes;
|
|
let type = value.type;
|
|
if (Reflect.apply(includes, StripeErrorTypes, [type])) {
|
|
object = {failure_message: value.message == null ? r14 : '' + r14 + ': ' + value.message};
|
|
type = value.type;
|
|
object.error_type = type;
|
|
object.failure_code = value.code;
|
|
object.failure_sub_code = value.decline_code;
|
|
payment_method = value.payment_method;
|
|
type = payment_method == null ? value5 : payment_method.type;
|
|
object.payment_source_type = type;
|
|
type = value.type;
|
|
if (type === 'card_error') {
|
|
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport.track;
|
|
PAYMENT_SOURCE_CREATION_FAILED = AnalyticEvents.PAYMENT_SOURCE_CREATION_FAILED;
|
|
object2 = {};
|
|
copyDataProperties(object2, object, undefined);
|
|
Error = global.Error;
|
|
value14 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
object2['stacktrace'] = (error instanceof Object ? error : value14).stack;
|
|
Reflect.apply(track, defaultImport, [PAYMENT_SOURCE_CREATION_FAILED, object2]);
|
|
r9 = false;
|
|
}
|
|
billingError = new BillingError();
|
|
r2 = r9;
|
|
r5 = billingError;
|
|
r6 = object;
|
|
} else {
|
|
object = {};
|
|
r2 = typeof value !== 'string' ? value : r14;
|
|
billingError = new BillingError();
|
|
object.failure_message = billingError.message;
|
|
code = billingError.code;
|
|
object.status_code = code;
|
|
code = billingError.code;
|
|
if (code !== 429) {
|
|
r2 = r9;
|
|
r5 = billingError;
|
|
r6 = object;
|
|
} else {
|
|
r2 = false;
|
|
r5 = billingError;
|
|
r6 = object;
|
|
}
|
|
}
|
|
const defaultImport2 = Dispatcher;
|
|
defaultImport2.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: r5});
|
|
Error = global.Error;
|
|
error = new Error(typeof value === 'string' ? value : r5.message);
|
|
if (r2) {
|
|
moduleValue = require(3817) /* metro dependency 3817: BillingUtils */;
|
|
captureBillingException = moduleValue.captureBillingException;
|
|
object = {};
|
|
copyDataProperties(object, r4, undefined);
|
|
object3 = {};
|
|
copyDataProperties(object3, r6, undefined);
|
|
copyDataProperties(object3, r4.extra, undefined);
|
|
object['extra'] = object3;
|
|
Reflect.apply(captureBillingException, moduleValue, [error, object]);
|
|
}
|
|
return error;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun34691, 4224, [5, 3806, 4225, 661, 507, 3824, 694, 1244, 683, 4131, 3817,
|
|
2]) /* metro module 4224, dependencies: [5, 3806, 4225, 661, 507, 3824, 694, 1244, 683, 4131, 3817, 2] */;
|