2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 9635
|
|
|
|
|
// Function ID: 74949
|
|
|
|
|
// Dependencies: [57, 31, 27, 1849, 5035, 3806, 653, 33, 4130, 689, 675, 9636, 9638, 566, 5462, 5482, 9608, 682, 9642, 5732, 4466, 9643, 8028, 5489, 9655, 5772, 1212, 9665, 9666, 9671, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 9635
|
2026-07-23 10:11:24 +00:00
|
|
|
import _slicedToArray from "_slicedToArray";
|
|
|
|
|
import importAllResult from "result";
|
|
|
|
|
import get_ActivityIndicator from "EmptyStateSticker";
|
|
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import closure_8 from "_isNativeReflectConstruct";
|
|
|
|
|
import ME from "ME";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_10;
|
|
|
|
|
let closure_11;
|
|
|
|
|
let closure_12;
|
|
|
|
|
let closure_13;
|
|
|
|
|
let closure_14;
|
|
|
|
|
let closure_15;
|
|
|
|
|
let closure_5;
|
|
|
|
|
let closure_6;
|
|
|
|
|
let closure_9;
|
|
|
|
|
const require = arg1;
|
|
|
|
|
({ View: closure_5, ActivityIndicator: closure_6 } = get_ActivityIndicator);
|
|
|
|
|
({ AnalyticEvents: closure_9, AnalyticsPages: closure_10, AnalyticsSections: closure_11, UpsellTypes: closure_12, ChatInputComponentViewedTypes: closure_13 } = ME);
|
|
|
|
|
({ jsx: closure_14, jsxs: closure_15 } = jsxProd);
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = { container: { flex: 1 } };
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { paddingVertical: require("_createForOfIteratorHelperLoose").space.PX_8 };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.header = obj;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.loadingIndicator = { alignItems: "center", justifyContent: "center", flex: 1 };
|
|
|
|
|
_createForOfIteratorHelperLoose = { marginTop: require("STICKER_PICKER_TAB_PANEL_ID").STICKER_SEARCH_HEADER_HEIGHT, alignItems: "center", justifyContent: "center", flex: 1 };
|
|
|
|
|
obj.emptyState = _createForOfIteratorHelperLoose;
|
|
|
|
|
let closure_16 = _createForOfIteratorHelperLoose.createStyles(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
const memoResult = importAllResult.memo(function StickerPicker(channel) {
|
|
|
|
|
let bottomSheetIndex;
|
|
|
|
|
let bottomSheetRef;
|
|
|
|
|
let inPortalKeyboard;
|
|
|
|
|
let paddingTop;
|
|
|
|
|
let safeAreaBottomKeyboardAware;
|
|
|
|
|
let safeAreaStyle;
|
|
|
|
|
let stickerFormats;
|
|
|
|
|
channel = channel.channel;
|
|
|
|
|
const onPressSticker = channel.onPressSticker;
|
|
|
|
|
({ bottomSheetRef, bottomSheetIndex, paddingTop, stickerFormats, inPortalKeyboard } = channel);
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp = callback2();
|
2026-07-24 07:16:23 +00:00
|
|
|
let obj = channel(9636);
|
2026-07-20 16:05:17 +00:00
|
|
|
const fetchStickerPacks = obj.useFetchStickerPacks();
|
2026-07-24 07:16:23 +00:00
|
|
|
let obj1 = channel(9638);
|
2026-07-20 16:05:17 +00:00
|
|
|
const stickerCategories = obj1.useStickerCategories(channel);
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj2 = channel(566);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [closure_8];
|
2026-07-23 10:11:24 +00:00
|
|
|
const stateFromStores = obj2.useStateFromStores(items, () => outer1_8.hasLoadedStickerPacks);
|
|
|
|
|
const tmp4 = analyticsLocations(importAllResult.useState(0), 2);
|
2026-07-20 16:05:17 +00:00
|
|
|
const dependencyMap = tmp5;
|
2026-07-24 07:16:23 +00:00
|
|
|
analyticsLocations = onPressSticker(5462)(onPressSticker(5482).STICKER_PICKER).analyticsLocations;
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp7 = null;
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp8 = analyticsLocations(importAllResult.useState(null), 2);
|
2026-07-24 07:16:23 +00:00
|
|
|
const tmp6 = onPressSticker(5462);
|
|
|
|
|
({ safeAreaStyle, safeAreaBottomKeyboardAware } = onPressSticker(9608)({ hasCategories: true }));
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [, ];
|
|
|
|
|
({ id: arr3[0], guild_id: arr3[1] } = channel);
|
2026-07-23 10:11:24 +00:00
|
|
|
const callback = importAllResult.useCallback((arg0) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
if ("" === arg0) {
|
|
|
|
|
channel(channel[17]).batchUpdates(() => {
|
2026-07-23 10:11:24 +00:00
|
|
|
outer1_2(0);
|
|
|
|
|
outer1_4(null);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
const obj2 = channel(channel[17]);
|
|
|
|
|
} else {
|
|
|
|
|
callback(channel(tmp5[18]).searchAllStickers(arg0));
|
|
|
|
|
const obj = channel(tmp5[18]);
|
|
|
|
|
}
|
|
|
|
|
}, []);
|
2026-07-23 10:11:24 +00:00
|
|
|
const effect = importAllResult.useEffect(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = onPressSticker(tmp5[10]);
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { type: outer1_13.STICKER, channel_id: channel.id, guild_id: channel.guild_id };
|
|
|
|
|
obj.track(outer1_9.CHAT_INPUT_COMPONENT_VIEWED, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
|
|
|
|
const items2 = [channel, onPressSticker, analyticsLocations];
|
|
|
|
|
const items3 = [channel];
|
2026-07-23 10:11:24 +00:00
|
|
|
const callback1 = importAllResult.useCallback((pack_id) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = channel(tmp5[19]);
|
2026-07-23 10:11:24 +00:00
|
|
|
const stickerSendability = obj.getStickerSendability(pack_id, outer1_7.getCurrentUser(), channel);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (stickerSendability === channel(tmp5[19]).StickerSendability.SENDABLE) {
|
|
|
|
|
onPressSticker(pack_id);
|
|
|
|
|
} else if (stickerSendability === channel(tmp5[19]).StickerSendability.SENDABLE_WITH_PREMIUM) {
|
|
|
|
|
if (obj8.isStandardSticker(pack_id)) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const stickerPack = outer1_8.getStickerPack(pack_id.pack_id);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != stickerPack) {
|
|
|
|
|
obj = {};
|
|
|
|
|
obj = {};
|
|
|
|
|
if (null != channel.guild_id) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let DM_CHANNEL2 = outer1_10.GUILD_CHANNEL;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
DM_CHANNEL2 = outer1_10.DM_CHANNEL;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
obj.page = DM_CHANNEL2;
|
|
|
|
|
obj.analyticsLocation = obj;
|
|
|
|
|
obj.analyticsPopoutType = channel(tmp5[21]).AnalyticsPopoutType.STICKER_PACK_DETAIL;
|
|
|
|
|
obj.stickerPack = stickerPack;
|
|
|
|
|
onPressSticker(tmp5[21])(obj);
|
|
|
|
|
const tmp19 = onPressSticker(tmp5[21]);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
let obj1 = channel(tmp5[20]);
|
|
|
|
|
if (obj1.isGuildSticker(pack_id)) {
|
|
|
|
|
let obj2 = onPressSticker(tmp5[22]);
|
2026-07-23 10:11:24 +00:00
|
|
|
obj1 = { initialUpsellKey: outer1_12.GLOBAL_STICKER };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj2 = {};
|
|
|
|
|
if (null != channel.guild_id) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let DM_CHANNEL = outer1_10.GUILD_CHANNEL;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
DM_CHANNEL = outer1_10.DM_CHANNEL;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
obj2.page = DM_CHANNEL;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj2.section = outer1_11.STICKER_PICKER_UPSELL;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj1.analyticsLocation = obj2;
|
|
|
|
|
obj1.analyticsLocations = analyticsLocations;
|
|
|
|
|
const result = obj2.handleShowUpsellAlert(obj1);
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
obj8 = channel(tmp5[20]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}, items2);
|
2026-07-23 10:11:24 +00:00
|
|
|
callback2 = importAllResult.useCallback(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = onPressSticker(tmp5[10]);
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { type: outer1_13.STICKER_SEARCH, channel_id: channel.id, guild_id: channel.guild_id };
|
|
|
|
|
obj.track(outer1_9.CHAT_INPUT_COMPONENT_VIEWED, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items3);
|
2026-07-24 07:16:23 +00:00
|
|
|
let obj3 = onPressSticker(5489);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items4 = [channel];
|
2026-07-23 10:11:24 +00:00
|
|
|
const callback3 = importAllResult.useCallback((renderableSticker) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = channel(tmp5[24]);
|
|
|
|
|
obj = { renderableSticker, channel };
|
|
|
|
|
const result = obj.showStickerDetailActionSheet(obj);
|
|
|
|
|
}, items4);
|
|
|
|
|
obj = { value: analyticsLocations };
|
|
|
|
|
obj = { style: tmp.container };
|
|
|
|
|
if (0 !== stickerCategories.length) {
|
|
|
|
|
obj1 = { style: tmp.header };
|
|
|
|
|
obj2 = { size: "md" };
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = channel(1212).intl;
|
|
|
|
|
obj2.placeholder = intl.string(channel(1212).t.dt5h1C);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj2.onChange = callback;
|
|
|
|
|
obj2.onFocus = callback2;
|
|
|
|
|
obj2.isRound = true;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj1.children = callback(channel(5772).SearchField, obj2);
|
|
|
|
|
tmp7 = callback(closure_5, obj1);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
const items5 = [tmp7, , ];
|
|
|
|
|
if (stateFromStores) {
|
|
|
|
|
if (0 === stickerCategories.length) {
|
|
|
|
|
obj3 = { style: tmp.emptyState };
|
2026-07-24 07:16:23 +00:00
|
|
|
tmp = callback(onPressSticker(9665), {});
|
2026-07-20 16:05:17 +00:00
|
|
|
obj3.children = tmp;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp20Result = callback(closure_5, obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
const obj4 = { bottomSheetRef, bottomSheetIndex, setCategoryIndex: tmp5, onPressSticker: callback1 };
|
|
|
|
|
let tmp24;
|
|
|
|
|
if (obj3.useExperiment({ location: "StickerPicker" }, { autoTrackExposure: false }).tidaWebformEnabled) {
|
|
|
|
|
tmp24 = callback3;
|
|
|
|
|
}
|
|
|
|
|
obj4.onLongPressStickerDetail = tmp24;
|
|
|
|
|
obj4.insetBottom = safeAreaBottomKeyboardAware;
|
|
|
|
|
obj4.insetTop = paddingTop;
|
|
|
|
|
obj4.channel = channel;
|
|
|
|
|
obj4.stickerFormats = stickerFormats;
|
|
|
|
|
obj4.searchResults = tmp8[0];
|
|
|
|
|
obj4.inPortalKeyboard = inPortalKeyboard;
|
2026-07-24 07:16:23 +00:00
|
|
|
tmp20Result = callback(onPressSticker(9666), obj4);
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp20 = callback;
|
2026-07-24 07:16:23 +00:00
|
|
|
const tmp23 = onPressSticker(9666);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj5 = { animating: true, size: "large", style: tmp.loadingIndicator };
|
|
|
|
|
items5[1] = callback(closure_6, obj5);
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj6 = { categories: stickerCategories, categoryIndex: tmp4[0], style: safeAreaStyle };
|
2026-07-24 07:16:23 +00:00
|
|
|
items5[2] = callback(onPressSticker(9671), obj6);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items5;
|
|
|
|
|
obj.children = closure_15(closure_5, obj);
|
2026-07-24 07:16:23 +00:00
|
|
|
return callback(channel(5462).AnalyticsLocationProvider, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
});
|
2026-07-23 10:11:24 +00:00
|
|
|
let result = require("get ActivityIndicator").fileFinishedImporting("modules/stickers/native/StickerPicker.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default memoResult;
|