/* Metro module 11027; source: modules/expression_picker/native/ExpressionPickerActionSheet.tsx; dependencies: [31, 1379, 6276, 11028, 33, 4017, 4022, 1583, 566, 11029, 4080, 1478, 1585, 5314, 477, 8575, 6275, 11030, 2] */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as KeyboardTypesModule from '../../keyboard/native/KeyboardTypes.tsx'; /* Metro dependency 1583 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as UseKeyboardTypeModule from '../../keyboard/native/useKeyboardType.tsx'; /* Metro dependency 4022 */
import * as NavigatorConstantsNativeModule from '../../../design/components/Navigator/native/NavigatorConstants.native.tsx'; /* Metro dependency 5314 */
import * as ActionSheetConstantsModule from '../../action_sheet/native/ActionSheetConstants.tsx'; /* Metro dependency 6276 */
import * as StickerPickerConstantsModule from '../../stickers/native/StickerPickerConstants.tsx'; /* Metro dependency 11028 */
import * as KeyboardUtilsModule from '../../../utils/native/KeyboardUtils.tsx'; /* Metro dependency 11029 */
function _fun84441(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11213:6, offset: 0x01f4a61b, size: 221 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/expression_picker/native/ExpressionPickerActionSheet.tsx');
exports.default = ExpressionPickerActionSheet;
function ExpressionPickerActionSheet({channelId, hideGifFavorites, onDismiss, onPressEmoji, onPressSticker, onPressGIF, visibleTabs, initialGifQuery}) { // fn#84442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11213:333, offset: 0x01f4a6f8, size: 601 bytes, params: 2, frame: 32
var r0;
var jsxRuntimeEnv0_8Binding;
var items2;
const value3 = onPressGIF.useRef(null);
const value4 = (ReanimatedRexportModule).useSharedValue(-1);
const useKeyboardContextForType = UseKeyboardTypeModule.useKeyboardContextForType;
const KeyboardTypes = (KeyboardTypesModule).KeyboardTypes;
const EXPRESSION = KeyboardTypes.EXPRESSION;
const value5 = Reflect.apply(useKeyboardContextForType, UseKeyboardTypeModule, [EXPRESSION]);
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const height = (UseWindowDimensionsNative)({ignoreKeyboard: true}).height;
const top = (UseSafeAreaInsetsNative)().top;
const NAV_BAR_HEIGHT_MULTILINE = (NavigatorConstantsNativeModule).NAV_BAR_HEIGHT_MULTILINE;
const value6 = height - NAV_BAR_HEIGHT_MULTILINE - top;
if (channel === undefined) {
r0 = null;
} else {
jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
items2 = [
(require(477) /* metro dependency 477: PlatformUtils */).isIOS() && ((Component) => )(importDefault(8575) /* metro dependency 8575: PortalKeyboardFooterIOSIos */),
];
items2[1] = ((BottomSheet) => {((Component) => )(importDefault(11030) /* metro dependency 11030: ExpressionPicker */)})((require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet);
r0 = (
<>
{items2}
>
);
}
return r0;
function dismissSheet() { // fn#84444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11213:682, owner: ExpressionPickerActionSheet.dismissSheet, offset: 0x01f4a951, size: 63 bytes, params: 1, frame: 13
const value = environment.__proto__;
(KeyboardUtilsModule).dismissKeyboard();
(ActionSheetActionCreators).hideActionSheet();
}
}
}
global.__d(_fun84441, 11027, [31, 1379, 6276, 11028, 33, 4017, 4022, 1583, 566, 11029, 4080, 1478, 1585, 5314, 477,
8575, 6275, 11030,
2]) /* metro module 11027, dependencies: [31, 1379, 6276, 11028, 33, 4017, 4022, 1583, 566, 11029, 4080, 1478, 1585, 5314, 477, 8575, 6275, 11030, 2] */;