Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,385 @@
|
||||
/* Metro module 7044; source: modules/payments/records/CheckoutContextRecord.tsx; dependencies: [6, 7, 15, 17, 18, 57, 1886, 5137, 2] */
|
||||
function _fun55926(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:6, offset: 0x013b8708, size: 267 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_55933 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_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 */;
|
||||
const env0_7 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
let value2 = _fun55934(value);
|
||||
value = _fun55940(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/records/CheckoutContextRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.AvailablePlanRecord = value2;
|
||||
}
|
||||
|
||||
function _callSuper_55927(a0, a1, a2) { // fn#55927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:170, offset: 0x013b8813, size: 94 bytes, params: 4, frame: 20
|
||||
const value2 = env0_5(a1);
|
||||
return env0_4(a0, _isNativeReflectConstruct_55928() ? global.Reflect.construct(value2, [],
|
||||
env0_5(a0).constructor) : value2.apply(a0, undefined));
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_55928() { // fn#55928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:301, offset: 0x013b8871, 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_55928_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_55931(a0, a1) { // fn#55931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:494, offset: 0x013b88cf, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun55932;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_55933(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_55933(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_55933(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun55932;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun55934(a0) { // fn#55934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:1410, offset: 0x013b8a41, size: 146 bytes, params: 2, frame: 17
|
||||
const closure = AvailablePlanRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'getPlanQuantities', value: value_55936}, {key: 'matchesItems', value: value_55937},
|
||||
{key: 'getPriceString', value: function() {
|
||||
var property = this.total;
|
||||
var amount = property.amount;
|
||||
var Math = global.Math;
|
||||
var value = amount / Math.pow(10, property.exponent);
|
||||
var moduleValue = require(dependencyMap[7]);
|
||||
property = property.currency;
|
||||
return moduleValue.formatPrice(value, property, {convertToMajorUnits: false});
|
||||
}}], [{key: 'createFromServer', value: value_55939}]);
|
||||
}
|
||||
|
||||
function _fun55940(a0) { // fn#55940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:2790, offset: 0x013b8db3, size: 96 bytes, params: 2, frame: 17
|
||||
const closure = CheckoutContextRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'getAvailablePlanForItems', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
var value = this.availablePlans.find(_fun55943);
|
||||
var value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}}], [{key: 'createFromOrder', value: value_55944}]);
|
||||
}
|
||||
|
||||
function AvailablePlanRecord({id, quantity, price, total, addOnPlans}) { // fn#55935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:1422, offset: 0x013b8ad3, size: 109 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, AvailablePlanRecord);
|
||||
value = _callSuper_55927(this, AvailablePlanRecord);
|
||||
value.id = id;
|
||||
value.quantity = quantity;
|
||||
value.price = price;
|
||||
value.total = total;
|
||||
value.addOnPlans = addOnPlans ?? [];
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_55936() { // fn#55936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:1729, offset: 0x013b8b40, size: 174 bytes, params: 1, frame: 21
|
||||
var r2;
|
||||
var r9;
|
||||
var value5;
|
||||
var set;
|
||||
var get;
|
||||
var id2;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
const Map = global.Map;
|
||||
let id = this.id;
|
||||
let quantity = this.quantity;
|
||||
const map = new Map([[id, quantity]]);
|
||||
const value3 = _createForOfIteratorHelperLoose_55931(this.addOnPlans);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r2 = value4;
|
||||
while (true) {
|
||||
value5 = r2.value;
|
||||
set = map.set;
|
||||
id = value5.id;
|
||||
get = map.get;
|
||||
id2 = value5.id;
|
||||
value6 = Reflect.apply(get, map, [id2]);
|
||||
value7 = 0;
|
||||
r9 = value6 ?? value7;
|
||||
quantity = value5.quantity;
|
||||
Reflect.apply(set, map, [id, r9 + quantity]);
|
||||
value8 = value3();
|
||||
done = value8.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value8;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
function value_55937(a0) { // fn#55937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:1958, offset: 0x013b8bee, size: 248 bytes, params: 2, frame: 23
|
||||
var r1;
|
||||
var r0;
|
||||
var r2;
|
||||
var value8;
|
||||
var planId;
|
||||
var quantity;
|
||||
var set;
|
||||
var get;
|
||||
var value9;
|
||||
var value10;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var value15;
|
||||
var property;
|
||||
var property2;
|
||||
var value16;
|
||||
let value = this.getPlanQuantities();
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
const value5 = _createForOfIteratorHelperLoose_55931(a0);
|
||||
const value6 = value5();
|
||||
let done = value6.done;
|
||||
const value7 = 0;
|
||||
if (!done) {
|
||||
r1 = value6;
|
||||
while (true) {
|
||||
value8 = r1.value;
|
||||
planId = value8.planId;
|
||||
quantity = value8.quantity;
|
||||
set = map.set;
|
||||
value9 = map.get(planId);
|
||||
r0 = value9 ?? value7;
|
||||
Reflect.apply(set, map, [planId, r0 + quantity]);
|
||||
value10 = value5();
|
||||
done = value10.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r1 = value10;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
const size = value.size;
|
||||
const size2 = map.size;
|
||||
const value11 = false;
|
||||
if (size !== size2) {
|
||||
r0 = value11;
|
||||
} else {
|
||||
value = _createForOfIteratorHelperLoose_55931(value);
|
||||
value12 = value();
|
||||
done = value12.done;
|
||||
value13 = true;
|
||||
if (done) {
|
||||
r0 = value13;
|
||||
} else {
|
||||
r2 = value12;
|
||||
while (true) {
|
||||
value14 = r2.value;
|
||||
value15 = env1_7(value14, 2);
|
||||
property = value15[value7];
|
||||
property2 = value15[1];
|
||||
get = map.get;
|
||||
if (Reflect.apply(get, map, [property]) !== property2) {
|
||||
r0 = value11;
|
||||
break;
|
||||
}
|
||||
value16 = value();
|
||||
done = value16.done;
|
||||
if (done) {
|
||||
r0 = value13;
|
||||
break;
|
||||
}
|
||||
r2 = value16;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_55939({id, quantity, price, total, add_on_plans}) { // fn#55939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:2631, offset: 0x013b8d4d, size: 102 bytes, params: 2, frame: 12
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.quantity = quantity;
|
||||
object2.price = price;
|
||||
object2.total = total;
|
||||
object2.addOnPlans = add_on_plans ?? [];
|
||||
const value = Object.create(AvailablePlanRecord.prototype, {constructor: {value: AvailablePlanRecord}});
|
||||
const availablePlanRecord = new AvailablePlanRecord(object2);
|
||||
return availablePlanRecord instanceof Object ? availablePlanRecord : value;
|
||||
}
|
||||
|
||||
function CheckoutContextRecord({paymentSources, storeCountry, allowedCurrencies, availablePlans}) { // fn#55941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:2802, offset: 0x013b8e13, size: 126 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, CheckoutContextRecord);
|
||||
value = _callSuper_55927(this, CheckoutContextRecord);
|
||||
value.paymentSources = paymentSources ?? [];
|
||||
value.storeCountry = storeCountry ?? null;
|
||||
value.allowedCurrencies = allowedCurrencies ?? [];
|
||||
value.availablePlans = availablePlans ?? [];
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_55942(a0) { // fn#55942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:3227, offset: 0x013b8e91, size: 48 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const value = this.availablePlans.find(_fun55943);
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
function value_55944(a0) { // fn#55944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:3351, offset: 0x013b8eda, size: 180 bytes, params: 2, frame: 15
|
||||
var r5;
|
||||
var r0;
|
||||
var object2;
|
||||
var payment_sources;
|
||||
var allowed_currencies;
|
||||
var available_plans;
|
||||
var map;
|
||||
let value = null;
|
||||
const checkout_context = value == a0 ? undefined : a0.checkout_context;
|
||||
if (value == checkout_context) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
payment_sources = checkout_context.payment_sources;
|
||||
r5 = value != payment_sources ? payment_sources : [];
|
||||
object2.paymentSources = r5;
|
||||
object2.storeCountry = value != checkout_context.store_country ? checkout_context.store_country.country : value;
|
||||
allowed_currencies = checkout_context.allowed_currencies;
|
||||
r5 = value != allowed_currencies ? allowed_currencies : [];
|
||||
object2.allowedCurrencies = r5;
|
||||
available_plans = checkout_context.available_plans;
|
||||
r5 = value != available_plans ? available_plans : [];
|
||||
map = r5.map;
|
||||
value = environment.__proto__;
|
||||
object2.availablePlans = Reflect.apply(map, r5, [env1_8.createFromServer]);
|
||||
r0 = new CheckoutContextRecord();
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun55943(a0) { // fn#55943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7222:3287, offset: 0x013b8ec1, size: 25 bytes, params: 2, frame: 11
|
||||
return a0.matchesItems(env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
/* Metro module 7043; source: modules/payments/records/OrderRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 3811, 7044, 2] */
|
||||
function _fun55913(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:6, offset: 0x013b81e8, size: 263 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const env0_5 = (require(3811) /* metro dependency 3811: InvoiceRecord */).BaseInvoiceRecord;
|
||||
const checkoutContextRecord = importDefault(7044) /* metro dependency 7044: CheckoutContextRecord */;
|
||||
const value2 = _fun55918(value);
|
||||
value = _fun55921(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/records/OrderRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.BillingFacetRecord = value2;
|
||||
}
|
||||
|
||||
function _callSuper_55914(a0, a1, a2) { // fn#55914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:196, offset: 0x013b82ef, size: 94 bytes, params: 4, frame: 20
|
||||
const value2 = env0_3(a1);
|
||||
return env0_2(a0, _isNativeReflectConstruct_55915() ? global.Reflect.construct(value2, [],
|
||||
env0_3(a0).constructor) : value2.apply(a0, undefined));
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_55915() { // fn#55915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:327, offset: 0x013b834d, 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_55915_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun55918(a0) { // fn#55918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:526, offset: 0x013b83ab, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = BillingFacetRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, null, [{key: 'createFromOrder', value: value_55920}]);
|
||||
}
|
||||
|
||||
function _fun55921(a0) { // fn#55921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:1099, offset: 0x013b84c9, size: 123 bytes, params: 2, frame: 17
|
||||
const closure = OrderRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getInvoicePreview', value: function() {
|
||||
var value = null;
|
||||
return value == this.billingFacetRecord ? value : this.billingFacetRecord.invoicePreview;
|
||||
}}, {key: 'firstUnsatisfiedConstraintReasonCode', value: function() {
|
||||
return this.unsatisfiedConstraints.length > 0 ? this.unsatisfiedConstraints[0].reason_code : null;
|
||||
}}], [{key: 'createFromServer', value: value_55925}]);
|
||||
}
|
||||
|
||||
function BillingFacetRecord({paymentGateway, paymentSourceId, invoicePreview}) { // fn#55919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:538, offset: 0x013b83f2, size: 102 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, BillingFacetRecord);
|
||||
value = _callSuper_55914(this, BillingFacetRecord);
|
||||
value.paymentGateway = paymentGateway;
|
||||
value.paymentSourceId = paymentSourceId ?? null;
|
||||
value.invoicePreview = invoicePreview ?? null;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_55920(a0) { // fn#55920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:878, offset: 0x013b8458, size: 113 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var object2;
|
||||
var payment_source_id;
|
||||
const billing_facet = a0.billing_facet;
|
||||
let value = null;
|
||||
if (value == billing_facet) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.paymentGateway = billing_facet.payment_gateway;
|
||||
payment_source_id = billing_facet.payment_source_id;
|
||||
object2.paymentSourceId = value != payment_source_id ? payment_source_id : value;
|
||||
value = environment.__proto__;
|
||||
object2.invoicePreview = BaseInvoiceRecord.createInvoiceFromOrder(a0);
|
||||
r0 = new BillingFacetRecord();
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function OrderRecord({id, status, revision, orderLineItems, billingFacetRecord, giftingFacet, checkoutContextRecord, createdAt, unsatisfiedConstraints}) { // fn#55922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:1111, offset: 0x013b8544, size: 200 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, OrderRecord);
|
||||
value = _callSuper_55914(this, OrderRecord);
|
||||
value.id = id;
|
||||
value.status = status;
|
||||
value.revision = revision;
|
||||
value.orderLineItems = orderLineItems ?? [];
|
||||
value.billingFacetRecord = billingFacetRecord ?? null;
|
||||
value.giftingFacet = giftingFacet ?? null;
|
||||
value.checkoutContextRecord = checkoutContextRecord ?? null;
|
||||
value.createdAt = createdAt;
|
||||
value.unsatisfiedConstraints = unsatisfiedConstraints ?? [];
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_55925(a0) { // fn#55925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7221:1921, offset: 0x013b8657, size: 177 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.status = a0.status;
|
||||
object2.revision = a0.revision;
|
||||
object2.orderLineItems = a0.order_line_items;
|
||||
let value = environment.__proto__;
|
||||
object2.billingFacetRecord = env1_7.createFromOrder(a0);
|
||||
const gifting_facet = a0.gifting_facet;
|
||||
const value2 = null;
|
||||
object2.giftingFacet = value2 != gifting_facet ? gifting_facet : value2;
|
||||
object2.checkoutContextRecord = CheckoutContextRecord.createFromOrder(a0);
|
||||
object2.createdAt = a0.created_at;
|
||||
const unsatisfied_constraints = a0.unsatisfied_constraints;
|
||||
object2.unsatisfiedConstraints = value2 != unsatisfied_constraints ? unsatisfied_constraints : [];
|
||||
value = Object.create(OrderRecord.prototype, {constructor: {value: OrderRecord}});
|
||||
const orderRecord = new OrderRecord(object2);
|
||||
return orderRecord instanceof Object ? orderRecord : value;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user