Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
81 lines
3.5 KiB
TypeScript
81 lines
3.5 KiB
TypeScript
// Module ID: 10342
|
|
// Function ID: 10343
|
|
// Name: ExpressionPickerActionSheet
|
|
// Dependencies: [19, 1957, 7203, 10343, 21, 4341, 4472, 1609, 504, 10344, 4572, 1477, 1611, 5732, 1115, 10345, 7202, 10346, 2]
|
|
// Exports: default
|
|
|
|
// Module 10342 (ExpressionPickerActionSheet)
|
|
import initialize from "initialize" /* 504 */;
|
|
import useWindowDimensionsDefault from "useWindowDimensions" /* 1477 */;
|
|
import KeyboardTypes from "KeyboardTypes" /* 1609 */;
|
|
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1611 */;
|
|
import ReanimatedRexport from "ReanimatedRexport" /* 4341 */;
|
|
import useKeyboardType from "useKeyboardType" /* 4472 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4572 */;
|
|
import NavigatorConstants from "NavigatorConstants" /* 5732 */;
|
|
import KeyboardUtils from "KeyboardUtils" /* 10344 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
|
|
|
require = fn;
|
|
let closure_5 = fn(7203).ACTION_SHEET_START_HEIGHT_RATIO;
|
|
const STICKER_FORMATS = fn(10343).STICKER_FORMATS;
|
|
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");
|
|
|
|
export default function ExpressionPickerActionSheet(arg0) {
|
|
({ channelId: require, onPressEmoji: importDefault, onPressSticker: dependencyMap, onPressGIF: noop } = arg0);
|
|
({ hideGifFavorites, onDismiss, visibleTabs, initialGifQuery } = arg0);
|
|
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));
|
|
const height = useWindowDimensionsDefault({ ignoreKeyboard: true }).height;
|
|
const diff = height - NavigatorConstants.NAV_BAR_HEIGHT_MULTILINE - useSafeAreaInsetsDefault().top;
|
|
let tmp15Result = null;
|
|
if (undefined !== stateFromStores) {
|
|
let isIOSResult = tmp2(1115).isIOS();
|
|
if (isIOSResult) {
|
|
const obj4 = { animatedSheetIndex: sharedValue, followSystemKeyboard: true };
|
|
isIOSResult = closure_7(tmp7(10345), obj4);
|
|
}
|
|
const obj5 = { children: null };
|
|
const items1 = [isIOSResult, ];
|
|
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
|
|
};
|
|
obj6.children = closure_7(tmp7(10346), obj7);
|
|
items1[1] = closure_7(tmp2(7202).BottomSheet, obj6);
|
|
obj5.children = items1;
|
|
tmp15Result = closure_9(closure_8, obj5);
|
|
const tmp2Result = tmp2(1115);
|
|
}
|
|
return tmp15Result;
|
|
};
|