/* Metro module 3806; source: records/PaymentSourceRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 661, 1391, 1360, 2] */ 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}); const env0_2 = importDefault(6) /* metro dependency 6 */; const env0_3 = importDefault(7) /* metro dependency 7 */; const env0_4 = importDefault(15) /* metro dependency 15 */; const env0_5 = importDefault(17) /* metro dependency 17 */; const env0_6 = importDefault(18) /* metro dependency 18 */; let value = importDefault(1886) /* metro dependency 1886: Record */; const constantsModule = require(661) /* metro dependency 661: Constants */; const env0_7 = constantsModule.IRREDEEMABLE_PAYMENT_SOURCES; const env0_8 = constantsModule.PaymentGateways; const env0_9 = constantsModule.PaymentSourceTypes; 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); (require(2) /* metro dependency 2 */).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 = env0_5(a1); const binding = env0_4; if (_isNativeReflectConstruct_29282()) { Reflect = global.Reflect; value = Reflect.construct(value3, value || [], env0_5(a0).constructor); r0 = value; } else { value = value3.apply(a0, value); r0 = value; } return binding(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 closure = PaymentSourceRecord; env0_6(closure, a0); return env0_3(closure, [{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 _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 closure = CreditCardSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = PaypalSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = SofortSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = GiropaySourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = Przelewy24SourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = EPSSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = IdealSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = PaysafeSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = GcashSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = GrabPayMySourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = MomoWalletSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = VenmoSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = KaKaoPaySourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = GoPayWalletSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = BancontactSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = CashAppSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = AppleSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = TDSWalletSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 closure = PixSourceRecord; env0_6(closure, a0); return env0_3(closure); } 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 object2; var binding4; var object3; var binding5; var binding6; var binding7; var binding8; var binding9; var binding10; var binding11; var binding12; var object4; var binding13; var object7; var binding14; var binding15; var object8; var binding16; var object9; var binding17; var object10; var binding18; var object11; var binding19; const r2 = a0.billing_address ?? ({}); const object12 = {}; object12.id = a0.id; let type = a0.type; object12.type = type; object12.paymentGateway = a0.payment_gateway; object12.invalid = a0.invalid; object12.isDefault = a0.default; object12.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}; object12.country = a0.country; object12.flags = a0.flags; type = a0.type; let value = environment.__proto__; const CARD = PaymentSourceTypes.CARD; if (CARD === type) { binding = env1_10; object11 = {}; copyDataProperties(object11, object12, undefined); object11['brand'] = a0.brand; object11['last4'] = a0.last_4; object11['expiresMonth'] = a0.expires_month; object11['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; object10 = {}; copyDataProperties(object10, object12, undefined); object10['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; object9 = {}; copyDataProperties(object9, object12, undefined); object9['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; object8 = {}; copyDataProperties(object8, object12, undefined); object8['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; object8 = {}; copyDataProperties(object8, object12, undefined); object8['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({}, object12, 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; object7 = {}; copyDataProperties(object7, object12, undefined); object7['email'] = a0.email; object7['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; object4 = {}; copyDataProperties(object4, object12, undefined); object4['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({}, object12, 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({}, object12, 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({}, object12, 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({}, object12, 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({}, object12, 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({}, object12, 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({}, object12, 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; object3 = {}; copyDataProperties(object3, object12, undefined); object3['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; object2 = {}; copyDataProperties(object2, object12, undefined); object2['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({}, object12, 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({}, object12, undefined); value = Object.create(binding.prototype, {constructor: {value: binding}}); binding2 = new binding(); return binding2 instanceof Object ? binding2 : value; } (require(1360) /* metro dependency 1360: GlobalUtils */).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; } (require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(type); } 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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; }