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

924 lines
47 KiB
TypeScript

/* Metro module 3806; source: records/PaymentSourceRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 661, 1391, 1360, 2] */
import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Record from '../lib/Record.tsx'; /* Metro dependency 1886 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as GlobalUtilsModule from '../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
function _fun29280(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6, offset: 0x00fbe1bc, size: 667 bytes, params: 8, frame: 35
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = Record;
value = _fun29285(value);
const value3 = _fun29292(value);
const value4 = _fun29294(value);
const value5 = _fun29296(value);
const value6 = _fun29298(value);
const value7 = _fun29300(value);
const value8 = _fun29302(value);
const value9 = _fun29304(value);
const value10 = _fun29306(value);
const value11 = _fun29308(value);
const value12 = _fun29310(value);
const value13 = _fun29312(value);
const value14 = _fun29314(value);
const value15 = _fun29316(value);
const value16 = _fun29318(value);
const value17 = _fun29320(value);
const value18 = _fun29322(value);
const value19 = _fun29324(value);
const value20 = _fun29326(value);
const value21 = _fun29328(value);
(FileImportTrackerModule).fileFinishedImporting('records/PaymentSourceRecord.tsx');
exports.default = value;
exports.CreditCardSourceRecord = value3;
exports.PaypalSourceRecord = value4;
exports.SofortSourceRecord = value5;
exports.GiropaySourceRecord = value6;
exports.Przelewy24SourceRecord = value7;
exports.EPSSourceRecord = value8;
exports.IdealSourceRecord = value9;
exports.PaysafeSourceRecord = value10;
exports.GcashSourceRecord = value11;
exports.GrabPayMySourceRecord = value12;
exports.MomoWalletSourceRecord = value13;
exports.VenmoSourceRecord = value14;
exports.KaKaoPaySourceRecord = value15;
exports.GoPayWalletSourceRecord = value16;
exports.BancontactSourceRecord = value17;
exports.CashAppSourceRecord = value18;
exports.AppleSourceRecord = value19;
exports.TDSWalletSourceRecord = value20;
exports.PixSourceRecord = value21;
function _callSuper_29281(a0, a1, a2) { // fn#29281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:244, offset: 0x00fbe457, size: 100 bytes, params: 4, frame: 20
var r0;
var Reflect;
let value = a2;
const value3 = Module00017(a1);
if (_isNativeReflectConstruct_29282()) {
Reflect = global.Reflect;
value = Reflect.construct(value3, value || [], Module00017(a0).constructor);
r0 = value;
} else {
value = value3.apply(a0, value);
r0 = value;
}
return PossibleConstructorReturn(a0, r0);
}
function _isNativeReflectConstruct_29282() { // fn#29282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:375, offset: 0x00fbe4bb, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_29282_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun29285(a0) { // fn#29285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:574, offset: 0x00fbe519, size: 171 bytes, params: 2, frame: 18
const PaymentSourceRecord2 = PaymentSourceRecord;
Inherits(PaymentSourceRecord2, a0);
return CreateClass(PaymentSourceRecord2, [{key: 'hasFlag', value: value_29287}, {key: 'paymentMethodCountry',
get: function() {
return this.country == null ? this.billingAddress.country : this.country !== '' ? this.country : this.billingAddress.country;
}}, {key: 'canRedeemTrial', value: function() {
return !IRREDEEMABLE_PAYMENT_SOURCES.has(this.type);
}}], [{key: 'createFromServer', value: value_29290}, {key: 'createFromSerialized', value: value_29291}]);
function PaymentSourceRecord(a0) { // fn#29286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:586, offset: 0x00fbe5c4, size: 272 bytes, params: 2, frame: 15
var r3;
var invalid;
var flags;
var country;
let value = environment.__proto__;
env1_2(this, PaymentSourceRecord);
const value3 = _callSuper_29281(this, PaymentSourceRecord);
const Object = global.Object;
if (Reflect.apply(Object.values(PaymentSourceTypes).includes, value, [a0.type])) {
value3.id = a0.id;
value3.type = a0.type;
value3.paymentGateway = a0.paymentGateway;
invalid = a0.invalid;
value = invalid != null;
r3 = value && invalid;
value3.invalid = r3;
r3 = a0.billingAddress ?? ({});
value3.billingAddress = r3;
value3.isDefault = a0.isDefault;
flags = a0.flags;
value = 0;
r3 = flags ?? value;
value3.flags = r3;
country = a0.country;
value = '';
value3.country = country ?? value;
return value3;
}
const Error = global.Error;
value = 'Unrecognized payment source type ' + a0.type;
const value4 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value4;
}
function value_29287(a0) { // fn#29287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:1113, offset: 0x00fbe6d4, size: 50 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = require(1391) /* metro dependency 1391: FlagUtils */;
return value.hasFlag(this.flags, a0);
}
function value_29290(a0) { // fn#29290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:1392, offset: 0x00fbe757, size: 1447 bytes, params: 2, frame: 16
var binding;
var binding2;
var binding3;
var object;
var binding4;
var object5;
var binding5;
var binding6;
var binding7;
var binding8;
var binding9;
var binding10;
var binding11;
var binding12;
var object6;
var binding13;
var object13;
var binding14;
var binding15;
var object14;
var binding16;
var object15;
var binding17;
var object16;
var binding18;
var object17;
var binding19;
const r2 = a0.billing_address ?? ({});
const object18 = {};
object18.id = a0.id;
let type = a0.type;
object18.type = type;
object18.paymentGateway = a0.payment_gateway;
object18.invalid = a0.invalid;
object18.isDefault = a0.default;
object18.billingAddress = {name: r2.name, line1: r2.line_1, line2: r2.line_2, city: r2.city,
postalCode: r2.postal_code, state: r2.state, country: r2.country};
object18.country = a0.country;
object18.flags = a0.flags;
type = a0.type;
let value = environment.__proto__;
const CARD = PaymentSourceTypes.CARD;
if (CARD === type) {
binding = env1_10;
object17 = {};
copyDataProperties(object17, object18, undefined);
object17['brand'] = a0.brand;
object17['last4'] = a0.last_4;
object17['expiresMonth'] = a0.expires_month;
object17['expiresYear'] = a0.expires_year;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding19 = new binding();
return binding19 instanceof Object ? binding19 : value;
}
const PAYPAL = PaymentSourceTypes.PAYPAL;
if (PAYPAL === type) {
binding = env1_11;
object16 = {};
copyDataProperties(object16, object18, undefined);
object16['email'] = a0.email;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding18 = new binding();
return binding18 instanceof Object ? binding18 : value;
}
const VENMO = PaymentSourceTypes.VENMO;
if (VENMO === type) {
binding = env1_21;
object15 = {};
copyDataProperties(object15, object18, undefined);
object15['username'] = a0.username;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding17 = new binding();
return binding17 instanceof Object ? binding17 : value;
}
const SEPA_DEBIT = PaymentSourceTypes.SEPA_DEBIT;
if (SEPA_DEBIT === type) {
binding = env1_12;
object14 = {};
copyDataProperties(object14, object18, undefined);
object14['email'] = a0.email;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding16 = new binding();
return binding16 instanceof Object ? binding16 : value;
}
const SOFORT = PaymentSourceTypes.SOFORT;
if (SOFORT === type) {
binding = env1_12;
object14 = {};
copyDataProperties(object14, object18, undefined);
object14['email'] = a0.email;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding16 = new binding();
return binding16 instanceof Object ? binding16 : value;
}
const GIROPAY = PaymentSourceTypes.GIROPAY;
if (GIROPAY === type) {
binding = env1_13;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding15 = new binding();
return binding15 instanceof Object ? binding15 : value;
}
const PRZELEWY24 = PaymentSourceTypes.PRZELEWY24;
if (PRZELEWY24 === type) {
binding = env1_14;
object13 = {};
copyDataProperties(object13, object18, undefined);
object13['email'] = a0.email;
object13['bank'] = a0.bank;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding14 = new binding();
return binding14 instanceof Object ? binding14 : value;
}
const EPS = PaymentSourceTypes.EPS;
if (EPS === type) {
binding = env1_15;
object6 = {};
copyDataProperties(object6, object18, undefined);
object6['bank'] = a0.bank;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding13 = new binding();
return binding13 instanceof Object ? binding13 : value;
}
const PAYSAFE_CARD = PaymentSourceTypes.PAYSAFE_CARD;
if (PAYSAFE_CARD === type) {
binding = env1_17;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding12 = new binding();
return binding12 instanceof Object ? binding12 : value;
}
const GCASH = PaymentSourceTypes.GCASH;
if (GCASH === type) {
binding = env1_18;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding11 = new binding();
return binding11 instanceof Object ? binding11 : value;
}
const GRABPAY_MY = PaymentSourceTypes.GRABPAY_MY;
if (GRABPAY_MY === type) {
binding = env1_19;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding10 = new binding();
return binding10 instanceof Object ? binding10 : value;
}
const MOMO_WALLET = PaymentSourceTypes.MOMO_WALLET;
if (MOMO_WALLET === type) {
binding = env1_20;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding9 = new binding();
return binding9 instanceof Object ? binding9 : value;
}
const KAKAOPAY = PaymentSourceTypes.KAKAOPAY;
if (KAKAOPAY === type) {
binding = env1_22;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding8 = new binding();
return binding8 instanceof Object ? binding8 : value;
}
const GOPAY_WALLET = PaymentSourceTypes.GOPAY_WALLET;
if (GOPAY_WALLET === type) {
binding = env1_23;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding7 = new binding();
return binding7 instanceof Object ? binding7 : value;
}
const BANCONTACT = PaymentSourceTypes.BANCONTACT;
if (BANCONTACT === type) {
binding = env1_24;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding6 = new binding();
return binding6 instanceof Object ? binding6 : value;
}
const IDEAL = PaymentSourceTypes.IDEAL;
if (IDEAL === type) {
binding = env1_16;
object5 = {};
copyDataProperties(object5, object18, undefined);
object5['bank'] = a0.bank;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding5 = new binding();
return binding5 instanceof Object ? binding5 : value;
}
const CASH_APP = PaymentSourceTypes.CASH_APP;
if (CASH_APP === type) {
binding = env1_25;
object = {};
copyDataProperties(object, object18, undefined);
object['username'] = a0.username;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding4 = new binding();
return binding4 instanceof Object ? binding4 : value;
}
const TDS_WALLET = PaymentSourceTypes.TDS_WALLET;
if (TDS_WALLET === type) {
binding = env1_26;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding3 = new binding();
return binding3 instanceof Object ? binding3 : value;
}
const PIX = PaymentSourceTypes.PIX;
if (PIX === type) {
binding = env1_27;
copyDataProperties({}, object18, undefined);
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding2 = new binding();
return binding2 instanceof Object ? binding2 : value;
}
(GlobalUtilsModule).assertNever(a0);
}
function value_29291(a0) { // fn#29291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:2661, offset: 0x00fbecfe, size: 885 bytes, params: 2, frame: 14
var binding;
var binding2;
var binding3;
var binding4;
var binding5;
var binding6;
var binding7;
var binding8;
var binding9;
var binding10;
var binding11;
var binding12;
var binding13;
var binding14;
var binding15;
var binding16;
var binding17;
var binding18;
var binding19;
const type = a0.type;
let value = environment.__proto__;
const CARD = PaymentSourceTypes.CARD;
if (CARD === type) {
binding = env1_10;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding19 = new binding(a0);
return binding19 instanceof Object ? binding19 : value;
}
const PAYPAL = PaymentSourceTypes.PAYPAL;
if (PAYPAL === type) {
binding = env1_11;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding18 = new binding(a0);
return binding18 instanceof Object ? binding18 : value;
}
const SOFORT = PaymentSourceTypes.SOFORT;
if (SOFORT === type) {
binding = env1_12;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding17 = new binding(a0);
return binding17 instanceof Object ? binding17 : value;
}
const SEPA_DEBIT = PaymentSourceTypes.SEPA_DEBIT;
if (SEPA_DEBIT === type) {
binding = env1_12;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding17 = new binding(a0);
return binding17 instanceof Object ? binding17 : value;
}
const GIROPAY = PaymentSourceTypes.GIROPAY;
if (GIROPAY === type) {
binding = env1_13;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding16 = new binding(a0);
return binding16 instanceof Object ? binding16 : value;
}
const PRZELEWY24 = PaymentSourceTypes.PRZELEWY24;
if (PRZELEWY24 === type) {
binding = env1_14;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding15 = new binding(a0);
return binding15 instanceof Object ? binding15 : value;
}
const PAYSAFE_CARD = PaymentSourceTypes.PAYSAFE_CARD;
if (PAYSAFE_CARD === type) {
binding = env1_17;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding14 = new binding(a0);
return binding14 instanceof Object ? binding14 : value;
}
const GCASH = PaymentSourceTypes.GCASH;
if (GCASH === type) {
binding = env1_18;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding13 = new binding(a0);
return binding13 instanceof Object ? binding13 : value;
}
const GRABPAY_MY = PaymentSourceTypes.GRABPAY_MY;
if (GRABPAY_MY === type) {
binding = env1_19;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding12 = new binding(a0);
return binding12 instanceof Object ? binding12 : value;
}
const MOMO_WALLET = PaymentSourceTypes.MOMO_WALLET;
if (MOMO_WALLET === type) {
binding = env1_20;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding11 = new binding(a0);
return binding11 instanceof Object ? binding11 : value;
}
const VENMO = PaymentSourceTypes.VENMO;
if (VENMO === type) {
binding = env1_21;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding10 = new binding(a0);
return binding10 instanceof Object ? binding10 : value;
}
const KAKAOPAY = PaymentSourceTypes.KAKAOPAY;
if (KAKAOPAY === type) {
binding = env1_22;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding9 = new binding(a0);
return binding9 instanceof Object ? binding9 : value;
}
const GOPAY_WALLET = PaymentSourceTypes.GOPAY_WALLET;
if (GOPAY_WALLET === type) {
binding = env1_23;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding8 = new binding(a0);
return binding8 instanceof Object ? binding8 : value;
}
const BANCONTACT = PaymentSourceTypes.BANCONTACT;
if (BANCONTACT === type) {
binding = env1_24;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding7 = new binding(a0);
return binding7 instanceof Object ? binding7 : value;
}
const EPS = PaymentSourceTypes.EPS;
if (EPS === type) {
binding = env1_15;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding6 = new binding(a0);
return binding6 instanceof Object ? binding6 : value;
}
const IDEAL = PaymentSourceTypes.IDEAL;
if (IDEAL === type) {
binding = env1_16;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding5 = new binding(a0);
return binding5 instanceof Object ? binding5 : value;
}
const CASH_APP = PaymentSourceTypes.CASH_APP;
if (CASH_APP === type) {
binding = env1_25;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding4 = new binding(a0);
return binding4 instanceof Object ? binding4 : value;
}
const TDS_WALLET = PaymentSourceTypes.TDS_WALLET;
if (TDS_WALLET === type) {
binding = env1_26;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding3 = new binding(a0);
return binding3 instanceof Object ? binding3 : value;
}
const PIX = PaymentSourceTypes.PIX;
if (PIX === type) {
binding = env1_27;
value = Object.create(binding.prototype, {constructor: {value: binding}});
binding2 = new binding(a0);
return binding2 instanceof Object ? binding2 : value;
}
(GlobalUtilsModule).assertNever(type);
}
}
function _fun29292(a0) { // fn#29292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:3323, offset: 0x00fbf073, size: 40 bytes, params: 2, frame: 14
const CreditCardSourceRecord2 = CreditCardSourceRecord;
Inherits(CreditCardSourceRecord2, a0);
return CreateClass(CreditCardSourceRecord2);
function CreditCardSourceRecord(a0) { // fn#29293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:3335, offset: 0x00fbf09b, size: 244 bytes, params: 2, frame: 18
let value = environment.__proto__;
env1_2(this, CreditCardSourceRecord);
const value3 = _callSuper_29281(this, CreditCardSourceRecord, [a0]);
const type = a0.type;
const CARD = PaymentSourceTypes.CARD;
if (type !== CARD) {
throw new global.Error('Cannot instantiate CreditCardSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.CARD);
}
const brand = a0.brand;
value = '';
value3.brand = brand ?? value;
value3.last4 = a0.last4 ?? value;
const expiresMonth = a0.expiresMonth;
value = 0;
value3.expiresMonth = expiresMonth ?? value;
value3.expiresYear = a0.expiresYear ?? value;
return value3;
}
}
function _fun29294(a0) { // fn#29294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:3805, offset: 0x00fbf18f, size: 40 bytes, params: 2, frame: 14
const PaypalSourceRecord2 = PaypalSourceRecord;
Inherits(PaypalSourceRecord2, a0);
return CreateClass(PaypalSourceRecord2);
function PaypalSourceRecord(a0) { // fn#29295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:3817, offset: 0x00fbf1b7, size: 162 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, PaypalSourceRecord);
const value3 = _callSuper_29281(this, PaypalSourceRecord, [a0]);
const type = a0.type;
const PAYPAL = PaymentSourceTypes.PAYPAL;
if (type !== PAYPAL) {
throw new global.Error('Cannot instantiate PaypalSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.PAYPAL);
}
let email = a0.email;
email = !email ? '' : email;
value3.email = email;
return value3;
}
}
function _fun29296(a0) { // fn#29296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4131, offset: 0x00fbf259, size: 40 bytes, params: 2, frame: 14
const SofortSourceRecord2 = SofortSourceRecord;
Inherits(SofortSourceRecord2, a0);
return CreateClass(SofortSourceRecord2);
function SofortSourceRecord(a0) { // fn#29297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4143, offset: 0x00fbf281, size: 194 bytes, params: 2, frame: 19
var Error;
let value = environment.__proto__;
env1_2(this, SofortSourceRecord);
const value3 = _callSuper_29281(this, SofortSourceRecord, [a0]);
let type = a0.type;
const SOFORT = PaymentSourceTypes.SOFORT;
if (type !== SOFORT) {
type = a0.type;
var SEPA_DEBIT = PaymentSourceTypes.SEPA_DEBIT;
if (type !== SEPA_DEBIT) {
Error = global.Error;
value = 'Cannot instantiate SofortSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.SOFORT + ' or ';
value += PaymentSourceTypes.SEPA_DEBIT;
throw new Error(value);
}
}
let email = a0.email;
email = !email ? '' : email;
value3.email = email;
return value3;
}
}
function _fun29298(a0) { // fn#29298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4497, offset: 0x00fbf343, size: 40 bytes, params: 2, frame: 14
const GiropaySourceRecord2 = GiropaySourceRecord;
Inherits(GiropaySourceRecord2, a0);
return CreateClass(GiropaySourceRecord2);
function GiropaySourceRecord(a0) { // fn#29299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4509, offset: 0x00fbf36b, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, GiropaySourceRecord);
const value3 = _callSuper_29281(this, GiropaySourceRecord, [a0]);
const type = a0.type;
const GIROPAY = PaymentSourceTypes.GIROPAY;
if (type !== GIROPAY) {
throw new global.Error('Cannot instantiate GiropaySourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.GIROPAY);
}
return value3;
}
}
function _fun29300(a0) { // fn#29300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4811, offset: 0x00fbf3fa, size: 40 bytes, params: 2, frame: 14
const Przelewy24SourceRecord2 = Przelewy24SourceRecord;
Inherits(Przelewy24SourceRecord2, a0);
return CreateClass(Przelewy24SourceRecord2);
function Przelewy24SourceRecord(a0) { // fn#29301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4823, offset: 0x00fbf422, size: 174 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, Przelewy24SourceRecord);
const value3 = _callSuper_29281(this, Przelewy24SourceRecord, [a0]);
const type = a0.type;
const PRZELEWY24 = PaymentSourceTypes.PRZELEWY24;
if (type !== PRZELEWY24) {
throw new global.Error('Cannot instantiate Przelewy24SourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.PRZELEWY24);
}
let email = a0.email;
email = !email ? '' : email;
value3.email = email;
value3.bank = a0.bank;
return value3;
}
}
function _fun29302(a0) { // fn#29302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5183, offset: 0x00fbf4d0, size: 40 bytes, params: 2, frame: 14
const EPSSourceRecord2 = EPSSourceRecord;
Inherits(EPSSourceRecord2, a0);
return CreateClass(EPSSourceRecord2);
function EPSSourceRecord(a0) { // fn#29303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5195, offset: 0x00fbf4f8, size: 155 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, EPSSourceRecord);
const value3 = _callSuper_29281(this, EPSSourceRecord, [a0]);
const type = a0.type;
const EPS = PaymentSourceTypes.EPS;
if (type !== EPS) {
throw new global.Error('Cannot instantiate EPSSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.EPS);
}
value3.bank = a0.bank;
return value3;
}
}
function _fun29304(a0) { // fn#29304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5479, offset: 0x00fbf593, size: 40 bytes, params: 2, frame: 14
const IdealSourceRecord2 = IdealSourceRecord;
Inherits(IdealSourceRecord2, a0);
return CreateClass(IdealSourceRecord2);
function IdealSourceRecord(a0) { // fn#29305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5491, offset: 0x00fbf5bb, size: 155 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, IdealSourceRecord);
const value3 = _callSuper_29281(this, IdealSourceRecord, [a0]);
const type = a0.type;
const IDEAL = PaymentSourceTypes.IDEAL;
if (type !== IDEAL) {
throw new global.Error('Cannot instantiate IdealSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.IDEAL);
}
value3.bank = a0.bank;
return value3;
}
}
function _fun29306(a0) { // fn#29306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5791, offset: 0x00fbf656, size: 40 bytes, params: 2, frame: 14
const PaysafeSourceRecord2 = PaysafeSourceRecord;
Inherits(PaysafeSourceRecord2, a0);
return CreateClass(PaysafeSourceRecord2);
function PaysafeSourceRecord(a0) { // fn#29307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5803, offset: 0x00fbf67e, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, PaysafeSourceRecord);
const value3 = _callSuper_29281(this, PaysafeSourceRecord, [a0]);
const type = a0.type;
const PAYSAFE_CARD = PaymentSourceTypes.PAYSAFE_CARD;
if (type !== PAYSAFE_CARD) {
throw new global.Error('Cannot instantiate PaysafeSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.PAYSAFE_CARD);
}
return value3;
}
}
function _fun29308(a0) { // fn#29308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6115, offset: 0x00fbf70d, size: 40 bytes, params: 2, frame: 14
const GcashSourceRecord2 = GcashSourceRecord;
Inherits(GcashSourceRecord2, a0);
return CreateClass(GcashSourceRecord2);
function GcashSourceRecord(a0) { // fn#29309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6127, offset: 0x00fbf735, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, GcashSourceRecord);
const value3 = _callSuper_29281(this, GcashSourceRecord, [a0]);
const type = a0.type;
const GCASH = PaymentSourceTypes.GCASH;
if (type !== GCASH) {
throw new global.Error('Cannot instantiate GcashSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.GCASH);
}
return value3;
}
}
function _fun29310(a0) { // fn#29310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6413, offset: 0x00fbf7c4, size: 40 bytes, params: 2, frame: 14
const GrabPayMySourceRecord2 = GrabPayMySourceRecord;
Inherits(GrabPayMySourceRecord2, a0);
return CreateClass(GrabPayMySourceRecord2);
function GrabPayMySourceRecord(a0) { // fn#29311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6425, offset: 0x00fbf7ec, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, GrabPayMySourceRecord);
const value3 = _callSuper_29281(this, GrabPayMySourceRecord, [a0]);
const type = a0.type;
const GRABPAY_MY = PaymentSourceTypes.GRABPAY_MY;
if (type !== GRABPAY_MY) {
throw new global.Error('Cannot instantiate GrabPayMySourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.GRABPAY_MY);
}
return value3;
}
}
function _fun29312(a0) { // fn#29312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6745, offset: 0x00fbf87b, size: 40 bytes, params: 2, frame: 14
const MomoWalletSourceRecord2 = MomoWalletSourceRecord;
Inherits(MomoWalletSourceRecord2, a0);
return CreateClass(MomoWalletSourceRecord2);
function MomoWalletSourceRecord(a0) { // fn#29313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6757, offset: 0x00fbf8a3, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, MomoWalletSourceRecord);
const value3 = _callSuper_29281(this, MomoWalletSourceRecord, [a0]);
const type = a0.type;
const MOMO_WALLET = PaymentSourceTypes.MOMO_WALLET;
if (type !== MOMO_WALLET) {
throw new global.Error('Cannot instantiate MomoWalletSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.MOMO_WALLET);
}
return value3;
}
}
function _fun29314(a0) { // fn#29314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7085, offset: 0x00fbf932, size: 40 bytes, params: 2, frame: 14
const VenmoSourceRecord2 = VenmoSourceRecord;
Inherits(VenmoSourceRecord2, a0);
return CreateClass(VenmoSourceRecord2);
function VenmoSourceRecord(a0) { // fn#29315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7097, offset: 0x00fbf95a, size: 162 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, VenmoSourceRecord);
const value3 = _callSuper_29281(this, VenmoSourceRecord, [a0]);
const type = a0.type;
const VENMO = PaymentSourceTypes.VENMO;
if (type !== VENMO) {
throw new global.Error('Cannot instantiate VenmoSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.VENMO);
}
let username = a0.username;
username = !username ? '' : username;
value3.username = username;
return value3;
}
}
function _fun29316(a0) { // fn#29316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7409, offset: 0x00fbf9fc, size: 40 bytes, params: 2, frame: 14
const KaKaoPaySourceRecord2 = KaKaoPaySourceRecord;
Inherits(KaKaoPaySourceRecord2, a0);
return CreateClass(KaKaoPaySourceRecord2);
function KaKaoPaySourceRecord(a0) { // fn#29317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7421, offset: 0x00fbfa24, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, KaKaoPaySourceRecord);
const value3 = _callSuper_29281(this, KaKaoPaySourceRecord, [a0]);
const type = a0.type;
const KAKAOPAY = PaymentSourceTypes.KAKAOPAY;
if (type !== KAKAOPAY) {
throw new global.Error('Cannot instantiate KaKaoPaySourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.KAKAOPAY);
}
return value3;
}
}
function _fun29318(a0) { // fn#29318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7731, offset: 0x00fbfab3, size: 40 bytes, params: 2, frame: 14
const GoPayWalletSourceRecord2 = GoPayWalletSourceRecord;
Inherits(GoPayWalletSourceRecord2, a0);
return CreateClass(GoPayWalletSourceRecord2);
function GoPayWalletSourceRecord(a0) { // fn#29319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7743, offset: 0x00fbfadb, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, GoPayWalletSourceRecord);
const value3 = _callSuper_29281(this, GoPayWalletSourceRecord, [a0]);
const type = a0.type;
const GOPAY_WALLET = PaymentSourceTypes.GOPAY_WALLET;
if (type !== GOPAY_WALLET) {
throw new global.Error('Cannot instantiate GoPayWalletSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.GOPAY_WALLET);
}
return value3;
}
}
function _fun29320(a0) { // fn#29320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8079, offset: 0x00fbfb6a, size: 40 bytes, params: 2, frame: 14
const BancontactSourceRecord2 = BancontactSourceRecord;
Inherits(BancontactSourceRecord2, a0);
return CreateClass(BancontactSourceRecord2);
function BancontactSourceRecord(a0) { // fn#29321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8091, offset: 0x00fbfb92, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, BancontactSourceRecord);
const value3 = _callSuper_29281(this, BancontactSourceRecord, [a0]);
const type = a0.type;
const BANCONTACT = PaymentSourceTypes.BANCONTACT;
if (type !== BANCONTACT) {
throw new global.Error('Cannot instantiate BancontactSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.BANCONTACT);
}
return value3;
}
}
function _fun29322(a0) { // fn#29322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8417, offset: 0x00fbfc21, size: 40 bytes, params: 2, frame: 14
const CashAppSourceRecord2 = CashAppSourceRecord;
Inherits(CashAppSourceRecord2, a0);
return CreateClass(CashAppSourceRecord2);
function CashAppSourceRecord(a0) { // fn#29323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8429, offset: 0x00fbfc49, size: 162 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, CashAppSourceRecord);
const value3 = _callSuper_29281(this, CashAppSourceRecord, [a0]);
const type = a0.type;
const CASH_APP = PaymentSourceTypes.CASH_APP;
if (type !== CASH_APP) {
throw new global.Error('Cannot instantiate Cashapp with type: ' + a0.type + ', must be ' + PaymentSourceTypes.CASH_APP);
}
let username = a0.username;
username = !username ? '' : username;
value3.username = username;
return value3;
}
}
function _fun29324(a0) { // fn#29324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8747, offset: 0x00fbfceb, size: 40 bytes, params: 2, frame: 14
const AppleSourceRecord2 = AppleSourceRecord;
Inherits(AppleSourceRecord2, a0);
return CreateClass(AppleSourceRecord2);
function AppleSourceRecord(a0) { // fn#29325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8759, offset: 0x00fbfd13, size: 217 bytes, params: 2, frame: 19
const value = environment.__proto__;
env1_2(this, AppleSourceRecord);
a0.id = '';
const APPLE_PARTNER = PaymentGateways.APPLE_PARTNER;
a0.paymentGateway = APPLE_PARTNER;
let APPLE = PaymentSourceTypes.APPLE;
a0.type = APPLE;
a0.billingAddress = {};
a0.country = '';
a0.invalid = false;
a0.isDefault = false;
a0.flags = 0;
const value3 = _callSuper_29281(this, AppleSourceRecord, [a0]);
const type = a0.type;
APPLE = PaymentSourceTypes.APPLE;
if (type !== APPLE) {
throw new global.Error('Cannot instantiate AppleSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.APPLE);
}
return value3;
}
}
function _fun29326(a0) { // fn#29326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:9172, offset: 0x00fbfdec, size: 40 bytes, params: 2, frame: 14
const TDSWalletSourceRecord2 = TDSWalletSourceRecord;
Inherits(TDSWalletSourceRecord2, a0);
return CreateClass(TDSWalletSourceRecord2);
function TDSWalletSourceRecord(a0) { // fn#29327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:9184, offset: 0x00fbfe14, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, TDSWalletSourceRecord);
const value3 = _callSuper_29281(this, TDSWalletSourceRecord, [a0]);
const type = a0.type;
const TDS_WALLET = PaymentSourceTypes.TDS_WALLET;
if (type !== TDS_WALLET) {
throw new global.Error('Cannot instantiate TDSWalletSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.TDS_WALLET);
}
return value3;
}
}
function _fun29328(a0) { // fn#29328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:9504, offset: 0x00fbfea3, size: 40 bytes, params: 2, frame: 14
const PixSourceRecord2 = PixSourceRecord;
Inherits(PixSourceRecord2, a0);
return CreateClass(PixSourceRecord2);
function PixSourceRecord(a0) { // fn#29329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:9516, offset: 0x00fbfecb, size: 143 bytes, params: 2, frame: 18
const value = environment.__proto__;
env1_2(this, PixSourceRecord);
const value3 = _callSuper_29281(this, PixSourceRecord, [a0]);
const type = a0.type;
const PIX = PaymentSourceTypes.PIX;
if (type !== PIX) {
throw new global.Error('Cannot instantiate PixSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.PIX);
}
return value3;
}
}
}
global.__d(_fun29280, 3806, [6, 7, 15, 17, 18, 1886, 661, 1391, 1360,
2]) /* metro module 3806, dependencies: [6, 7, 15, 17, 18, 1886, 661, 1391, 1360, 2] */;