87 lines
3.9 KiB
TypeScript
87 lines
3.9 KiB
TypeScript
/* Metro module 15753; source: modules/instant_invite/native/InstantInviteManager.native.tsx; dependencies: [7, 6, 15, 17, 18, 3857, 1244, 4860, 2] */
|
|
function _fun120967(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15961:6, offset: 0x0253b987, size: 230 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
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 */;
|
|
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
value = _fun120971(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/instant_invite/native/InstantInviteManager.native.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_120968() { // fn#120968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15961:148, offset: 0x0253ba6d, 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_120968_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun120971(a0) { // fn#120971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15961:351, offset: 0x0253bacf, size: 42 bytes, params: 2, frame: 14
|
|
const closure = InstantInviteManager;
|
|
env0_7(closure, a0);
|
|
return env0_3(closure);
|
|
}
|
|
|
|
function InstantInviteManager(a0) { // fn#120972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15961:363, offset: 0x0253baf9, size: 167 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_4;
|
|
binding(this, InstantInviteManager);
|
|
const items = [];
|
|
arraySpread(items, value, 0, items);
|
|
value = env1_6(InstantInviteManager);
|
|
binding = env1_5;
|
|
if (_isNativeReflectConstruct_120968()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items, env1_6(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {NATIVE_APP_INSTANT_INVITE_GDM_SHARE_FAILED: NATIVE_APP_INSTANT_INVITE_GDM_SHARE_FAILED};
|
|
value.shareInviteFailed = function() {
|
|
var defaultImport = importDefault(dependencyMap[5]);
|
|
var object = {key: 'GROUP_DM_ADD_ERROR'};
|
|
object.content = require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['N/9OFy']);
|
|
defaultImport.open(object);
|
|
};
|
|
return value;
|
|
}
|
|
|
|
function NATIVE_APP_INSTANT_INVITE_GDM_SHARE_FAILED() { // fn#120973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15961:663, owner: InstantInviteManager.NATIVE_APP_INSTANT_INVITE_GDM_SHARE_FAILED, offset: 0x0253bba0, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0.shareInviteFailed();
|
|
}
|
|
|