Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
27 lines
1.3 KiB
TypeScript
27 lines
1.3 KiB
TypeScript
// Module ID: 9844
|
|
// Function ID: 9845
|
|
// Name: StickersSearchUtils
|
|
// Dependencies: [5749, 6750, 2]
|
|
// Exports: searchAllStickers, searchSendableStickers, searchUnsendableStickers
|
|
|
|
// Module 9844 (StickersSearchUtils)
|
|
import AutocompleteUtilsDefault from "AutocompleteUtils" /* 5749 */;
|
|
import StickerSendability from "StickerSendability" /* 6750 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/stickers/StickersSearchUtils.tsx");
|
|
|
|
export const searchAllStickers = function searchAllStickers(arg0) {
|
|
const items = [arg0];
|
|
return AutocompleteUtilsDefault.queryStickers(items, true).map((sticker) => sticker.sticker);
|
|
};
|
|
export const searchSendableStickers = function searchSendableStickers(arg0, arg1) {
|
|
const items = [arg0];
|
|
const items1 = [arg1, (arg0, arg1) => arg1 === StickerSendability.StickerSendability.SENDABLE];
|
|
return AutocompleteUtilsDefault.queryStickers(items, true, items1).map((sticker) => sticker.sticker);
|
|
};
|
|
export const searchUnsendableStickers = function searchUnsendableStickers(arg0, arg1) {
|
|
const items = [arg0];
|
|
const items1 = [arg1, (arg0, arg1) => arg1 !== StickerSendability.StickerSendability.SENDABLE];
|
|
return AutocompleteUtilsDefault.queryStickers(items, true, items1).map((sticker) => sticker.sticker);
|
|
};
|