// Module ID: 10349 // Function ID: 10350 // Name: ExpressionPickerActionSheet // Dependencies: [19, 1387, 5623, 10350, 21, 4217, 4342, 1626, 589, 10351, 4445, 1493, 1628, 5492, 500, 9124, 5622, 10352, 2] // Exports: default // Module 10349 (ExpressionPickerActionSheet) import initialize from "initialize" /* 589 */; import useWindowDimensionsDefault from "useWindowDimensions" /* 1493 */; import KeyboardTypes from "KeyboardTypes" /* 1626 */; import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1628 */; import _mod4217 from "module_4217" /* 4217 */; import useKeyboardType from "useKeyboardType" /* 4342 */; import NAV_BAR_HEIGHT from "NAV_BAR_HEIGHT" /* 5492 */; import closure_3 from "noop" /* 19 */; import closure_4 from "ensureGuildLoaded" /* 1387 */; import { ACTION_SHEET_START_HEIGHT_RATIO as closure_5 } from "ACTION_SHEET_START_HEIGHT_RATIO" /* 5623 */; import { STICKER_FORMATS } from "PADDING_HORIZONTAL" /* 10350 */; 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(500).isIOS(); if (isIOSResult) { obj = { animatedSheetIndex: null, followSystemKeyboard: true }; obj[0] = sharedValue; isIOSResult = callback(tmp7(9124), 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(10352), obj2); items1[1] = callback(tmp2(5622).BottomSheet, obj1); obj[0] = items1; tmp15Result = closure_9(closure_8, obj); const tmp15 = closure_9; const tmp16 = closure_8; const tmp2Result = tmp2(500); } return tmp15Result; };