This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,9 +1,12 @@
/* Metro module 12634; source: modules/midjourney_onboarding/MidjourneyOnboardingConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun96917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12824:6, offset: 0x0216bb29, size: 96 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/midjourney_onboarding/MidjourneyOnboardingConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/midjourney_onboarding/MidjourneyOnboardingConstants.tsx');
exports.MIDJOURNEY_GUILD_ID = '662267976984297473';
exports.MIDJOURNEY_BOT_ID = '936929561302675456';
}
global.__d(_fun96917, 12634, [2]) /* metro module 12634, dependencies: [2] */;
@@ -1,107 +1,115 @@
/* 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});
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 */;
let value = AutomaticLifecycleManager;
value = _fun124686(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/midjourney_onboarding/MidjourneyOnboardingManager.tsx');
(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 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;
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) {
}
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;
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;
}
binding = env2_1;
value8 = binding(env2_2[9]);
binding = env2_10;
value8(binding.CHANNEL(null, channel.id));
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] */;
@@ -1,16 +1,16 @@
/* Metro module 12633; source: modules/midjourney_onboarding/MidjourneyOnboardingUtils.tsx; dependencies: [1867, 3969, 12634, 566, 2] */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import SelectedGuildStore from '../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MidjourneyOnboardingConstantsModule from './MidjourneyOnboardingConstants.tsx'; /* Metro dependency 12634 */
function _fun96907(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:6, offset: 0x0216b7f2, size: 207 bytes, params: 8, frame: 20
let env0_0 = require;
const closure = isMidjourneyOnboardingFlow;
const isMidjourneyOnboardingFlow2 = isMidjourneyOnboardingFlow;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
const midjourneyOnboardingConstantsModule = require(12634) /* metro dependency 12634: MidjourneyOnboardingConstants */;
const env0_4 = midjourneyOnboardingConstantsModule.MIDJOURNEY_BOT_ID;
const env0_5 = midjourneyOnboardingConstantsModule.MIDJOURNEY_GUILD_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/midjourney_onboarding/MidjourneyOnboardingUtils.tsx');
exports.isMidjourneyOnboardingFlow = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/midjourney_onboarding/MidjourneyOnboardingUtils.tsx');
exports.isMidjourneyOnboardingFlow = isMidjourneyOnboardingFlow2;
exports.useIsMidjourneyOnboardingFlow = function() {
return require(dependencyMap[3]).useStateFromStores([GuildStore], _fun96910, []);
};
@@ -22,74 +22,81 @@ function _fun96907(global, require, importDefault, importAll, module, exports, d
var value2 = new Promise(_fun96913);
return value2 instanceof Object ? value2 : value;
};
}
function isMidjourneyOnboardingFlow() { // fn#96908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:172, offset: 0x0216b8c1, size: 148 bytes, params: 1, frame: 13
var r1;
var value4;
let value = a0;
const value2 = undefined;
const r2 = (value !== value2 ? value : {}).guildStore ?? GuildStore;
value = r2.getGuild(MIDJOURNEY_GUILD_ID);
let joinedAt = value == null ? value2 : value.joinedAt;
const Date = global.Date;
const value3 = joinedAt instanceof Date;
if (value3) {
value4 = global.Date.now();
joinedAt = value.joinedAt;
value = value4 - joinedAt.getTime();
value = value <= 3600000;
r1 = value;
} else {
r1 = value3;
function isMidjourneyOnboardingFlow() { // fn#96908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:172, offset: 0x0216b8c1, size: 148 bytes, params: 1, frame: 13
var r1;
var value4;
let value = a0;
const value2 = undefined;
const guildStore2 = (value !== value2 ? value : {}).guildStore ?? GuildStore;
value = guildStore2.getGuild(MIDJOURNEY_GUILD_ID);
let joinedAt = value == null ? value2 : value.joinedAt;
const Date = global.Date;
const value3 = joinedAt instanceof Date;
if (value3) {
value4 = global.Date.now();
joinedAt = value.joinedAt;
value = value4 - joinedAt.getTime();
value = value <= 3600000;
r1 = value;
} else {
r1 = value3;
}
value = guildStore2.getGuildCount();
value = value === 1;
return value && r1;
}
value = r2.getGuildCount();
value = value === 1;
return value && r1;
}
function useIsMidjourneyOnboardingFlow() { // fn#96909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:558, offset: 0x0216b955, size: 64 bytes, params: 1, frame: 15
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return isMidjourneyOnboardingFlow({guildStore: GuildStore});
}, []);
}
function useIsMidjourneyOnboardingFlow() { // fn#96909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:558, offset: 0x0216b955, size: 64 bytes, params: 1, frame: 15
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return isMidjourneyOnboardingFlow({guildStore: GuildStore});
}, []);
function _fun96910() { // fn#96910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:638, offset: 0x0216b995, size: 27 bytes, params: 1, frame: 11
return isMidjourneyOnboardingFlow({guildStore: GuildStore});
}
function isEligibleForMidjourneyRedirect(a0) { // fn#96911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:725, offset: 0x0216b9b0, size: 83 bytes, params: 2, frame: 11
return a0.isDM() && a0.rawRecipients.length === 1 && a0.rawRecipients[0].id === MIDJOURNEY_BOT_ID && isMidjourneyOnboardingFlow();
}
function hasRedirectedToGuild(a0) { // fn#96912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:894, offset: 0x0216ba03, size: 46 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun96913);
return promise instanceof Object ? promise : value;
}
function _fun96913(a0, a1) { // fn#96913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:947, offset: 0x0216ba31, size: 126 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
if (SelectedGuildStore.getGuildId() !== env0_0) {
var env0_2 = global.setTimeout(function() {
cleanup_96916();
require();
}, 3000);
SelectedGuildStore.addChangeListener(handleSelectedGuildUpdate);
} else {
a0();
}
}
function handleSelectedGuildUpdate() { // fn#96915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:1048, offset: 0x0216bac6, size: 53 bytes, params: 1, frame: 10
const value = environment.__proto__.__proto__;
if (SelectedGuildStore.getGuildId() === env1_0) {
cleanup_96916();
env0_0();
function isEligibleForMidjourneyRedirect(a0) { // fn#96911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:725, offset: 0x0216b9b0, size: 83 bytes, params: 2, frame: 11
return a0.isDM() && a0.rawRecipients.length === 1 && a0.rawRecipients[0].id === MIDJOURNEY_BOT_ID && isMidjourneyOnboardingFlow();
}
function hasRedirectedToGuild(a0) { // fn#96912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:894, offset: 0x0216ba03, size: 46 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun96913);
return promise instanceof Object ? promise : value;
function _fun96913(a0, a1) { // fn#96913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:947, offset: 0x0216ba31, size: 126 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
if (SelectedGuildStore.getGuildId() !== env0_0) {
var env0_2 = global.setTimeout(function() {
cleanup_96916();
require();
}, 3000);
SelectedGuildStore.addChangeListener(handleSelectedGuildUpdate);
} else {
a0();
}
function handleSelectedGuildUpdate() { // fn#96915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:1048, offset: 0x0216bac6, size: 53 bytes, params: 1, frame: 10
const value = environment.__proto__.__proto__;
if (SelectedGuildStore.getGuildId() === env1_0) {
cleanup_96916();
env0_0();
}
}
function cleanup_96916() { // fn#96916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:1098, offset: 0x0216bafb, size: 46 bytes, params: 1, frame: 12
const selectedGuildStoreBinding = SelectedGuildStore;
selectedGuildStoreBinding.removeChangeListener(handleSelectedGuildUpdate);
global.clearTimeout(env0_2);
}
}
}
}
function cleanup_96916() { // fn#96916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12823:1098, offset: 0x0216bafb, size: 46 bytes, params: 1, frame: 12
SelectedGuildStore.removeChangeListener(handleSelectedGuildUpdate);
global.clearTimeout(env0_2);
}
global.__d(_fun96907, 12633, [1867, 3969, 12634, 566,
2]) /* metro module 12633, dependencies: [1867, 3969, 12634, 566, 2] */;