decord/alpha/source/modules/stickers/StickersSearchUtils.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

27 lines
1.3 KiB
TypeScript

// Module ID: 10740
// Function ID: 10741
// Name: StickersSearchUtils
// Dependencies: [5747, 7667, 2]
// Exports: searchAllStickers, searchSendableStickers, searchUnsendableStickers
// Module 10740 (StickersSearchUtils)
import AutocompleteUtilsDefault from "AutocompleteUtils" /* 5747 */;
import StickerSendability from "StickerSendability" /* 7667 */;
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);
};