108 lines
4.6 KiB
TypeScript
108 lines
4.6 KiB
TypeScript
/* Metro module 16141; source: modules/midjourney_onboarding/MidjourneyOnboardingManager.tsx; dependencies: [5, 6, 7, 15, 17, 18, 12634, 661, 12633, 6837, 4860, 2] */
|
|
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});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
|
const env0_9 = (require(12634) /* metro dependency 12634: MidjourneyOnboardingConstants */).MIDJOURNEY_GUILD_ID;
|
|
const env0_10 = (require(661) /* metro dependency 661: Constants */).Routes;
|
|
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
value = _fun124686(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).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 closure = MidjourneyOnboardingManager;
|
|
env0_8(closure, a0);
|
|
const binding = env0_5;
|
|
const env0_0 = env0_3(_fun124689);
|
|
return binding(closure, [{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 items = [];
|
|
arraySpread(items, value, 0, items);
|
|
value = env1_7(MidjourneyOnboardingManager);
|
|
binding = env1_6;
|
|
if (_isNativeReflectConstruct_124683()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items, env1_7(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items);
|
|
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));
|
|
}
|
|
}
|
|
}
|
|
|