decord/stable/source/modules/stickers/StickersSearchUtils.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

27 lines
1.3 KiB
TypeScript

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