78 lines
3.2 KiB
TypeScript
78 lines
3.2 KiB
TypeScript
/* Metro module 15733; source: modules/premium/native/IAPManager.android.tsx; dependencies: [7, 6, 15, 17, 18, 4860, 2] */
|
|
function _fun120798(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:6, offset: 0x02535e51, size: 218 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
|
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(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
value = _fun120802(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/IAPManager.android.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_120799() { // fn#120799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:148, offset: 0x02535f2b, size: 98 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_120799_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun120802(a0) { // fn#120802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:351, offset: 0x02535f8d, size: 42 bytes, params: 2, frame: 14
|
|
const closure = IAPManager;
|
|
env0_4(closure, a0);
|
|
return env0_0(closure);
|
|
}
|
|
|
|
function IAPManager(a0) { // fn#120803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:363, offset: 0x02535fb7, size: 160 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_1;
|
|
binding(this, IAPManager);
|
|
const items = [];
|
|
arraySpread(items, value, 0, items);
|
|
value = env1_3(IAPManager);
|
|
binding = env1_2;
|
|
if (_isNativeReflectConstruct_120799()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items, env1_3(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {POST_CONNECTION_OPEN: function() {
|
|
}, APP_STATE_UPDATE: function() {
|
|
}};
|
|
return value;
|
|
}
|
|
|