2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 10076
|
|
|
|
|
// Function ID: 10077
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: ExpressionPickerActionSheet
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [19, 1391, 5504, 10077, 21, 4120, 4244, 1627, 589, 10078, 4347, 1494, 1629, 5373, 500, 8820, 5503, 10079, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 10076 (ExpressionPickerActionSheet)
|
2026-08-24 06:08:38 +00:00
|
|
|
import initialize from "initialize" /* 589 */;
|
|
|
|
|
import useWindowDimensionsDefault from "useWindowDimensions" /* 1494 */;
|
|
|
|
|
import KeyboardTypes from "KeyboardTypes" /* 1627 */;
|
|
|
|
|
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1629 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import _mod4120 from "module_4120" /* 4120 */;
|
|
|
|
|
import useKeyboardType from "useKeyboardType" /* 4244 */;
|
|
|
|
|
import NAV_BAR_HEIGHT from "NAV_BAR_HEIGHT" /* 5373 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_3 from "noop" /* 19 */;
|
|
|
|
|
import closure_4 from "ensureGuildLoaded" /* 1391 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import { ACTION_SHEET_START_HEIGHT_RATIO as closure_5 } from "ACTION_SHEET_START_HEIGHT_RATIO" /* 5504 */;
|
|
|
|
|
import { STICKER_FORMATS } from "PADDING_HORIZONTAL" /* 10077 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import jsxProd from "jsxProd" /* 21 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
|
|
|
|
({ jsx: error, Fragment: closure_8, jsxs: c9 } = jsxProd);
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/expression_picker/native/ExpressionPickerActionSheet.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function ExpressionPickerActionSheet(arg0) {
|
2026-08-24 06:08:38 +00:00
|
|
|
({ channelId: require, onPressEmoji: importDefault, onPressSticker: dependencyMap, onPressGIF: closure_3 } = arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
({ hideGifFavorites, onDismiss, visibleTabs, initialGifQuery } = arg0);
|
2026-08-25 06:04:03 +00:00
|
|
|
let obj = _mod4120;
|
2026-07-20 16:05:17 +00:00
|
|
|
const sharedValue = obj.useSharedValue(-1);
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = useKeyboardType;
|
|
|
|
|
const keyboardContextForType = obj1.useKeyboardContextForType(KeyboardTypes.KeyboardTypes.EXPRESSION);
|
|
|
|
|
let obj2 = initialize;
|
|
|
|
|
const items = [closure_4];
|
|
|
|
|
const stateFromStores = obj2.useStateFromStores(items, () => closure_1_4.getChannel(closure_0));
|
|
|
|
|
const height = useWindowDimensionsDefault({ ignoreKeyboard: true }).height;
|
|
|
|
|
const diff = height - NAV_BAR_HEIGHT.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-07-29 08:29:29 +00:00
|
|
|
let isIOSResult = tmp2(500).isIOS();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isIOSResult) {
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { animatedSheetIndex: null, followSystemKeyboard: true };
|
|
|
|
|
obj[0] = sharedValue;
|
2026-08-25 06:04:03 +00:00
|
|
|
isIOSResult = callback(tmp7(8820), obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { children: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [isIOSResult, ];
|
2026-07-29 08:29:29 +00:00
|
|
|
obj1 = { scrollable: true, animatedIndex: null, startHeight: null, containerHeight: null, onDismiss: null, children: null };
|
|
|
|
|
obj1[1] = sharedValue;
|
|
|
|
|
obj1[2] = height * closure_5;
|
|
|
|
|
obj1[3] = diff;
|
|
|
|
|
obj1[4] = onDismiss;
|
|
|
|
|
obj2 = { bottomSheetRef: null, bottomSheetIndex: null, channel: null, expressionType: null, hideGifFavorites: null, onPressEmoji: null, onPressGIF: null, onPressSticker: null, visibleTabs: null, initialGifQuery: null, stickerFormats: null, height: null };
|
|
|
|
|
obj2[0] = ref;
|
|
|
|
|
obj2[1] = sharedValue;
|
|
|
|
|
obj2[2] = stateFromStores;
|
|
|
|
|
obj2[3] = keyboardContextForType;
|
|
|
|
|
obj2[4] = hideGifFavorites;
|
|
|
|
|
obj2[5] = function onPressEmoji(arg0) {
|
|
|
|
|
callback(arg0);
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_1_0(closure_1_2[9]).dismissKeyboard();
|
|
|
|
|
const obj = closure_1_0(closure_1_2[9]);
|
|
|
|
|
closure_1_1(closure_1_2[10]).hideActionSheet();
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
obj2[6] = function onPressGIF(arg0) {
|
|
|
|
|
callback3(arg0);
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_1_0(closure_1_2[9]).dismissKeyboard();
|
|
|
|
|
const obj = closure_1_0(closure_1_2[9]);
|
|
|
|
|
closure_1_1(closure_1_2[10]).hideActionSheet();
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
obj2[7] = function onPressSticker(arg0) {
|
|
|
|
|
callback2(arg0);
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_1_0(closure_1_2[9]).dismissKeyboard();
|
|
|
|
|
const obj = closure_1_0(closure_1_2[9]);
|
|
|
|
|
closure_1_1(closure_1_2[10]).hideActionSheet();
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-07-29 08:29:29 +00:00
|
|
|
obj2[8] = visibleTabs;
|
|
|
|
|
obj2[9] = initialGifQuery;
|
|
|
|
|
obj2[10] = STICKER_FORMATS;
|
|
|
|
|
obj2[11] = diff;
|
2026-08-25 06:04:03 +00:00
|
|
|
obj1[5] = callback(tmp7(10079), obj2);
|
|
|
|
|
items1[1] = callback(tmp2(5503).BottomSheet, obj1);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[0] = items1;
|
|
|
|
|
tmp15Result = closure_9(closure_8, obj);
|
|
|
|
|
const tmp15 = closure_9;
|
|
|
|
|
const tmp16 = closure_8;
|
|
|
|
|
const tmp2Result = tmp2(500);
|
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
|
|
|
};
|