// Module ID: 10371 // Function ID: 10372 // Name: ExpressionPickerActionSheet // Dependencies: [19, 1386, 5631, 10372, 21, 4217, 4342, 1625, 586, 10373, 4445, 1492, 1627, 5500, 1234, 9138, 5630, 10374, 2] // Exports: default // Module 10371 (ExpressionPickerActionSheet) import initialize from "initialize" /* 586 */; import useWindowDimensionsDefault from "useWindowDimensions" /* 1492 */; import KeyboardTypes from "KeyboardTypes" /* 1625 */; import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1627 */; import _mod4217 from "module_4217" /* 4217 */; import useKeyboardType from "useKeyboardType" /* 4342 */; import NAV_BAR_HEIGHT from "NAV_BAR_HEIGHT" /* 5500 */; import closure_3 from "noop" /* 19 */; import closure_4 from "ensureGuildLoaded" /* 1386 */; import { ACTION_SHEET_START_HEIGHT_RATIO as closure_5 } from "ACTION_SHEET_START_HEIGHT_RATIO" /* 5631 */; import { STICKER_FORMATS } from "PADDING_HORIZONTAL" /* 10372 */; import jsxProd from "jsxProd" /* 21 */; require = arg1; ({ jsx: error, Fragment: closure_8, jsxs: c9 } = jsxProd); const result = require("set").fileFinishedImporting("modules/expression_picker/native/ExpressionPickerActionSheet.tsx"); export default function ExpressionPickerActionSheet(arg0) { ({ channelId: require, onPressEmoji: importDefault, onPressSticker: dependencyMap, onPressGIF: closure_3 } = arg0); ({ hideGifFavorites, onDismiss, visibleTabs, initialGifQuery } = arg0); let obj = _mod4217; const sharedValue = obj.useSharedValue(-1); 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; let tmp15Result = null; if (undefined !== stateFromStores) { let isIOSResult = tmp2(1234).isIOS(); if (isIOSResult) { obj = { animatedSheetIndex: null, followSystemKeyboard: true }; obj[0] = sharedValue; isIOSResult = callback(tmp7(9138), obj); } obj = { children: null }; const items1 = [isIOSResult, ]; 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); 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(); }; obj2[6] = function onPressGIF(arg0) { callback3(arg0); 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(); }; obj2[7] = function onPressSticker(arg0) { callback2(arg0); 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(); }; obj2[8] = visibleTabs; obj2[9] = initialGifQuery; obj2[10] = STICKER_FORMATS; obj2[11] = diff; obj1[5] = callback(tmp7(10374), obj2); items1[1] = callback(tmp2(5630).BottomSheet, obj1); obj[0] = items1; tmp15Result = closure_9(closure_8, obj); const tmp15 = closure_9; const tmp16 = closure_8; const tmp2Result = tmp2(1234); } return tmp15Result; };