Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user