Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,667 @@
|
||||
/* Metro module 7300; source: modules/payments/OrderActionCreators.tsx; dependencies: [5, 7, 6, 15, 17, 18, 661, 3, 3824, 507, 3817, 2] */
|
||||
function _fun58957(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:6, offset: 0x016dc39b, size: 380 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('OrderActionCreators');
|
||||
value = importDefault(3824) /* metro dependency 3824: BillingError */;
|
||||
value = _fun58971(value);
|
||||
const value4 = _fun58973(importDefault(3824) /* metro dependency 3824: BillingError */);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/OrderActionCreators.tsx');
|
||||
exports.OrderSigningFailedWithConstraintsError = value;
|
||||
exports.OrderProcessingPendingError = value4;
|
||||
exports.signOrder = function() {
|
||||
return _signOrder.apply(this, arguments);
|
||||
};
|
||||
exports.getOrder = function() {
|
||||
return _getOrder.apply(this, arguments);
|
||||
};
|
||||
exports.fetchOrderEntitlements = function() {
|
||||
return _fetchOrderEntitlements.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _callSuper_58958(a0, a1, a2) { // fn#58958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:178, offset: 0x016dc517, size: 100 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = a2;
|
||||
const value3 = env0_6(a1);
|
||||
const binding = env0_5;
|
||||
if (_isNativeReflectConstruct_58959()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value3, value || [], env0_6(a0).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value3.apply(a0, value);
|
||||
r0 = value;
|
||||
}
|
||||
return binding(a0, r0);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_58959() { // fn#58959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:309, offset: 0x016dc57b, 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_58959_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _signOrder() { // fn#58962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:1184, offset: 0x016dc5d9, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_2(_fun58964).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _getOrder() { // fn#58965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:1736, offset: 0x016dc7ab, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_2(_fun58967).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fetchOrderEntitlements() { // fn#58968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:2079, offset: 0x016dc8c5, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_2(_fun58970).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun58971(a0) { // fn#58971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:546, offset: 0x016dc985, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = OrderSigningFailedWithConstraintsError;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun58973(a0) { // fn#58973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:900, offset: 0x016dc9e6, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = OrderProcessingPendingError;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
async function _fun58964(a0) { // fn#58964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:1227, offset: 0x016dc61b, size: 400 bytes, params: 2, frame: 22
|
||||
var r9;
|
||||
var r4;
|
||||
var value;
|
||||
var value2;
|
||||
var orderId;
|
||||
var expectedRevision;
|
||||
var loadId;
|
||||
var value3;
|
||||
var value4;
|
||||
var object3;
|
||||
var value5;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var HTTP;
|
||||
var post;
|
||||
var object4;
|
||||
var ORDER_SIGN;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var body;
|
||||
var error;
|
||||
var HTTPResponseError;
|
||||
exceptionSkip39: while (true) {
|
||||
exceptionLanding39: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
orderId = a0.orderId;
|
||||
expectedRevision = a0.expectedRevision;
|
||||
loadId = a0.loadId;
|
||||
value = undefined;
|
||||
await value;
|
||||
value3 = undefined;
|
||||
value4 = false;
|
||||
if (value4) {
|
||||
return value3;
|
||||
}
|
||||
object3 = {};
|
||||
if (expectedRevision != null) {
|
||||
object3.expected_revision = expectedRevision;
|
||||
}
|
||||
value5 = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
property = binding2[9];
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
HTTP = value6.HTTP;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
post = HTTP.post;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
binding = env2_8;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
ORDER_SIGN = binding.ORDER_SIGN;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(ORDER_SIGN, binding, [orderId]);
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
object4.url = value7;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
object4.body = object3;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
value8 = loadId != null;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
if (value8) {
|
||||
try {
|
||||
value9 = loadId === '';
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
if (value9) {
|
||||
r9 = value;
|
||||
break;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
object3.load_id = loadId;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
r9 = object3;
|
||||
break;
|
||||
}
|
||||
r9 = value;
|
||||
try {
|
||||
object4.context = r9;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
object4.rejectWithError = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
value10 = Reflect.apply(post, HTTP, [object4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
await value10;
|
||||
try {
|
||||
value11 = undefined;
|
||||
value12 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
if (value12) {
|
||||
return value11;
|
||||
}
|
||||
body = value11.body;
|
||||
if (body == null) {
|
||||
throw new global.Error('Invalid sign order response');
|
||||
}
|
||||
return value11.body;
|
||||
break exceptionSkip39;
|
||||
}
|
||||
binding = env2_0;
|
||||
HTTPResponseError = binding(env2_1[9]).HTTPResponseError;
|
||||
if (error instanceof HTTPResponseError) {
|
||||
if (error.status !== 400) {
|
||||
throw error;
|
||||
}
|
||||
body = error.body;
|
||||
value = body != null;
|
||||
if (value) {
|
||||
r4 = typeof body === 'object';
|
||||
if (r4) {
|
||||
r4 = 'id' in body;
|
||||
if (r4) {
|
||||
if ('status' in body) {
|
||||
binding = env2_10;
|
||||
body = error.body;
|
||||
throw new binding();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (r4) {
|
||||
binding = env2_10;
|
||||
body = error.body;
|
||||
throw new binding();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (r4) {
|
||||
if ('status' in body) {
|
||||
binding = env2_10;
|
||||
body = error.body;
|
||||
throw new binding();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (r4) {
|
||||
binding = env2_10;
|
||||
body = error.body;
|
||||
throw new binding();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
r4 = value;
|
||||
if (r4) {
|
||||
r4 = 'id' in body;
|
||||
if (r4) {
|
||||
if ('status' in body) {
|
||||
binding = env2_10;
|
||||
body = error.body;
|
||||
throw new binding();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (r4) {
|
||||
binding = env2_10;
|
||||
body = error.body;
|
||||
throw new binding();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (r4) {
|
||||
if ('status' in body) {
|
||||
binding = env2_10;
|
||||
body = error.body;
|
||||
throw new binding();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (r4) {
|
||||
binding = env2_10;
|
||||
body = error.body;
|
||||
throw new binding();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
throw error;
|
||||
break exceptionSkip39;
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun58967(a0) { // fn#58967, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:1777, offset: 0x016dc7e4, size: 225 bytes, params: 2, frame: 18
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var HTTP;
|
||||
var get;
|
||||
var object2;
|
||||
var ORDER_GET;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var body;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = binding2[9];
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
HTTP = value3.HTTP;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding = env2_8;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
ORDER_GET = binding.ORDER_GET;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value4 = Reflect.apply(ORDER_GET, binding, [a0]);
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2.url = value4;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object2.rejectWithError = true;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(get, HTTP, [object2]);
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
body = value6.body;
|
||||
} catch (error) {
|
||||
binding = env2_9;
|
||||
binding.error('failed to fetch order', {error: error, orderId: a0});
|
||||
binding = env2_0;
|
||||
value = binding(env2_1[10]);
|
||||
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrder'}, extra: {orderId: a0}});
|
||||
return null;
|
||||
}
|
||||
return body || null;
|
||||
}
|
||||
|
||||
function* _fun58970(a0) { // fn#58970, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:2148, offset: 0x016dc8fe, size: 135 bytes, params: 2, frame: 16
|
||||
var r2;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var HTTP;
|
||||
var get;
|
||||
var object;
|
||||
var ORDER_ENTITLEMENTS;
|
||||
var value4;
|
||||
var body;
|
||||
var value5;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
binding2 = env2_1;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
property = binding2[9];
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
HTTP = value3.HTTP;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
object = {};
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
binding = env2_8;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
ORDER_ENTITLEMENTS = binding.ORDER_ENTITLEMENTS;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(ORDER_ENTITLEMENTS, binding, [a0]);
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
object.url = value;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
object.rejectWithError = false;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(get, HTTP, [object]);
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value4 = false;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
if (value4) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
body = value.body;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
value5 = body != null;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
if (value5) {
|
||||
try {
|
||||
body = value.body;
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
r2 = body;
|
||||
} else {
|
||||
try {
|
||||
object = [];
|
||||
} catch (error) {
|
||||
return [];
|
||||
}
|
||||
r2 = object;
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
|
||||
function OrderSigningFailedWithConstraintsError(a0) { // fn#58972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:558, offset: 0x016dc9ad, size: 57 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_4(this, OrderSigningFailedWithConstraintsError);
|
||||
value = _callSuper_58958(this, OrderSigningFailedWithConstraintsError,
|
||||
['Order signing failed due to unsatisfied constraints']);
|
||||
value.order = a0;
|
||||
return value;
|
||||
}
|
||||
|
||||
function OrderProcessingPendingError() { // fn#58974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7478:912, offset: 0x016dca0e, size: 48 bytes, params: 1, frame: 15
|
||||
env1_4(this, OrderProcessingPendingError);
|
||||
return _callSuper_58958(this, OrderProcessingPendingError,
|
||||
['Order signed but entitlements not yet visible after polling']);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 4095; source: modules/payments/PaymentConstants.tsx; dependencies: [2] */
|
||||
function _fun33547(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4253:6, offset: 0x010338a5, size: 372 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const object = {UNSPECIFIED: 0};
|
||||
object[0] = 'UNSPECIFIED';
|
||||
object.DRAFT = 1;
|
||||
object[1] = 'DRAFT';
|
||||
object.SIGNED = 2;
|
||||
object[2] = 'SIGNED';
|
||||
object.DISCARDED = 3;
|
||||
object[3] = 'DISCARDED';
|
||||
object.SIGNING_IN_PROGRESS = 4;
|
||||
object[4] = 'SIGNING_IN_PROGRESS';
|
||||
const object2 = {UNSPECIFIED: 0};
|
||||
object2[0] = 'UNSPECIFIED';
|
||||
object2.ONE_TIME = 1;
|
||||
object2[1] = 'ONE_TIME';
|
||||
object2.SUBSCRIPTION = 2;
|
||||
object2[2] = 'SUBSCRIPTION';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/PaymentConstants.tsx');
|
||||
exports.CustomCheckoutFlow = {MOBILE_WEB_REDIRECT_CHECKOUT: 'mobile_web_redirect_checkout',
|
||||
META_QUEST_WEB_REDIRECT_CHECKOUT: 'meta_quest_web_redirect_checkout',
|
||||
DEV_STORYBOOK_CHECKOUT: 'dev_storybook_checkout'};
|
||||
exports.MobileWebRedirectCheckoutDeepLinkActions = {PREMIUM_CHECKOUT_SUCCESS: 'premium_checkout_success',
|
||||
PREMIUM_SUBSCRIPTION_UPDATE: 'premium_subscription_update',
|
||||
GUILD_BOOST_CHECKOUT_SUCCESS: 'guild_boost_checkout_success', DEFAULT: 'default'};
|
||||
exports.MobileWebRedirectCheckoutDeepLinkQueryKeys = {FLOW_TYPE: 'flow_type', DEEP_LINK_ACTION: 'deep_link_action',
|
||||
GUILD_ID: 'guild_id'};
|
||||
exports.EUR_TO_HRK_CONVERSION_RATE = 7.5345;
|
||||
exports.OrderStatus = object;
|
||||
exports.ItemPurchaseType = object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 10110; source: modules/payments/hooks/useSubscriptionSelection.tsx; dependencies: [57, 31, 2] */
|
||||
function _fun78916(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10296:6, offset: 0x01e3bd6d, size: 125 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_1 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/hooks/useSubscriptionSelection.tsx');
|
||||
exports.default = useSubscriptionSelection;
|
||||
}
|
||||
|
||||
function useSubscriptionSelection() { // fn#78917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10296:211, offset: 0x01e3bdea, size: 95 bytes, params: 1, frame: 18
|
||||
const binding = env0_1;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [undefined]);
|
||||
const binding2 = env0_0;
|
||||
let value = binding2(value2, 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, [undefined]), 2);
|
||||
return {selectedSkuId: property, setSelectedSkuId: property2, selectedPlanId: value[0], setSelectedPlanId: value[1]};
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,54 @@
|
||||
/* Metro module 10109; source: modules/payments/native/NativePaymentContext.tsx; dependencies: [57, 31, 3807, 33, 7045, 7943, 6847, 10110, 566, 2] */
|
||||
function _fun78912(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10295:6, offset: 0x01e3baff, size: 224 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const subscriptionPlanStore = importDefault(3807) /* metro dependency 3807: SubscriptionPlanStore */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value((importDefault(7045) /* metro dependency 7045: ContextUtils */)(), 3);
|
||||
const env0_6 = value[0];
|
||||
const property = value[1];
|
||||
const property2 = value[2];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/native/NativePaymentContext.tsx');
|
||||
exports.NativePaymentContextProvider = NativePaymentContextProvider;
|
||||
exports.useNativeIAPPaymentContext = property;
|
||||
exports.useForwardedNativePaymentContext = property2;
|
||||
}
|
||||
|
||||
function NativePaymentContextProvider({children, skuIDs, activeSubscription}) { // fn#78913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10295:291, offset: 0x01e3bbdf, size: 261 bytes, params: 2, frame: 24
|
||||
const {nativePaymentsConnected,
|
||||
storeFront} = (importDefault(7943) /* metro dependency 7943: NativePaymentHooksAndroid */).useNativeIAPPayments();
|
||||
env0_3.useEffect(_fun78914, [storeFront, skuIDs]);
|
||||
const {selectedPlanId,
|
||||
setSelectedPlanId} = (importDefault(10110) /* metro dependency 10110: useSubscriptionSelection */)();
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionPlanStore],
|
||||
_fun78915, [selectedPlanId]);
|
||||
const Provider = env0_6.Provider;
|
||||
return (
|
||||
<Provider
|
||||
value={{isReadyToPurchase: nativePaymentsConnected, setSelectedPlanId: setSelectedPlanId,
|
||||
selectedPlan: value4, storeFront: storeFront, activeSubscription: activeSubscription}}
|
||||
>
|
||||
{children}
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun78914() { // fn#78914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10295:466, offset: 0x01e3bce4, size: 98 bytes, params: 1, frame: 14
|
||||
var value4;
|
||||
var moduleValue;
|
||||
if (!(storeFront == null || SubscriptionPlanStore.isFetchingForSKUs(skuIDs))) {
|
||||
value4 = environment.__proto__;
|
||||
moduleValue = require(6847) /* metro dependency 6847: SubscriptionPlanActionCreators */;
|
||||
moduleValue.fetchSubscriptionPlansBySKUs(skuIDs, storeFront.country);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun78915() { // fn#78915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10295:654, offset: 0x01e3bd46, size: 39 bytes, params: 1, frame: 12
|
||||
const selectedPlanIdBinding = selectedPlanId;
|
||||
const value2 = null;
|
||||
return value2 != selectedPlanIdBinding ? SubscriptionPlanStore.get(selectedPlanId) : value2;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,249 @@
|
||||
/* Metro module 7943; source: modules/payments/native/hooks/NativePaymentHooks.android.tsx; dependencies: [5, 57, 31, 5140, 3, 566, 22, 7298, 3817, 2] */
|
||||
function _fun63382(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8121:6, offset: 0x01b7dbb6, size: 326 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const notSupported = function() {
|
||||
var Error = global.Error;
|
||||
throw new Error('Native hook not supported for android');
|
||||
};
|
||||
const notSupportedReturnVoid = function() {
|
||||
var Error = global.Error;
|
||||
throw new Error('Native hook not supported for android');
|
||||
};
|
||||
const closure = useNativeIAPPayments;
|
||||
const closure2 = useGoogleSkuIds;
|
||||
const closure3 = function(a0) {
|
||||
var object = {};
|
||||
object.resubscribeSubscription = notSupported;
|
||||
object.nativePaymentsConnected = useNativeIAPPayments().nativePaymentsConnected;
|
||||
return object;
|
||||
};
|
||||
const closure4 = function(a0, a1) {
|
||||
var object = {};
|
||||
object.cancelSubscription = notSupported;
|
||||
object.nativePaymentsConnected = useNativeIAPPayments().nativePaymentsConnected;
|
||||
return object;
|
||||
};
|
||||
const closure5 = function(a0) {
|
||||
var r3;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r3);
|
||||
throw undefined;
|
||||
}
|
||||
var object = {};
|
||||
object.createSubscription = notSupportedReturnVoid;
|
||||
object.nativePaymentsConnected = useNativeIAPPayments().nativePaymentsConnected;
|
||||
return object;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('NativePaymentHooks.android.tsx');
|
||||
const env0_8 = {'nativePaymentsConnected': true, 'storeFront': null};
|
||||
object2 = {useNativeIAPPayments: closure, useGoogleSkuIds: closure2, useCreateSubscription: closure5,
|
||||
useCancelSubscription: closure4, useResubscribeSubscription: closure3};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/native/hooks/NativePaymentHooks.android.tsx');
|
||||
exports.default = object2;
|
||||
exports.useNativeIAPPayments = closure;
|
||||
exports.useGoogleSkuIds = closure2;
|
||||
exports.useResubscribeSubscription = closure3;
|
||||
exports.useCancelSubscription = closure4;
|
||||
exports.useCreateSubscription = closure5;
|
||||
}
|
||||
|
||||
function useGoogleSkuIds(a0, a1) { // fn#63386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8121:447, offset: 0x01b7dd20, size: 191 bytes, params: 3, frame: 18
|
||||
let env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([IAPStoreAndroid], function() {
|
||||
return IAPStoreAndroid.isFetchingGoogleSkus();
|
||||
});
|
||||
const env0_3 = env0_5.useRef([]);
|
||||
const [property, env0_4] = env0_4Binding(env0_5.useState(null), 2);
|
||||
env0_5.useEffect(function() {
|
||||
var env0_0 = _fun63389;
|
||||
_fun63392();
|
||||
}, [a1, value2, a0]);
|
||||
return {isFetchingGoogleSkus: value2, fetchError: property};
|
||||
}
|
||||
|
||||
function _fun63388() { // fn#63388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8121:623, offset: 0x01b7ddf2, size: 27 bytes, params: 1, frame: 9
|
||||
(function() {
|
||||
return _fetch.apply(this, arguments);
|
||||
})();
|
||||
}
|
||||
|
||||
function _fetch() { // fn#63389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8121:628, offset: 0x01b7de0d, size: 51 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_3(_fun63391).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun63391() { // fn#63391, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8121:663, offset: 0x01b7de49, size: 318 bytes, params: 1, frame: 19
|
||||
var binding;
|
||||
var value3;
|
||||
var value4;
|
||||
var difference;
|
||||
var current;
|
||||
var value5;
|
||||
var length;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var loadInAppSkus;
|
||||
var inAppSkus;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding3;
|
||||
var binding4;
|
||||
var value9;
|
||||
var union;
|
||||
var value10;
|
||||
var error;
|
||||
var error2;
|
||||
var captureBillingException;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
reducibleJoin3: while (true) {
|
||||
if (importDefault) {
|
||||
binding = env3_3;
|
||||
binding.current = [];
|
||||
break reducibleJoin3;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
reduciblePort32: while (true) {
|
||||
exceptionLanding31: while (true) {
|
||||
value3 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
binding = env4_1;
|
||||
value4 = binding(env4_2[6]);
|
||||
difference = value4.difference;
|
||||
current = env3_3.current;
|
||||
value5 = Reflect.apply(difference, value4, [require, current]);
|
||||
if (dependencyMap) {
|
||||
break reduciblePort32;
|
||||
}
|
||||
if (importDefault) {
|
||||
break reduciblePort32;
|
||||
}
|
||||
length = require.length;
|
||||
if (length === 0) {
|
||||
break reduciblePort32;
|
||||
}
|
||||
length = value5.length;
|
||||
if (length === 0) {
|
||||
break reduciblePort32;
|
||||
}
|
||||
try {
|
||||
binding = env4_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
binding2 = env4_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
loadInAppSkus = value6.loadInAppSkus;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
inAppSkus = Reflect.apply(loadInAppSkus, value6, [value5]);
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
yield inAppSkus;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
binding = env3_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
binding3 = env4_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
binding4 = env4_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
property = binding4[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
value9 = binding3(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
union = value9.union;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
current = binding.current;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
value10 = Reflect.apply(union, value9, [current, value5]);
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
binding.current = value10;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
binding = env3_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
try {
|
||||
binding(null);
|
||||
} catch (error) {
|
||||
break exceptionLanding31;
|
||||
}
|
||||
break reduciblePort32;
|
||||
}
|
||||
binding = env4_7;
|
||||
error2 = binding.error;
|
||||
Reflect.apply(error2, binding, ['Unable to fetch product IDs from google play store: ', error]);
|
||||
env3_4('Unable to fetch');
|
||||
binding = env4_0;
|
||||
value = binding(env4_2[8]);
|
||||
captureBillingException = value.captureBillingException;
|
||||
Reflect.apply(captureBillingException, value, [error]);
|
||||
break reduciblePort32;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Metro module 7673; source: modules/payments/native/hooks/useOrderContext.tsx; dependencies: [57, 31, 2] */
|
||||
function _fun61304(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7851:6, offset: 0x01b3ad29, size: 123 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_1 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/native/hooks/useOrderContext.tsx');
|
||||
exports.useOrderContext = useOrderContext;
|
||||
}
|
||||
|
||||
function useOrderContext(a0) { // fn#61305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7851:217, offset: 0x01b3ada4, size: 116 bytes, params: 2, frame: 16
|
||||
const binding = env0_1;
|
||||
const value = env0_0(binding.useState(a0), 2);
|
||||
return binding.useMemo(_fun61308, [value[0], value[1], binding.useCallback(_fun61306, [])]);
|
||||
}
|
||||
|
||||
function _fun61306(a0) { // fn#61306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7851:325, offset: 0x01b3ae18, size: 30 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
env0_1(_fun61307);
|
||||
}
|
||||
|
||||
function _fun61308() { // fn#61308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7851:389, offset: 0x01b3ae63, size: 144 bytes, params: 1, frame: 7
|
||||
const binding = env0_0;
|
||||
const value2 = undefined;
|
||||
return {order: binding, setOrder: env0_1, setRevision: env0_2, orderId: binding == null ? value2 : env0_0.id,
|
||||
orderLineItemId: env0_0 == null || env0_0.order_line_items == null || env0_0.order_line_items[0] == null ? value2 : env0_0.order_line_items[0].id,
|
||||
revision: env0_0 == null ? value2 : env0_0.revision};
|
||||
}
|
||||
|
||||
function _fun61307(a0) { // fn#61307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7851:332, offset: 0x01b3ae36, size: 45 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
var object2;
|
||||
const value = a0;
|
||||
if (value == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value, undefined);
|
||||
object2['revision'] = env0_0;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,167 @@
|
||||
/* Metro module 7023; source: modules/payments/native/utils/BillingStandaloneNativeUtils.tsx; dependencies: [4095, 661, 3, 4247, 7024, 1581, 676, 3853, 2] */
|
||||
function _fun55652(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7201:6, offset: 0x013ad0c0, size: 217 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(4095) /* metro dependency 4095: PaymentConstants */).CustomCheckoutFlow;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).Routes;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('BillingStandaloneNativeUtils');
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/native/utils/BillingStandaloneNativeUtils.tsx');
|
||||
exports.goToStandalonePremiumCheckoutFromMobileApp = goToStandalonePremiumCheckoutFromMobileApp;
|
||||
exports.goToStandaloneNitroManagementFromMobileApp = goToStandaloneNitroManagementFromMobileApp;
|
||||
exports.goToStandaloneGuildBoostCheckoutFromMobileApp = goToStandaloneGuildBoostCheckoutFromMobileApp;
|
||||
}
|
||||
|
||||
function emitMWRCSentryErrorOnFailure(a0, a1, a2) { // fn#55653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7201:220, offset: 0x013ad199, size: 332 bytes, params: 4, frame: 23
|
||||
var r4;
|
||||
var r5;
|
||||
var r72;
|
||||
var item3;
|
||||
var value3;
|
||||
var value4;
|
||||
var binding;
|
||||
var error;
|
||||
var value5;
|
||||
var property;
|
||||
var moduleValue;
|
||||
var captureMobileWebRedirectCheckoutSentryError;
|
||||
var Error;
|
||||
var prototype;
|
||||
var value6;
|
||||
var value7;
|
||||
var object2;
|
||||
var moduleValue2;
|
||||
var value8;
|
||||
var value9;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r7 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r4 = item2;
|
||||
r5 = value2;
|
||||
r72 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r4 = item3;
|
||||
r5 = value3;
|
||||
r72 = value;
|
||||
} else {
|
||||
r4 = item3;
|
||||
r5 = value3;
|
||||
r72 = item;
|
||||
}
|
||||
}
|
||||
if (!r5) {
|
||||
r4.return();
|
||||
}
|
||||
const object4 = {destination_url: r72, load_id: a2};
|
||||
try {
|
||||
value4 = environment;
|
||||
binding = env0_5;
|
||||
error = binding.error;
|
||||
value5 = 'Failed to open mobile web popout to ' + r72 + ', error response: ';
|
||||
Reflect.apply(error, binding, [value5, r7]);
|
||||
property = dependencyMap[3];
|
||||
moduleValue = require(property);
|
||||
captureMobileWebRedirectCheckoutSentryError = moduleValue.captureMobileWebRedirectCheckoutSentryError;
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value6 = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('Mobile web redirect checkout mobile app to web popout failed');
|
||||
value7 = error instanceof Object ? error : value6;
|
||||
object2 = {failure_response: r7};
|
||||
copyDataProperties(object2, object4, undefined);
|
||||
Reflect.apply(captureMobileWebRedirectCheckoutSentryError, moduleValue, [value7, a1, {extra: object2}]);
|
||||
} catch (error) {
|
||||
moduleValue2 = require(dependencyMap[3]);
|
||||
captureMobileWebRedirectCheckoutSentryError = moduleValue2.captureMobileWebRedirectCheckoutSentryError;
|
||||
Error = global.Error;
|
||||
prototype = Error.prototype;
|
||||
value8 = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error('Mobile web redirect checkout mobile app to web popout failed');
|
||||
value9 = error instanceof Object ? error : value8;
|
||||
Reflect.apply(captureMobileWebRedirectCheckoutSentryError, moduleValue2, [value9, a1, {extra: object4}]);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function goToStandalonePremiumCheckoutFromMobileApp(a0, a1, a2, a3) { // fn#55654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7201:744, offset: 0x013ad2e5, size: 189 bytes, params: 5, frame: 19
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const billingStandaloneUtilsModule = require(7024) /* metro dependency 7024: BillingStandaloneUtils */;
|
||||
const goToStandalonePremiumCheckout = billingStandaloneUtilsModule.goToStandalonePremiumCheckout;
|
||||
const isMetaQuest2 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest();
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a1, undefined);
|
||||
if (isMetaQuest2) {
|
||||
object2['flowType'] = CustomCheckoutFlow.META_QUEST_WEB_REDIRECT_CHECKOUT;
|
||||
} else {
|
||||
object2['deepLinkType'] = (require(676) /* metro dependency 676: ConstantsIOS */).LinkingTypes.MOBILE_WEB_REDIRECT_CHECKOUT;
|
||||
}
|
||||
return Reflect.apply(goToStandalonePremiumCheckout, billingStandaloneUtilsModule, [object2, _fun55655, _fun55656]);
|
||||
}
|
||||
|
||||
function goToStandaloneNitroManagementFromMobileApp(a0, {loadId}, a2, a3) { // fn#55657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7201:1216, offset: 0x013ad44b, size: 183 bytes, params: 5, frame: 21
|
||||
const env0_0 = a0;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const billingStandaloneUtilsModule = require(7024) /* metro dependency 7024: BillingStandaloneUtils */;
|
||||
return billingStandaloneUtilsModule.goToBillingStandalonePageWithHandoff((require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest() ? Routes.BILLING_MANAGE_SUBSCRIPTION_WITH_FLOW_TYPE(CustomCheckoutFlow.META_QUEST_WEB_REDIRECT_CHECKOUT,
|
||||
loadId) : Routes.BILLING_MANAGE_SUBSCRIPTION_WITH_DEEP_LINK((require(676) /* metro dependency 676: ConstantsIOS */).LinkingTypes.MOBILE_WEB_REDIRECT_CHECKOUT,
|
||||
loadId), _fun55658, _fun55659);
|
||||
}
|
||||
|
||||
function goToStandaloneGuildBoostCheckoutFromMobileApp(a0, a1, a2, a3, a4) { // fn#55660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7201:1760, offset: 0x013ad545, size: 218 bytes, params: 6, frame: 20
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a2;
|
||||
const env0_2 = a3;
|
||||
const env0_3 = a4;
|
||||
const value2 = undefined;
|
||||
const metaQuestUtilsAndroidModule = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
|
||||
const MOBILE_WEB_REDIRECT_CHECKOUT = metaQuestUtilsAndroidModule.isMetaQuest() ? value2 : (require(676) /* metro dependency 676: ConstantsIOS */).LinkingTypes.MOBILE_WEB_REDIRECT_CHECKOUT;
|
||||
const moduleValue2 = metaQuestUtilsAndroidModule;
|
||||
const META_QUEST_WEB_REDIRECT_CHECKOUT = moduleValue2.isMetaQuest() ? CustomCheckoutFlow.META_QUEST_WEB_REDIRECT_CHECKOUT : value2;
|
||||
const billingStandaloneUtilsModule = require(7024) /* metro dependency 7024: BillingStandaloneUtils */;
|
||||
return billingStandaloneUtilsModule.goToBillingStandalonePageWithHandoff(Routes.BILLING_STANDALONE_GUILD_BOOST_CHECKOUT_PAGE(a1,
|
||||
MOBILE_WEB_REDIRECT_CHECKOUT, a2, META_QUEST_WEB_REDIRECT_CHECKOUT), _fun55661, _fun55662);
|
||||
}
|
||||
|
||||
function _fun55655(a0, a1) { // fn#55655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7201:994, offset: 0x013ad3a2, size: 96 bytes, params: 3, frame: 15
|
||||
const searchParams = a1.searchParams;
|
||||
searchParams.append('handoff_token', a0.body.handoff_token);
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
value.openURLExternally(a1.href);
|
||||
importDefault(a0, a1);
|
||||
}
|
||||
|
||||
function _fun55656(a0) { // fn#55656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7201:1106, offset: 0x013ad402, size: 73 bytes, params: 2, frame: 17
|
||||
const value = copyRestArgs(0, undefined);
|
||||
const emitMWRCSentryErrorOnFailureBinding = emitMWRCSentryErrorOnFailure;
|
||||
emitMWRCSentryErrorOnFailureBinding(value, env0_0, require.loadId);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, emitMWRCSentryErrorOnFailureBinding);
|
||||
apply(importAll, items2, undefined, emitMWRCSentryErrorOnFailureBinding);
|
||||
}
|
||||
|
||||
function _fun55659(a0) { // fn#55659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7201:1654, offset: 0x013ad502, size: 67 bytes, params: 2, frame: 17
|
||||
const value = copyRestArgs(0, undefined);
|
||||
const emitMWRCSentryErrorOnFailureBinding = emitMWRCSentryErrorOnFailure;
|
||||
emitMWRCSentryErrorOnFailureBinding(value, env0_0, loadId);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, emitMWRCSentryErrorOnFailureBinding);
|
||||
apply(importAll, items2, undefined, emitMWRCSentryErrorOnFailureBinding);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,586 @@
|
||||
/* Metro module 10385; source: modules/payments/native/utils/createOrReuseGiftOrder.tsx; dependencies: [5, 31, 4095, 1880, 482, 3, 7299, 477, 3738, 3817, 2] */
|
||||
function _fun80460(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10571:6, offset: 0x01e7bead, size: 245 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(4095) /* metro dependency 4095: PaymentConstants */).ItemPurchaseType;
|
||||
const env0_6 = (require(1880) /* metro dependency 1880: PremiumConstants */).SubscriptionPlanInfo;
|
||||
const env0_7 = (require(482) /* metro dependency 482: Constants */).PaymentGateways;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('createOrReuseGiftOrder');
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/native/utils/createOrReuseGiftOrder.tsx');
|
||||
exports.useCreateOrReuseGiftOrder = useCreateOrReuseGiftOrder;
|
||||
}
|
||||
|
||||
function useCreateOrReuseGiftOrder(a0) { // fn#80461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10571:360, offset: 0x01e7bfa2, size: 50 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return env0_4.useCallback(_fun80462(), [a0]);
|
||||
}
|
||||
|
||||
function _fun80462() { // fn#80462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10571:419, offset: 0x01e7bfd4, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun80464);
|
||||
return _fun80465;
|
||||
}
|
||||
|
||||
async function _fun80464({planId, recipientUserId}) { // fn#80464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10571:439, offset: 0x01e7c00c, size: 486 bytes, params: 2, frame: 23
|
||||
var r10;
|
||||
var binding;
|
||||
var binding2;
|
||||
var value4;
|
||||
var getOrCreateOrder;
|
||||
var object2;
|
||||
var value5;
|
||||
var isAndroid;
|
||||
var isAndroid2;
|
||||
var APPLE;
|
||||
var GOOGLE;
|
||||
var ONE_TIME;
|
||||
var binding3;
|
||||
var value6;
|
||||
var value7;
|
||||
var utc;
|
||||
var value8;
|
||||
var subtract;
|
||||
var value9;
|
||||
var DRAFT_ORDER_LOOKBACK_DAYS;
|
||||
var value10;
|
||||
var toISOString;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var error;
|
||||
var error2;
|
||||
var value15;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
let property = env3_6[planId];
|
||||
if (property == null) {
|
||||
throw new global.Error('Invalid plan id: ' + planId);
|
||||
}
|
||||
const skuId = property.skuId;
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[6];
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
getOrCreateOrder = value4.getOrCreateOrder;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.skuId = skuId;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
isAndroid = value5.isAndroid;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
isAndroid2 = Reflect.apply(isAndroid, value5, []);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env3_7;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
if (isAndroid2) {
|
||||
try {
|
||||
GOOGLE = binding.GOOGLE;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
r10 = GOOGLE;
|
||||
} else {
|
||||
try {
|
||||
APPLE = binding.APPLE;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
r10 = APPLE;
|
||||
}
|
||||
try {
|
||||
object2.paymentGateway = r10;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.recipientUserId = recipientUserId;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env3_5;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
ONE_TIME = binding.ONE_TIME;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.purchaseType = ONE_TIME;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.isGift = true;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_2;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding3[8];
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value7 = value6();
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
utc = value7.utc;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(utc, value7, []);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
subtract = value8.subtract;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding3[6];
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value9 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
DRAFT_ORDER_LOOKBACK_DAYS = value9.DRAFT_ORDER_LOOKBACK_DAYS;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value10 = Reflect.apply(subtract, value8, [DRAFT_ORDER_LOOKBACK_DAYS, 'days']);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
toISOString = value10.toISOString;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value11 = Reflect.apply(toISOString, value10, []);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.createdAfter = value11;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.subscriptionPlanId = planId;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value12 = Reflect.apply(getOrCreateOrder, value4, [object2]);
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
await value12;
|
||||
try {
|
||||
value13 = undefined;
|
||||
value14 = false;
|
||||
} catch (error) {
|
||||
binding = env3_8;
|
||||
error2 = binding.error;
|
||||
value15 = environment.__proto__.__proto__;
|
||||
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
||||
location: require}]);
|
||||
binding = env3_0;
|
||||
value = binding(env3_2[9]);
|
||||
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
||||
throw error;
|
||||
}
|
||||
return value14 ? value13 : value13;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 7024; source: modules/payments/utils/BillingStandaloneUtils.tsx; dependencies: [661, 1471, 491, 507, 2] */
|
||||
function _fun55663(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:6, offset: 0x013ad61f, size: 164 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = goToBillingStandalonePageWithHandoff;
|
||||
const closure2 = goToStandalonePremiumCheckout;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_3 = constantsModule.Endpoints;
|
||||
const env0_4 = constantsModule.Routes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/utils/BillingStandaloneUtils.tsx');
|
||||
exports.goToBillingStandalonePageWithHandoff = closure;
|
||||
exports.goToStandalonePremiumCheckout = closure2;
|
||||
exports.goToStandalonePremiumCheckoutWeb = function(a0, a1) {
|
||||
return goToStandalonePremiumCheckout(a0, _fun55669, a1);
|
||||
};
|
||||
}
|
||||
|
||||
function goToBillingStandalonePageWithHandoff(a0, a1, a2) { // fn#55664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:131, offset: 0x013ad6c3, size: 266 bytes, params: 4, frame: 21
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const URL = global.URL;
|
||||
const defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
|
||||
const makeUrl = defaultImport.makeUrl;
|
||||
const BILLING_LOGIN_HANDOFF = Routes.BILLING_LOGIN_HANDOFF;
|
||||
const uRL = new URL(Reflect.apply(makeUrl, defaultImport, [BILLING_LOGIN_HANDOFF, false]));
|
||||
const value4 = (require(491) /* metro dependency 491 */).v4();
|
||||
uRL.searchParams.append('handoff_key', value4);
|
||||
uRL.searchParams.append('redirect_to', a0);
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
const post = HTTP.post;
|
||||
const HANDOFF = Endpoints.HANDOFF;
|
||||
return Reflect.apply(post, HTTP, [{url: HANDOFF, body: {key: value4}, oldFormErrors: true,
|
||||
rejectWithError: false}]).then(_fun55665, _fun55666);
|
||||
}
|
||||
|
||||
function goToStandalonePremiumCheckout({planId, isGift, loadId, paymentMethodType, deepLinkType, usePresetOffer, flowType}, a1, a2) { // fn#55667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:457, offset: 0x013ad7fd, size: 94 bytes, params: 4, frame: 24
|
||||
return goToBillingStandalonePageWithHandoff(Routes.BILLING_STANDALONE_CHECKOUT_PAGE(planId, isGift, loadId,
|
||||
paymentMethodType, deepLinkType, usePresetOffer, flowType), a1, a2);
|
||||
}
|
||||
|
||||
function goToStandalonePremiumCheckoutWeb(a0, a1) { // fn#55668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:948, offset: 0x013ad85b, size: 31 bytes, params: 3, frame: 15
|
||||
return goToStandalonePremiumCheckout(a0, function(a0, a1) {
|
||||
a1.searchParams.append('handoff_token', a0.body.handoff_token);
|
||||
global.window.open(a1.href);
|
||||
}, a1);
|
||||
}
|
||||
|
||||
function _fun55665(a0) { // fn#55665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:433, offset: 0x013ad7cd, size: 24 bytes, params: 2, frame: 13
|
||||
return require(a0, env0_3);
|
||||
}
|
||||
|
||||
function _fun55666(a0) { // fn#55666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:445, offset: 0x013ad7e5, size: 24 bytes, params: 2, frame: 13
|
||||
return importDefault(a0, env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 4247; source: modules/payments/utils/MobileWebRedirectCheckoutUtils.tsx; dependencies: [4095, 661, 1216, 1581, 3975, 4123, 2] */
|
||||
function _fun35283(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4419:6, offset: 0x0106db4d, size: 225 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(4095) /* metro dependency 4095: PaymentConstants */).CustomCheckoutFlow;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.Routes;
|
||||
const env0_5 = constantsModule.LinkingTypes;
|
||||
const checkForCustomCheckoutFlow = function(a0, a1, a2) {
|
||||
if (a0.startsWith(Routes.BILLING_MANAGE_SUBSCRIPTION)) {
|
||||
return undefined;
|
||||
}
|
||||
return a1 === LinkingTypes.MOBILE_WEB_REDIRECT_CHECKOUT ? CustomCheckoutFlow.MOBILE_WEB_REDIRECT_CHECKOUT : a2 !== CustomCheckoutFlow.META_QUEST_WEB_REDIRECT_CHECKOUT ? undefined : CustomCheckoutFlow.META_QUEST_WEB_REDIRECT_CHECKOUT;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/utils/MobileWebRedirectCheckoutUtils.tsx');
|
||||
exports.MOBILE_WEB_REDIRECT_CHECKOUT_ERROR_TAG = 'mobile_web_redirect_checkout';
|
||||
exports.captureMobileWebRedirectCheckoutSentryError = captureMobileWebRedirectCheckoutSentryError;
|
||||
exports.isMobileWebRedirectCheckoutEnabled = isMobileWebRedirectCheckoutEnabled;
|
||||
exports.getCustomCheckoutFlowForAnalytics = function() {
|
||||
return require(dependencyMap[3]).isMetaQuest() ? CustomCheckoutFlow.META_QUEST_WEB_REDIRECT_CHECKOUT : CustomCheckoutFlow.MOBILE_WEB_REDIRECT_CHECKOUT;
|
||||
};
|
||||
exports.useGetCustomCheckoutFlow = function() {
|
||||
var value2 = require(dependencyMap[4]).useLocation();
|
||||
var property = value2.search;
|
||||
var pathname = value2.pathname;
|
||||
var value3 = require(dependencyMap[5]).parse(property);
|
||||
return checkForCustomCheckoutFlow(pathname, value3.deep_link_type, value3.flow_type);
|
||||
};
|
||||
exports.getCustomCheckoutFlow = function() {
|
||||
var pathname = global.window.location.pathname;
|
||||
var value2 = require(dependencyMap[5]).parse(global.window.location.search);
|
||||
return checkForCustomCheckoutFlow(pathname, value2.deep_link_type, value2.flow_type);
|
||||
};
|
||||
}
|
||||
|
||||
function captureMobileWebRedirectCheckoutSentryError(a0, a1, {tags, extra}) { // fn#35285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4419:616, offset: 0x0106dc8c, size: 96 bytes, params: 4, frame: 16
|
||||
const sentryUtilsNative = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
|
||||
const captureException = sentryUtilsNative.captureException;
|
||||
const object = {app_context: 'mobile_web_redirect_checkout', source: a1};
|
||||
copyDataProperties(object, tags, a1);
|
||||
Reflect.apply(captureException, sentryUtilsNative, [a0, {tags: object, extra: extra}]);
|
||||
}
|
||||
|
||||
function isMobileWebRedirectCheckoutEnabled() { // fn#35286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4419:748, offset: 0x0106dcec, size: 37 bytes, params: 1, frame: 11
|
||||
return (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user