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,4 +1,13 @@
/* Metro module 9126; source: modules/guild_scheduled_events/useCanCreateAnEvent.tsx; dependencies: [57, 1935, 1867, 3784, 661, 566, 9077, 2] */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GuildChannelStore from '../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as GuildChannelStoreModule from '../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
function _fun71488(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9311:6, offset: 0x01d227ff, size: 225 bytes, params: 8, frame: 19
let env0_0 = require;
const _arrayLikeToArray_71491 = function(a0, a1) {
@@ -46,159 +55,163 @@ function _fun71488(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const env0_4 = (require(1935) /* metro dependency 1935: GuildChannelStore */).GUILD_VOCAL_CHANNELS_KEY;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_scheduled_events/useCanCreateAnEvent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_scheduled_events/useCanCreateAnEvent.tsx');
exports.default = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return require(dependencyMap[5]).useStateFromStores([GuildStore, GuildChannelStore, PermissionStore], _fun71493,
[a0, a1]);
};
}
function _createForOfIteratorHelperLoose_71489(a0, a1) { // fn#71489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9311:199, offset: 0x01d228e0, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_71489(a0, a1) { // fn#71489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9311:199, offset: 0x01d228e0, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun71490;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_71491(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun71490;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_71491(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_71491(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun71490;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function useCanCreateAnEvent(a0, a1) { // fn#71492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9311:1209, offset: 0x01d22a54, size: 102 bytes, params: 3, frame: 18
const env0_0 = a0;
const env0_1 = a1;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore, GuildChannelStore,
PermissionStore], _fun71493, [a0, a1]);
}
function _fun71493() { // fn#71493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9311:1287, offset: 0x01d22aba, size: 270 bytes, params: 1, frame: 22
var r1;
var _createForOfIteratorHelperLoose_71489Binding;
var getChannels;
var value4;
var value5;
var value6;
var done;
var value7;
var channel;
var type;
var moduleValue;
var attachChannelPermissions;
var value8;
var property;
var value9;
const guild = GuildStore.getGuild(env0_0);
let can = PermissionStore.can;
const ADMINISTRATOR = Permissions.ADMINISTRATOR;
if (!Reflect.apply(can, PermissionStore, [ADMINISTRATOR, guild])) {
can = PermissionStore.can;
reducibleJoin9: while (true) {
if (!Reflect.apply(can, PermissionStore, [Permissions.CREATE_EVENTS, guild])) {
_createForOfIteratorHelperLoose_71489Binding = _createForOfIteratorHelperLoose_71489;
getChannels = GuildChannelStore.getChannels;
value4 = Reflect.apply(getChannels, GuildChannelStore, [env0_0]);
value5 = _createForOfIteratorHelperLoose_71489Binding(value4[GUILD_VOCAL_CHANNELS_KEY]);
value6 = value5();
done = value6.done;
if (!done) {
r1 = value6;
reducibleLoop3: while (true) {
value7 = r1.value;
channel = value7.channel;
if (require != null) {
type = channel.type;
reducibleJoin5: while (true) {
if (type !== require) {
value9 = value5();
done = value9.done;
if (done) {
return false;
}
r1 = value9;
continue reducibleLoop3;
}
break reducibleJoin5;
}
}
moduleValue = require(9077) /* metro dependency 9077: useManageResourcePermissions */;
attachChannelPermissions = moduleValue.attachChannelPermissions;
value8 = Reflect.apply(attachChannelPermissions, moduleValue, [channel]);
property = env1_2(value8, 1)[0];
can = PermissionStore.can;
if (Reflect.apply(can, PermissionStore, [property, channel])) {
return true;
}
value9 = value5();
done = value9.done;
if (done) {
return false;
}
r1 = value9;
continue reducibleLoop3;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_71491(a0, value);
r6 = value;
} else {
r6 = value;
}
}
return false;
r5 = r6;
}
break reducibleJoin9;
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun71490;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun71490() { // fn#71490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9311:770, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
return true;
function useCanCreateAnEvent(a0, a1) { // fn#71492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9311:1209, offset: 0x01d22a54, size: 102 bytes, params: 3, frame: 18
const env0_0 = a0;
const env0_1 = a1;
return (FluxModule).useStateFromStores([GuildStore, GuildChannelStore,
PermissionStore], _fun71493, [a0, a1]);
function _fun71493() { // fn#71493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9311:1287, offset: 0x01d22aba, size: 270 bytes, params: 1, frame: 22
var r1;
var _createForOfIteratorHelperLoose_71489Binding;
var guildChannelStoreBinding;
var getChannels;
var value4;
var value5;
var value6;
var done;
var value7;
var channel;
var type;
var moduleValue;
var attachChannelPermissions;
var value8;
var property;
var value9;
const guild = GuildStore.getGuild(env0_0);
let can = PermissionStore.can;
const ADMINISTRATOR = Permissions.ADMINISTRATOR;
if (!Reflect.apply(can, permissionStoreBinding, [ADMINISTRATOR, guild])) {
can = PermissionStore.can;
reducibleJoin9: while (true) {
if (!Reflect.apply(can, permissionStoreBinding, [Permissions.CREATE_EVENTS, guild])) {
_createForOfIteratorHelperLoose_71489Binding = _createForOfIteratorHelperLoose_71489;
guildChannelStoreBinding = GuildChannelStore;
getChannels = guildChannelStoreBinding.getChannels;
value4 = Reflect.apply(getChannels, guildChannelStoreBinding, [env0_0]);
value5 = _createForOfIteratorHelperLoose_71489Binding(value4[GUILD_VOCAL_CHANNELS_KEY]);
value6 = value5();
done = value6.done;
if (!done) {
r1 = value6;
reducibleLoop3: while (true) {
value7 = r1.value;
channel = value7.channel;
if (require != null) {
type = channel.type;
reducibleJoin5: while (true) {
if (type !== require) {
value9 = value5();
done = value9.done;
if (done) {
return false;
}
r1 = value9;
continue reducibleLoop3;
}
break reducibleJoin5;
}
}
moduleValue = require(9077) /* metro dependency 9077: useManageResourcePermissions */;
attachChannelPermissions = moduleValue.attachChannelPermissions;
value8 = Reflect.apply(attachChannelPermissions, moduleValue, [channel]);
property = env1_2(value8, 1)[0];
permissionStoreBinding = PermissionStore;
can = permissionStoreBinding.can;
if (Reflect.apply(can, permissionStoreBinding, [property, channel])) {
return true;
}
value9 = value5();
done = value9.done;
if (done) {
return false;
}
r1 = value9;
continue reducibleLoop3;
}
}
return false;
}
break reducibleJoin9;
}
}
return true;
}
}
}
global.__d(_fun71488, 9126, [57, 1935, 1867, 3784, 661, 566, 9077,
2]) /* metro module 9126, dependencies: [57, 1935, 1867, 3784, 661, 566, 9077, 2] */;