Initial commit
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user