Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,111 @@
/* Metro module 9680; source: modules/search/tokens/SearchTokenStreamerModeUtils.tsx; dependencies: [3996, 661, 9675, 2] */
function _fun76039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9866:6, offset: 0x01dc23ff, size: 214 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = function() {
var value = a0;
var value2 = undefined;
var iterator = (value !== value2 ? value : [StreamerModeStore])[Symbol.iterator]();
var item2 = iterator.next();
var item = item2.value;
item2 = item2.done ? undefined : iterator;
value = item2 === value2;
var r0 = value ? value2 : item;
if (!value) {
item2.return();
}
return !r0.hidePersonalInformation;
};
const closure2 = function() {
var value = a0;
var value2 = undefined;
var iterator = (value !== value2 ? value : [StreamerModeStore])[Symbol.iterator]();
var item2 = iterator.next();
var item = item2.value;
item2 = item2.done ? undefined : iterator;
value = item2 === value2;
var r0 = value ? value2 : item;
if (!value) {
item2.return();
}
return !r0.hidePersonalInformation;
};
const closure3 = isInChannelFilterSupported;
const closure4 = getValidOrderedFilterTokens;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const streamerModeStore = importDefault(3996) /* metro dependency 3996: StreamerModeStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_3 = constantsModule.SearchTokenTypes;
const env0_4 = constantsModule.SearchTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/tokens/SearchTokenStreamerModeUtils.tsx');
exports.isFromUserFilterSupported = closure;
exports.isMentionsUserFilterSupported = closure2;
exports.isInChannelFilterSupported = closure3;
exports.getValidOrderedFilterTokens = closure4;
exports.getValidFilterTokens = getValidFilterTokens;
}
function isInChannelFilterSupported(a0) { // fn#76042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9866:311, offset: 0x01dc251a, size: 140 bytes, params: 2, frame: 15
let value = a1;
const value2 = undefined;
let r2 = value !== value2 ? value : [StreamerModeStore];
const iterator = r2[Symbol.iterator]();
let item2 = iterator.next();
const item = item2.value;
item2 = item2.done ? undefined : iterator;
value = item2 === value2;
r2 = value ? value2 : item;
if (!value) {
item2.return();
}
const isGuildLikeSearchContext2 = (require(9675) /* metro dependency 9675: SearchUtils */).isGuildLikeSearchContext(a0);
return isGuildLikeSearchContext2 ? !!isGuildLikeSearchContext2 : a0.type === SearchTypes.DMS && !r2.hidePersonalInformation;
}
function getValidOrderedFilterTokens(a0, a1) { // fn#76043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9866:446, offset: 0x01dc25a6, size: 266 bytes, params: 3, frame: 16
const iterator = a1[Symbol.iterator]();
let item2 = iterator.next();
const item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r5 = value2 ? value : item;
if (!value2) {
item2.return();
}
const items2 = [];
if (isFromUserFilterSupported([r5])) {
items2.push(SearchTokenTypes.FILTER_FROM);
}
if (isInChannelFilterSupported(a0, [r5])) {
items2.push(SearchTokenTypes.FILTER_IN);
}
let push = items2.push;
const FILTER_HAS = SearchTokenTypes.FILTER_HAS;
Reflect.apply(push, items2, [FILTER_HAS]);
if (isMentionsUserFilterSupported([r5])) {
items2.push(SearchTokenTypes.FILTER_MENTIONS);
}
push = items2.push;
const FILTER_ON = SearchTokenTypes.FILTER_ON;
Reflect.apply(push, items2, [FILTER_ON]);
push = items2.push;
const FILTER_BEFORE = SearchTokenTypes.FILTER_BEFORE;
Reflect.apply(push, items2, [FILTER_BEFORE]);
push = items2.push;
const FILTER_AFTER = SearchTokenTypes.FILTER_AFTER;
Reflect.apply(push, items2, [FILTER_AFTER]);
push = items2.push;
const FILTER_AUTHOR_TYPE = SearchTokenTypes.FILTER_AUTHOR_TYPE;
Reflect.apply(push, items2, [FILTER_AUTHOR_TYPE]);
return items2;
}
function getValidFilterTokens(a0, a1) { // fn#76044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9866:1137, offset: 0x01dc26b0, size: 51 bytes, params: 3, frame: 13
const value = getValidOrderedFilterTokens(a0, a1);
const Set = global.Set;
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set();
return set instanceof Object ? set : value2;
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,49 @@
/* Metro module 9679; source: modules/search/tokens/SearchTokensUtils.tsx; dependencies: [4100, 2] */
function _fun76034(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9865:6, offset: 0x01dc2247, size: 152 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/tokens/SearchTokensUtils.tsx');
exports.ANSWER_IN_REGEX = RegExp('(?:\\s*#?((?:"(\\\\\\\\|\\\\"|[^\\\\"])*")|(?:[^\\s]+)))', 'i');
exports.GENERIC_REGEX = RegExp('(?:\\s*([^\\s]+))', '');
exports.makeRegexForOptionsWithNegation = makeRegexForOptionsWithNegation;
exports.validateForMapWithNegation = function(a0, a1, a2) {
var r2;
var r0;
var value = a2.getMatch(1);
var value2 = value.startsWith('-');
if (value2) {
value = value.slice(1);
r2 = value;
} else {
r2 = value;
}
var property = a1[r2];
r0 = property != null && property !== '';
if (r0) {
a2.setData(a0, value2 ? '-' + property : property);
r0 = true;
}
return r0;
};
}
function makeRegexForOptionsWithNegation(a0) { // fn#76035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9865:306, offset: 0x01dc22df, size: 130 bytes, params: 2, frame: 15
const items2 = [];
arraySpread(items2, a0, 0, undefined);
let value = items2.sort(function(a0, {length}) {
return length - a0.length;
});
const RegExp = global.RegExp;
value = value.map(_fun76037);
value = value.join('|');
value = '(?:\\s*(-?(?:' + value + ')))';
const value2 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
const regExp = new RegExp(value, 'i');
return regExp instanceof Object ? regExp : value2;
}
function _fun76037(a0) { // fn#76037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9865:437, offset: 0x01dc2361, size: 40 bytes, params: 2, frame: 11
const value = environment.__proto__;
return (importDefault(4100) /* metro dependency 4100: RegexUtils */).escape(a0);
}
@@ -0,0 +1,39 @@
/* Metro module 15028; source: modules/search/tokens/hooks/useValidFilterTokens.tsx; dependencies: [3996, 566, 9680, 1421, 2] */
function _fun113656(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15225:6, offset: 0x0240266b, size: 127 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const streamerModeStore = importDefault(3996) /* metro dependency 3996: StreamerModeStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/tokens/hooks/useValidFilterTokens.tsx');
exports.useValidOrderedFilterTokens = function(a0) {
var env0_0 = a0;
return require(dependencyMap[1]).useStateFromStoresArray([StreamerModeStore], _fun113658);
};
exports.useValidFilterTokens = function(a0) {
var env0_0 = a0;
return require(dependencyMap[1]).useStateFromStores([StreamerModeStore], _fun113660, [a0],
require(dependencyMap[3]).areSetsEqual);
};
}
function useValidOrderedFilterTokens(a0) { // fn#113657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15225:222, offset: 0x024026ea, size: 67 bytes, params: 2, frame: 14
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([StreamerModeStore], _fun113658);
}
function useValidFilterTokens(a0) { // fn#113659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15225:379, offset: 0x02402767, size: 99 bytes, params: 2, frame: 20
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([StreamerModeStore], _fun113660, [a0],
(require(1421) /* metro dependency 1421: SetUtils */).areSetsEqual);
}
function _fun113658() { // fn#113658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15225:306, offset: 0x0240272d, size: 58 bytes, params: 1, frame: 14
return (require(9680) /* metro dependency 9680: SearchTokenStreamerModeUtils */).getValidOrderedFilterTokens(env0_0,
[StreamerModeStore]);
}
function _fun113660() { // fn#113660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15225:451, offset: 0x024027ca, size: 58 bytes, params: 1, frame: 14
return (require(9680) /* metro dependency 9680: SearchTokenStreamerModeUtils */).getValidFilterTokens(env0_0,
[StreamerModeStore]);
}