decord/alpha/source/modules/stickers/StickersSearchUtils.tsx
github-actions ad105f2d59 chore: update source for alpha 348.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
2026-09-21 06:29:48 +00:00

27 lines
1.3 KiB
TypeScript

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