116 lines
5.9 KiB
TypeScript
116 lines
5.9 KiB
TypeScript
/* Metro module 16141; source: modules/midjourney_onboarding/MidjourneyOnboardingManager.tsx; dependencies: [5, 6, 7, 15, 17, 18, 12634, 661, 12633, 6837, 4860, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
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 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as MidjourneyOnboardingConstantsModule from './MidjourneyOnboardingConstants.tsx'; /* Metro dependency 12634 */
|
|
|
|
function _fun124682(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16349:6, offset: 0x025c09e8, size: 290 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun124686(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/midjourney_onboarding/MidjourneyOnboardingManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_124683() { // fn#124683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16349:205, offset: 0x025c0b0a, 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_124683_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun124686(a0) { // fn#124686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16349:404, offset: 0x025c0b6c, size: 92 bytes, params: 2, frame: 16
|
|
const MidjourneyOnboardingManager2 = MidjourneyOnboardingManager;
|
|
Inherits(MidjourneyOnboardingManager2, a0);
|
|
const env0_0 = Module00005(_fun124689);
|
|
return CreateClass(MidjourneyOnboardingManager2, [{key: 'handleChannelCreate', value: value_124690}]);
|
|
function MidjourneyOnboardingManager(a0) { // fn#124687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16349:416, offset: 0x025c0bc8, size: 145 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_4;
|
|
binding(this, MidjourneyOnboardingManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_7(MidjourneyOnboardingManager);
|
|
binding = env1_6;
|
|
if (_isNativeReflectConstruct_124683()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_7(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {CHANNEL_CREATE: value.handleChannelCreate};
|
|
return value;
|
|
}
|
|
|
|
async function _fun124689({channel}) { // fn#124689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16349:844, offset: 0x025c0c6d, size: 172 bytes, params: 2, frame: 18
|
|
var value5;
|
|
var value8;
|
|
if (true) {
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
var value4 = binding(env2_2[8]);
|
|
if (value4.isEligibleForMidjourneyRedirect(channel)) {
|
|
binding = env2_0;
|
|
value5 = binding(env2_2[8]);
|
|
await value5.hasRedirectedToGuild(env2_9);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_1;
|
|
value8 = binding(env2_2[9]);
|
|
binding = env2_10;
|
|
value8(binding.CHANNEL(null, channel.id));
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_124690() { // fn#124690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16349:984, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun124682, 16141, [5, 6, 7, 15, 17, 18, 12634, 661, 12633, 6837, 4860,
|
|
2]) /* metro module 16141, dependencies: [5, 6, 7, 15, 17, 18, 12634, 661, 12633, 6837, 4860, 2] */;
|