92 lines
4.9 KiB
TypeScript
92 lines
4.9 KiB
TypeScript
/* Metro module 15753; source: modules/instant_invite/native/InstantInviteManager.native.tsx; dependencies: [7, 6, 15, 17, 18, 3857, 1244, 4860, 2] */
|
|
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import AutomaticLifecycleManager from '../../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun120971(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).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 InstantInviteManager2 = InstantInviteManager;
|
|
Inherits(InstantInviteManager2, a0);
|
|
return CreateClass(InstantInviteManager2);
|
|
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 items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_6(InstantInviteManager);
|
|
binding = env1_5;
|
|
if (_isNativeReflectConstruct_120968()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
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();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun120967, 15753, [7, 6, 15, 17, 18, 3857, 1244, 4860,
|
|
2]) /* metro module 15753, dependencies: [7, 6, 15, 17, 18, 3857, 1244, 4860, 2] */;
|