2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 10048
|
|
|
|
|
// Function ID: 10049
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: StickersSearchUtils
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [5940, 6942, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: searchAllStickers, searchSendableStickers, searchUnsendableStickers
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 10048 (StickersSearchUtils)
|
|
|
|
|
import AutocompleteUtilsDefault from "AutocompleteUtils" /* 5940 */;
|
|
|
|
|
import StickerSendability from "StickerSendability" /* 6942 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/stickers/StickersSearchUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const searchAllStickers = function searchAllStickers(arg0) {
|
|
|
|
|
const items = [arg0];
|
2026-09-10 05:38:07 +00:00
|
|
|
return AutocompleteUtilsDefault.queryStickers(items, true).map((sticker) => sticker.sticker);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const searchSendableStickers = function searchSendableStickers(arg0, arg1) {
|
|
|
|
|
const items = [arg0];
|
2026-09-10 05:38:07 +00:00
|
|
|
const items1 = [arg1, (arg0, arg1) => arg1 === StickerSendability.StickerSendability.SENDABLE];
|
|
|
|
|
return AutocompleteUtilsDefault.queryStickers(items, true, items1).map((sticker) => sticker.sticker);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const searchUnsendableStickers = function searchUnsendableStickers(arg0, arg1) {
|
|
|
|
|
const items = [arg0];
|
2026-09-10 05:38:07 +00:00
|
|
|
const items1 = [arg1, (arg0, arg1) => arg1 !== StickerSendability.StickerSendability.SENDABLE];
|
|
|
|
|
return AutocompleteUtilsDefault.queryStickers(items, true, items1).map((sticker) => sticker.sticker);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|