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,8 @@
/* Metro module 11693; source: modules/application_commands/ApplicationCommandValidationUtils.tsx; dependencies: [5066, 5068, 8051, 1244, 11694, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ApplicationCommandConstantsModule from './ApplicationCommandConstants.tsx'; /* Metro dependency 5066 */
function _fun89637(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11879:6, offset: 0x02017ecd, size: 163 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_89640 = function(a0, a1) {
@@ -44,147 +48,153 @@ function _fun89637(global, require, importDefault, importAll, module, exports, d
}
return value;
};
const closure = validateOptionContent;
const validateOptionContent2 = validateOptionContent;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).getValidationErrorText;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/ApplicationCommandValidationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/application_commands/ApplicationCommandValidationUtils.tsx');
exports.getValidationResults = getValidationResults;
exports.validateOptionContent = closure;
}
function _createForOfIteratorHelperLoose_89638(a0, a1) { // fn#89638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11879:134, offset: 0x02017f70, 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)) {
exports.validateOptionContent = validateOptionContent2;
function _createForOfIteratorHelperLoose_89638(a0, a1) { // fn#89638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11879:134, offset: 0x02017f70, 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 _fun89639;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_89640(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 _fun89639;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_89640(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_89640(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_89640(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun89639;
}
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 validateOptionContent({option, content, guildId, channelId, allowEmptyValues, commandOrigin}) { // fn#89641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11879:1044, offset: 0x020180e4, size: 501 bytes, params: 2, frame: 26
var r3;
var r1;
var moduleValue;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const r9 = commandOrigin !== undefined ? commandOrigin : (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).CommandOrigin.CHAT;
const value = '';
if (content != null) {
moduleValue = require(8051) /* metro dependency 8051: ApplicationCommandOptionUtils */;
r3 = moduleValue.getString({content: content}, 'content').trim();
} else {
r3 = value;
}
const required = option.required;
if (content == null) {
return required ? {success: false, error: intl.string(t.JZJQL2)} : {success: true};
}
if (value === r3) {
if (allowEmptyValues) {
r1 = {success: true};
} else {
object2 = {success: false};
if (required) {
object2.error = intl.string(t.JZJQL2);
r1 = object2;
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun89639;
}
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 _fun89639() { // fn#89639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11879:705, 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]};
}
}
function validateOptionContent({option, content, guildId, channelId, allowEmptyValues, commandOrigin}) { // fn#89641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11879:1044, offset: 0x020180e4, size: 501 bytes, params: 2, frame: 26
var r3;
var r1;
var moduleValue;
var object;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const r9 = commandOrigin !== undefined ? commandOrigin : (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).CommandOrigin.CHAT;
const value = '';
if (content != null) {
moduleValue = require(8051) /* metro dependency 8051: ApplicationCommandOptionUtils */;
r3 = moduleValue.getString({content: content}, 'content').trim();
} else {
r3 = value;
}
const required = option.required;
if (content == null) {
return required ? {success: false, error: intl.string(t.JZJQL2)} : {success: true};
}
if (value === r3) {
if (allowEmptyValues) {
r1 = {success: true};
} else {
object2.error = getValidationErrorText(option);
r1 = object2;
object = {success: false};
if (required) {
object.error = intl.string(t.JZJQL2);
r1 = object;
} else {
object.error = getValidationErrorText(option);
r1 = object;
}
}
return r1;
}
return r1;
}
const value5 = (importDefault(11694) /* metro dependency 11694: ApplicationCommandValidators */)[option.type](content.length > 1 ? {type: 'text',
text: r3} : content[0], option, channelId, guildId, r9);
if (!(value5.success || value5.error != null)) {
value5.error = getValidationErrorText(option);
const value5 = (importDefault(11694) /* metro dependency 11694: ApplicationCommandValidators */)[option.type](content.length > 1 ? {type: 'text',
text: r3} : content[0], option, channelId, guildId, r9);
if (!(value5.success || value5.error != null)) {
value5.error = getValidationErrorText(option);
}
return value5;
}
return value5;
}
function getValidationResults({options}, a1, a2, a3, a4) { // fn#89642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11879:1717, offset: 0x020182d9, size: 129 bytes, params: 6, frame: 22
var r2;
var value4;
var name;
var property;
var value5;
const object2 = {};
if (options != null) {
var value2 = _createForOfIteratorHelperLoose_89638(options);
var value3 = value2();
var done = value3.done;
if (!done) {
r2 = value3;
reducibleLoop2: while (true) {
value4 = r2.value;
name = value4.name;
property = a1[name];
name = value4.name;
object2[name] = validateOptionContent({option: value4, content: property, guildId: a2, channelId: a3,
allowEmptyValues: a4});
value5 = value2();
done = value5.done;
if (done) {
break reducibleLoop2;
function getValidationResults({options}, a1, a2, a3, a4) { // fn#89642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11879:1717, offset: 0x020182d9, size: 129 bytes, params: 6, frame: 22
var r2;
var value4;
var name;
var property;
var value5;
const object = {};
if (options != null) {
var value2 = _createForOfIteratorHelperLoose_89638(options);
var value3 = value2();
var done = value3.done;
if (!done) {
r2 = value3;
reducibleLoop2: while (true) {
value4 = r2.value;
name = value4.name;
property = a1[name];
name = value4.name;
object[name] = validateOptionContent({option: value4, content: property, guildId: a2, channelId: a3,
allowEmptyValues: a4});
value5 = value2();
done = value5.done;
if (done) {
break reducibleLoop2;
}
r2 = value5;
continue reducibleLoop2;
}
r2 = value5;
continue reducibleLoop2;
}
}
return object;
}
return object2;
}
global.__d(_fun89637, 11693, [5066, 5068, 8051, 1244, 11694,
2]) /* metro module 11693, dependencies: [5066, 5068, 8051, 1244, 11694, 2] */;