2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 9855
|
|
|
|
|
// Function ID: 9856
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: StickersSearchUtils
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [5754, 6755, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: searchAllStickers, searchSendableStickers, searchUnsendableStickers
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 9855 (StickersSearchUtils)
|
|
|
|
|
import AutocompleteUtilsDefault from "AutocompleteUtils" /* 5754 */;
|
|
|
|
|
import StickerSendability from "StickerSendability" /* 6755 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
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);
|
|
|
|
|
};
|