2026-10-12 06:59:38 +00:00
|
|
|
// Module ID: 9765
|
|
|
|
|
// Function ID: 9766
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: StickersSearchUtils
|
2026-10-12 06:59:38 +00:00
|
|
|
// Dependencies: [5970, 7047, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: searchAllStickers, searchSendableStickers, searchUnsendableStickers
|
|
|
|
|
|
2026-10-12 06:59:38 +00:00
|
|
|
// Module 9765 (StickersSearchUtils)
|
2026-10-10 08:08:14 +00:00
|
|
|
import AutocompleteUtilsDefault from "AutocompleteUtils" /* 5970 */;
|
2026-10-12 06:59:38 +00:00
|
|
|
import StickerSendability from "StickerSendability" /* 7047 */;
|
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-10-03 08:58:59 +00:00
|
|
|
const obj = AutocompleteUtilsDefault;
|
|
|
|
|
const queryStickersResult = obj.queryStickers(items, true);
|
|
|
|
|
return queryStickersResult.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];
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = AutocompleteUtilsDefault;
|
|
|
|
|
const queryStickersResult = obj.queryStickers(items, true, items1);
|
|
|
|
|
return queryStickersResult.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];
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = AutocompleteUtilsDefault;
|
|
|
|
|
const queryStickersResult = obj.queryStickers(items, true, items1);
|
|
|
|
|
return queryStickersResult.map((sticker) => sticker.sticker);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|