2026-09-14 20:04:03 +00:00
|
|
|
// Module ID: 10401
|
|
|
|
|
// Function ID: 10402
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: ExpressionPickerActionSheet
|
2026-09-14 20:04:03 +00:00
|
|
|
// Dependencies: [19, 1957, 7254, 10402, 21, 4373, 4504, 1609, 504, 10403, 4603, 1477, 1611, 5763, 1363, 10404, 7253, 10405, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-14 20:04:03 +00:00
|
|
|
// Module 10401 (ExpressionPickerActionSheet)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initialize from "initialize" /* 504 */;
|
|
|
|
|
import useWindowDimensionsDefault from "useWindowDimensions" /* 1477 */;
|
|
|
|
|
import KeyboardTypes from "KeyboardTypes" /* 1609 */;
|
|
|
|
|
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1611 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import ReanimatedRexport from "ReanimatedRexport" /* 4373 */;
|
|
|
|
|
import useKeyboardType from "useKeyboardType" /* 4504 */;
|
|
|
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4603 */;
|
|
|
|
|
import NavigatorConstants from "NavigatorConstants" /* 5763 */;
|
2026-09-14 20:04:03 +00:00
|
|
|
import KeyboardUtils from "KeyboardUtils" /* 10403 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
2026-09-12 13:45:10 +00:00
|
|
|
let closure_5 = fn(7254).ACTION_SHEET_START_HEIGHT_RATIO;
|
2026-09-14 20:04:03 +00:00
|
|
|
const STICKER_FORMATS = fn(10402).STICKER_FORMATS;
|
2026-09-10 05:38:07 +00:00
|
|
|
const jsxProd = fn(21);
|
|
|
|
|
({ jsx: closure_7, Fragment: closure_8, jsxs: closure_9 } = jsxProd);
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/expression_picker/native/ExpressionPickerActionSheet.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function ExpressionPickerActionSheet(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
({ channelId: require, onPressEmoji: importDefault, onPressSticker: dependencyMap, onPressGIF: noop } = arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
({ hideGifFavorites, onDismiss, visibleTabs, initialGifQuery } = arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
const ref = noop.useRef(null);
|
|
|
|
|
const sharedValue = ReanimatedRexport.useSharedValue(-1);
|
|
|
|
|
const keyboardContextForType = useKeyboardType.useKeyboardContextForType(KeyboardTypes.KeyboardTypes.EXPRESSION);
|
|
|
|
|
const items = [ChannelStore];
|
|
|
|
|
const stateFromStores = initialize.useStateFromStores(items, () => ChannelStore.getChannel(require));
|
2026-08-24 06:08:38 +00:00
|
|
|
const height = useWindowDimensionsDefault({ ignoreKeyboard: true }).height;
|
2026-09-10 05:38:07 +00:00
|
|
|
const diff = height - NavigatorConstants.NAV_BAR_HEIGHT_MULTILINE - useSafeAreaInsetsDefault().top;
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp15Result = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (undefined !== stateFromStores) {
|
2026-09-14 20:04:03 +00:00
|
|
|
let isIOSResult = tmp2(1363).isIOS();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isIOSResult) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj4 = { animatedSheetIndex: sharedValue, followSystemKeyboard: true };
|
2026-09-14 20:04:03 +00:00
|
|
|
isIOSResult = closure_7(tmp7(10404), obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj5 = { children: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [isIOSResult, ];
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj6 = { scrollable: true, animatedIndex: sharedValue, startHeight: height * closure_5, containerHeight: diff, onDismiss, children: null };
|
|
|
|
|
const obj7 = {
|
|
|
|
|
bottomSheetRef: ref,
|
|
|
|
|
bottomSheetIndex: sharedValue,
|
|
|
|
|
channel: stateFromStores,
|
|
|
|
|
expressionType: keyboardContextForType,
|
|
|
|
|
hideGifFavorites,
|
|
|
|
|
onPressEmoji(arg0) {
|
|
|
|
|
closure_1_1(arg0);
|
|
|
|
|
KeyboardUtils.dismissKeyboard();
|
|
|
|
|
ActionSheetActionCreatorsDefault.hideActionSheet();
|
|
|
|
|
},
|
|
|
|
|
onPressGIF(arg0) {
|
|
|
|
|
noop(arg0);
|
|
|
|
|
KeyboardUtils.dismissKeyboard();
|
|
|
|
|
ActionSheetActionCreatorsDefault.hideActionSheet();
|
|
|
|
|
},
|
|
|
|
|
onPressSticker(arg0) {
|
|
|
|
|
dependencyMap(arg0);
|
|
|
|
|
KeyboardUtils.dismissKeyboard();
|
|
|
|
|
ActionSheetActionCreatorsDefault.hideActionSheet();
|
|
|
|
|
},
|
|
|
|
|
visibleTabs,
|
|
|
|
|
initialGifQuery,
|
|
|
|
|
stickerFormats: STICKER_FORMATS,
|
|
|
|
|
height: diff
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
2026-09-14 20:04:03 +00:00
|
|
|
obj6.children = closure_7(tmp7(10405), obj7);
|
2026-09-12 13:45:10 +00:00
|
|
|
items1[1] = closure_7(tmp2(7253).BottomSheet, obj6);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj5.children = items1;
|
|
|
|
|
tmp15Result = closure_9(closure_8, obj5);
|
2026-09-14 20:04:03 +00:00
|
|
|
const tmp2Result = tmp2(1363);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp15Result;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|